	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etharp_output                  ## -- Begin function etharp_output
	.p2align	4, 0x90
_etharp_output:                         ## @etharp_output
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	movl	$24, %esi
	callq	_pbuf_header
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ETHARP_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	$2, %edi
	leaq	L_.str(%rip), %rsi
	callq	_LWIP_DEBUGF
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LINK_STATS_INC
	movq	_ERR_BUF@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ip_addr_isbroadcast
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	(%r14), %r12
	movq	(%r15), %r8
	testq	%r8, %r8
	je	LBB0_26
## %bb.8:
	movq	16(%r15), %rax
	movq	_ethbroadcast@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	8(%r12), %rdx
	movq	16(%r12), %rsi
	movq	(%rax), %rdi
	cmpq	$8, %r8
	jae	LBB0_10
## %bb.9:
	xorl	%eax, %eax
LBB0_22:
	movq	%rax, %rcx
	orq	$1, %rcx
	testb	$1, %r8b
	je	LBB0_24
## %bb.23:
	movl	(%r10,%rax,4), %ebx
	movl	%ebx, (%rsi,%rax,4)
	movl	(%rdi,%rax,4), %ebx
	movl	%ebx, (%rdx,%rax,4)
	movq	%rcx, %rax
LBB0_24:
	cmpq	%rcx, %r8
	je	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ## =>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_25
	jmp	LBB0_26
LBB0_3:
	movq	%rbx, %rdi
	callq	_ip_addr_ismulticast
	leaq	36(%r15), %rsi
	leaq	32(%r15), %rdx
	movq	%rbx, %rdi
	callq	_ip_addr_netcmp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 24(%r15)
	je	LBB0_27
## %bb.5:
	leaq	24(%r15), %rbx
LBB0_6:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_etharp_query                   ## TAILCALL
LBB0_10:
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	xorl	%eax, %eax
	cmpq	$32, %rcx
	jb	LBB0_22
## %bb.11:
	movq	%rsi, %rcx
	subq	%r10, %rcx
	cmpq	$32, %rcx
	jb	LBB0_22
## %bb.12:
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	cmpq	$32, %rcx
	jb	LBB0_22
## %bb.13:
	movq	%rdx, %rcx
	subq	%r10, %rcx
	cmpq	$32, %rcx
	jb	LBB0_22
## %bb.14:
	movq	%rdx, %rcx
	subq	%rdi, %rcx
	cmpq	$32, %rcx
	jb	LBB0_22
## %bb.15:
	movq	%r8, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.17:
	movq	%r9, %rcx
	andq	$-2, %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>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_18
	jmp	LBB0_19
LBB0_27:
	movq	_ERR_RTE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_16:
	xorl	%ebx, %ebx
LBB0_19:
	testb	$1, %r9b
	je	LBB0_21
## %bb.20:
	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_21:
	cmpq	%rax, %r8
	jne	LBB0_22
LBB0_26:
	movq	_ETHTYPE_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%r12)
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHARP_DEBUG,4,2               ## @ETHARP_DEBUG
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"etharp_output: could not allocate room for header.\n"

	.comm	_link,4,2                       ## @link
	.comm	_ERR_BUF,4,2                    ## @ERR_BUF
	.comm	_ethbroadcast,4,2               ## @ethbroadcast
	.comm	_ERR_RTE,4,2                    ## @ERR_RTE
	.comm	_ETHTYPE_IP,4,2                 ## @ETHTYPE_IP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etharp_output                  ; -- Begin function etharp_output
	.p2align	2
_etharp_output:                         ; @etharp_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #24
	bl	_pbuf_header
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ETHARP_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHARP_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DBG_TRACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DBG_TRACE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w0, w8, #0x2
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_LWIP_DEBUGF
Lloh8:
	adrp	x8, _link@GOTPAGE
Lloh9:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_LINK_STATS_INC
Lloh11:
	adrp	x8, _ERR_BUF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_BUF@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_ip_addr_isbroadcast
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x21, [x19]
	ldr	x9, [x20]
	cbz	x9, LBB0_20
; %bb.5:
Lloh13:
	adrp	x8, _ethbroadcast@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ethbroadcast@GOTPAGEOFF]
	ldr	x10, [x20, #16]
Lloh15:
	ldr	x8, [x8]
	ldr	x11, [x10]
	ldp	x12, x10, [x21, #8]
	cmp	x9, #8
	b.hs	LBB0_10
; %bb.6:
	mov	x13, #0
	b	LBB0_18
LBB0_7:
	mov	x0, x21
	bl	_ip_addr_ismulticast
	add	x1, x20, #36
	add	x2, x20, #32
	mov	x0, x21
	bl	_ip_addr_netcmp
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x21, x20
	ldr	x8, [x21, #24]!
	cbz	x8, LBB0_21
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_etharp_query
LBB0_10:
	mov	x13, #0
	sub	x14, x12, x10
	cmp	x14, #32
	b.lo	LBB0_18
; %bb.11:
	sub	x14, x10, x8
	cmp	x14, #32
	b.lo	LBB0_18
; %bb.12:
	sub	x14, x11, x10
	cmp	x14, #32
	b.lo	LBB0_18
; %bb.13:
	sub	x14, x12, x8
	cmp	x14, #32
	b.lo	LBB0_18
; %bb.14:
	sub	x14, x12, x11
	cmp	x14, #32
	b.lo	LBB0_18
; %bb.15:
	and	x13, x9, #0xfffffffffffffff8
	add	x14, x8, #16
	add	x15, x10, #16
	add	x16, x11, #16
	add	x17, x12, #16
	mov	x0, x13
LBB0_16:                                ; =>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_16
; %bb.17:
	cmp	x9, x13
	b.eq	LBB0_20
LBB0_18:
	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_19:                                ; =>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_19
LBB0_20:
Lloh16:
	adrp	x8, _ETHTYPE_IP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETHTYPE_IP@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x21]
	ldr	x2, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_21:
Lloh19:
	adrp	x8, _ERR_RTE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_RTE@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHARP_DEBUG,4,2               ; @ETHARP_DEBUG
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"etharp_output: could not allocate room for header.\n"

	.comm	_link,4,2                       ; @link
	.comm	_ERR_BUF,4,2                    ; @ERR_BUF
	.comm	_ethbroadcast,4,2               ; @ethbroadcast
	.comm	_ERR_RTE,4,2                    ; @ERR_RTE
	.comm	_ETHTYPE_IP,4,2                 ; @ETHTYPE_IP
.subsections_via_symbols
