	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_cppi41
_init_cppi41:                           ## @init_cppi41
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_QMGR_SCRATCH_SIZE@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	$16384, (%r15)                  ## imm = 0x4000
	setge	%dil
	callq	_BUILD_BUG_ON
	movl	(%r15), %esi
	leaq	24(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movl	%eax, 28(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	24(%rbx), %edi
	movq	_QMGR_LRAM0_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_cppi_writel
	movq	_TOTAL_DESCS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_QMGR_LRAM_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_cppi_writel
	movq	_QMGR_LRAM1_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_cppi_writel
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_init_descs
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_deinit_cppi41
	movl	%r12d, %r15d
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_3:
	movl	8(%rbx), %edi
	movq	_DMA_TDFDQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_cppi_writel
	movq	%rbx, %rdi
	callq	_init_sched
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QMGR_SCRATCH_SIZE,4,2          ## @QMGR_SCRATCH_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QMGR_LRAM0_BASE,8,3            ## @QMGR_LRAM0_BASE
	.comm	_TOTAL_DESCS_NUM,4,2            ## @TOTAL_DESCS_NUM
	.comm	_QMGR_LRAM_SIZE,8,3             ## @QMGR_LRAM_SIZE
	.comm	_QMGR_LRAM1_BASE,8,3            ## @QMGR_LRAM1_BASE
	.comm	_DMA_TDFDQ,8,3                  ## @DMA_TDFDQ
	.no_dead_strip	_init_cppi41
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_cppi41
_init_cppi41:                           ; @init_cppi41
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _QMGR_SCRATCH_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QMGR_SCRATCH_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #4, lsl #12                 ; =16384
	cset	w0, ge
	bl	_BUILD_BUG_ON
	ldr	w1, [x21]
	add	x2, x19, #24
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	w0, [x19, #28]
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _QMGR_LRAM0_BASE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QMGR_LRAM0_BASE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_cppi_writel
Lloh8:
	adrp	x8, _TOTAL_DESCS_NUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TOTAL_DESCS_NUM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _QMGR_LRAM_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _QMGR_LRAM_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_cppi_writel
	ldr	x8, [x19, #16]
Lloh14:
	adrp	x9, _QMGR_LRAM1_BASE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QMGR_LRAM1_BASE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_cppi_writel
	mov	x0, x20
	mov	x1, x19
	bl	_init_descs
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_deinit_cppi41
	b	LBB0_5
LBB0_3:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _DMA_TDFDQ@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DMA_TDFDQ@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_cppi_writel
	mov	x0, x19
	bl	_init_sched
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_QMGR_SCRATCH_SIZE,4,2          ; @QMGR_SCRATCH_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QMGR_LRAM0_BASE,8,3            ; @QMGR_LRAM0_BASE
	.comm	_TOTAL_DESCS_NUM,4,2            ; @TOTAL_DESCS_NUM
	.comm	_QMGR_LRAM_SIZE,8,3             ; @QMGR_LRAM_SIZE
	.comm	_QMGR_LRAM1_BASE,8,3            ; @QMGR_LRAM1_BASE
	.comm	_DMA_TDFDQ,8,3                  ; @DMA_TDFDQ
	.no_dead_strip	_init_cppi41
.subsections_via_symbols
