	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_tx_reset                ## -- Begin function wl12xx_tx_reset
	.p2align	4, 0x90
_wl12xx_tx_reset:                       ## @wl12xx_tx_reset
	.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, %r14
	callq	_wl1271_tx_total_queue_count
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_wl1271_tx_reset_link_queues
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_4:
	movq	_NUM_TX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.5:
	movq	24(%r14), %rdi
	shlq	$3, %rsi
	callq	___bzero
LBB0_6:
	movq	%r14, %rdi
	callq	_wl1271_handle_tx_low_watermark
	cmpl	$0, 4(%r14)
	jle	LBB0_16
## %bb.7:
	xorl	%ebx, %ebx
	movq	_DEBUG_TX@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r13), %rax
	movl	$-1, (%rax)
	movq	$0, 8(%rax)
	movl	12(%r14), %edi
	movq	%r12, %rsi
	callq	_ieee80211_tx_status_ni
	leaq	L_.str(%rip), %r13
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	4(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_wl1271_free_tx_id
	movl	(%r15), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_wl1271_debug
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wl12xx_is_dummy_packet
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movq	_WLCORE_QUIRK_TKIP_HEADER_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rax), %rax
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_ieee80211_get_hdrlen_from_skb
	movq	(%r12), %rsi
	movq	_WL1271_EXTRA_SPACE_TKIP@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdi
	addq	%rsi, %rdi
	movl	%eax, %edx
	callq	_memmove
	movq	_WL1271_EXTRA_SPACE_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_pull
	jmp	LBB0_14
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"freeing skb 0x%p"

	.comm	_WLCORE_QUIRK_TKIP_HEADER_SPACE,4,2 ## @WLCORE_QUIRK_TKIP_HEADER_SPACE
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
	.comm	_WL1271_EXTRA_SPACE_TKIP,4,2    ## @WL1271_EXTRA_SPACE_TKIP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_tx_reset                ; -- Begin function wl12xx_tx_reset
	.p2align	2
_wl12xx_tx_reset:                       ; @wl12xx_tx_reset
	.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	x19, x0
	bl	_wl1271_tx_total_queue_count
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_wl1271_tx_reset_link_queues
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_3
LBB0_4:
Lloh0:
	adrp	x8, _NUM_TX_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_TX_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	x0, [x19, #24]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_6:
	mov	x0, x19
	bl	_wl1271_handle_tx_low_watermark
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.7:
	mov	x20, #0
Lloh3:
	adrp	x24, _DEBUG_TX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DEBUG_TX@GOTPAGEOFF]
Lloh5:
	adrp	x25, _WLCORE_QUIRK_TKIP_HEADER_SPACE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _WLCORE_QUIRK_TKIP_HEADER_SPACE@GOTPAGEOFF]
	mov	w26, #-1
Lloh7:
	adrp	x27, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh8:
	ldr	x27, [x27, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
Lloh11:
	adrp	x28, _WL1271_EXTRA_SPACE_TKIP@GOTPAGE
Lloh12:
	ldr	x28, [x28, _WL1271_EXTRA_SPACE_TKIP@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23]
	str	w26, [x8]
	str	xzr, [x8, #8]
	ldr	w0, [x19, #12]
	mov	x1, x22
	bl	_ieee80211_tx_status_ni
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.ge	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x22, [x8, x20, lsl #3]
	cbz	x22, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_wl1271_free_tx_id
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x22
	bl	_wl1271_debug
	mov	x0, x19
	mov	x1, x22
	bl	_wl12xx_is_dummy_packet
	cbnz	w0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_IEEE80211_SKB_CB
	mov	x23, x0
	mov	x0, x22
	mov	w1, #4
	bl	_skb_pull
	ldr	w8, [x19, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_ieee80211_get_hdrlen_from_skb
	mov	x2, x0
	ldr	x1, [x22]
	ldrsw	x8, [x28]
	add	x0, x1, x8
	bl	_memmove
	ldr	w1, [x28]
	mov	x0, x22
	bl	_skb_pull
	b	LBB0_8
LBB0_16:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.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	"freeing skb 0x%p"

	.comm	_WLCORE_QUIRK_TKIP_HEADER_SPACE,4,2 ; @WLCORE_QUIRK_TKIP_HEADER_SPACE
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
	.comm	_WL1271_EXTRA_SPACE_TKIP,4,2    ; @WL1271_EXTRA_SPACE_TKIP
.subsections_via_symbols
