	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_arp_table                  ## -- Begin function nes_arp_table
	.p2align	4, 0x90
_nes_arp_table:                         ## @nes_arp_table
	.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	%rcx, %r13
	movq	%rdx, %r8
	movq	%rsi, %r12
	movq	(%rdi), %r14
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	jle	LBB0_1
## %bb.2:
	movq	16(%r14), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rax)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addq	$16, %rax
	cmpq	%rbx, %rdx
	jne	LBB0_3
## %bb.5:
	movq	%rdx, %rbx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movq	_NES_ARP_ADD@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cmpq	%r13, (%rcx)
	jne	LBB0_11
## %bb.7:
	movl	$-1, %r15d
	cmpq	%rax, %rdx
	jne	LBB0_18
## %bb.8:
	movq	%r8, %rbx
	movl	$0, -44(%rbp)
	movl	8(%r14), %esi
	leaq	24(%r14), %r8
	movq	_NES_RESOURCE_ARP@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nes_alloc_resource
	movl	%eax, %r15d
	movq	_NES_DBG_NETDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_nes_debug
	jmp	LBB0_18
LBB0_11:
	cmpq	%rax, %rdx
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_cpu_to_be32
	movl	%eax, -48(%rbp)
	movq	_NES_DBG_NETDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movq	_NES_ARP_RESOLVE@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_nes_debug
	movl	$-1, %r15d
	jmp	LBB0_18
LBB0_13:
	movq	_NES_ARP_RESOLVE@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_15
## %bb.14:
	movq	_NES_DBG_NETDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nes_debug
	jmp	LBB0_17
LBB0_15:
	movq	_NES_ARP_DELETE@GOTPCREL(%rip), %rax
	movl	$-1, %r15d
	cmpq	%r13, (%rax)
	jne	LBB0_18
## %bb.16:
	movq	_NES_DBG_NETDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nes_debug
	movq	16(%r14), %rax
	movslq	%ebx, %rcx
	shlq	$4, %rcx
	movq	$0, (%rax,%rcx)
	movl	8(%rax,%rcx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	8(%r14), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_nes_free_resource
LBB0_17:
	movl	%ebx, %r15d
	jmp	LBB0_18
LBB0_10:
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_nes_debug
	movq	16(%r14), %rax
	movslq	-44(%rbp), %rcx
	shlq	$4, %rcx
	movq	%r12, (%rax,%rcx)
	movl	8(%rax,%rcx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movl	-44(%rbp), %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_ARP_ADD,8,3                ## @NES_ARP_ADD
	.comm	_NES_RESOURCE_ARP,4,2           ## @NES_RESOURCE_ARP
	.comm	_NES_DBG_NETDEV,4,2             ## @NES_DBG_NETDEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nes_alloc_resource returned error = %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"ADD, arp_index=%d\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.2:                               ## @.str.2
	.asciz	"MAC for %pI4 not in ARP table - cannot %s\n"

	.comm	_NES_ARP_RESOLVE,8,3            ## @NES_ARP_RESOLVE
L_.str.3:                               ## @.str.3
	.asciz	"resolve"

L_.str.4:                               ## @.str.4
	.asciz	"delete"

L_.str.5:                               ## @.str.5
	.asciz	"RESOLVE, arp_index=%d\n"

	.comm	_NES_ARP_DELETE,8,3             ## @NES_ARP_DELETE
L_.str.6:                               ## @.str.6
	.asciz	"DELETE, arp_index=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_arp_table                  ; -- Begin function nes_arp_table
	.p2align	2
_nes_arp_table:                         ; @nes_arp_table
	.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	x23, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x20, [x0]
	ldr	x2, [x20]
	cmp	x2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, #0
	ldr	x8, [x20, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cmp	x9, x22
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	add	x8, x8, #16
	cmp	x2, x19
	b.ne	LBB0_2
; %bb.4:
	mov	x19, x2
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
Lloh0:
	adrp	x8, _NES_ARP_ADD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NES_ARP_ADD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	mov	w8, w19
	cmp	x9, x23
	b.ne	LBB0_10
; %bb.7:
	cmp	x2, x8
	b.ne	LBB0_17
; %bb.8:
	str	wzr, [sp, #12]
	ldr	w1, [x20, #8]
	add	x4, x20, #24
Lloh3:
	adrp	x8, _NES_RESOURCE_ARP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NES_RESOURCE_ARP@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	add	x3, sp, #12
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_nes_alloc_resource
	mov	x19, x0
Lloh6:
	adrp	x8, _NES_DBG_NETDEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NES_DBG_NETDEV@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	cbz	w19, LBB0_19
; %bb.9:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_10:
	cmp	x2, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_cpu_to_be32
	str	w0, [sp, #8]
Lloh11:
	adrp	x8, _NES_DBG_NETDEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NES_DBG_NETDEV@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _NES_ARP_RESOLVE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NES_ARP_RESOLVE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, l_.str.4@PAGE
Lloh18:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh19:
	adrp	x10, l_.str.3@PAGE
Lloh20:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, x23
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	bl	_nes_debug
	b	LBB0_17
LBB0_12:
Lloh23:
	adrp	x8, _NES_ARP_RESOLVE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NES_ARP_RESOLVE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_15
; %bb.13:
Lloh26:
	adrp	x8, _NES_DBG_NETDEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NES_DBG_NETDEV@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_14:
	mov	x2, x19
	bl	_nes_debug
	b	LBB0_18
LBB0_15:
Lloh31:
	adrp	x8, _NES_ARP_DELETE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NES_ARP_DELETE@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_17
; %bb.16:
Lloh34:
	adrp	x8, _NES_DBG_NETDEV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NES_DBG_NETDEV@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x19
	bl	_nes_debug
	ldr	x8, [x20, #16]
	add	x8, x8, w19, sxtw #4
	str	xzr, [x8]
	ldr	w0, [x8, #8]
Lloh39:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	w1, [x20, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_nes_free_resource
	b	LBB0_18
LBB0_17:
	mov	w19, #-1
LBB0_18:
	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
	ret
LBB0_19:
	ldr	w2, [sp, #12]
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nes_debug
	ldr	x8, [x20, #16]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9, lsl #4
	str	x22, [x8]
	ldr	w0, [x8, #8]
Lloh44:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_memcpy
	ldr	w19, [sp, #12]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_ARP_ADD,8,3                ; @NES_ARP_ADD
	.comm	_NES_RESOURCE_ARP,4,2           ; @NES_RESOURCE_ARP
	.comm	_NES_DBG_NETDEV,4,2             ; @NES_DBG_NETDEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nes_alloc_resource returned error = %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"ADD, arp_index=%d\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.2:                               ; @.str.2
	.asciz	"MAC for %pI4 not in ARP table - cannot %s\n"

	.comm	_NES_ARP_RESOLVE,8,3            ; @NES_ARP_RESOLVE
l_.str.3:                               ; @.str.3
	.asciz	"resolve"

l_.str.4:                               ; @.str.4
	.asciz	"delete"

l_.str.5:                               ; @.str.5
	.asciz	"RESOLVE, arp_index=%d\n"

	.comm	_NES_ARP_DELETE,8,3             ; @NES_ARP_DELETE
l_.str.6:                               ; @.str.6
	.asciz	"DELETE, arp_index=%d\n"

.subsections_via_symbols
