	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_write
_key_write:                             ## @key_write
	.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	%rcx, %rbx
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_b43_kidx_to_fw
	movl	%eax, %ecx
	shll	$4, %ecx
	orl	%r12d, %ecx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_B43_SHM_SH_KEYIDXBLOCK@GOTPCREL(%rip), %rdi
	addl	%eax, %eax
	movslq	%eax, %rdx
	addq	(%rdi), %rdx
	movq	%r14, %rdi
	callq	_b43_shm_write16
	movq	_B43_SEC_KEYSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	imull	%r15d, %eax
	movslq	%eax, %r15
	addq	(%r14), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edx
	leal	1(%r12), %eax
	movl	(%rbx,%rax,4), %ecx
	shll	$8, %ecx
	orl	(%rbx,%rdx,4), %ecx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	%r15, %rdx
	movq	%r14, %rdi
	callq	_b43_shm_write16
	addl	$2, %r12d
	cmpl	(%r13), %r12d
	jb	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.comm	_B43_SHM_SH_KEYIDXBLOCK,8,3     ## @B43_SHM_SH_KEYIDXBLOCK
	.comm	_B43_SEC_KEYSIZE,4,2            ## @B43_SEC_KEYSIZE
	.no_dead_strip	_key_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_write
_key_write:                             ; @key_write
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	bl	_b43_kidx_to_fw
	orr	w3, w22, w0, lsl #4
Lloh0:
	adrp	x22, _B43_SHM_SHARED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B43_SHM_SHARED@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _B43_SHM_SH_KEYIDXBLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43_SHM_SH_KEYIDXBLOCK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	lsl	w9, w0, #1
	add	x2, x8, w9, sxtw
	mov	x0, x20
	bl	_b43_shm_write16
Lloh5:
	adrp	x23, _B43_SEC_KEYSIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _B43_SEC_KEYSIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w24, #0
	ldr	x9, [x20]
	mul	w8, w8, w21
	add	x21, x9, w8, sxtw
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, w24, uxtw #2]
	add	w9, w24, #1
	ldr	w9, [x19, w9, uxtw #2]
	orr	w3, w8, w9, lsl #8
	ldr	w1, [x22]
	add	x2, x21, w24, uxtw
	mov	x0, x20
	bl	_b43_shm_write16
	add	w24, w24, #2
	ldr	w8, [x23]
	cmp	w24, w8
	b.lo	LBB0_2
LBB0_3:
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.comm	_B43_SHM_SH_KEYIDXBLOCK,8,3     ; @B43_SHM_SH_KEYIDXBLOCK
	.comm	_B43_SEC_KEYSIZE,4,2            ; @B43_SEC_KEYSIZE
	.no_dead_strip	_key_write
.subsections_via_symbols
