	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_descs
_init_descs:                            ## @init_descs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_BUILD_BUG_ON
	movl	$1, %edi
	callq	_BUILD_BUG_ON
	movq	_ALLOC_DECS_NUM@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	$32, (%rbx)
	setl	%dil
	callq	_BUILD_BUG_ON
	movq	_DESCS_AREAS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movl	(%rbx), %ecx
	shll	$2, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	_QMGR_MEMCTRL_IDX_SH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	$4, %edi
	movq	%rax, %r13
	callq	_ilog2
	movl	%eax, %r14d
	movq	_QMGR_MEMCTRL_DESC_SH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	callq	_ilog2
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$1, (%r13)
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	callq	_dma_alloc_coherent
	movl	%eax, 16(%r12)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	addl	$-5, %r14d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	orl	%eax, %r14d
	addl	$-5, %r15d
	orl	%r14d, %r15d
	movl	(%r12), %r14d
	movq	8(%r12), %rbx
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_QMGR_MEMBASE
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_cppi_writel
	movq	8(%r12), %rbx
	movl	%r13d, %edi
	callq	_QMGR_MEMCTRL
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_cppi_writel
	movq	_ALLOC_DECS_NUM@GOTPCREL(%rip), %rbx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	incl	%r13d
	movq	_DESCS_AREAS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_2
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALLOC_DECS_NUM,4,2             ## @ALLOC_DECS_NUM
	.comm	_DESCS_AREAS,4,2                ## @DESCS_AREAS
	.comm	_QMGR_MEMCTRL_IDX_SH,4,2        ## @QMGR_MEMCTRL_IDX_SH
	.comm	_QMGR_MEMCTRL_DESC_SH,4,2       ## @QMGR_MEMCTRL_DESC_SH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_init_descs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_descs
_init_descs:                            ; @init_descs
	.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	x19, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	w0, #0
	bl	_BUILD_BUG_ON
	mov	w0, #1
	bl	_BUILD_BUG_ON
Lloh0:
	adrp	x25, _ALLOC_DECS_NUM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ALLOC_DECS_NUM@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #32
	cset	w0, lt
	bl	_BUILD_BUG_ON
Lloh2:
	adrp	x26, _DESCS_AREAS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DESCS_AREAS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w27, #0
	mov	w21, #0
	ldr	w8, [x25]
	lsl	w22, w8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh4:
	adrp	x8, _QMGR_MEMCTRL_IDX_SH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QMGR_MEMCTRL_IDX_SH@GOTPAGEOFF]
Lloh6:
	ldr	w28, [x8]
	mov	w0, #4
	bl	_ilog2
	mov	x23, x0
Lloh7:
	adrp	x8, _QMGR_MEMCTRL_DESC_SH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QMGR_MEMCTRL_DESC_SH@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	ldr	w0, [x25]
	bl	_ilog2
	mov	x24, x0
	ldr	w8, [x26]
	cmp	w8, #1
	cset	w0, ne
	bl	_BUILD_BUG_ON
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x22
	mov	x2, x19
	bl	_dma_alloc_coherent
	str	w0, [x19, #16]
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w8, w27, w28
	sub	w9, w23, #5
	lsl	w9, w9, w20
	orr	w8, w9, w8
	sub	w9, w24, #5
	orr	w23, w8, w9
	ldr	w24, [x19]
	ldr	x20, [x19, #8]
	mov	x0, x21
	bl	_QMGR_MEMBASE
	add	x1, x0, x20
	mov	x0, x24
	bl	_cppi_writel
	ldr	x20, [x19, #8]
	mov	x0, x21
	bl	_QMGR_MEMCTRL
	add	x1, x0, x20
	mov	x0, x23
	bl	_cppi_writel
	ldr	w8, [x25]
	add	w27, w8, w27
	add	w21, w21, #1
	ldr	w8, [x26]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ALLOC_DECS_NUM,4,2             ; @ALLOC_DECS_NUM
	.comm	_DESCS_AREAS,4,2                ; @DESCS_AREAS
	.comm	_QMGR_MEMCTRL_IDX_SH,4,2        ; @QMGR_MEMCTRL_IDX_SH
	.comm	_QMGR_MEMCTRL_DESC_SH,4,2       ; @QMGR_MEMCTRL_DESC_SH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_init_descs
.subsections_via_symbols
