	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_snoc_hif_tx_sg
_ath10k_snoc_hif_tx_sg:                 ## @ath10k_snoc_hif_tx_sg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_ath10k_snoc_priv
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ath10k_ce_priv
	movq	%rax, %rdi
	movq	(%rbx), %rax
	movq	(%rax,%r14,8), %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, %ebx
	cmpl	$2, %ecx
	jl	LBB0_5
## %bb.1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%rcx), %ebx
	movl	%ebx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ATH10K_DBG_SNOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4(%r14), %r9d
	movq	%rcx, %r15
	movl	%ecx, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %ecx
	movq	%r14, %r8
	callq	_ath10k_dbg
	movl	4(%r14), %esi
	movl	(%r14), %edx
	movl	-8(%r14), %r8d
	movl	-4(%r14), %ecx
	movq	_CE_SEND_FLAG_GATHER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath10k_ce_send_nolock
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	addq	$16, %r14
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	movq	%r15, %rcx
	jne	LBB0_2
## %bb.4:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_5:
	movq	_ATH10K_DBG_SNOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %r14d
	shlq	$4, %r14
	leaq	(%r12,%r14), %r8
	addq	$8, %r8
	movl	4(%r12,%r14), %r9d
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_ath10k_dbg
	movl	12(%r12,%r14), %esi
	movl	8(%r12,%r14), %edx
	movl	(%r12,%r14), %r8d
	movl	4(%r12,%r14), %ecx
	movq	%r15, %rdi
	xorl	%r9d, %r9d
	callq	_ath10k_ce_send_nolock
	movl	%eax, %r12d
	testl	%eax, %eax
	movl	$0, %r14d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_11
## %bb.7:
	testl	%ebx, %ebx
	jg	LBB0_8
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %r12d
	movl	%r13d, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testl	%ebx, %ebx
	jle	LBB0_10
LBB0_8:
	incl	%ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	___ath10k_ce_send_revert
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_9
LBB0_10:
	movl	%r12d, %r14d
LBB0_11:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_SNOC,4,2            ## @ATH10K_DBG_SNOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snoc tx item %d paddr %pad len %d n_items %d\n"

	.comm	_CE_SEND_FLAG_GATHER,4,2        ## @CE_SEND_FLAG_GATHER
	.no_dead_strip	_ath10k_snoc_hif_tx_sg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_snoc_hif_tx_sg
_ath10k_snoc_hif_tx_sg:                 ; @ath10k_snoc_hif_tx_sg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x26, x2
	mov	x20, x1
	mov	x23, x0
	bl	_ath10k_snoc_priv
	mov	x21, x0
	mov	x0, x23
	bl	_ath10k_ce_priv
	mov	x24, x0
	ldr	x8, [x21]
	ldr	x20, [x8, x20, lsl #3]
	bl	_spin_lock_bh
Lloh0:
	adrp	x19, _ATH10K_DBG_SNOC@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ATH10K_DBG_SNOC@GOTPAGEOFF]
	cmp	w22, #2
	b.lt	LBB0_5
; %bb.1:
	stp	x26, x24, [sp]                  ; 16-byte Folded Spill
	mov	x25, #0
	sub	w21, w22, #1
	add	x26, x26, #8
Lloh2:
	adrp	x24, _CE_SEND_FLAG_GATHER@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CE_SEND_FLAG_GATHER@GOTPAGEOFF]
Lloh4:
	adrp	x28, l_.str@PAGE
Lloh5:
	add	x28, x28, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19]
	ldur	w5, [x26, #-4]
	mov	x0, x23
	mov	x2, x28
	mov	x3, x25
	mov	x4, x26
	mov	x6, x22
	bl	_ath10k_dbg
	ldp	w2, w1, [x26]
	ldp	w4, w3, [x26, #-8]
	ldr	w5, [x24]
	mov	x0, x20
	bl	_ath10k_ce_send_nolock
	cbnz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	add	x26, x26, #16
	cmp	x21, x25
	b.ne	LBB0_2
; %bb.4:
	ldp	x26, x24, [sp]                  ; 16-byte Folded Reload
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	ldr	w1, [x19]
	add	x19, x26, w21, uxtw #4
	add	x4, x19, #8
	ldr	w5, [x19, #4]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x21
	mov	x6, x22
	bl	_ath10k_dbg
	ldp	w2, w1, [x19, #8]
	ldp	w4, w3, [x19]
	mov	x0, x20
	mov	w5, #0
	bl	_ath10k_ce_send_nolock
	mov	x27, x0
	cbz	w0, LBB0_11
; %bb.7:
	cmp	w21, #1
	b.ge	LBB0_9
	b	LBB0_11
LBB0_8:
	mov	x27, x0
	mov	x21, x25
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	cmp	w21, #1
	b.lt	LBB0_11
LBB0_9:
	add	w19, w21, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	___ath10k_ce_send_revert
	sub	w19, w19, #1
	cmp	w19, #1
	b.hi	LBB0_10
LBB0_11:
	mov	x0, x24
	bl	_spin_unlock_bh
	mov	x0, x27
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_SNOC,4,2            ; @ATH10K_DBG_SNOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snoc tx item %d paddr %pad len %d n_items %d\n"

	.comm	_CE_SEND_FLAG_GATHER,4,2        ; @CE_SEND_FLAG_GATHER
	.no_dead_strip	_ath10k_snoc_hif_tx_sg
.subsections_via_symbols
