	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_key_disable_hw_accel
_ieee80211_key_disable_hw_accel:        ## @ieee80211_key_disable_hw_accel
	.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	%rdi, %rbx
	xorl	%eax, %eax
	callq	_might_sleep
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.2:
	callq	_assert_key_lock
	movq	_KEY_FLAG_UPLOADED_TO_HARDWARE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.3:
	movq	32(%rbx), %r15
	movq	24(%rbx), %r14
	leaq	4(%rbx), %r12
	movl	4(%rbx), %eax
	movq	_IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.4:
	movq	_IEEE80211_KEY_FLAG_GENERATE_IV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_increment_tailroom_need_count
LBB0_7:
	movq	16(%rbx), %rdi
	movq	_DISABLE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	callq	_drv_set_key
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	8(%rbx), %edx
	testq	%r15, %r15
	jne	LBB0_10
## %bb.9:
	movq	_bcast_addr@GOTPCREL(%rip), %r15
LBB0_10:
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %r8d
	callq	_sdata_err
LBB0_11:
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_FLAG_UPLOADED_TO_HARDWARE,4,2 ## @KEY_FLAG_UPLOADED_TO_HARDWARE
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_IEEE80211_KEY_FLAG_PUT_IV_SPACE,4,2 ## @IEEE80211_KEY_FLAG_PUT_IV_SPACE
	.comm	_DISABLE_KEY,4,2                ## @DISABLE_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to remove key (%d, %pM) from hardware (%d)\n"

	.comm	_bcast_addr,4,2                 ## @bcast_addr
	.no_dead_strip	_ieee80211_key_disable_hw_accel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_key_disable_hw_accel
_ieee80211_key_disable_hw_accel:        ; @ieee80211_key_disable_hw_accel
	.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, x0
	bl	_might_sleep
	cbz	x19, LBB0_10
; %bb.1:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.2:
	bl	_assert_key_lock
	ldr	w8, [x19]
Lloh0:
	adrp	x23, _KEY_FLAG_UPLOADED_TO_HARDWARE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _KEY_FLAG_UPLOADED_TO_HARDWARE@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
	mov	x22, x19
	ldr	w8, [x22, #4]!
	ldur	x21, [x22, #28]
	ldur	x20, [x22, #20]
Lloh2:
	adrp	x9, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_GENERATE_MMIC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.4:
Lloh5:
	adrp	x9, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:
Lloh8:
	adrp	x9, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_PUT_IV_SPACE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_increment_tailroom_need_count
LBB0_7:
	ldr	x0, [x19, #16]
Lloh11:
	adrp	x8, _DISABLE_KEY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DISABLE_KEY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_drv_set_key
	cbz	w0, LBB0_9
; %bb.8:
	mov	x4, x0
	ldr	w2, [x19, #8]
Lloh14:
	adrp	x8, _bcast_addr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bcast_addr@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x8, x21, eq
	ldr	w3, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sdata_err
LBB0_9:
	ldr	w8, [x23]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_FLAG_UPLOADED_TO_HARDWARE,4,2 ; @KEY_FLAG_UPLOADED_TO_HARDWARE
	.comm	_IEEE80211_KEY_FLAG_GENERATE_MMIC,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_MMIC
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_IEEE80211_KEY_FLAG_PUT_IV_SPACE,4,2 ; @IEEE80211_KEY_FLAG_PUT_IV_SPACE
	.comm	_DISABLE_KEY,4,2                ; @DISABLE_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to remove key (%d, %pM) from hardware (%d)\n"

	.comm	_bcast_addr,4,2                 ; @bcast_addr
	.no_dead_strip	_ieee80211_key_disable_hw_accel
.subsections_via_symbols
