	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_op_update_tkip_key
_b43_op_update_tkip_key:                ## @b43_op_update_tkip_key
	.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	%r9, %r12
	movl	%r8d, %r13d
	movq	%rcx, %r15
	movq	%rdx, %rbx
	callq	_hw_to_b43_wl
	movq	%rax, %r14
	movl	(%rbx), %ebx
	movq	_modparam_hwtkip@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_B43_WARN_ON
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_B43_WARN_ON
	movq	(%r14), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.3:
	movq	%r13, %rdi
	callq	_b43_status
	movq	_B43_STAT_INITIALIZED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	jmp	LBB0_4
LBB0_2:
	movl	$1, %edi
LBB0_4:
	callq	_B43_WARN_ON
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_keymac_write
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_rx_tkip_phase1_write
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r15), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_keymac_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_modparam_hwtkip,4,2            ## @modparam_hwtkip
	.comm	_B43_STAT_INITIALIZED,8,3       ## @B43_STAT_INITIALIZED
	.no_dead_strip	_b43_op_update_tkip_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_op_update_tkip_key
_b43_op_update_tkip_key:                ; @b43_op_update_tkip_key
	.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	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	bl	_hw_to_b43_wl
	mov	x23, x0
	ldr	w20, [x20]
Lloh0:
	adrp	x8, _modparam_hwtkip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _modparam_hwtkip@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_B43_WARN_ON
	cbnz	w0, LBB0_5
; %bb.1:
	add	x0, x23, #8
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_B43_WARN_ON
	ldr	x23, [x23]
	cbz	x23, LBB0_3
; %bb.2:
	mov	x0, x23
	bl	_b43_status
Lloh3:
	adrp	x8, _B43_STAT_INITIALIZED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_STAT_INITIALIZED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	bl	_B43_WARN_ON
	mov	x0, x23
	mov	x1, x20
	mov	x2, #0
	bl	_keymac_write
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_rx_tkip_phase1_write
	cmp	x19, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
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:
	ldr	x2, [x19]
	mov	x0, x23
	mov	x1, 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	_keymac_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_modparam_hwtkip,4,2            ; @modparam_hwtkip
	.comm	_B43_STAT_INITIALIZED,8,3       ; @B43_STAT_INITIALIZED
	.no_dead_strip	_b43_op_update_tkip_key
.subsections_via_symbols
