	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_op_conf_tx
_wl1271_op_conf_tx:                     ## @wl1271_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, %r15d
	movq	(%rdi), %r14
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_wlcore_is_p2p_mgmt
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_wl1271_debug
	cmpq	$0, 16(%r12)
	jne	LBB0_2
## %bb.3:
	movq	_CONF_PS_SCHEME_LEGACY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_CONF_PS_SCHEME_UPSD_TRIGGER@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r13d
	movq	_WLVIF_FLAG_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	4(%r14), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	%r15d, %edi
	callq	_wl1271_tx_get_queue
	movl	12(%r12), %ecx
	movl	8(%r12), %r8d
	movl	(%r12), %r10d
	movl	4(%r12), %r9d
	shll	$5, %r10d
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	pushq	%r10
	callq	_wl1271_acx_ac_cfg
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movl	%r15d, %edi
	callq	_wl1271_tx_get_queue
	movl	%eax, %r12d
	movq	_CONF_CHANNEL_TYPE_EDCF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	callq	_wl1271_tx_get_queue
	movq	_CONF_ACK_POLICY_LEGACY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	$0
	pushq	$0
	pushq	%r10
	callq	_wl1271_acx_tid_cfg
	addq	$32, %rsp
LBB0_10:
	movl	%eax, %r13d
	movl	4(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	4(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_11
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %r13d
	movl	4(%r14), %edi
	callq	_pm_runtime_put_noidle
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%r13d, %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	_CONF_PS_SCHEME_UPSD_TRIGGER,4,2 ## @CONF_PS_SCHEME_UPSD_TRIGGER
	.comm	_CONF_PS_SCHEME_LEGACY,4,2      ## @CONF_PS_SCHEME_LEGACY
	.comm	_WLVIF_FLAG_INITIALIZED,4,2     ## @WLVIF_FLAG_INITIALIZED
	.comm	_CONF_CHANNEL_TYPE_EDCF,4,2     ## @CONF_CHANNEL_TYPE_EDCF
	.comm	_CONF_ACK_POLICY_LEGACY,4,2     ## @CONF_ACK_POLICY_LEGACY
	.no_dead_strip	_wl1271_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 wl1271_op_conf_tx
_wl1271_op_conf_tx:                     ; @wl1271_op_conf_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x3
	mov	x21, x2
	ldr	x19, [x0]
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x20, x0
	bl	_wlcore_is_p2p_mgmt
	cbz	x0, LBB0_2
; %bb.1:
	mov	w24, #0
	b	LBB0_10
LBB0_2:
	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, x21
	bl	_wl1271_debug
	ldr	x8, [x23, #16]
Lloh5:
	adrp	x9, _CONF_PS_SCHEME_LEGACY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONF_PS_SCHEME_LEGACY@GOTPAGEOFF]
Lloh7:
	adrp	x10, _CONF_PS_SCHEME_UPSD_TRIGGER@GOTPAGE
Lloh8:
	ldr	x10, [x10, _CONF_PS_SCHEME_UPSD_TRIGGER@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w22, [x8]
Lloh9:
	adrp	x8, _WLVIF_FLAG_INITIALIZED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLVIF_FLAG_INITIALIZED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_wl1271_tx_get_queue
	mov	x2, x0
	ldp	w4, w3, [x23, #8]
	ldp	w8, w5, [x23]
	lsl	w6, w8, #5
	mov	x0, x19
	mov	x1, x20
	bl	_wl1271_acx_ac_cfg
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_wl1271_tx_get_queue
	mov	x23, x0
Lloh12:
	adrp	x8, _CONF_CHANNEL_TYPE_EDCF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONF_CHANNEL_TYPE_EDCF@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	mov	x0, x21
	bl	_wl1271_tx_get_queue
	mov	x4, x0
Lloh15:
	adrp	x8, _CONF_ACK_POLICY_LEGACY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONF_ACK_POLICY_LEGACY@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
	str	wzr, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x24
	mov	x5, x22
	mov	w7, #0
	bl	_wl1271_acx_tid_cfg
LBB0_6:
	mov	x24, x0
	ldr	w0, [x19, #4]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_9
LBB0_7:
	mov	w24, #0
	b	LBB0_9
LBB0_8:
	mov	x24, x0
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put_noidle
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_CONF_PS_SCHEME_UPSD_TRIGGER,4,2 ; @CONF_PS_SCHEME_UPSD_TRIGGER
	.comm	_CONF_PS_SCHEME_LEGACY,4,2      ; @CONF_PS_SCHEME_LEGACY
	.comm	_WLVIF_FLAG_INITIALIZED,4,2     ; @WLVIF_FLAG_INITIALIZED
	.comm	_CONF_CHANNEL_TYPE_EDCF,4,2     ; @CONF_CHANNEL_TYPE_EDCF
	.comm	_CONF_ACK_POLICY_LEGACY,4,2     ; @CONF_ACK_POLICY_LEGACY
	.no_dead_strip	_wl1271_op_conf_tx
.subsections_via_symbols
