// File: /workspace/github_c_makefile_star2_O1/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:
pxor %xmm0, %xmm0
movdqu %xmm0, -0x1c(%rsp)
movdqa %xmm0, -0x28(%rsp)
cmpl $0xa, %edi
je 0x3b12
cmpl $0x2, %edi
jne 0x3d6f
movw $0x2, -0x28(%rsp)
movl (%rsi), %eax
movl %eax, -0x24(%rsp)
jmp 0x3b23
movw $0xa, -0x28(%rsp)
movdqu (%rsi), %xmm0
movdqu %xmm0, -0x20(%rsp)
movq 0x3736(%rip), %rax      # 0x7260
testq %rax, %rax
je 0x3d6f
movl $0xfeedbeef, %esi       # imm = 0xFEEDBEEF
movl $0x9e3779b9, %edi       # imm = 0x9E3779B9
movl $0x1c, %ecx
leaq -0x28(%rsp), %rdx
movl $0x9e3779b9, %r8d       # imm = 0x9E3779B9
movsbl (%rdx), %r9d
addl %r8d, %r9d
movsbl 0x1(%rdx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0x2(%rdx), %r9d
shll $0x10, %r9d
movzbl 0x3(%rdx), %r8d
shll $0x18, %r8d
addl %r9d, %r8d
addl %r10d, %r8d
movsbl 0x4(%rdx), %r9d
addl %edi, %r9d
movsbl 0x5(%rdx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0x6(%rdx), %r9d
shll $0x10, %r9d
movzbl 0x7(%rdx), %edi
shll $0x18, %edi
addl %r9d, %edi
addl %r10d, %edi
movsbl 0x8(%rdx), %r9d
addl %esi, %r9d
movsbl 0x9(%rdx), %r10d
shll $0x8, %r10d
addl %r9d, %r10d
movsbl 0xa(%rdx), %r9d
shll $0x10, %r9d
movzbl 0xb(%rdx), %esi
shll $0x18, %esi
addl %r9d, %esi
addl %r10d, %esi
subl %edi, %r8d
subl %esi, %r8d
movl %esi, %r9d
shrl $0xd, %r9d
xorl %r8d, %r9d
subl %esi, %edi
subl %r9d, %edi
movl %r9d, %r8d
shll $0x8, %r8d
xorl %edi, %r8d
subl %r9d, %esi
subl %r8d, %esi
movl %r8d, %edi
shrl $0xd, %edi
xorl %esi, %edi
subl %r8d, %r9d
subl %edi, %r9d
movl %edi, %esi
shrl $0xc, %esi
xorl %r9d, %esi
subl %edi, %r8d
subl %esi, %r8d
movl %esi, %r9d
shll $0x10, %r9d
xorl %r8d, %r9d
subl %esi, %edi
subl %r9d, %edi
movl %r9d, %r10d
shrl $0x5, %r10d
xorl %edi, %r10d
subl %r9d, %esi
subl %r10d, %esi
movl %r10d, %r8d
shrl $0x3, %r8d
xorl %esi, %r8d
subl %r10d, %r9d
subl %r8d, %r9d
movl %r8d, %edi
shll $0xa, %edi
xorl %r9d, %edi
subl %r8d, %r10d
subl %edi, %r10d
movl %edi, %esi
shrl $0xf, %esi
xorl %r10d, %esi
addq $0xc, %rdx
addl $-0xc, %ecx
cmpl $0xb, %ecx
ja 0x3b4d
leal 0x1c(%rsi), %ecx
movl $0xffffffe4, %edx       # imm = 0xFFFFFFE4
subl %esi, %edx
movzbl -0xd(%rsp), %r9d
shll $0x18, %r9d
movsbl -0xe(%rsp), %r10d
shll $0x10, %r10d
addl %r9d, %r10d
movsbl -0xf(%rsp), %r9d
shll $0x8, %r9d
addl %r10d, %r9d
movsbl -0x10(%rsp), %r10d
addl %r9d, %r10d
addl %r8d, %r10d
addl %edx, %r10d
subl %edi, %r10d
shrl $0xd, %ecx
xorl %r10d, %ecx
addl %edi, %edx
subl %ecx, %edx
movl %ecx, %edi
shll $0x8, %edi
xorl %edx, %edi
leal (%rcx,%rdi), %edx
negl %edx
addl %esi, %edx
addl $0x1c, %edx
movl %edi, %esi
shrl $0xd, %esi
xorl %edx, %esi
subl %edi, %ecx
subl %esi, %ecx
movl %esi, %edx
shrl $0xc, %edx
xorl %ecx, %edx
subl %esi, %edi
subl %edx, %edi
movl %edx, %ecx
shll $0x10, %ecx
xorl %edi, %ecx
subl %edx, %esi
subl %ecx, %esi
movl %ecx, %edi
shrl $0x5, %edi
xorl %esi, %edi
subl %ecx, %edx
subl %edi, %edx
movl %edi, %esi
shrl $0x3, %esi
xorl %edx, %esi
subl %edi, %ecx
subl %esi, %ecx
movl %esi, %edx
shll $0xa, %edx
xorl %ecx, %edx
addl %edx, %esi
subl %esi, %edi
shrl $0xf, %edx
xorl %edi, %edx
movq 0x70(%rax), %rcx
movl 0x8(%rcx), %eax
decl %eax
andl %edx, %eax
movq (%rcx), %rdx
shlq $0x4, %rax
movq (%rdx,%rax), %rax
testq %rax, %rax
je 0x3d26
subq 0x20(%rcx), %rax
jmp 0x3d28
xorl %eax, %eax
testq %rax, %rax
je 0x3d6f
cmpl $0x1c, 0xa0(%rax)
jne 0x3d66
movq 0x98(%rax), %rdx
movdqu (%rdx), %xmm0
movdqu 0xc(%rdx), %xmm1
movdqu -0x1c(%rsp), %xmm2
pcmpeqb -0x28(%rsp), %xmm0
pcmpeqb %xmm1, %xmm2
pand %xmm2, %xmm0
pmovmskb %xmm0, %edx
cmpl $0xffff, %edx           # imm = 0xFFFF
je 0x3d71
movq 0x90(%rax), %rax
jmp 0x3d1b
xorl %eax, %eax
retq