	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_tx_reset_link_queues    ## -- Begin function wl1271_tx_reset_link_queues
	.p2align	4, 0x90
_wl1271_tx_reset_link_queues:           ## @wl1271_tx_reset_link_queues
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NUM_TX_QUEUES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movq	%r14, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	16(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %r13
	addq	$8, %r13
	xorl	%ecx, %ecx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rax,%rcx,4)
	movq	%rax, %r15
	incq	%rcx
	movq	_NUM_TX_QUEUES@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	cmpq	%rax, %rcx
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %r14
	movq	(%r13), %rdi
	addq	%r14, %rdi
	callq	_skb_dequeue
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r15d
	movq	(%r13), %rdi
	addq	%r14, %rdi
	callq	_skb_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wl1271_debug
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_is_dummy_packet
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %rax
	movl	$-1, (%rax)
	movq	$0, 8(%rax)
	movl	12(%r12), %edi
	movq	%rbx, %rsi
	callq	_ieee80211_tx_status_ni
	jmp	LBB0_6
LBB0_8:
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%rbx)
	jle	LBB0_13
## %bb.9:
	movq	(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	shlq	$4, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx), %rcx
	xorl	%edx, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rdx,4), %esi
	subl	%esi, (%rax,%rdx,4)
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rcx), %rdi
	subl	%esi, (%rdi,%rdx,4)
	jmp	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.15:
	movq	%r12, %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl1271_handle_tx_low_watermark ## TAILCALL
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TX_QUEUES,4,2              ## @NUM_TX_QUEUES
	.comm	_DEBUG_TX,4,2                   ## @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link freeing skb 0x%p"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_tx_reset_link_queues    ; -- Begin function wl1271_tx_reset_link_queues
	.p2align	2
_wl1271_tx_reset_link_queues:           ; @wl1271_tx_reset_link_queues
	.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
	sub	sp, sp, #32
	stur	x1, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x23, _NUM_TX_QUEUES@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NUM_TX_QUEUES@GOTPAGEOFF]
	ldr	w12, [x23]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	x8, [x0, #16]
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	cmp	w12, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x26, #0
	ldp	x9, x8, [x29, #-104]            ; 16-byte Folded Reload
	add	x8, x9, x8, lsl #4
	add	x27, x8, #8
Lloh7:
	adrp	x28, _DEBUG_TX@GOTPAGE
Lloh8:
	ldr	x28, [x28, _DEBUG_TX@GOTPAGEOFF]
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
	mov	w20, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w25, [x24, x26, lsl #2]
	add	x26, x26, #1
	ldrsw	x8, [x23]
	cmp	x26, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x27]
	add	x0, x8, x26, lsl #2
	bl	_skb_dequeue
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	mov	w25, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w25, w25, #1
	ldr	x8, [x27]
	add	x0, x8, x26, lsl #2
	bl	_skb_dequeue
	mov	x22, x0
	cbz	x0, LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x28]
	mov	x1, x21
	mov	x2, x22
	bl	_wl1271_debug
	mov	x0, x19
	mov	x1, x22
	bl	_wl12xx_is_dummy_packet
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x22
	bl	_IEEE80211_SKB_CB
	ldr	x8, [x0]
	str	w20, [x8]
	str	xzr, [x8, #8]
	ldr	w0, [x19, #12]
	mov	x1, x22
	bl	_ieee80211_tx_status_ni
	b	LBB0_6
LBB0_9:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x8, #0
	ldr	x9, [x19]
	ldp	x11, x10, [x29, #-104]          ; 16-byte Folded Reload
	lsl	x10, x10, #4
	ldr	x10, [x11, x10]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, #1
	ldrsw	x11, [x23]
	cmp	x8, x11
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x24, x11]
	ldr	w13, [x9, x11]
	sub	w13, w13, w12
	str	w13, [x9, x11]
	cbz	x10, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x13, [x10]
	ldr	w14, [x13, x11]
	sub	w12, w14, w12
	str	w12, [x13, x11]
	b	LBB0_11
LBB0_14:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	sub	sp, x29, #80
	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	_wl1271_handle_tx_low_watermark
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TX_QUEUES,4,2              ; @NUM_TX_QUEUES
	.comm	_DEBUG_TX,4,2                   ; @DEBUG_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link freeing skb 0x%p"

.subsections_via_symbols
