	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilo_ccb_setup
_ilo_ccb_setup:                         ## @ilo_ccb_setup
	.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
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_NR_QENTRY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_fifo_sz
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_desc_mem_sz
	addq	%rax, %rbx
	addq	%rbx, %rbx
	movq	_ILO_START_ALIGN@GOTPCREL(%rip), %r12
	addq	(%r12), %rbx
	movq	_ILO_CACHE_SZ@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, 8(%r15)
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	24(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	104(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r14
	movq	8(%r15), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_roundup
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r13
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_roundup
	movq	%rax, %r14
	movq	_NR_QENTRY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_L2_QENTRY_SZ@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ctrl_setup
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ctrl_setup
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_fifo_setup
	movq	_FIFOHANDLESIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leal	(%r14,%rax), %ecx
	addq	%r13, %rax
	movq	%rax, 168(%r15)
	movl	%ecx, 96(%r15)
	movl	(%rbx), %edi
	callq	_fifo_sz
	addq	%rax, %r13
	movl	(%rbx), %edi
	callq	_fifo_sz
	addq	%rax, %r14
	movq	_ILO_CACHE_SZ@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_roundup
	movq	%rax, %r12
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_roundup
	movq	%rax, %r14
	movq	_NR_QENTRY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_fifo_setup
	movq	_FIFOHANDLESIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leal	(%r14,%rax), %ecx
	addq	%r12, %rax
	movq	%rax, 152(%r15)
	movl	%ecx, 80(%r15)
	movl	(%rbx), %edi
	callq	_fifo_sz
	movq	%rax, %r13
	addq	%r12, %r13
	movl	(%rbx), %edi
	movq	%rbx, %r12
	callq	_fifo_sz
	movq	%rax, %rbx
	addq	%r14, %rbx
	movq	%r13, 136(%r15)
	movq	%rbx, 64(%r15)
	movl	(%r12), %edi
	callq	_desc_mem_sz
	movq	%rax, %r14
	addq	%rbx, %r14
	movl	(%r12), %edi
	callq	_desc_mem_sz
	addq	%r13, %rax
	movq	%rax, 120(%r15)
	movq	%r14, 48(%r15)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 104(%r15)
	movl	%edx, 24(%r15)
	movq	_L2_DB_SIZE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	xorl	%eax, %eax
	movslq	%edx, %rcx
	shlq	$2, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addq	(%rdx), %rcx
	movq	%rcx, 112(%r15)
	movq	$0, 32(%r15)
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_QENTRY,4,2                  ## @NR_QENTRY
	.comm	_ILO_START_ALIGN,8,3            ## @ILO_START_ALIGN
	.comm	_ILO_CACHE_SZ,8,3               ## @ILO_CACHE_SZ
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_L2_QENTRY_SZ,4,2               ## @L2_QENTRY_SZ
	.comm	_FIFOHANDLESIZE,4,2             ## @FIFOHANDLESIZE
	.comm	_L2_DB_SIZE,4,2                 ## @L2_DB_SIZE
	.no_dead_strip	_ilo_ccb_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilo_ccb_setup
_ilo_ccb_setup:                         ; @ilo_ccb_setup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x26, _NR_QENTRY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NR_QENTRY@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_fifo_sz
	mov	x22, x0
	ldr	w0, [x26]
	bl	_desc_mem_sz
	add	x8, x0, x22
Lloh2:
	adrp	x28, _ILO_START_ALIGN@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ILO_START_ALIGN@GOTPAGEOFF]
	ldr	x9, [x28]
	add	x8, x9, x8, lsl #1
Lloh4:
	adrp	x27, _ILO_CACHE_SZ@GOTPAGE
Lloh5:
	ldr	x27, [x27, _ILO_CACHE_SZ@GOTPAGEOFF]
	ldr	x9, [x27]
	add	x1, x8, x9
	str	x1, [x19, #8]
	ldr	w0, [x21, #8]
	mov	x2, x19
	bl	_pci_alloc_consistent
	str	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	add	x23, x19, #24
	add	x24, x19, #104
	ldp	x25, x2, [x19]
	mov	w1, #0
	bl	_memset
	ldr	x1, [x28]
	mov	x0, x22
	bl	_roundup
	mov	x22, x0
	ldr	x1, [x28]
	mov	x0, x25
	bl	_roundup
	mov	x25, x0
	ldr	w1, [x26]
Lloh6:
	adrp	x28, _L2_QENTRY_SZ@GOTPAGE
Lloh7:
	ldr	x28, [x28, _L2_QENTRY_SZ@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x0, x24
	bl	_ctrl_setup
	ldr	w1, [x26]
	ldr	w2, [x28]
	mov	x0, x23
	bl	_ctrl_setup
	ldr	w1, [x26]
	mov	x0, x22
	bl	_fifo_setup
Lloh8:
	adrp	x24, _FIFOHANDLESIZE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _FIFOHANDLESIZE@GOTPAGEOFF]
	ldrsw	x8, [x24]
	add	x9, x22, x8
	str	x9, [x19, #168]
	add	w8, w8, w25
	str	w8, [x19, #96]
	ldr	w0, [x26]
	bl	_fifo_sz
	add	x22, x22, x0
	ldr	w0, [x26]
	bl	_fifo_sz
	add	x23, x0, x25
	ldr	x1, [x27]
	mov	x0, x22
	bl	_roundup
	mov	x22, x0
	ldr	x1, [x27]
	mov	x0, x23
	bl	_roundup
	mov	x23, x0
	ldr	w1, [x26]
	mov	x0, x22
	bl	_fifo_setup
	ldrsw	x8, [x24]
	add	x9, x22, x8
	str	x9, [x19, #152]
	add	w8, w8, w23
	str	w8, [x19, #80]
	ldr	w0, [x26]
	bl	_fifo_sz
	add	x22, x22, x0
	ldr	w0, [x26]
	bl	_fifo_sz
	add	x23, x0, x23
	str	x22, [x19, #136]
	str	x23, [x19, #64]
	ldr	w0, [x26]
	bl	_desc_mem_sz
	add	x23, x0, x23
	ldr	w0, [x26]
	bl	_desc_mem_sz
	mov	x8, x0
	mov	w0, #0
	add	x8, x22, x8
	str	x23, [x19, #48]
	str	w20, [x19, #104]
	str	w20, [x19, #24]
	ldr	x9, [x21]
Lloh10:
	adrp	x10, _L2_DB_SIZE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _L2_DB_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	lsl	w10, w20, w10
	add	x9, x9, w10, sxtw #2
	stp	x9, x8, [x19, #112]
	str	xzr, [x19, #32]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_QENTRY,4,2                  ; @NR_QENTRY
	.comm	_ILO_START_ALIGN,8,3            ; @ILO_START_ALIGN
	.comm	_ILO_CACHE_SZ,8,3               ; @ILO_CACHE_SZ
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_L2_QENTRY_SZ,4,2               ; @L2_QENTRY_SZ
	.comm	_FIFOHANDLESIZE,4,2             ; @FIFOHANDLESIZE
	.comm	_L2_DB_SIZE,4,2                 ; @L2_DB_SIZE
	.no_dead_strip	_ilo_ccb_setup
.subsections_via_symbols
