	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cio2_vb2_queue_setup
_cio2_vb2_queue_setup:                  ## @cio2_vb2_queue_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_vb2_get_drv_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_vb2q_to_cio2_queue
	movq	%rax, %r12
	movl	40(%rax), %eax
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, (%r13,%rax,4)
	movq	(%r14), %rcx
	movq	%rcx, (%rbx,%rax,8)
	incq	%rax
	movl	(%r15), %ecx
	cmpq	%rcx, %rax
	jb	LBB0_2
LBB0_3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	_CIO2_MAX_BUFFERS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$1, %esi
	callq	_clamp_val
	movl	%eax, (%rbx)
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_CIO2_MAX_LOPS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movl	(%r13), %esi
	imull	%ebx, %esi
	shlq	$2, %rsi
	addq	24(%r12), %rsi
	movq	%r14, %rdi
	callq	_cio2_fbpt_entry_init_dummy
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	addq	$16, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIO2_MAX_BUFFERS,4,2           ## @CIO2_MAX_BUFFERS
	.comm	_CIO2_MAX_LOPS,4,2              ## @CIO2_MAX_LOPS
	.no_dead_strip	_cio2_vb2_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cio2_vb2_queue_setup
_cio2_vb2_queue_setup:                  ; @cio2_vb2_queue_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	bl	_vb2_get_drv_priv
	mov	x20, x0
	mov	x0, x19
	bl	_vb2q_to_cio2_queue
	mov	x19, x0
	ldr	w8, [x0, #40]
	str	w8, [x24]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #48]
	lsl	x10, x8, #2
	ldr	w9, [x9, x10]
	str	w9, [x23, x10]
	ldr	x9, [x20]
	str	x9, [x22, x8, lsl #3]
	add	x8, x8, #1
	ldr	w9, [x24]
	cmp	x8, x9
	b.lo	LBB0_2
LBB0_3:
	ldr	w0, [x21]
Lloh0:
	adrp	x22, _CIO2_MAX_BUFFERS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CIO2_MAX_BUFFERS@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #1
	bl	_clamp_val
	str	w0, [x21]
	ldr	w8, [x22]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x21, #0
Lloh2:
	adrp	x23, _CIO2_MAX_LOPS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CIO2_MAX_LOPS@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	str	xzr, [x8, x21, lsl #3]
	ldr	x8, [x19, #24]
	ldr	w9, [x23]
	mul	w9, w9, w21
	add	x1, x8, w9, uxtw #2
	mov	x0, x20
	bl	_cio2_fbpt_entry_init_dummy
	add	x21, x21, #1
	ldr	w8, [x22]
	cmp	x21, x8
	b.lo	LBB0_5
LBB0_6:
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_set
	stp	xzr, xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CIO2_MAX_BUFFERS,4,2           ; @CIO2_MAX_BUFFERS
	.comm	_CIO2_MAX_LOPS,4,2              ; @CIO2_MAX_LOPS
	.no_dead_strip	_cio2_vb2_queue_setup
.subsections_via_symbols
