	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_op_conf_tx
_b43_op_conf_tx:                        ## @b43_op_conf_tx
	.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, %r12
	movq	%rdx, %r15
	callq	_hw_to_b43_wl
	movq	%rax, %r13
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%r15d, %eax
	jbe	LBB0_7
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_b43_qos_shm_offsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	16(%r13), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movq	%r12, %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	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	%r15d, %ebx
	shlq	$2, %rbx
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_b43_mac_suspend
	movq	8(%r13), %rsi
	addq	%rbx, %rsi
	movq	_b43_qos_shm_offsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx), %edx
	movq	%r12, %rdi
	callq	_b43_qos_params_upload
	movq	%r12, %rdi
	callq	_b43_mac_enable
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r14d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_b43_qos_shm_offsets,8,3        ## @b43_qos_shm_offsets
	.comm	_B43_STAT_INITIALIZED,8,3       ## @B43_STAT_INITIALIZED
	.no_dead_strip	_b43_op_conf_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_op_conf_tx
_b43_op_conf_tx:                        ; @b43_op_conf_tx
	.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, x3
	mov	x21, x2
	bl	_hw_to_b43_wl
	mov	x19, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x0, [x0, #8]
	bl	_ARRAY_SIZE
	mov	w22, #0
	cmp	w0, w21
	b.ls	LBB0_5
; %bb.1:
	neg	w22, w23
Lloh3:
	adrp	x24, _b43_qos_shm_offsets@GOTPAGE
Lloh4:
	ldr	x24, [x24, _b43_qos_shm_offsets@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	cset	w0, ne
	bl	_BUILD_BUG_ON
	mov	x0, x19
	bl	_mutex_lock
	ldr	x23, [x19, #16]
	cbz	x23, LBB0_6
; %bb.2:
	mov	x0, x23
	bl	_b43_status
Lloh5:
	adrp	x8, _B43_STAT_INITIALIZED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_STAT_INITIALIZED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
	bl	_unlikely
	cbnz	x0, LBB0_4
LBB0_3:
	ldr	x8, [x19, #8]
	ubfiz	x21, x21, #2, #32
	add	x0, x8, x21
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	mov	x0, x23
	bl	_b43_mac_suspend
	ldr	x8, [x19, #8]
	add	x1, x8, x21
	ldr	x8, [x24]
	ldr	w2, [x8, x21]
	mov	x0, x23
	bl	_b43_qos_params_upload
	mov	x0, x23
	bl	_b43_mac_enable
	mov	w22, #0
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x22
	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	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_4
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_b43_qos_shm_offsets,8,3        ; @b43_qos_shm_offsets
	.comm	_B43_STAT_INITIALIZED,8,3       ; @B43_STAT_INITIALIZED
	.no_dead_strip	_b43_op_conf_tx
.subsections_via_symbols
