	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl18xx_tx_complete_packet
_wl18xx_tx_complete_packet:             ## @wl18xx_tx_complete_packet
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_WL18XX_TX_STATUS_DESC_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%esi, %r12d
	movslq	%r12d, %rbx
	movl	$1, %edi
	cmpl	(%r14), %ebx
	jge	LBB0_2
## %bb.1:
	movq	24(%r14), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rbx,8)
	sete	%dil
LBB0_2:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl1271_warning                 ## TAILCALL
LBB0_3:
	movq	_WL18XX_TX_STATUS_STAT_BIT_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	testl	%r13d, %eax
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rbx
	movq	%rbx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_is_dummy_packet
	testq	%rax, %rax
	jne	LBB0_14
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	testl	%r13d, %r15d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_7
## %bb.5:
	movl	(%r15), %eax
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
LBB0_7:
	movl	16(%r15), %esi
	movl	40(%r15), %edx
	movq	32(%r15), %rcx
	movl	(%rdi), %r8d
	movq	%r14, %rdi
	callq	_wl18xx_get_last_tx_rate
	movq	32(%r15), %rax
	movl	$1, (%rax)
	movl	$-1, 24(%r15)
	testl	%r13d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:
	incl	20(%r14)
LBB0_9:
	xorl	%r13d, %r13d
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r13b
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movq	_WLCORE_QUIRK_TKIP_HEADER_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_13
## %bb.10:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	(%rax), %rax
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_ieee80211_get_hdrlen_from_skb
	movq	(%rbx), %rsi
	movq	_WL1271_EXTRA_SPACE_TKIP@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdi
	addq	%rsi, %rdi
	movl	%eax, %edx
	callq	_memmove
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_skb_pull
LBB0_13:
	movq	_DEBUG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	callq	_wl1271_debug
	leaq	16(%r14), %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_tail
	movl	12(%r14), %edi
	leaq	8(%r14), %rsi
	callq	_queue_work
LBB0_14:
	movq	%r14, %rdi
	movl	%r12d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl1271_free_tx_id              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WL18XX_TX_STATUS_DESC_ID_MASK,4,2 ## @WL18XX_TX_STATUS_DESC_ID_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal id in tx completion: %d"

	.comm	_WL18XX_TX_STATUS_STAT_BIT_IDX,4,2 ## @WL18XX_TX_STATUS_STAT_BIT_IDX
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.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
	.comm	_DEBUG_TX,4,2                   ## @DEBUG_TX
L_.str.1:                               ## @.str.1
	.asciz	"tx status id %u skb 0x%p success %d"

	.no_dead_strip	_wl18xx_tx_complete_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl18xx_tx_complete_packet
_wl18xx_tx_complete_packet:             ; @wl18xx_tx_complete_packet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WL18XX_TX_STATUS_DESC_ID_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL18XX_TX_STATUS_DESC_ID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w19, w8, w1
	ldr	w8, [x0]
	cmp	w19, w8
	b.ge	LBB0_3
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, w19, sxtw #3]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wl1271_warning
LBB0_3:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_4:
Lloh5:
	adrp	x8, _WL18XX_TX_STATUS_STAT_BIT_IDX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WL18XX_TX_STATUS_STAT_BIT_IDX@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_BIT
	ands	w24, w0, w21
	cset	w22, eq
	ldr	x8, [x20, #24]
	ldr	x21, [x8, w19, sxtw #3]
	mov	x0, x21
	bl	_IEEE80211_SKB_CB
	mov	x23, x0
	ldr	x25, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_wl12xx_is_dummy_packet
	cbnz	x0, LBB0_15
; %bb.5:
	cbnz	w24, LBB0_8
; %bb.6:
	ldr	w8, [x23]
Lloh8:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x9, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x23]
LBB0_8:
	ldr	w1, [x23, #16]
	ldr	w2, [x23, #40]
	ldr	x3, [x23, #32]
	ldr	w4, [x25]
	mov	x0, x20
	bl	_wl18xx_get_last_tx_rate
	ldr	x8, [x23, #32]
	mov	w9, #1
	str	w9, [x8]
	mov	w8, #-1
	str	w8, [x23, #24]
	cbz	w24, LBB0_10
; %bb.9:
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
LBB0_10:
	mov	x0, x21
	mov	w1, #4
	bl	_skb_pull
	ldr	w8, [x20, #4]
Lloh14:
	adrp	x9, _WLCORE_QUIRK_TKIP_HEADER_SPACE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WLCORE_QUIRK_TKIP_HEADER_SPACE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.11:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_ieee80211_get_hdrlen_from_skb
	mov	x2, x0
	ldr	x1, [x21]
Lloh20:
	adrp	x23, _WL1271_EXTRA_SPACE_TKIP@GOTPAGE
Lloh21:
	ldr	x23, [x23, _WL1271_EXTRA_SPACE_TKIP@GOTPAGEOFF]
	ldrsw	x8, [x23]
	add	x0, x1, x8
	bl	_memmove
	ldr	w1, [x23]
	mov	x0, x21
	bl	_skb_pull
LBB0_14:
Lloh22:
	adrp	x8, _DEBUG_TX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DEBUG_TX@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	bl	_wl1271_debug
	add	x0, x20, #16
	mov	x1, x21
	bl	_skb_queue_tail
	ldr	w0, [x20, #12]
	add	x1, x20, #8
	bl	_queue_work
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wl1271_free_tx_id
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_WL18XX_TX_STATUS_DESC_ID_MASK,4,2 ; @WL18XX_TX_STATUS_DESC_ID_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal id in tx completion: %d"

	.comm	_WL18XX_TX_STATUS_STAT_BIT_IDX,4,2 ; @WL18XX_TX_STATUS_STAT_BIT_IDX
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.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
	.comm	_DEBUG_TX,4,2                   ; @DEBUG_TX
l_.str.1:                               ; @.str.1
	.asciz	"tx status id %u skb 0x%p success %d"

	.no_dead_strip	_wl18xx_tx_complete_packet
.subsections_via_symbols
