	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_tx_accounting_free
_carl9170_tx_accounting_free:           ## @carl9170_tx_accounting_free
	.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	%rdi, %r15
	movq	%rsi, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %ebx
	leaq	24(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	40(%r15), %rax
	movslq	%ebx, %rcx
	decq	(%rax,%rcx,8)
	movq	%r15, %rdi
	callq	_is_mem_full
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	leaq	20(%r15), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	addq	$16, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_1:
	movq	32(%r15), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	movq	_CARL9170_NUM_TX_LIMIT_SOFT@GOTPCREL(%rip), %r12
	movq	_jiffies@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r15), %rdi
	movl	%ebx, %esi
	callq	_ieee80211_wake_queue
	movq	32(%r15), %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	(%rdi), %eax
	cmpq	%rax, %rbx
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	cmpq	(%r12), %rax
	jge	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %esi
	callq	_ieee80211_queue_stopped
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movq	(%r15), %rdx
	movq	8(%r15), %rcx
	subq	(%rdx,%rbx,8), %rax
	cmpq	(%rcx,%rbx,8), %rax
	jbe	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_7
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARL9170_NUM_TX_LIMIT_SOFT,8,3 ## @CARL9170_NUM_TX_LIMIT_SOFT
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_carl9170_tx_accounting_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_tx_accounting_free
_carl9170_tx_accounting_free:           ; @carl9170_tx_accounting_free
	.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	x19, x0
	mov	x0, x1
	bl	_skb_get_queue_mapping
	mov	x21, x0
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	x8, [x19, #40]
	sbfiz	x9, x21, #3, #32
	ldr	x10, [x8, x9]
	sub	x10, x10, #1
	str	x10, [x8, x9]
	mov	x0, x19
	bl	_is_mem_full
	cbz	w0, LBB0_3
LBB0_1:
	mov	x0, x20
	bl	_spin_unlock_bh
	add	x0, x19, #20
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_11
; %bb.2:
	add	x0, x19, #16
	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	_complete
LBB0_3:
	ldr	x0, [x19, #32]
	ldr	w8, [x0]
	cbz	w8, LBB0_1
; %bb.4:
	mov	x21, #0
Lloh0:
	adrp	x22, _CARL9170_NUM_TX_LIMIT_SOFT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CARL9170_NUM_TX_LIMIT_SOFT@GOTPAGEOFF]
Lloh2:
	adrp	x23, _jiffies@GOTPAGE
Lloh3:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x19, #32]
	mov	x1, x21
	bl	_ieee80211_wake_queue
	ldr	x0, [x19, #32]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldr	w8, [x0]
	cmp	x21, x8
	b.hs	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x21
	bl	_ieee80211_queue_stopped
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x23]
	lsl	x10, x21, #3
	ldp	x11, x8, [x19]
	ldr	x11, [x11, x10]
	ldr	x10, [x8, x10]
	sub	x9, x9, x11
	cmp	x9, x10
	b.ls	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x9, [x8, x21, lsl #3]
	b	LBB0_5
LBB0_11:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CARL9170_NUM_TX_LIMIT_SOFT,8,3 ; @CARL9170_NUM_TX_LIMIT_SOFT
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_carl9170_tx_accounting_free
.subsections_via_symbols
