	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_key_clear
_b43_key_clear:                         ## @b43_key_clear
	.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	%esi, %r15d
	movq	%rdi, %r14
	testl	%esi, %esi
	js	LBB0_1
## %bb.2:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setle	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_B43_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_B43_SEC_ALGO_NONE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_B43_SEC_KEYSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_do_key_write
	cmpl	$3, %r15d
	jg	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_b43_new_kidx_api
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leal	4(%r15), %esi
	movl	(%r12), %edx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_do_key_write
LBB0_8:
	movq	(%r14), %rax
	movslq	%r15d, %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_B43_SEC_ALGO_NONE,4,2          ## @B43_SEC_ALGO_NONE
	.comm	_B43_SEC_KEYSIZE,4,2            ## @B43_SEC_KEYSIZE
	.no_dead_strip	_b43_key_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_key_clear
_b43_key_clear:                         ; @b43_key_clear
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	tbnz	w1, #31, LBB0_3
; %bb.1:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, w19
	cset	w0, le
	bl	_B43_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	w0, #1
	bl	_B43_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
Lloh3:
	adrp	x21, _B43_SEC_ALGO_NONE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _B43_SEC_ALGO_NONE@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh5:
	adrp	x22, _B43_SEC_KEYSIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _B43_SEC_KEYSIZE@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	x5, #0
	bl	_do_key_write
	cmp	w19, #3
	b.gt	LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_b43_new_kidx_api
	cbnz	w0, LBB0_7
; %bb.6:
	add	w1, w19, #4
	ldr	w2, [x21]
	ldr	w4, [x22]
	mov	x0, x20
	mov	x3, #0
	mov	x5, #0
	bl	_do_key_write
LBB0_7:
	mov	w0, #0
	ldr	x8, [x20]
	str	xzr, [x8, w19, sxtw #3]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_B43_SEC_ALGO_NONE,4,2          ; @B43_SEC_ALGO_NONE
	.comm	_B43_SEC_KEYSIZE,4,2            ; @B43_SEC_KEYSIZE
	.no_dead_strip	_b43_key_clear
.subsections_via_symbols
