	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_op_tx
_ath10k_mac_op_tx:                      ## @ath10k_mac_op_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	%rdx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %r12
	movq	(%rbx), %rbx
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_ath10k_mac_update_airtime
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_ath10k_mac_tx_h_fill_cb
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_ath10k_mac_tx_h_get_txmode
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_ath10k_mac_tx_h_get_txpath
	movq	_ATH10K_MAC_TX_HTT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%bl
	movq	_ATH10K_MAC_TX_HTT_MGMT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %eax
	sete	%cl
	orb	%cl, %bl
	cmpb	$1, %bl
	jne	LBB0_7
## %bb.1:
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_ieee80211_is_probe_resp
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_ath10k_htt_tx_inc_pending
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	jmp	LBB0_3
LBB0_4:
	xorl	%esi, %esi
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %sil
	movq	%r14, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_ath10k_htt_tx_mgmt_inc_pending
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_ath10k_dbg
	movq	%r14, %rdi
	callq	_ath10k_htt_tx_dec_pending
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	4(%r14), %edi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_free_txskb           ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	-60(%rbp), %eax                 ## 4-byte Reload
LBB0_7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%eax, %r15d
	movl	%eax, %ecx
	movq	%r13, %r8
	callq	_ath10k_mac_tx
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	testb	%bl, %bl
	je	LBB0_12
## %bb.9:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r14, %rdi
	callq	_ath10k_htt_tx_dec_pending
	cmpl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_ath10k_htt_tx_mgmt_dec_pending
LBB0_11:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_MAC_TX_HTT,4,2          ## @ATH10K_MAC_TX_HTT
	.comm	_ATH10K_MAC_TX_HTT_MGMT,4,2     ## @ATH10K_MAC_TX_HTT_MGMT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to increase tx pending count: %d, dropping\n"

	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
L_.str.1:                               ## @.str.1
	.asciz	"failed to increase tx mgmt pending count: %d, dropping\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to transmit frame: %d\n"

	.no_dead_strip	_ath10k_mac_op_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_op_tx
_ath10k_mac_op_tx:                      ; @ath10k_mac_op_tx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x22, x1
	ldr	x19, [x0]
	mov	x0, x2
	bl	_IEEE80211_SKB_CB
	ldr	x21, [x0]
	ldr	x22, [x22]
	ldr	x25, [x20]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	bl	_ath10k_mac_update_airtime
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x3, x20
	bl	_ath10k_mac_tx_h_fill_cb
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_ath10k_mac_tx_h_get_txmode
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_ath10k_mac_tx_h_get_txpath
	mov	x22, x0
Lloh0:
	adrp	x8, _ATH10K_MAC_TX_HTT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_MAC_TX_HTT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
Lloh3:
	adrp	x8, _ATH10K_MAC_TX_HTT_MGMT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_MAC_TX_HTT_MGMT@GOTPAGEOFF]
	cset	w9, eq
Lloh5:
	ldr	w26, [x8]
	cmp	w0, w26
	cset	w24, eq
	orr	w27, w9, w24
	cmp	w27, #1
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w0, [x25]
	bl	_ieee80211_is_probe_resp
	mov	x25, x0
	mov	x0, x19
	bl	_ath10k_htt_tx_inc_pending
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_ath10k_htt_tx_mgmt_inc_pending
	cbz	w0, LBB0_6
; %bb.4:
	mov	x3, x0
Lloh8:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	x0, x19
	bl	_ath10k_htt_tx_dec_pending
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	w0, [x19, #4]
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ieee80211_free_txskb
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x20
	bl	_ath10k_mac_tx
	cbz	w0, LBB0_12
; %bb.8:
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	cbz	w27, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_ath10k_htt_tx_dec_pending
	cmp	w22, w26
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_ath10k_htt_tx_mgmt_dec_pending
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spin_unlock_bh
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_MAC_TX_HTT,4,2          ; @ATH10K_MAC_TX_HTT
	.comm	_ATH10K_MAC_TX_HTT_MGMT,4,2     ; @ATH10K_MAC_TX_HTT_MGMT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to increase tx pending count: %d, dropping\n"

	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
l_.str.1:                               ; @.str.1
	.asciz	"failed to increase tx mgmt pending count: %d, dropping\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to transmit frame: %d\n"

	.no_dead_strip	_ath10k_mac_op_tx
.subsections_via_symbols
