// File: /workspace/github_c_makefile_star2_O2/martintopholm[P]xping/icmp.c
// Function: find
struct probe *
find(int af, void *address)
{
	struct probe *result;
	union addr sa;

	memset(&sa, 0, sizeof(sa));
	if (af == AF_INET) {
		sa.sin.sin_family = AF_INET;
		memmove(&sa.sin.sin_addr, (struct in_addr *)address,
		    sizeof(sa.sin.sin_addr));
	} else if (af == AF_INET6) {
		sa.sin6.sin6_family = AF_INET6;
		memmove(&sa.sin6.sin6_addr, (struct in6_addr *)address,
		    sizeof(sa.sin6.sin6_addr));
	} else {
		return NULL;
	}
	HASH_FIND(hh, hash, &sa, sizeof(union addr), result);
	return (result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
xorps %xmm0, %xmm0
movups %xmm0, 0xc(%rsp)
movaps %xmm0, (%rsp)
cmpl $0xa, %edi
je 0x379f
cmpl $0x2, %edi
jne 0x39ca
movw $0x2, (%rsp)
movl (%rsi), %eax
movl %eax, 0x4(%rsp)
jmp 0x37ad
movw $0xa, (%rsp)
movups (%rsi), %xmm0
movups %xmm0, 0x8(%rsp)
movq 0x4aac(%rip), %rax      # 0x8260
testq %rax, %rax
je 0x39ca
movq %rsp, %rcx
pushq $0x1c
popq %rdx
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
movl $0xfeedbeef, %esi       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %r8d       # imm = 0x9E3779B9
cmpl $0xc, %edx
jb 0x38e9
movsbl (%rcx), %r10d
movsbl 0x1(%rcx), %r9d
shll $0x8, %r9d
movsbl 0x2(%rcx), %ebx
shll $0x10, %ebx
movzbl 0x3(%rcx), %r11d
shll $0x18, %r11d
addl %ebx, %r11d
movsbl 0x4(%rcx), %ebx
movsbl 0x5(%rcx), %ebp
shll $0x8, %ebp
movsbl 0x6(%rcx), %r14d
shll $0x10, %r14d
movzbl 0x7(%rcx), %r15d
shll $0x18, %r15d
addl %r14d, %r15d
addl %ebx, %r8d
addl %ebp, %r8d
addl %r15d, %r8d
movsbl 0x8(%rcx), %ebx
movsbl 0x9(%rcx), %ebp
shll $0x8, %ebp
movsbl 0xa(%rcx), %r14d
shll $0x10, %r14d
movzbl 0xb(%rcx), %r15d
shll $0x18, %r15d
addl %r14d, %r15d
addl %ebx, %esi
addl %ebp, %esi
addl %r15d, %esi
addl %r10d, %edi
addl %r9d, %edi
addl %r11d, %edi
subl %r8d, %edi
subl %esi, %edi
movl %esi, %r9d
shrl $0xd, %r9d
xorl %edi, %r9d
subl %esi, %r8d
subl %r9d, %r8d
movl %r9d, %edi
shll $0x8, %edi
xorl %r8d, %edi
subl %r9d, %esi
subl %edi, %esi
movl %edi, %r8d
shrl $0xd, %r8d
xorl %esi, %r8d
subl %edi, %r9d
subl %r8d, %r9d
movl %r8d, %esi
shrl $0xc, %esi
xorl %r9d, %esi
subl %r8d, %edi
subl %esi, %edi
movl %esi, %r9d
shll $0x10, %r9d
xorl %edi, %r9d
subl %esi, %r8d
subl %r9d, %r8d
movl %r9d, %r10d
shrl $0x5, %r10d
xorl %r8d, %r10d
subl %r9d, %esi
subl %r10d, %esi
movl %r10d, %edi
shrl $0x3, %edi
xorl %esi, %edi
subl %r10d, %r9d
subl %edi, %r9d
movl %edi, %r8d
shll $0xa, %r8d
xorl %r9d, %r8d
subl %edi, %r10d
subl %r8d, %r10d
movl %r8d, %esi
shrl $0xf, %esi
xorl %r10d, %esi
addq $0xc, %rcx
addl $-0xc, %edx
jmp 0x37d3
leal 0x1c(%rsi), %ecx
pushq $-0x1c
popq %r9
subl %esi, %r9d
addl %r9d, %edi
subl %r8d, %edi
shrl $0xd, %ecx
xorl %edi, %ecx
addl %r8d, %r9d
subl %ecx, %r9d
movl %ecx, %edx
shll $0x8, %edx
xorl %r9d, %edx
leal (%rcx,%rdx), %edi
negl %edi
addl %edi, %esi
addl $0x1c, %esi
movl %edx, %edi
shrl $0xd, %edi
xorl %esi, %edi
subl %edx, %ecx
subl %edi, %ecx
movl %edi, %esi
shrl $0xc, %esi
xorl %ecx, %esi
subl %edi, %edx
subl %esi, %edx
movl %esi, %ecx
shll $0x10, %ecx
xorl %edx, %ecx
subl %esi, %edi
subl %ecx, %edi
movl %ecx, %edx
shrl $0x5, %edx
xorl %edi, %edx
subl %ecx, %esi
subl %edx, %esi
movl %edx, %edi
shrl $0x3, %edi
xorl %esi, %edi
subl %edx, %ecx
subl %edi, %ecx
movl %edi, %esi
shll $0xa, %esi
xorl %ecx, %esi
addl %esi, %edi
subl %edi, %edx
shrl $0xf, %esi
xorl %edx, %esi
movq 0x70(%rax), %r12
movl 0x8(%r12), %eax
decl %eax
andl %esi, %eax
movq (%r12), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %rbx
testq %rbx, %rbx
je 0x3982
subq 0x20(%r12), %rbx
jmp 0x3984
xorl %ebx, %ebx
movq %rsp, %r14
pushq $0x1c
popq %r15
testq %rbx, %rbx
je 0x39ca
cmpl $0x1c, 0xa0(%rbx)
jne 0x39af
movq 0x98(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2180
testl %eax, %eax
je 0x39cc
movq 0x90(%rbx), %rax
movl $0x0, %ebx
testq %rax, %rax
je 0x398b
subq 0x20(%r12), %rax
movq %rax, %rbx
jmp 0x398b
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq