	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_arp_arpin                  ## -- Begin function uip_arp_arpin
	.p2align	4, 0x90
_uip_arp_arpin:                         ## @uip_arp_arpin
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	cmpl	$55, (%rdx)
	ja	LBB0_1
## %bb.20:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uip_pbuf_free                  ## TAILCALL
LBB0_1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%r15), %r13
	movl	48(%r13), %eax
	movl	%eax, -48(%rbp)
	movl	52(%r13), %eax
	movl	%eax, -56(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.2:
	leaq	16(%r14), %rsi
	leaq	-56(%rbp), %rdi
	callq	_ip_addr_cmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	40(%r13), %rdx
	movq	_ARP_TRY_HARD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_uip_arp_update
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	leaq	40(%r13), %rdx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_uip_arp_update
	movb	$1, %bl
LBB0_5:
	movl	(%r13), %edi
	callq	_htons
	cmpl	$129, %eax
	je	LBB0_19
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.7:
	testb	%bl, %bl
	je	LBB0_8
## %bb.16:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
LBB0_18:
	callq	_UIP_LOG
	jmp	LBB0_19
LBB0_8:
	movl	$129, %edi
	callq	_htons
	movl	%eax, (%r13)
	movl	48(%r13), %eax
	movl	%eax, 52(%r13)
	movl	16(%r14), %eax
	movl	%eax, 48(%r13)
	movq	(%r14), %r8
	testq	%r8, %r8
	je	LBB0_15
## %bb.9:
	movq	40(%r13), %rdx
	movq	32(%r13), %rsi
	movq	(%r12), %rax
	movq	16(%r13), %r10
	movq	24(%r13), %rdi
	cmpq	$1, %r8
	jne	LBB0_11
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	%r8, %r9
	andq	$-2, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rbx,4), %ecx
	movl	%ecx, (%rsi,%rbx,4)
	movl	(%rax,%rbx,4), %ecx
	movl	%ecx, (%rdx,%rbx,4)
	movl	(%rsi,%rbx,4), %ecx
	movl	%ecx, (%rdi,%rbx,4)
	movl	(%rax,%rbx,4), %ecx
	movl	%ecx, (%r10,%rbx,4)
	movl	4(%rdx,%rbx,4), %ecx
	movl	%ecx, 4(%rsi,%rbx,4)
	movl	4(%rax,%rbx,4), %ecx
	movl	%ecx, 4(%rdx,%rbx,4)
	movl	4(%rsi,%rbx,4), %ecx
	movl	%ecx, 4(%rdi,%rbx,4)
	movl	4(%rax,%rbx,4), %ecx
	movl	%ecx, 4(%r10,%rbx,4)
	addq	$2, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_12
LBB0_13:
	testb	$1, %r8b
	je	LBB0_15
## %bb.14:
	movl	(%rdx,%rbx,4), %ecx
	movl	%ecx, (%rsi,%rbx,4)
	movl	(%rax,%rbx,4), %ecx
	movl	%ecx, (%rdx,%rbx,4)
	movl	(%rsi,%rbx,4), %ecx
	movl	%ecx, (%rdi,%rbx,4)
	movl	(%rax,%rbx,4), %eax
	movl	%eax, (%r10,%rbx,4)
LBB0_15:
	movq	_ARP_HWTYPE_ETH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 4(%r13)
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_ARPH_HWLEN_SET
	movq	_UIP_ETHTYPE_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 8(%r13)
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_ARPH_PROTOLEN_SET
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*8(%r14)
LBB0_19:
	movq	%r15, %rdi
	callq	_uip_pbuf_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARP_TRY_HARD,4,2               ## @ARP_TRY_HARD
	.comm	_ARP_HWTYPE_ETH,4,2             ## @ARP_HWTYPE_ETH
	.comm	_UIP_ETHTYPE_IP,4,2             ## @UIP_ETHTYPE_IP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uip_arp_arpin: ip packet not for us.\n"

L_.str.1:                               ## @.str.1
	.asciz	"uip_arp_arpin: ARP unknown opcode type.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_arp_arpin                  ; -- Begin function uip_arp_arpin
	.p2align	2
_uip_arp_arpin:                         ; @uip_arp_arpin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	ldr	w8, [x2]
	cmp	w8, #55
	b.hi	LBB0_2
; %bb.1:
	mov	x0, 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
	add	sp, sp, #80
	b	_uip_pbuf_free
LBB0_2:
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x19, #8]
	ldp	w8, w9, [x21, #48]
	str	w8, [sp, #8]
	str	w9, [sp]
	mov	x1, x0
	ldr	x8, [x1, #16]!
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, sp
	bl	_ip_addr_cmp
	cbz	x0, LBB0_5
; %bb.4:
	add	x2, x21, #40
Lloh0:
	adrp	x8, _ARP_TRY_HARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARP_TRY_HARD@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_uip_arp_update
	mov	w23, #0
	b	LBB0_6
LBB0_5:
	add	x2, x21, #40
	add	x1, sp, #8
	mov	x0, x20
	mov	w3, #0
	bl	_uip_arp_update
	mov	w23, #1
LBB0_6:
	ldr	w0, [x21]
	bl	_htons
	cmp	w0, #129
	b.eq	LBB0_16
; %bb.7:
	cmp	w0, #128
	b.ne	LBB0_10
; %bb.8:
	tbz	w23, #0, LBB0_12
; %bb.9:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_UIP_LOG
	b	LBB0_16
LBB0_12:
	mov	w0, #129
	bl	_htons
	str	w0, [x21]
	ldr	w8, [x21, #48]
	str	w8, [x21, #52]
	ldr	w8, [x20, #16]
	str	w8, [x21, #48]
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.13:
	ldp	x10, x9, [x21, #32]
	ldr	x11, [x22]
	ldp	x13, x12, [x21, #16]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x9]
	str	w14, [x10]
	ldr	w14, [x11]
	str	w14, [x9], #4
	ldr	w14, [x10], #4
	str	w14, [x12], #4
	ldr	w14, [x11], #4
	str	w14, [x13], #4
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
Lloh7:
	adrp	x8, _ARP_HWTYPE_ETH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARP_HWTYPE_ETH@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x21, #4]
	ldr	x1, [x20]
	mov	x0, x21
	bl	_ARPH_HWLEN_SET
Lloh10:
	adrp	x8, _UIP_ETHTYPE_IP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UIP_ETHTYPE_IP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x21, #8]
	mov	x0, x21
	mov	w1, #4
	bl	_ARPH_PROTOLEN_SET
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_16:
	mov	x0, x19
	bl	_uip_pbuf_free
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ARP_TRY_HARD,4,2               ; @ARP_TRY_HARD
	.comm	_ARP_HWTYPE_ETH,4,2             ; @ARP_HWTYPE_ETH
	.comm	_UIP_ETHTYPE_IP,4,2             ; @UIP_ETHTYPE_IP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uip_arp_arpin: ip packet not for us.\n"

l_.str.1:                               ; @.str.1
	.asciz	"uip_arp_arpin: ARP unknown opcode type.\n"

.subsections_via_symbols
