	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar8xxx_sw_get_arl_table        ## -- Begin function ar8xxx_sw_get_arl_table
	.p2align	4, 0x90
_ar8xxx_sw_get_arl_table:               ## @ar8xxx_sw_get_arl_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	callq	_swdev_to_ar8xxx
	movq	32(%rax), %r15
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movq	40(%rax), %r14
	movq	(%rax), %r13
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_AR8XXX_ARL_INITIALIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*(%r15)
	movq	_AR8XXX_NUM_ARL_RECORDS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_15
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_AR8XXX_NUM_ARL_RECORDS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	16(%rdi), %r15
	movq	%rcx, %r12
	shlq	$4, %r12
	movq	%rcx, %rbx
	leaq	(%r15,%r12), %r14
	movq	_AR8XXX_ARL_GET_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	leaq	-44(%rbp), %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	cmpl	$0, -44(%rbp)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r15, %r12
	addq	$8, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r13
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r15
	movq	(%r14), %rdi
	movq	%r13, %rbx
	shlq	$4, %rbx
	movq	(%r15,%rbx), %rsi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	8(%r15,%rbx), %eax
	notl	%eax
	andl	%eax, (%r12)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=2
	movq	_AR8XXX_ARL_GET_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-44(%rbp), %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	cmpl	$0, -44(%rbp)
	movl	$0, %r13d
	jne	LBB0_9
## %bb.28:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_27
LBB0_5:
	movq	%rbx, %rcx
LBB0_13:
	movq	%rcx, %r12
LBB0_14:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	L_.str(%rip), %rdx
	movl	$8, %r14d
	movq	%r13, %rdi
	movl	$8, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rax, %rbx
	movq	_AR8XXX_NUM_ARL_RECORDS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_17
## %bb.16:
	movslq	%ebx, %rax
	leaq	(%rax,%r13), %rdi
	subl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %esi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	addq	%rax, %rbx
LBB0_17:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	24(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.18:
	movl	%r12d, %ecx
	shlq	$4, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	24(%r15), %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=1
	incl	%r13d
	cmpl	%eax, %r13d
	jge	LBB0_26
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	testl	%r12d, %r12d
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=2
	addq	$16, %r14
	cmpq	%r14, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_24
LBB0_21:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r15), %r12
	movl	8(%r12,%r14), %ebx
	movl	%r13d, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movslq	-56(%rbp), %r15                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rdi
	movl	$8, %esi
	subl	%r15d, %esi
	movq	(%r12,%r14), %rax
	movl	20(%rax), %r8d
	movl	16(%rax), %r9d
	movl	12(%rax), %r10d
	movl	8(%rax), %r11d
	movl	(%rax), %ebx
	movl	4(%rax), %r12d
	leaq	L_.str.2(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	addl	%r15d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_26:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_27:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_AR8XXX_ARL_INITIALIZE,4,2      ## @AR8XXX_ARL_INITIALIZE
	.comm	_AR8XXX_NUM_ARL_RECORDS,4,2     ## @AR8XXX_NUM_ARL_RECORDS
	.comm	_AR8XXX_ARL_GET_NEXT,4,2        ## @AR8XXX_ARL_GET_NEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"address resolution table\n"

L_.str.1:                               ## @.str.1
	.asciz	"Too many entries found, displaying the first %d only!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Port %d: MAC %02x:%02x:%02x:%02x:%02x:%02x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar8xxx_sw_get_arl_table        ; -- Begin function ar8xxx_sw_get_arl_table
	.p2align	2
_ar8xxx_sw_get_arl_table:               ; @ar8xxx_sw_get_arl_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	bl	_swdev_to_ar8xxx
	ldr	x27, [x0, #32]
	ldr	x8, [x27]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x20, x0
	str	x19, [sp, #72]                  ; 8-byte Folded Spill
	ldr	x19, [x0, #40]
	ldr	x22, [x0], #8
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	bl	_mutex_lock
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x27]
Lloh0:
	adrp	x9, _AR8XXX_ARL_INITIALIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR8XXX_ARL_INITIALIZE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	blr	x8
Lloh3:
	adrp	x25, _AR8XXX_NUM_ARL_RECORDS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _AR8XXX_NUM_ARL_RECORDS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.2:
	str	x19, [sp, #80]                  ; 8-byte Folded Spill
	mov	x21, #0
Lloh5:
	adrp	x28, _AR8XXX_ARL_GET_NEXT@GOTPAGE
Lloh6:
	ldr	x28, [x28, _AR8XXX_ARL_GET_NEXT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x26
	add	x21, x26, #1
	ldrsw	x8, [x25]
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x20, #16]
	add	x24, x8, x21, lsl #4
	ldr	x8, [x27]
	ldr	w3, [x28]
	sub	x2, x29, #84
	mov	x0, x20
	mov	x1, x24
	blr	x8
	ldur	w8, [x29, #-84]
	cbz	w8, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x21
	cbz	x21, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, #0
	add	x21, x24, #8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x19, x19, #1
	cmp	x19, x26
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x23, [x20, #16]
	ldr	x0, [x24]
	lsl	x8, x19, #4
	ldr	x1, [x23, x8]
	mov	w2, #8
	bl	_memcmp
	cbnz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x23, x19, lsl #4
	ldr	w8, [x8, #8]
	ldr	w9, [x21]
	bics	w8, w9, w8
	str	w8, [x21]
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x27]
	ldr	w3, [x28]
	sub	x2, x29, #84
	mov	x0, x20
	mov	x1, x24
	blr	x8
	mov	x19, #0
	ldur	w8, [x29, #-84]
	cbnz	w8, LBB0_8
; %bb.11:
	mov	x21, x26
LBB0_12:
	ldr	x19, [sp, #80]                  ; 8-byte Folded Reload
	b	LBB0_15
LBB0_13:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_27
LBB0_14:
	mov	w21, #0
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	w19, #8
	mov	x0, x22
	mov	w1, #8
	bl	_snprintf
	mov	x23, x0
	ldr	w8, [x25]
	cmp	w21, w8
	b.ne	LBB0_17
; %bb.16:
	add	x0, x22, w23, sxtw
	sub	w1, w19, w23
	mov	x8, x21
	str	x8, [sp]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	add	x23, x0, x23
LBB0_17:
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.18:
	mov	w24, #0
	mov	w9, w21
	lsl	x27, x9, #4
	mov	w28, #8
Lloh14:
	adrp	x25, l_.str.2@PAGE
Lloh15:
	add	x25, x25, l_.str.2@PAGEOFF
	str	x21, [sp, #80]                  ; 8-byte Folded Spill
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x20, #24]
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	w24, w24, #1
	cmp	w24, w8
	b.ge	LBB0_26
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	cbz	w21, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x21, #0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x21, x21, #16
	cmp	x27, x21
	b.eq	LBB0_19
LBB0_24:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x19, [x20, #16]
	add	x8, x19, x21
	ldr	w26, [x8, #8]
	mov	x0, x24
	bl	_BIT
	tst	w0, w26
	b.eq	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	add	x0, x22, w23, sxtw
	sub	w1, w28, w23
	ldr	x8, [x19, x21]
	ldp	w10, w9, [x8, #16]
	ldp	w12, w11, [x8, #8]
	ldp	w8, w13, [x8]
	stp	x13, x8, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x24, [sp]
	mov	x2, x25
	bl	_snprintf
	add	w23, w23, w0
	b	LBB0_23
LBB0_26:
	ldp	x0, x8, [sp, #64]               ; 16-byte Folded Reload
	str	x22, [x8, #8]
	str	w23, [x8]
	bl	_mutex_unlock
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_AR8XXX_ARL_INITIALIZE,4,2      ; @AR8XXX_ARL_INITIALIZE
	.comm	_AR8XXX_NUM_ARL_RECORDS,4,2     ; @AR8XXX_NUM_ARL_RECORDS
	.comm	_AR8XXX_ARL_GET_NEXT,4,2        ; @AR8XXX_ARL_GET_NEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"address resolution table\n"

l_.str.1:                               ; @.str.1
	.asciz	"Too many entries found, displaying the first %d only!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Port %d: MAC %02x:%02x:%02x:%02x:%02x:%02x\n"

.subsections_via_symbols
