@@ -56,15 +56,16 @@ jmp \not_found .endm .macro generate_lookup_super name lookup \name: - movq (%rcx), %rax - testq %rax, %rax + movq %rcx, %r8 + movq (%rcx), %rcx + testq %rcx, %rcx jz ret_nil - movq 8(%rcx), %r8 + movq 8(%r8), %r8 movq 56(%r8), %r8 jmp .Lmain_\lookup .endm generate_lookup objc_msg_lookup objc_method_not_found