	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_tkip_phase1_write
_rx_tkip_phase1_write:                  ## @rx_tkip_phase1_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	_modparam_hwtkip@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movq	%rcx, %r12
	movl	%esi, %r13d
	movq	%rdi, %r15
	movl	%edx, %r14d
	movq	_B43_NR_GROUP_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_b43_new_kidx_api
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_B43_NR_GROUP_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addl	%ebx, %ebx
LBB0_4:
	xorl	%edi, %edi
	subl	%ebx, %r13d
	setl	%dil
	callq	_B43_WARN_ON
	movq	_B43_NR_PAIRWISE_KEYS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r13d
	setge	%dil
	callq	_B43_WARN_ON
	movq	_B43_DBG_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_b43_debug
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_b43dbg
LBB0_6:
	movq	_B43_SHM_SH_TKIPTSCTTAK@GOTPCREL(%rip), %rax
	movl	%r13d, %ebx
	shll	$4, %ebx
	subl	%r13d, %ebx
	subl	%r13d, %ebx
	addl	(%rax), %ebx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	testq	%r12, %r12
	je	LBB0_7
## %bb.8:
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_b43_shm_write16
	movl	(%r13), %esi
	leal	2(%rbx), %edx
	movl	4(%r12), %ecx
	movq	%r15, %rdi
	callq	_b43_shm_write16
	movl	(%r13), %esi
	leal	4(%rbx), %edx
	movl	8(%r12), %ecx
	movq	%r15, %rdi
	callq	_b43_shm_write16
	movl	(%r13), %esi
	leal	6(%rbx), %edx
	movl	12(%r12), %ecx
	movq	%r15, %rdi
	callq	_b43_shm_write16
	movl	16(%r12), %r12d
	jmp	LBB0_9
LBB0_7:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_b43_shm_write16
	movl	(%r13), %esi
	leal	2(%rbx), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_b43_shm_write16
	movl	(%r13), %esi
	leal	4(%rbx), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_b43_shm_write16
	movl	(%r13), %esi
	leal	6(%rbx), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_b43_shm_write16
LBB0_9:
	movl	(%r13), %esi
	leal	8(%rbx), %edx
	movq	%r15, %rdi
	movl	%r12d, %ecx
	callq	_b43_shm_write16
	movl	(%r13), %esi
	leal	10(%rbx), %edx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_b43_shm_write16
	movl	(%r13), %esi
	addl	$12, %ebx
	sarl	$16, %r14d
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r14d, %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	_modparam_hwtkip,4,2            ## @modparam_hwtkip
	.comm	_B43_NR_PAIRWISE_KEYS,4,2       ## @B43_NR_PAIRWISE_KEYS
	.comm	_B43_DBG_KEYS,4,2               ## @B43_DBG_KEYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx_tkip_phase1_write : idx 0x%x, iv32 0x%x\n"

	.comm	_B43_SHM_SH_TKIPTSCTTAK,4,2     ## @B43_SHM_SH_TKIPTSCTTAK
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.no_dead_strip	_rx_tkip_phase1_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_tkip_phase1_write
_rx_tkip_phase1_write:                  ; @rx_tkip_phase1_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
Lloh0:
	adrp	x8, _modparam_hwtkip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _modparam_hwtkip@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh3:
	adrp	x23, _B43_NR_GROUP_KEYS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _B43_NR_GROUP_KEYS@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w24, w8, #1
	bl	_b43_new_kidx_api
	ldr	w8, [x23]
	cmp	x0, #0
	csel	w8, w24, w8, eq
	subs	w21, w21, w8
	cset	w0, lt
	bl	_B43_WARN_ON
Lloh5:
	adrp	x8, _B43_NR_PAIRWISE_KEYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_NR_PAIRWISE_KEYS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, ge
	bl	_B43_WARN_ON
Lloh8:
	adrp	x8, _B43_DBG_KEYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B43_DBG_KEYS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_b43_debug
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_b43dbg
LBB0_3:
Lloh13:
	adrp	x8, _B43_SHM_SH_TKIPTSCTTAK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _B43_SHM_SH_TKIPTSCTTAK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	w9, #14
	madd	w21, w21, w9, w8
Lloh16:
	adrp	x23, _B43_SHM_SHARED@GOTPAGE
Lloh17:
	ldr	x23, [x23, _B43_SHM_SHARED@GOTPAGEOFF]
	ldr	w1, [x23]
	cbz	x22, LBB0_6
; %bb.4:
	ldr	w3, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_b43_shm_write16
	ldr	w1, [x23]
	add	w2, w21, #2
	ldr	w3, [x22, #4]
	mov	x0, x20
	bl	_b43_shm_write16
	ldr	w1, [x23]
	add	w2, w21, #4
	ldr	w3, [x22, #8]
	mov	x0, x20
	bl	_b43_shm_write16
	ldr	w1, [x23]
	add	w2, w21, #6
	ldr	w3, [x22, #12]
	mov	x0, x20
	bl	_b43_shm_write16
	ldr	w3, [x22, #16]
	b	LBB0_7
LBB0_5:
	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
LBB0_6:
	mov	x0, x20
	mov	x2, x21
	mov	w3, #0
	bl	_b43_shm_write16
	ldr	w1, [x23]
	add	w2, w21, #2
	mov	x0, x20
	mov	w3, #0
	bl	_b43_shm_write16
	ldr	w1, [x23]
	add	w2, w21, #4
	mov	x0, x20
	mov	w3, #0
	bl	_b43_shm_write16
	ldr	w1, [x23]
	add	w2, w21, #6
	mov	x0, x20
	mov	w3, #0
	bl	_b43_shm_write16
	mov	w3, #0
LBB0_7:
	ldr	w1, [x23]
	add	w2, w21, #8
	mov	x0, x20
	bl	_b43_shm_write16
	ldr	w1, [x23]
	add	w2, w21, #10
	mov	x0, x20
	mov	x3, x19
	bl	_b43_shm_write16
	ldr	w1, [x23]
	add	w2, w21, #12
	asr	w3, w19, #16
	mov	x0, 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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_NR_GROUP_KEYS,4,2          ; @B43_NR_GROUP_KEYS
	.comm	_modparam_hwtkip,4,2            ; @modparam_hwtkip
	.comm	_B43_NR_PAIRWISE_KEYS,4,2       ; @B43_NR_PAIRWISE_KEYS
	.comm	_B43_DBG_KEYS,4,2               ; @B43_DBG_KEYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx_tkip_phase1_write : idx 0x%x, iv32 0x%x\n"

	.comm	_B43_SHM_SH_TKIPTSCTTAK,4,2     ; @B43_SHM_SH_TKIPTSCTTAK
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.no_dead_strip	_rx_tkip_phase1_write
.subsections_via_symbols
