	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_arp_arpquery               ## -- Begin function uip_arp_arpquery
	.p2align	4, 0x90
_uip_arp_arpquery:                      ## @uip_arp_arpquery
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_UIP_ERR_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	16(%rdi), %r13
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	_ip_addr_isbroadcast
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ip_addr_ismulticast
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ip_addr_isany
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_UIP_ERR_ARG@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_33:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ARP_TRY_HARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_uip_arp_findentry
	movq	%rax, %rsi
	movq	_arp_table@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rcx
	shlq	$4, %rsi
	movq	(%rcx,%rsi), %rax
	movq	_ARP_STATE_EMPTY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.5:
	addq	%rsi, %rcx
	movq	_ARP_STATE_PENDING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
LBB0_6:
	movq	_ARP_STATE_PENDING@GOTPCREL(%rip), %rcx
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	movq	%rsi, %r12
	movq	%rbx, %rsi
	movq	%rcx, %rbx
	callq	_uip_arp_arprequest
	movq	%rbx, %rcx
	movq	_arp_table@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%rax, %r12
LBB0_9:
	testq	%r14, %r14
	je	LBB0_33
## %bb.10:
	movq	(%rdi), %rax
	movq	(%rax,%rsi), %rdi
	movq	_ARP_STATE_STABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rdi
	jne	LBB0_31
## %bb.11:
	movq	(%r14), %r12
	movq	(%r15), %r8
	testq	%r8, %r8
	je	LBB0_30
## %bb.12:
	movq	8(%rax,%rsi), %r10
	movq	8(%r12), %rdx
	movq	16(%r12), %rsi
	movq	(%r13), %rdi
	cmpq	$8, %r8
	jae	LBB0_14
## %bb.13:
	xorl	%eax, %eax
LBB0_26:
	movq	%rax, %rcx
	orq	$1, %rcx
	testb	$1, %r8b
	je	LBB0_28
## %bb.27:
	movl	(%r10,%rax,4), %ebx
	movl	%ebx, (%rsi,%rax,4)
	movl	(%rdi,%rax,4), %ebx
	movl	%ebx, (%rdx,%rax,4)
	movq	%rcx, %rax
LBB0_28:
	cmpq	%rcx, %r8
	je	LBB0_30
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rax,4), %ecx
	movl	%ecx, (%rsi,%rax,4)
	movl	(%rdi,%rax,4), %ecx
	movl	%ecx, (%rdx,%rax,4)
	movl	4(%r10,%rax,4), %ecx
	movl	%ecx, 4(%rsi,%rax,4)
	movl	4(%rdi,%rax,4), %ecx
	movl	%ecx, 4(%rdx,%rax,4)
	addq	$2, %rax
	cmpq	%rax, %r8
	jne	LBB0_29
	jmp	LBB0_30
LBB0_31:
	cmpq	(%rcx), %rdi
	jne	LBB0_33
## %bb.32:
	leaq	L_.str(%rip), %rdi
	callq	_UIP_LOG
	jmp	LBB0_33
LBB0_14:
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	xorl	%eax, %eax
	cmpq	$32, %rcx
	jb	LBB0_26
## %bb.15:
	movq	%rsi, %rcx
	subq	%r10, %rcx
	cmpq	$32, %rcx
	jb	LBB0_26
## %bb.16:
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	cmpq	$32, %rcx
	jb	LBB0_26
## %bb.17:
	movq	%rdx, %rcx
	subq	%r10, %rcx
	cmpq	$32, %rcx
	jb	LBB0_26
## %bb.18:
	movq	%rdx, %rcx
	subq	%rdi, %rcx
	cmpq	$32, %rcx
	jb	LBB0_26
## %bb.19:
	movq	%r8, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.21:
	movq	%r9, %rcx
	andq	$-2, %rcx
	xorl	%ebx, %ebx
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r10,%rbx,4), %xmm0
	movups	16(%r10,%rbx,4), %xmm1
	movups	%xmm0, (%rsi,%rbx,4)
	movups	%xmm1, 16(%rsi,%rbx,4)
	movups	(%rdi,%rbx,4), %xmm0
	movups	16(%rdi,%rbx,4), %xmm1
	movups	%xmm0, (%rdx,%rbx,4)
	movups	%xmm1, 16(%rdx,%rbx,4)
	movups	32(%r10,%rbx,4), %xmm0
	movups	48(%r10,%rbx,4), %xmm1
	movups	%xmm0, 32(%rsi,%rbx,4)
	movups	%xmm1, 48(%rsi,%rbx,4)
	movups	32(%rdi,%rbx,4), %xmm0
	movups	48(%rdi,%rbx,4), %xmm1
	movups	%xmm0, 32(%rdx,%rbx,4)
	movups	%xmm1, 48(%rdx,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rcx
	jne	LBB0_22
	jmp	LBB0_23
LBB0_20:
	xorl	%ebx, %ebx
LBB0_23:
	testb	$1, %r9b
	je	LBB0_25
## %bb.24:
	movups	(%r10,%rbx,4), %xmm0
	movups	16(%r10,%rbx,4), %xmm1
	movups	%xmm0, (%rsi,%rbx,4)
	movups	%xmm1, 16(%rsi,%rbx,4)
	movups	(%rdi,%rbx,4), %xmm0
	movups	16(%rdi,%rbx,4), %xmm1
	movups	%xmm0, (%rdx,%rbx,4)
	movups	%xmm1, 16(%rdx,%rbx,4)
LBB0_25:
	cmpq	%rax, %r8
	jne	LBB0_26
LBB0_30:
	movq	_UIP_ETHTYPE_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%r12)
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UIP_ERR_MEM,8,3                ## @UIP_ERR_MEM
	.comm	_UIP_ERR_ARG,8,3                ## @UIP_ERR_ARG
	.comm	_ARP_TRY_HARD,4,2               ## @ARP_TRY_HARD
	.comm	_arp_table,8,3                  ## @arp_table
	.comm	_ARP_STATE_EMPTY,8,3            ## @ARP_STATE_EMPTY
	.comm	_ARP_STATE_PENDING,8,3          ## @ARP_STATE_PENDING
	.comm	_ARP_STATE_STABLE,8,3           ## @ARP_STATE_STABLE
	.comm	_UIP_ETHTYPE_IP,4,2             ## @UIP_ETHTYPE_IP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uip_arp_query: Ethernet destination address unknown, queueing disabled, packet dropped.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_arp_arpquery               ; -- Begin function uip_arp_arpquery
	.p2align	2
_uip_arp_arpquery:                      ; @uip_arp_arpquery
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _UIP_ERR_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UIP_ERR_MEM@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x24, [x0, #16]
	mov	x0, x1
	mov	x1, x20
	bl	_ip_addr_isbroadcast
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_ip_addr_ismulticast
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_ip_addr_isany
	cbz	x0, LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _UIP_ERR_ARG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UIP_ERR_ARG@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x8, _ARP_TRY_HARD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARP_TRY_HARD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_uip_arp_findentry
	mov	x23, x0
Lloh9:
	adrp	x26, _arp_table@GOTPAGE
Lloh10:
	ldr	x26, [x26, _arp_table@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x9, x8, x0, lsl #4
	ldr	x8, [x9]
Lloh11:
	adrp	x10, _ARP_STATE_EMPTY@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ARP_STATE_EMPTY@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x25, _ARP_STATE_PENDING@GOTPAGE
Lloh15:
	ldr	x25, [x25, _ARP_STATE_PENDING@GOTPAGEOFF]
	cmp	x8, x10
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x25]
	str	x8, [x9]
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x22
	bl	_uip_arp_arprequest
	mov	x21, x0
LBB0_10:
	cbz	x19, LBB0_4
; %bb.11:
	ldr	x8, [x26]
	lsl	x9, x23, #4
	ldr	x9, [x8, x9]
Lloh16:
	adrp	x10, _ARP_STATE_STABLE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ARP_STATE_STABLE@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.12:
	ldr	x21, [x19]
	ldr	x9, [x20]
	cbz	x9, LBB0_27
; %bb.13:
	add	x8, x8, x23, lsl #4
	ldr	x8, [x8, #8]
	ldr	x11, [x24]
	ldp	x12, x10, [x21, #8]
	cmp	x9, #8
	b.hs	LBB0_17
; %bb.14:
	mov	x13, #0
	b	LBB0_25
LBB0_15:
	ldr	x8, [x25]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.16:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UIP_LOG
	b	LBB0_4
LBB0_17:
	mov	x13, #0
	sub	x14, x12, x10
	cmp	x14, #32
	b.lo	LBB0_25
; %bb.18:
	sub	x14, x10, x8
	cmp	x14, #32
	b.lo	LBB0_25
; %bb.19:
	sub	x14, x11, x10
	cmp	x14, #32
	b.lo	LBB0_25
; %bb.20:
	sub	x14, x12, x8
	cmp	x14, #32
	b.lo	LBB0_25
; %bb.21:
	sub	x14, x12, x11
	cmp	x14, #32
	b.lo	LBB0_25
; %bb.22:
	and	x13, x9, #0xfffffffffffffff8
	add	x14, x8, #16
	add	x15, x10, #16
	add	x16, x11, #16
	add	x17, x12, #16
	mov	x0, x13
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-16]
	stp	q0, q1, [x15, #-16]
	ldp	q0, q1, [x16, #-16]
	add	x14, x14, #32
	stp	q0, q1, [x17, #-16]
	add	x15, x15, #32
	add	x16, x16, #32
	add	x17, x17, #32
	subs	x0, x0, #8
	b.ne	LBB0_23
; %bb.24:
	cmp	x9, x13
	b.eq	LBB0_27
LBB0_25:
	sub	x9, x9, x13
	lsl	x13, x13, #2
	add	x12, x12, x13
	add	x11, x11, x13
	add	x10, x10, x13
	add	x8, x8, x13
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8], #4
	str	w13, [x10], #4
	ldr	w13, [x11], #4
	str	w13, [x12], #4
	subs	x9, x9, #1
	b.ne	LBB0_26
LBB0_27:
Lloh21:
	adrp	x8, _UIP_ETHTYPE_IP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _UIP_ETHTYPE_IP@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x21]
	ldr	x2, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_UIP_ERR_MEM,8,3                ; @UIP_ERR_MEM
	.comm	_UIP_ERR_ARG,8,3                ; @UIP_ERR_ARG
	.comm	_ARP_TRY_HARD,4,2               ; @ARP_TRY_HARD
	.comm	_arp_table,8,3                  ; @arp_table
	.comm	_ARP_STATE_EMPTY,8,3            ; @ARP_STATE_EMPTY
	.comm	_ARP_STATE_PENDING,8,3          ; @ARP_STATE_PENDING
	.comm	_ARP_STATE_STABLE,8,3           ; @ARP_STATE_STABLE
	.comm	_UIP_ETHTYPE_IP,4,2             ; @UIP_ETHTYPE_IP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uip_arp_query: Ethernet destination address unknown, queueing disabled, packet dropped.\n"

.subsections_via_symbols
