	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_tx_confirm_cb           ## -- Begin function cw1200_tx_confirm_cb
	.p2align	4, 0x90
_cw1200_tx_confirm_cb:                  ## @cw1200_tx_confirm_cb
	.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	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	(%rdx), %rdi
	callq	_cw1200_queue_get_queue_id
	movq	%rax, %rbx
	leaq	(,%rax,4), %r15
	addq	72(%r14), %r15
	movq	8(%r13), %rsi
	movl	16(%r13), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_40
## %bb.1:
	xorl	%edi, %edi
	cmpq	$4, %rbx
	setae	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_40
## %bb.2:
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	8(%r13), %rax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	_WSM_REQUEUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	movq	_WSM_TX_STATUS_REQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r13)
	je	LBB0_11
## %bb.7:
	movl	%r12d, -56(%rbp)
	movl	$1, -52(%rbp)
	xorl	%eax, %eax
	testl	%r12d, %r12d
	sete	%al
	movl	%eax, -48(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cw1200_suspend_resume
	movq	64(%r14), %rax
	movl	(%rax), %ebx
	movq	(%r13), %rdi
	callq	_cw1200_queue_get_generation
	leaq	1(%rax), %rcx
	movq	56(%r14), %r8
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	callq	_wiphy_warn
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_cw1200_queue_requeue
	leaq	44(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.8:
	movl	$1, 8(%r14)
	cmpq	$0, 56(%r14)
	je	LBB0_10
## %bb.9:
	movl	52(%r14), %edi
	leaq	48(%r14), %rsi
	callq	_queue_work
LBB0_10:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_39
LBB0_11:
	movq	(%r13), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	callq	_cw1200_queue_get_skb
	testl	%eax, %eax
	jne	LBB0_39
## %bb.12:
	movq	-56(%rbp), %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	16(%r13), %ebx
	leaq	40(%r14), %rdi
	callq	_cw1200_ht_greenfield
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_IEEE80211_TX_RC_GREEN_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_14:
	leaq	24(%r14), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	cmpq	$0, 32(%r14)
	je	LBB0_20
## %bb.15:
	movq	(%r13), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_20
## %bb.16:
	cmpq	$0, 8(%r13)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	jmp	LBB0_19
LBB0_18:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
LBB0_19:
	callq	___cw1200_cqm_bssloss_sm
LBB0_20:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	cmpq	$0, 8(%r13)
	je	LBB0_21
## %bb.23:
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	cmovel	%ebx, %eax
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_21:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 16(%rcx)
	incl	%ebx
	movq	%r14, %rdi
	callq	_cw1200_debug_txed
	movq	_WSM_TX_STATUS_AGGREGATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r13)
	je	LBB0_24
## %bb.22:
	movq	%r14, %rdi
	callq	_cw1200_debug_txed_agg
LBB0_24:
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	_IEEE80211_TX_MAX_RATES@GOTPCREL(%rip), %r9
	movl	(%r9), %edx
	testl	%edx, %edx
	jle	LBB0_25
## %bb.26:
	movq	8(%r10), %rsi
	addq	$4, %rsi
	xorl	%ecx, %ecx
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %r8
	movl	%ebx, %edi
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%rcx
	movslq	%edx, %rax
	addq	$12, %rsi
	movl	%edi, %ebx
	cmpq	%rax, %rcx
	jge	LBB0_32
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	subl	-4(%rsi), %edi
	jle	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	(%rsi), %ebx
	testl	%ebx, (%r8)
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	orl	%r12d, %ebx
	movl	%ebx, (%rsi)
	movl	(%r9), %edx
	jmp	LBB0_31
LBB0_25:
	xorl	%ecx, %ecx
	jmp	LBB0_32
LBB0_28:
	movl	%ebx, -4(%rsi)
	movl	(%r9), %edx
LBB0_32:
	leal	1(%rcx), %esi
	cmpl	%edx, %esi
	jge	LBB0_35
## %bb.33:
	movq	8(%r10), %rax
	movl	%ecx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rcx
	addq	$20, %rcx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -8(%rcx)
	movl	$-1, (%rcx)
	addq	$12, %rcx
	incl	%esi
	cmpl	%esi, (%r9)
	jg	LBB0_34
LBB0_35:
	movq	(%r10), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.36:
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rsi
	subq	8(%rax), %rsi
	movq	%r10, %rbx
	callq	_skb_trim
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_38
## %bb.37:
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rsi
	addq	$-8, %rsi
	callq	_skb_trim
LBB0_38:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_cw1200_queue_remove
LBB0_39:
	movq	%r14, %rdi
	callq	_cw1200_bh_wakeup
LBB0_40:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[TX] TX confirm: %d, %d.\n"

	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ## @NL80211_IFTYPE_UNSPECIFIED
L_.str.1:                               ## @.str.1
	.asciz	"TX failed: %d.\n"

	.comm	_WSM_REQUEUE,8,3                ## @WSM_REQUEUE
	.comm	_WSM_TX_STATUS_REQUEUE,4,2      ## @WSM_TX_STATUS_REQUEUE
L_.str.2:                               ## @.str.2
	.asciz	"Requeue for link_id %d (try %d). STAs asleep: 0x%.8X\n"

	.comm	_IEEE80211_TX_RC_GREEN_FIELD,8,3 ## @IEEE80211_TX_RC_GREEN_FIELD
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_WSM_TX_STATUS_AGGREGATION,4,2  ## @WSM_TX_STATUS_AGGREGATION
	.comm	_IEEE80211_TX_MAX_RATES,4,2     ## @IEEE80211_TX_MAX_RATES
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_tx_confirm_cb           ; -- Begin function cw1200_tx_confirm_cb
	.p2align	2
_cw1200_tx_confirm_cb:                  ; @cw1200_tx_confirm_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x2]
	bl	_cw1200_queue_get_queue_id
	mov	x21, x0
	ldr	x23, [x19, #72]
	ldr	x1, [x20, #8]
	ldr	w8, [x20, #16]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_38
; %bb.1:
	cmp	x21, #3
	cset	w0, hi
	bl	_WARN_ON
	cbnz	x0, LBB0_38
; %bb.2:
	add	x21, x23, x21, lsl #2
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x20, #8]
	b	LBB0_5
LBB0_4:
	mov	x8, #0
LBB0_5:
Lloh7:
	adrp	x9, _WSM_REQUEUE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WSM_REQUEUE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [x20, #20]
Lloh10:
	adrp	x9, _WSM_TX_STATUS_REQUEUE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WSM_TX_STATUS_REQUEUE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:
	mov	w24, #1
	stp	w22, w24, [sp, #8]
	cmp	w22, #0
	cset	w8, eq
	str	w8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_cw1200_suspend_resume
	ldr	x8, [x19, #64]
	ldr	w23, [x8]
	ldr	x0, [x20]
	bl	_cw1200_queue_get_generation
	add	x3, x0, #1
	ldr	x4, [x19, #56]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_wiphy_warn
	ldr	x1, [x20]
	mov	x0, x21
	bl	_cw1200_queue_requeue
	add	x20, x19, #44
	mov	x0, x20
	bl	_spin_lock_bh
	cbnz	w22, LBB0_10
; %bb.8:
	str	w24, [x19, #8]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x19, #52]
	add	x1, x19, #48
	bl	_queue_work
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock_bh
	b	LBB0_37
LBB0_11:
	ldr	x1, [x20]
	add	x2, sp, #8
	add	x3, sp, #24
	mov	x0, x21
	bl	_cw1200_queue_get_skb
	cbnz	w0, LBB0_37
; %bb.12:
	ldr	x0, [sp, #8]
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	ldr	w25, [x20, #16]
	add	x0, x19, #40
	bl	_cw1200_ht_greenfield
Lloh15:
	adrp	x8, _IEEE80211_TX_RC_GREEN_FIELD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_TX_RC_GREEN_FIELD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w24, wzr, w8, eq
	add	x23, x19, #24
	mov	x0, x23
	bl	_spin_lock
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_18
; %bb.13:
	ldr	x8, [x20]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.14:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #1
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
LBB0_17:
	bl	___cw1200_cqm_bssloss_sm
LBB0_18:
	mov	x0, x23
	bl	_spin_unlock
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_20
; %bb.19:
	cmp	w25, #0
	csinc	w23, wzr, w25, eq
	b	LBB0_22
LBB0_20:
Lloh18:
	adrp	x8, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x22, #16]
	orr	w8, w9, w8
	str	w8, [x22, #16]
	add	w23, w25, #1
	mov	x0, x19
	bl	_cw1200_debug_txed
	ldr	w8, [x20, #20]
Lloh21:
	adrp	x9, _WSM_TX_STATUS_AGGREGATION@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WSM_TX_STATUS_AGGREGATION@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_cw1200_debug_txed_agg
LBB0_22:
Lloh24:
	adrp	x8, _IEEE80211_TX_MAX_RATES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IEEE80211_TX_MAX_RATES@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_28
; %bb.23:
	mov	x9, #0
	ldr	x11, [x22, #8]
	add	x11, x11, #4
Lloh26:
	adrp	x12, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh27:
	ldr	x12, [x12, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x9, x9, #1
	add	x11, x11, #12
	cmp	x9, w10, sxtw
	mov	x23, x13
	b.ge	LBB0_30
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x11, #-4]
	subs	w13, w23, w13
	b.le	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w14, [x11]
	ldr	w15, [x12]
	tst	w15, w14
	b.eq	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	orr	w10, w14, w24
	str	w10, [x11]
	ldr	w10, [x8]
	b	LBB0_24
LBB0_28:
	mov	w9, #0
	b	LBB0_30
LBB0_29:
	stur	w23, [x11, #-4]
	ldr	w10, [x8]
LBB0_30:
	add	w11, w9, #1
	cmp	w11, w10
	b.ge	LBB0_33
; %bb.31:
	ldr	x10, [x22, #8]
	mov	w12, #12
	umaddl	x9, w9, w12, x10
	add	x9, x9, #20
	mov	w10, #-1
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x9, #-8]
	str	w10, [x9], #12
	ldr	w12, [x8]
	add	w11, w11, #1
	cmp	w12, w11
	b.gt	LBB0_32
LBB0_33:
	ldr	x8, [x22]
	cbz	x8, LBB0_36
; %bb.34:
	ldr	x0, [sp, #8]
	ldr	x9, [x0]
	ldr	x8, [x8, #8]
	sub	x1, x9, x8
	bl	_skb_trim
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.35:
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	sub	x1, x8, #8
	bl	_skb_trim
LBB0_36:
	ldr	x1, [x20]
	mov	x0, x21
	bl	_cw1200_queue_remove
LBB0_37:
	mov	x0, x19
	bl	_cw1200_bh_wakeup
LBB0_38:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[TX] TX confirm: %d, %d.\n"

	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ; @NL80211_IFTYPE_UNSPECIFIED
l_.str.1:                               ; @.str.1
	.asciz	"TX failed: %d.\n"

	.comm	_WSM_REQUEUE,8,3                ; @WSM_REQUEUE
	.comm	_WSM_TX_STATUS_REQUEUE,4,2      ; @WSM_TX_STATUS_REQUEUE
l_.str.2:                               ; @.str.2
	.asciz	"Requeue for link_id %d (try %d). STAs asleep: 0x%.8X\n"

	.comm	_IEEE80211_TX_RC_GREEN_FIELD,8,3 ; @IEEE80211_TX_RC_GREEN_FIELD
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_WSM_TX_STATUS_AGGREGATION,4,2  ; @WSM_TX_STATUS_AGGREGATION
	.comm	_IEEE80211_TX_MAX_RATES,4,2     ; @IEEE80211_TX_MAX_RATES
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
.subsections_via_symbols
