	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_key_delete                 ## -- Begin function ath_key_delete
	.p2align	4, 0x90
_ath_key_delete:                        ## @ath_key_delete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rsi
	callq	_ath_hw_keyreset
	movq	(%rbx), %rdi
	movq	_IEEE80211_WEP_NKID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jl	LBB0_3
## %bb.1:
	movl	8(%r14), %esi
	callq	_clear_bit
	movq	(%rbx), %rdi
	movl	12(%r14), %esi
	callq	_clear_bit
	movq	8(%rbx), %rax
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	addq	$64, %rdi
	movl	8(%r14), %esi
	callq	_clear_bit
	movq	(%rbx), %rdi
	movl	4(%r14), %esi
	callq	_clear_bit
	movq	(%rbx), %rdi
	addq	$64, %rdi
	movl	4(%r14), %esi
	callq	_clear_bit
	movq	_ATH_CRYPT_CAP_MIC_COMBINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rsi
	addq	$32, %rsi
	movq	%r14, %rdi
	callq	_ath_hw_keyreset
	movq	(%rbx), %rdi
	addq	$32, %rdi
	movl	8(%r14), %esi
	callq	_clear_bit
	movq	(%rbx), %rdi
	addq	$96, %rdi
	movl	8(%r14), %esi
	callq	_clear_bit
	movq	(%rbx), %rdi
	addq	$32, %rdi
	movl	4(%r14), %esi
	callq	_clear_bit
	movq	(%rbx), %rdi
	addq	$96, %rdi
	movl	4(%r14), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_WEP_NKID,8,3         ## @IEEE80211_WEP_NKID
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
	.comm	_ATH_CRYPT_CAP_MIC_COMBINED,4,2 ## @ATH_CRYPT_CAP_MIC_COMBINED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_key_delete                 ; -- Begin function ath_key_delete
	.p2align	2
_ath_key_delete:                        ; @ath_key_delete
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x1]
	bl	_ath_hw_keyreset
	ldr	x0, [x20]
Lloh0:
	adrp	x8, _IEEE80211_WEP_NKID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_WEP_NKID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.1:
	ldr	w1, [x19, #8]
	bl	_clear_bit
	ldr	x0, [x20]
	ldr	w1, [x19, #12]
	bl	_clear_bit
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	add	x0, x8, #64
	ldr	w1, [x19, #8]
	bl	_clear_bit
	ldr	x0, [x20]
	ldr	w1, [x19, #4]
	bl	_clear_bit
	ldr	x8, [x20]
	add	x0, x8, #64
	ldr	w1, [x19, #4]
	bl	_clear_bit
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _ATH_CRYPT_CAP_MIC_COMBINED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH_CRYPT_CAP_MIC_COMBINED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x20]
	add	x1, x8, #32
	mov	x0, x19
	bl	_ath_hw_keyreset
	ldr	x8, [x20]
	add	x0, x8, #32
	ldr	w1, [x19, #8]
	bl	_clear_bit
	ldr	x8, [x20]
	add	x0, x8, #96
	ldr	w1, [x19, #8]
	bl	_clear_bit
	ldr	x8, [x20]
	add	x0, x8, #32
	ldr	w1, [x19, #4]
	bl	_clear_bit
	ldr	x8, [x20]
	add	x0, x8, #96
	ldr	w1, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clear_bit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_WEP_NKID,8,3         ; @IEEE80211_WEP_NKID
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
	.comm	_ATH_CRYPT_CAP_MIC_COMBINED,4,2 ; @ATH_CRYPT_CAP_MIC_COMBINED
.subsections_via_symbols
