	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_pci_hif_tx_sg           ## -- Begin function ath10k_pci_hif_tx_sg
	.p2align	4, 0x90
_ath10k_pci_hif_tx_sg:                  ## @ath10k_pci_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
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_ath10k_pci_priv
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ath10k_ce_priv
	movq	%rax, %rdi
	movq	(%rbx), %rax
	movq	(%rax,%r14,8), %r14
	movq	(%r14), %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movl	(%rbx), %edi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	decl	%edx
	callq	_CE_RING_DELTA
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_1:
	movq	%r13, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$0, %r13d
	cmpl	$2, %r15d
	movq	%r15, %rcx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_6
## %bb.2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leal	-1(%rcx), %r13d
	movl	%r13d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r15
	xorl	%r14d, %r14d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ATH10K_DBG_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4(%r15), %r9d
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	movq	%r15, %r8
	callq	_ath10k_dbg
	movq	_ATH10K_DBG_PCI_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4(%r15), %r9d
	movl	8(%r15), %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	leaq	L_.str.1(%rip), %rcx
	callq	_ath10k_dbg_dump
	movl	4(%r15), %esi
	movl	(%r15), %edx
	movl	-8(%r15), %r8d
	movl	-4(%r15), %ecx
	movq	_CE_SEND_FLAG_GATHER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath10k_ce_send_nolock
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	addq	$20, %r15
	cmpq	%r14, -80(%rbp)                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_3
## %bb.5:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_6:
	movq	_ATH10K_DBG_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %eax
	leaq	(%rax,%rax,4), %r14
	leaq	(%rbx,%r14,4), %r8
	addq	$8, %r8
	movl	4(%rbx,%r14,4), %r9d
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r13d, %ecx
	callq	_ath10k_dbg
	movq	_ATH10K_DBG_PCI_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx,%r14,4), %r9d
	movl	16(%rbx,%r14,4), %r8d
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ath10k_dbg_dump
	movl	12(%rbx,%r14,4), %esi
	movl	8(%rbx,%r14,4), %edx
	movl	(%rbx,%r14,4), %r8d
	movl	4(%rbx,%r14,4), %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%r9d, %r9d
	callq	_ath10k_ce_send_nolock
	movl	%eax, %r12d
	testl	%eax, %eax
	movl	$0, %ebx
	je	LBB0_12
## %bb.8:
	testl	%r13d, %r13d
	jg	LBB0_9
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %r12d
	movl	%r14d, %r13d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_11
LBB0_9:
	incl	%r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	___ath10k_ce_send_revert
	decl	%r13d
	cmpl	$1, %r13d
	ja	LBB0_10
LBB0_11:
	movl	%r12d, %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_ATH10K_DBG_PCI,4,2             ## @ATH10K_DBG_PCI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci tx item %d paddr %pad len %d n_items %d\n"

	.comm	_ATH10K_DBG_PCI_DUMP,4,2        ## @ATH10K_DBG_PCI_DUMP
L_.str.1:                               ## @.str.1
	.asciz	"pci tx data: "

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_pci_hif_tx_sg           ; -- Begin function ath10k_pci_hif_tx_sg
	.p2align	2
_ath10k_pci_hif_tx_sg:                  ; @ath10k_pci_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	x24, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ath10k_pci_priv
	mov	x23, x0
	mov	x0, x21
	bl	_ath10k_ce_priv
	mov	x25, x0
	ldr	x8, [x23]
	ldr	x20, [x8, x20, lsl #3]
	ldr	x19, [x20]
	bl	_spin_lock_bh
	ldp	w0, w8, [x19]
	ldr	w1, [x19, #8]
	sub	w2, w8, #1
	bl	_CE_RING_DELTA
	cmp	w0, w22
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_13
LBB0_2:
	cmp	w22, #2
	b.lt	LBB0_7
; %bb.3:
	stp	x24, x25, [sp]                  ; 16-byte Folded Spill
	mov	x25, #0
	sub	w23, w22, #1
	add	x26, x24, #8
Lloh3:
	adrp	x27, l_.str@PAGE
Lloh4:
	add	x27, x27, l_.str@PAGEOFF
Lloh5:
	adrp	x19, _CE_SEND_FLAG_GATHER@GOTPAGE
Lloh6:
	ldr	x19, [x19, _CE_SEND_FLAG_GATHER@GOTPAGEOFF]
Lloh7:
	adrp	x28, l_.str.1@PAGE
Lloh8:
	add	x28, x28, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh9:
	adrp	x8, _ATH10K_DBG_PCI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH10K_DBG_PCI@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldur	w5, [x26, #-4]
	mov	x0, x21
	mov	x2, x27
	mov	x3, x25
	mov	x4, x26
	mov	x6, x22
	bl	_ath10k_dbg
Lloh12:
	adrp	x8, _ATH10K_DBG_PCI_DUMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATH10K_DBG_PCI_DUMP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w4, [x26, #8]
	ldur	w5, [x26, #-4]
	mov	x0, x21
	mov	x2, #0
	mov	x3, x28
	bl	_ath10k_dbg_dump
	ldp	w2, w1, [x26]
	ldp	w4, w3, [x26, #-8]
	ldr	w5, [x19]
	mov	x0, x20
	bl	_ath10k_ce_send_nolock
	cbnz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	add	x26, x26, #20
	cmp	x23, x25
	b.ne	LBB0_4
; %bb.6:
	ldp	x24, x25, [sp]                  ; 16-byte Folded Reload
	b	LBB0_8
LBB0_7:
	mov	w23, #0
LBB0_8:
Lloh15:
	adrp	x8, _ATH10K_DBG_PCI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATH10K_DBG_PCI@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w8, #20
	umaddl	x19, w23, w8, x24
	add	x4, x19, #8
	ldr	w5, [x19, #4]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x23
	mov	x6, x22
	bl	_ath10k_dbg
Lloh20:
	adrp	x8, _ATH10K_DBG_PCI_DUMP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATH10K_DBG_PCI_DUMP@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w4, [x19, #16]
	ldr	w5, [x19, #4]
Lloh23:
	adrp	x3, l_.str.1@PAGE
Lloh24:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_ath10k_dbg_dump
	ldp	w2, w1, [x19, #8]
	ldp	w4, w3, [x19]
	mov	x0, x20
	mov	w5, #0
	bl	_ath10k_ce_send_nolock
	mov	x24, x0
	cbz	w0, LBB0_13
; %bb.9:
	cmp	w23, #1
	b.ge	LBB0_11
	b	LBB0_13
LBB0_10:
	mov	x24, x0
	mov	x23, x25
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	cmp	w23, #1
	b.lt	LBB0_13
LBB0_11:
	add	w19, w23, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	___ath10k_ce_send_revert
	sub	w19, w19, #1
	cmp	w19, #1
	b.hi	LBB0_12
LBB0_13:
	mov	x0, x25
	bl	_spin_unlock_bh
	mov	x0, x24
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_ATH10K_DBG_PCI,4,2             ; @ATH10K_DBG_PCI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci tx item %d paddr %pad len %d n_items %d\n"

	.comm	_ATH10K_DBG_PCI_DUMP,4,2        ; @ATH10K_DBG_PCI_DUMP
l_.str.1:                               ; @.str.1
	.asciz	"pci tx data: "

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