	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_tx_frame_completed
_ath5k_tx_frame_completed:              ## @ath5k_tx_frame_completed
	.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	%rcx, %r15
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	incl	36(%rdi)
	movl	(%rsi), %eax
	addl	%eax, 32(%rdi)
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r13
	movq	(%rax), %rax
	movl	4(%rax), %ebx
	movl	%ebx, -60(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	20(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	%r13, %rdi
	callq	_ieee80211_tx_info_clear_status
	movslq	(%r15), %rax
	movq	(%r13), %rcx
	testq	%rax, %rax
	jle	LBB0_7
## %bb.1:
	movl	%eax, %edx
	movl	%ebx, 4(%rcx)
	cmpl	$1, %edx
	je	LBB0_7
## %bb.2:
	leaq	-1(%rdx), %r8
	movl	$1, %esi
	cmpq	$8, %r8
	jb	LBB0_6
## %bb.3:
	movq	%r8, %rdi
	andq	$-8, %rdi
	leaq	1(%rdi), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movups	-56(%rbp,%rbx,4), %xmm0
	movups	-40(%rbp,%rbx,4), %xmm1
	movss	%xmm0, 12(%rcx,%rbx,8)
	extractps	$1, %xmm0, 20(%rcx,%rbx,8)
	extractps	$2, %xmm0, 28(%rcx,%rbx,8)
	extractps	$3, %xmm0, 36(%rcx,%rbx,8)
	movss	%xmm1, 44(%rcx,%rbx,8)
	extractps	$1, %xmm1, 52(%rcx,%rbx,8)
	extractps	$2, %xmm1, 60(%rcx,%rbx,8)
	extractps	$3, %xmm1, 68(%rcx,%rbx,8)
	addq	$8, %rbx
	cmpq	%rbx, %rdi
	jne	LBB0_4
## %bb.5:
	cmpq	%rdi, %r8
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-60(%rbp,%rsi,4), %edi
	movl	%edi, 4(%rcx,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_6
LBB0_7:
	movl	16(%r15), %edx
	movl	%edx, 4(%rcx,%rax,8)
	movl	$-1, 8(%rcx,%rax,8)
	movl	4(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	incl	28(%r12)
	movl	4(%r15), %eax
	movq	_AR5K_TXERR_FILT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_IEEE80211_TX_STAT_TX_FILTERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r13)
	incl	24(%r12)
LBB0_10:
	movq	_AR5K_TXERR_XRETRY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	incl	20(%r12)
LBB0_12:
	movq	_AR5K_TXERR_FIFO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	incl	16(%r12)
	jmp	LBB0_15
LBB0_14:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r13)
	movl	12(%r15), %eax
	movl	%eax, 8(%r13)
	movq	(%r13), %rax
	movslq	(%r15), %rcx
	incl	4(%rax,%rcx,8)
LBB0_15:
	movq	%r14, %rdi
	callq	_ath5k_remove_padding
	movl	8(%r15), %eax
	leal	-1(%rax), %ecx
	xorl	%edx, %edx
	cmpl	$4, %ecx
	cmovbl	%eax, %edx
	movq	8(%r12), %rax
	incl	(%rax,%rdx,4)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_trace_ath5k_tx_complete
	movl	(%r12), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.17:
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_tx_status            ## TAILCALL
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_TXERR_FILT,4,2            ## @AR5K_TXERR_FILT
	.comm	_IEEE80211_TX_STAT_TX_FILTERED,4,2 ## @IEEE80211_TX_STAT_TX_FILTERED
	.comm	_AR5K_TXERR_XRETRY,4,2          ## @AR5K_TXERR_XRETRY
	.comm	_AR5K_TXERR_FIFO,4,2            ## @AR5K_TXERR_FIFO
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.no_dead_strip	_ath5k_tx_frame_completed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_tx_frame_completed
_ath5k_tx_frame_completed:              ; @ath5k_tx_frame_completed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	d0, [x0, #32]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x1]
	add.2s	v0, v0, v1
	str	d0, [x0, #32]
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	mov	x23, x0
	ldr	x8, [x0]
	ldr	w24, [x8, #4]
	ldr	w9, [x8, #12]
	stp	w24, w9, [sp, #12]
	ldr	w8, [x8, #20]
	str	w8, [sp, #20]
	bl	_ieee80211_tx_info_clear_status
	ldr	w10, [x21]
	sxtw	x8, w10
	ldr	x9, [x23]
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.1:
	str	w24, [x9, #4]
	cmp	w10, #1
	b.eq	LBB0_9
; %bb.2:
	sub	x12, x10, #1
	cmp	x12, #4
	b.hs	LBB0_4
; %bb.3:
	mov	w11, #1
	b	LBB0_7
LBB0_4:
	and	x13, x12, #0xfffffffffffffffc
	orr	x11, x13, #0x1
	add	x14, sp, #12
	add	x14, x14, #8
	add	x15, x9, #20
	mov	x16, x13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w17, w0, [x14, #-4]
	ldp	w1, w2, [x14, #4]
	stur	w17, [x15, #-8]
	str	w0, [x15]
	str	w1, [x15, #8]
	str	w2, [x15, #16]
	add	x14, x14, #16
	add	x15, x15, #32
	subs	x16, x16, #4
	b.ne	LBB0_5
; %bb.6:
	cmp	x12, x13
	b.eq	LBB0_9
LBB0_7:
	sub	x10, x10, x11
	add	x12, x9, x11, lsl #3
	add	x12, x12, #4
	add	x13, sp, #12
	add	x11, x13, x11, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11], #4
	str	w13, [x12], #8
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	w10, [x21, #16]
	add	x8, x9, x8, lsl #3
	mov	w9, #-1
	stp	w10, w9, [x8, #4]
	ldr	w0, [x21, #4]
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.10:
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
	ldr	w8, [x21, #4]
Lloh3:
	adrp	x9, _AR5K_TXERR_FILT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AR5K_TXERR_FILT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh6:
	adrp	x9, _IEEE80211_TX_STAT_TX_FILTERED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_TX_STAT_TX_FILTERED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x23, #16]
	orr	w9, w10, w9
	str	w9, [x23, #16]
	ldr	w9, [x20, #24]
	add	w9, w9, #1
	str	w9, [x20, #24]
LBB0_12:
Lloh9:
	adrp	x9, _AR5K_TXERR_XRETRY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AR5K_TXERR_XRETRY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w9, [x20, #20]
	add	w9, w9, #1
	str	w9, [x20, #20]
LBB0_14:
Lloh12:
	adrp	x9, _AR5K_TXERR_FIFO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AR5K_TXERR_FIFO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_17
LBB0_16:
Lloh15:
	adrp	x8, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x23, #16]
	orr	w8, w9, w8
	str	w8, [x23, #16]
	ldr	w8, [x21, #12]
	str	w8, [x23, #8]
	ldr	x8, [x23]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #3
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_17:
	mov	x0, x19
	bl	_ath5k_remove_padding
	ldr	w8, [x21, #8]
	sub	w9, w8, #1
	ldr	x10, [x20, #8]
	cmp	w9, #4
	csel	w8, w8, wzr, lo
	lsl	x8, x8, #2
	ldr	w9, [x10, x8]
	add	w9, w9, #1
	str	w9, [x10, x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_trace_ath5k_tx_complete
	ldr	w0, [x20]
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x1, x19
	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
	add	sp, sp, #96
	b	_ieee80211_tx_status
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_TXERR_FILT,4,2            ; @AR5K_TXERR_FILT
	.comm	_IEEE80211_TX_STAT_TX_FILTERED,4,2 ; @IEEE80211_TX_STAT_TX_FILTERED
	.comm	_AR5K_TXERR_XRETRY,4,2          ; @AR5K_TXERR_XRETRY
	.comm	_AR5K_TXERR_FIFO,4,2            ; @AR5K_TXERR_FIFO
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.no_dead_strip	_ath5k_tx_frame_completed
.subsections_via_symbols
