	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htc_async_tx_scat_complete
_htc_async_tx_scat_complete:            ## @htc_async_tx_scat_complete
	.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	%rsi, %r12
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdi
	callq	_INIT_LIST_HEAD
	movq	_ATH6KL_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %ecx
	movl	24(%r12), %edx
	leaq	L_.str(%rip), %rsi
	callq	_ath6kl_dbg
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_ath6kl_err
LBB0_2:
	movq	16(%r12), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r15
	shlq	$2, %r15
	addq	8(%r14), %r15
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_htc_tx_comp_update
	addq	$8, %rbx
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	callq	_list_add_tail
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%r13,8), %rbx
	incq	%r13
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_7:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_9
LBB0_8:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_hif_scatter_req_add
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_htc_tx_complete
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_HTC,4,2             ## @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htc tx scat complete len %d entries %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"send scatter req failed: %d\n"

	.no_dead_strip	_htc_async_tx_scat_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htc_async_tx_scat_complete
_htc_async_tx_scat_complete:            ; @htc_async_tx_scat_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x8, _ATH6KL_DBG_HTC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_HTC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19, #24]
	ldr	w3, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ath6kl_err
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x22, [x8]
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x21, x8, x9, lsl #2
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	cbz	x22, LBB0_7
; %bb.4:
	mov	w23, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	str	x8, [x22, #16]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_htc_tx_comp_update
	add	x0, x22, #8
	add	x1, sp, #8
	bl	_list_add_tail
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	ldr	x22, [x8, x23, lsl #3]
	add	x23, x23, #1
	cbnz	x22, LBB0_5
LBB0_7:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_9
LBB0_8:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_hif_scatter_req_add
	add	x1, sp, #8
	mov	x0, x21
	bl	_htc_tx_complete
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_HTC,4,2             ; @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htc tx scat complete len %d entries %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"send scatter req failed: %d\n"

	.no_dead_strip	_htc_async_tx_scat_complete
.subsections_via_symbols
