	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_setup
_queue_setup:                           ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_vb2_get_drv_priv
	movl	(%rbx), %edx
	movq	_MIN_FRAMES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %edx
	jb	LBB0_2
## %bb.1:
	movq	_MAX_FRAMES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %edx
	jbe	LBB0_3
LBB0_2:
	movl	%ecx, (%rbx)
LBB0_3:
	movl	$1, (%r15)
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAX_HEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_pwc_get_size
	movq	_pwc_image_sizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	imull	4(%rax), %ecx
	leal	(%rcx,%rcx,2), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_PAGE_ALIGN
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_FRAMES,4,2                 ## @MIN_FRAMES
	.comm	_MAX_FRAMES,4,2                 ## @MAX_FRAMES
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_MAX_HEIGHT,4,2                 ## @MAX_HEIGHT
	.comm	_pwc_image_sizes,8,3            ## @pwc_image_sizes
	.no_dead_strip	_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_setup
_queue_setup:                           ; @queue_setup
	.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, x3
	mov	x20, x2
	mov	x21, x1
	bl	_vb2_get_drv_priv
	ldr	w9, [x21]
Lloh0:
	adrp	x8, _MIN_FRAMES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_FRAMES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, w8
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MAX_FRAMES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_FRAMES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ls	LBB0_3
LBB0_2:
	str	w8, [x21]
LBB0_3:
	mov	w8, #1
	str	w8, [x20]
Lloh6:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MAX_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_pwc_get_size
Lloh12:
	adrp	x8, _pwc_image_sizes@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pwc_image_sizes@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldp	w9, w8, [x8]
	mul	w8, w9, w8
	add	w8, w8, w8, lsl #1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	bl	_PAGE_ALIGN
	str	w0, [x19]
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_FRAMES,4,2                 ; @MIN_FRAMES
	.comm	_MAX_FRAMES,4,2                 ; @MAX_FRAMES
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_MAX_HEIGHT,4,2                 ; @MAX_HEIGHT
	.comm	_pwc_image_sizes,8,3            ; @pwc_image_sizes
	.no_dead_strip	_queue_setup
.subsections_via_symbols
