	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_ce_alloc_rri            ## -- Begin function ath10k_ce_alloc_rri
	.p2align	4, 0x90
_ath10k_ce_alloc_rri:                   ## @ath10k_ce_alloc_rri
	.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	%rdi, %r15
	callq	_ath10k_ce_priv
	movq	%rax, %r14
	movl	8(%r15), %edi
	movq	_CE_COUNT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	shll	$2, %esi
	leaq	4(%rax), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdx
	callq	_dma_alloc_coherent
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	(%r15), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %edi
	callq	_lower_32_bits
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_ath10k_ce_write32
	movq	(%r15), %rax
	movl	4(%rax), %r12d
	movl	(%rbx), %edi
	callq	_upper_32_bits
	movq	_CE_DESC_ADDR_HI_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_ath10k_ce_write32
	movl	(%r13), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath10k_ce_base_address
	addl	%eax, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_ath10k_ce_read32
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_ath10k_ce_write32
	incl	%ebx
	movl	(%r13), %edx
	cmpl	%edx, %ebx
	jl	LBB0_3
LBB0_4:
	movl	(%r14), %edi
	shll	$2, %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CE_COUNT,4,2                   ## @CE_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CE_DESC_ADDR_HI_MASK,4,2       ## @CE_DESC_ADDR_HI_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_ce_alloc_rri            ; -- Begin function ath10k_ce_alloc_rri
	.p2align	2
_ath10k_ce_alloc_rri:                   ; @ath10k_ce_alloc_rri
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_ath10k_ce_priv
	mov	x19, x0
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x23, _CE_COUNT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CE_COUNT@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w1, w8, #2
	add	x21, x19, #4
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x2, x21
	bl	_dma_alloc_coherent
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	ldr	w22, [x8]
	ldr	w0, [x21]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_ath10k_ce_write32
	ldr	x8, [x20]
	ldr	w22, [x8, #4]
	ldr	w0, [x21]
	bl	_upper_32_bits
Lloh5:
	adrp	x8, _CE_DESC_ADDR_HI_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CE_DESC_ADDR_HI_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w2, w8, w0
	mov	x0, x20
	mov	x1, x22
	bl	_ath10k_ce_write32
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	ldr	w22, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_ath10k_ce_base_address
	add	w22, w0, w22
	mov	x0, x20
	mov	x1, x22
	bl	_ath10k_ce_read32
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x20
	mov	x1, x22
	bl	_ath10k_ce_write32
	add	w21, w21, #1
	ldr	w8, [x23]
	cmp	w21, w8
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x19]
	lsl	w2, w8, #2
	mov	w1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memset
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CE_COUNT,4,2                   ; @CE_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CE_DESC_ADDR_HI_MASK,4,2       ; @CE_DESC_ADDR_HI_MASK
.subsections_via_symbols
