	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_op_tx                 ## -- Begin function carl9170_op_tx
	.p2align	4, 0x90
_carl9170_op_tx:                        ## @carl9170_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdi), %rbx
	movq	(%rsi), %r15
	movq	%rbx, %rdi
	callq	_IS_STARTED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r12
	movq	8(%rax), %r13
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_carl9170_tx_prepare
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_9:
	incl	4(%rbx)
	movl	(%rbx), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_free_txskb           ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_carl9170_tx_accounting
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	callq	_atomic_inc
LBB0_4:
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_carl9170_tx_ampdu_queue
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_carl9170_tx_ampdu
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_carl9170_tx_get_rates
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_carl9170_tx_apply_rateset
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_skb_queue_tail
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_carl9170_tx                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_op_tx                 ; -- Begin function carl9170_op_tx
	.p2align	2
_carl9170_op_tx:                        ; @carl9170_op_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, x2
	ldr	x19, [x0]
	ldr	x21, [x1]
	mov	x0, x19
	bl	_IS_STARTED
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	ldr	x23, [x0, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_carl9170_tx_prepare
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_2:
	ldp	w0, w8, [x19]
	add	w8, w8, #1
	str	w8, [x19, #4]
	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	_ieee80211_free_txskb
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_carl9170_tx_accounting
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x0, [x21]
	bl	_atomic_inc
LBB0_5:
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_carl9170_tx_ampdu_queue
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_carl9170_tx_ampdu
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_skb_get_queue_mapping
	mov	x24, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_carl9170_tx_get_rates
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_carl9170_tx_apply_rateset
	ldr	x8, [x19, #8]
	add	x0, x8, w24, uxtw #2
	mov	x1, x20
	bl	_skb_queue_tail
LBB0_9:
	mov	x0, x19
	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	_carl9170_tx
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
.subsections_via_symbols
