	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_find_sta                ## -- Begin function ath6kl_find_sta
	.p2align	4, 0x90
_ath6kl_find_sta:                       ## @ath6kl_find_sta
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	%rsi, %rdi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rdx
	movq	_AP_NETWORK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	jne	LBB0_8
## %bb.2:
	movq	_AP_MAX_NUM_STA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	addq	$-4, %rbx
	cmpq	%r14, %r13
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	(%r12), %rax
	subq	%rbx, %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_AP_NETWORK,8,3                 ## @AP_NETWORK
	.comm	_AP_MAX_NUM_STA,8,3             ## @AP_MAX_NUM_STA
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_find_sta                ; -- Begin function ath6kl_find_sta
	.p2align	2
_ath6kl_find_sta:                       ; @ath6kl_find_sta
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_is_zero_ether_addr
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AP_NETWORK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AP_NETWORK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _AP_MAX_NUM_STA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AP_MAX_NUM_STA@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x10]
	cmp	x8, x9
	ccmp	x20, #0, #4, eq
	b.eq	LBB0_5
; %bb.2:
	mov	x22, #0
Lloh6:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w1, [x8, x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_memcmp
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #4
	subs	x20, x20, #1
	b.ne	LBB0_3
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x21]
	add	x0, x8, x22
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AP_NETWORK,8,3                 ; @AP_NETWORK
	.comm	_AP_MAX_NUM_STA,8,3             ; @AP_MAX_NUM_STA
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
