	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keymac_write
_keymac_write:                          ## @keymac_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	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_B43_NR_GROUP_KEYS@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	callq	_b43_new_kidx_api
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r13), %ebx
	jmp	LBB0_3
LBB0_1:
	addl	%ebx, %ebx
LBB0_3:
	xorl	%edi, %edi
	subl	%ebx, %r15d
	setl	%dil
	callq	_B43_WARN_ON
	movq	_B43_NR_PAIRWISE_KEYS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	setge	%dil
	callq	_B43_WARN_ON
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	movl	4(%r12), %eax
	movl	8(%r12), %edx
	shll	$8, %eax
	orl	(%r12), %eax
	shll	$16, %edx
	movl	12(%r12), %ecx
	shll	$24, %ecx
	orl	%edx, %ecx
	orl	%eax, %ecx
	movl	20(%r12), %ebx
	shll	$8, %ebx
	orl	16(%r12), %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
LBB0_6:
	movq	_B43_SHM_RCMTA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leal	(%r15,%r15), %eax
	movslq	%eax, %rdx
	movq	%r14, %rdi
	callq	_b43_shm_write32
	movl	(%r12), %esi
	leal	(%r15,%r15), %edx
	incl	%edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_shm_write16                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_NR_GROUP_KEYS,4,2          ## @B43_NR_GROUP_KEYS
	.comm	_B43_NR_PAIRWISE_KEYS,4,2       ## @B43_NR_PAIRWISE_KEYS
	.comm	_B43_SHM_RCMTA,4,2              ## @B43_SHM_RCMTA
	.no_dead_strip	_keymac_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keymac_write
_keymac_write:                          ; @keymac_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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _B43_NR_GROUP_KEYS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B43_NR_GROUP_KEYS@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w23, w8, #1
	bl	_b43_new_kidx_api
	ldr	w8, [x22]
	cmp	x0, #0
	csel	w8, w23, w8, eq
	subs	w21, w21, w8
	cset	w0, lt
	bl	_B43_WARN_ON
Lloh2:
	adrp	x8, _B43_NR_PAIRWISE_KEYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43_NR_PAIRWISE_KEYS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, ge
	bl	_B43_WARN_ON
	cbz	x20, LBB0_2
; %bb.1:
	ldp	w8, w9, [x20]
	orr	w8, w8, w9, lsl #8
	ldp	w9, w10, [x20, #8]
	orr	w8, w8, w9, lsl #16
	orr	w3, w8, w10, lsl #24
	ldp	w8, w9, [x20, #16]
	orr	w20, w8, w9, lsl #8
	b	LBB0_3
LBB0_2:
	mov	w3, #0
LBB0_3:
Lloh5:
	adrp	x22, _B43_SHM_RCMTA@GOTPAGE
Lloh6:
	ldr	x22, [x22, _B43_SHM_RCMTA@GOTPAGEOFF]
	ldr	w1, [x22]
	lsl	w8, w21, #1
	sxtw	x2, w8
	mov	x0, x19
	bl	_b43_shm_write32
	ldr	w1, [x22]
	mov	w2, #1
	bfi	w2, w21, #1, #31
	mov	x0, x19
	mov	x3, x20
	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
	b	_b43_shm_write16
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_NR_GROUP_KEYS,4,2          ; @B43_NR_GROUP_KEYS
	.comm	_B43_NR_PAIRWISE_KEYS,4,2       ; @B43_NR_PAIRWISE_KEYS
	.comm	_B43_SHM_RCMTA,4,2              ; @B43_SHM_RCMTA
	.no_dead_strip	_keymac_write
.subsections_via_symbols
