	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_tx_ps_drop
_carl9170_tx_ps_drop:                   ## @carl9170_tx_ps_drop
	.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	%rsi, %r13
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	___carl9170_get_tx_sta
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_IEEE80211_TX_CTL_NO_PS_BUFFER@GOTPCREL(%rip), %rax
	movq	_IEEE80211_TX_CTL_CLEAR_PS_FILT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r12)
	je	LBB0_3
LBB0_6:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	(%r12), %eax
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_atomic_dec
	movl	(%r12), %eax
LBB0_5:
	movq	_IEEE80211_TX_STAT_TX_FILTERED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_carl9170_release_dev_space
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_carl9170_tx_status
	movl	$1, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_CTL_NO_PS_BUFFER,4,2 ## @IEEE80211_TX_CTL_NO_PS_BUFFER
	.comm	_IEEE80211_TX_CTL_CLEAR_PS_FILT,4,2 ## @IEEE80211_TX_CTL_CLEAR_PS_FILT
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
	.comm	_IEEE80211_TX_STAT_TX_FILTERED,4,2 ## @IEEE80211_TX_STAT_TX_FILTERED
	.no_dead_strip	_carl9170_tx_ps_drop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_tx_ps_drop
_carl9170_tx_ps_drop:                   ; @carl9170_tx_ps_drop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_rcu_read_lock
	mov	x0, x20
	mov	x1, x19
	bl	___carl9170_get_tx_sta
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x22, [x0]
	mov	x0, x19
	bl	_IEEE80211_SKB_CB
	mov	x21, x0
	ldr	w0, [x22]
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _IEEE80211_TX_CTL_NO_PS_BUFFER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_PS_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IEEE80211_TX_CTL_CLEAR_PS_FILT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_TX_CTL_CLEAR_PS_FILT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	bl	_rcu_read_unlock
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_rcu_read_unlock
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_atomic_dec
	ldr	w8, [x21]
LBB0_7:
Lloh9:
	adrp	x9, _IEEE80211_TX_STAT_TX_FILTERED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_TX_STAT_TX_FILTERED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_carl9170_release_dev_space
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_carl9170_tx_status
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_CTL_NO_PS_BUFFER,4,2 ; @IEEE80211_TX_CTL_NO_PS_BUFFER
	.comm	_IEEE80211_TX_CTL_CLEAR_PS_FILT,4,2 ; @IEEE80211_TX_CTL_CLEAR_PS_FILT
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
	.comm	_IEEE80211_TX_STAT_TX_FILTERED,4,2 ; @IEEE80211_TX_STAT_TX_FILTERED
	.no_dead_strip	_carl9170_tx_ps_drop
.subsections_via_symbols
