	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_remove_sta
_ath6kl_remove_sta:                     ## @ath6kl_remove_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
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_2:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_is_broadcast_ether_addr
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_ATH6KL_DBG_TRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	movq	_AP_MAX_NUM_STA@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.5:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	addq	$16, %r12
	cmpq	(%r15), %rbx
	jae	LBB0_2
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%r12), %rdi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ath6kl_sta_cleanup
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_9:
	movq	_AP_MAX_NUM_STA@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.10:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%r15), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	addq	$16, %r15
	movq	_AP_MAX_NUM_STA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_11
	jmp	LBB0_2
LBB0_14:
	movq	_ATH6KL_DBG_TRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movl	8(%rax,%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ath6kl_sta_cleanup
	movl	$1, %r14d
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_TRC,4,2             ## @ATH6KL_DBG_TRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deleting all station\n"

	.comm	_AP_MAX_NUM_STA,8,3             ## @AP_MAX_NUM_STA
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"deleting station %pM aid=%d reason=%d\n"

	.no_dead_strip	_ath6kl_remove_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_remove_sta
_ath6kl_remove_sta:                     ; @ath6kl_remove_sta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_is_zero_ether_addr
	cbz	x0, LBB0_3
LBB0_1:
	mov	x20, #0
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x0, x20
	bl	_is_broadcast_ether_addr
	cbz	x0, LBB0_9
; %bb.4:
Lloh0:
	adrp	x8, _ATH6KL_DBG_TRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_TRC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
Lloh5:
	adrp	x22, _AP_MAX_NUM_STA@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AP_MAX_NUM_STA@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_1
; %bb.5:
	mov	x23, #0
	mov	x20, #0
	mov	x21, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22]
	add	x23, x23, #16
	cmp	x21, x8
	b.hs	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x23]
	bl	_is_zero_ether_addr
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_ath6kl_sta_cleanup
	mov	w20, #1
	b	LBB0_6
LBB0_9:
Lloh7:
	adrp	x24, _AP_MAX_NUM_STA@GOTPAGE
Lloh8:
	ldr	x24, [x24, _AP_MAX_NUM_STA@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_1
; %bb.10:
	mov	x23, #0
	mov	x22, #0
Lloh9:
	adrp	x25, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ETH_ALEN@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x23]
	ldr	w2, [x25]
	mov	x1, x20
	bl	_memcmp
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	ldr	x8, [x24]
	add	x23, x23, #16
	cmp	x22, x8
	b.lo	LBB0_11
	b	LBB0_1
LBB0_13:
Lloh11:
	adrp	x8, _ATH6KL_DBG_TRC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATH6KL_DBG_TRC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x19]
	add	x8, x8, x23
	ldr	w8, [x8, #8]
	stp	x8, x21, [sp, #8]
	str	x20, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ath6kl_dbg
	mov	x0, x19
	mov	x1, x22
	bl	_ath6kl_sta_cleanup
	mov	w20, #1
	b	LBB0_2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_TRC,4,2             ; @ATH6KL_DBG_TRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deleting all station\n"

	.comm	_AP_MAX_NUM_STA,8,3             ; @AP_MAX_NUM_STA
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"deleting station %pM aid=%d reason=%d\n"

	.no_dead_strip	_ath6kl_remove_sta
.subsections_via_symbols
