	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_dl_cmd_pool_create
_vsp1_dl_cmd_pool_create:               ## @vsp1_dl_cmd_pool_create
	.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, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	leaq	80(%rax), %rdi
	callq	_spin_lock_init
	leaq	12(%rbx), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movl	(%r13), %edx
	movl	%r12d, %edi
	movl	$88, %esi
	callq	_kcalloc
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	_vsp1_extended_commands@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movslq	(%rax,%rcx,8), %rdi
	addq	$4, %rdi
	movl	$16, %esi
	callq	_ALIGN
	movq	%r14, %rcx
	movl	%r12d, %r14d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	imulq	%r14, %rsi
	movq	%rsi, (%rbx)
	movl	(%rcx), %edi
	movq	%rbx, %rdx
	addq	$16, %rdx
	movl	(%r13), %ecx
	callq	_dma_alloc_wc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.4:
	imulq	$88, -48(%rbp), %rcx            ## 8-byte Folded Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	imulq	$88, %r14, %r14
	movl	$352, %r12d                     ## imm = 0x160
	movl	$4, %r15d
	movl	$88, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%rbx), %rcx
	movq	%rbx, -16(%rcx,%r13)
	movq	_vsp1_extended_commands@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	4(%rdx,%rsi,8), %edx
	movl	%edx, -24(%rcx,%r13)
	movl	$1, -80(%rcx,%r13)
	leaq	(%rax,%r12), %rdx
	addq	$-352, %rdx                     ## imm = 0xFEA0
	addq	%r12, %rax
	movq	%rdx, -32(%rcx,%r13)
	movq	16(%rbx), %rdx
	leaq	(%r15,%rdx), %rsi
	addq	%r15, %rdx
	addq	$-4, %rdx
	movq	%rdx, -40(%rcx,%r13)
	movq	%rax, -48(%rcx,%r13)
	movq	%rsi, -64(%rcx,%r13)
	leaq	(%rcx,%r13), %rdi
	addq	$-76, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	cmpq	%r13, %r14
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rax
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	addq	$88, %r13
	jmp	LBB0_5
LBB0_7:
	movq	56(%rbx), %rdi
	callq	_kfree
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_vsp1_extended_commands,8,3     ## @vsp1_extended_commands
	.no_dead_strip	_vsp1_dl_cmd_pool_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_dl_cmd_pool_create
_vsp1_dl_cmd_pool_create:               ; @vsp1_dl_cmd_pool_create
	.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	x22, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w0, #88
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	add	x0, x19, #80
	bl	_spin_lock_init
	add	x20, x19, #12
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	ldr	w2, [x26]
	mov	x0, x22
	mov	w1, #88
	bl	_kcalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _vsp1_extended_commands@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vsp1_extended_commands@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	w25, w21
	lsl	x9, x25, #3
	ldrsw	x8, [x8, x9]
	add	x0, x8, #4
	mov	w1, #16
	bl	_ALIGN
	mov	x21, x0
	mov	w24, w22
	mul	x1, x0, x24
	str	x1, [x19]
	ldr	w0, [x23]
	add	x2, x19, #16
	ldr	w3, [x26]
	bl	_dma_alloc_wc
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.3:
	cbz	w22, LBB0_9
; %bb.4:
	mov	x22, #0
	mov	w8, #88
	mul	x23, x21, x8
	mul	x8, x24, x8
	sub	x26, x8, #88
	mov	w27, #352
	mov	w28, #4
	mov	w24, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x8, x8, x22
	str	x19, [x8, #72]
Lloh5:
	adrp	x9, _vsp1_extended_commands@GOTPAGE
Lloh6:
	ldr	x9, [x9, _vsp1_extended_commands@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x9, x9, x25, lsl #3
	ldr	w9, [x9, #4]
	str	w9, [x8, #64]
	str	w24, [x8, #8]
	add	x9, x0, x27
	sub	x10, x9, #352
	str	x10, [x8, #56]
	ldr	x10, [x19, #16]
	add	x10, x28, x10
	sub	x11, x10, #4
	stp	x9, x11, [x8, #40]
	str	x10, [x8, #24]
	add	x0, x8, #12
	mov	x1, x20
	bl	_list_add_tail
	cmp	x26, x22
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #32]
	add	x27, x27, x23
	add	x28, x28, x21
	add	x22, x22, #88
	b	LBB0_5
LBB0_7:
	ldr	x0, [x19, #56]
	bl	_kfree
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_vsp1_extended_commands,8,3     ; @vsp1_extended_commands
	.no_dead_strip	_vsp1_dl_cmd_pool_create
.subsections_via_symbols
