	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_op_conf_tx
_wl1251_op_conf_tx:                     ## @wl1251_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
	movl	%edx, %r14d
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_wl1251_debug
	movq	%r15, %rdi
	callq	_wl1251_ps_elp_wakeup
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%r14d, %edi
	callq	_wl1251_tx_get_queue
	movl	24(%r12), %edx
	movl	20(%r12), %ecx
	movl	(%r12), %r9d
	movl	16(%r12), %r8d
	shll	$5, %r9d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wl1251_acx_ac_cfg
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	cmpq	$0, 8(%r12)
	jne	LBB0_4
## %bb.5:
	movq	_WL1251_ACX_PS_SCHEME_LEGACY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_WL1251_ACX_PS_SCHEME_UPSD_TRIGGER@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_wl1251_tx_get_queue
	movl	%eax, %r13d
	movq	_CHANNEL_TYPE_EDCF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_wl1251_tx_get_queue
	movq	_WL1251_ACX_ACK_POLICY_LEGACY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_wl1251_acx_tid_cfg
LBB0_7:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_wl1251_ps_elp_sleep
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 conf tx %d"

	.comm	_WL1251_ACX_PS_SCHEME_UPSD_TRIGGER,4,2 ## @WL1251_ACX_PS_SCHEME_UPSD_TRIGGER
	.comm	_WL1251_ACX_PS_SCHEME_LEGACY,4,2 ## @WL1251_ACX_PS_SCHEME_LEGACY
	.comm	_CHANNEL_TYPE_EDCF,4,2          ## @CHANNEL_TYPE_EDCF
	.comm	_WL1251_ACX_ACK_POLICY_LEGACY,4,2 ## @WL1251_ACX_ACK_POLICY_LEGACY
	.no_dead_strip	_wl1251_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 wl1251_op_conf_tx
_wl1251_op_conf_tx:                     ; @wl1251_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	x21, x3
	mov	x20, x2
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wl1251_debug
	mov	x0, x19
	bl	_wl1251_ps_elp_wakeup
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_wl1251_tx_get_queue
	mov	x1, x0
	ldp	w3, w2, [x21, #20]
	ldr	w4, [x21, #16]
	ldr	w8, [x21]
	lsl	w5, w8, #5
	mov	x0, x19
	bl	_wl1251_acx_ac_cfg
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _WL1251_ACX_PS_SCHEME_LEGACY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WL1251_ACX_PS_SCHEME_LEGACY@GOTPAGEOFF]
	ldr	x9, [x21, #8]
Lloh7:
	adrp	x10, _WL1251_ACX_PS_SCHEME_UPSD_TRIGGER@GOTPAGE
Lloh8:
	ldr	x10, [x10, _WL1251_ACX_PS_SCHEME_UPSD_TRIGGER@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w21, [x8]
	mov	x0, x20
	bl	_wl1251_tx_get_queue
	mov	x22, x0
Lloh9:
	adrp	x8, _CHANNEL_TYPE_EDCF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CHANNEL_TYPE_EDCF@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_wl1251_tx_get_queue
	mov	x3, x0
Lloh12:
	adrp	x8, _WL1251_ACX_ACK_POLICY_LEGACY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WL1251_ACX_ACK_POLICY_LEGACY@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x4, x21
	bl	_wl1251_acx_tid_cfg
LBB0_3:
	mov	x22, x0
	mov	x0, x19
	bl	_wl1251_ps_elp_sleep
	b	LBB0_5
LBB0_4:
	mov	x22, x0
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 conf tx %d"

	.comm	_WL1251_ACX_PS_SCHEME_UPSD_TRIGGER,4,2 ; @WL1251_ACX_PS_SCHEME_UPSD_TRIGGER
	.comm	_WL1251_ACX_PS_SCHEME_LEGACY,4,2 ; @WL1251_ACX_PS_SCHEME_LEGACY
	.comm	_CHANNEL_TYPE_EDCF,4,2          ; @CHANNEL_TYPE_EDCF
	.comm	_WL1251_ACX_ACK_POLICY_LEGACY,4,2 ; @WL1251_ACX_ACK_POLICY_LEGACY
	.no_dead_strip	_wl1251_op_conf_tx
.subsections_via_symbols
