	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_ce_alloc_src_ring_64
_ath10k_ce_alloc_src_ring_64:           ## @ath10k_ce_alloc_src_ring_64
	.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, %r14
	movl	(%rdx), %edi
	callq	_roundup_pow_of_two
	movl	%eax, %r15d
	movq	_per_transfer_context@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	leal	-1(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %edi
	movslq	%r15d, %r12
	shlq	$2, %r12
	movq	_CE_DESC_RING_ALIGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movl	(%r13), %ecx
	leaq	-44(%rbp), %rdx
	callq	_dma_alloc_coherent
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	-44(%rbp), %ecx
	movl	%ecx, 12(%rbx)
	movq	_CE_DESC_RING_ALIGN@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movl	%eax, %edi
	callq	_PTR_ALIGN
	movl	%eax, 20(%rbx)
	movl	12(%rbx), %edi
	movq	(%r13), %rsi
	callq	_ALIGN
	movl	%eax, 16(%rbx)
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_ath10k_ce_alloc_shadow_base
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	movl	(%r14), %edi
	addq	(%r13), %r12
	movl	8(%rbx), %edx
	movl	-44(%rbp), %ecx
	movq	%r12, %rsi
	callq	_dma_free_coherent
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r15d, %edi
	jmp	LBB0_6
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_6:
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_per_transfer_context,4,2       ## @per_transfer_context
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CE_DESC_RING_ALIGN,8,3         ## @CE_DESC_RING_ALIGN
	.no_dead_strip	_ath10k_ce_alloc_src_ring_64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_ce_alloc_src_ring_64
_ath10k_ce_alloc_src_ring_64:           ; @ath10k_ce_alloc_src_ring_64
	.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	x20, x0
	ldr	w0, [x2]
	bl	_roundup_pow_of_two
	mov	x21, x0
Lloh0:
	adrp	x8, _per_transfer_context@GOTPAGE
Lloh1:
	ldr	x8, [x8, _per_transfer_context@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x0
	bl	_struct_size
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	sub	w8, w21, #1
	stp	w21, w8, [x0]
	ldr	w0, [x20]
	sbfiz	x22, x21, #2, #32
Lloh5:
	adrp	x23, _CE_DESC_RING_ALIGN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CE_DESC_RING_ALIGN@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, x22
	ldr	w3, [x24]
	add	x2, sp, #12
	bl	_dma_alloc_coherent
	str	w0, [x19, #8]
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w8, [sp, #12]
	str	w8, [x19, #12]
	ldr	x1, [x23]
	bl	_PTR_ALIGN
	str	w0, [x19, #20]
	ldr	w0, [x19, #12]
	ldr	x1, [x23]
	bl	_ALIGN
	str	w0, [x19, #16]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ath10k_ce_alloc_shadow_base
	cbz	w0, LBB0_8
; %bb.4:
	mov	x21, x0
	ldr	w0, [x20]
	ldr	x8, [x23]
	add	x1, x8, x22
	ldr	w2, [x19, #8]
	ldr	w3, [sp, #12]
	bl	_dma_free_coherent
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_6:
	mov	x0, x19
	bl	_kfree
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	bl	_ERR_PTR
	mov	x19, x0
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_per_transfer_context,4,2       ; @per_transfer_context
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CE_DESC_RING_ALIGN,8,3         ; @CE_DESC_RING_ALIGN
	.no_dead_strip	_ath10k_ce_alloc_src_ring_64
.subsections_via_symbols
