	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delta_vb2_frame_queue_setup
_delta_vb2_frame_queue_setup:           ## @delta_vb2_frame_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movq	24(%rax), %r14
	movl	12(%rax), %esi
	movl	(%r12), %ecx
	movq	_DELTA_MIN_FRAME_USER@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	cmpl	%r8d, %ecx
	jae	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movl	8(%rbx), %edx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	%r15d, %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r13), %ecx
LBB0_2:
	movq	_DELTA_PEAK_FRAME_SMOOTHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	16(%rbx), %eax
	addl	%ecx, %eax
	movl	%eax, (%r12)
	movq	_DELTA_MAX_FRAMES@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	cmpl	%r8d, %eax
	jbe	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movl	8(%rbx), %edx
	movl	%esi, %r14d
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_dbg
	movl	%r14d, %esi
	movl	(%r13), %eax
	movl	%eax, (%r12)
LBB0_4:
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%esi, (%rcx)
	cmovael	%edx, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$1, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, (%rax)
	movq	$0, (%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DELTA_MIN_FRAME_USER,4,2       ## @DELTA_MIN_FRAME_USER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s num_buffers too low (%d), increasing to %d\n"

	.comm	_DELTA_PEAK_FRAME_SMOOTHING,8,3 ## @DELTA_PEAK_FRAME_SMOOTHING
	.comm	_DELTA_MAX_FRAMES,4,2           ## @DELTA_MAX_FRAMES
L_.str.1:                               ## @.str.1
	.asciz	"%s output frame count too high (%d), cut to %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_delta_vb2_frame_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delta_vb2_frame_queue_setup
_delta_vb2_frame_queue_setup:           ; @delta_vb2_frame_queue_setup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	bl	_vb2_get_drv_priv
	mov	x21, x0
	ldr	x24, [x0, #24]
	ldr	w23, [x0, #12]
	ldr	w3, [x22]
Lloh0:
	adrp	x25, _DELTA_MIN_FRAME_USER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DELTA_MIN_FRAME_USER@GOTPAGEOFF]
	ldr	w4, [x25]
	cmp	w3, w4
	b.hs	LBB0_2
; %bb.1:
	ldr	w0, [x24]
	ldr	w2, [x21, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w3, [x25]
LBB0_2:
	ldr	w8, [x21, #16]
Lloh4:
	adrp	x9, _DELTA_PEAK_FRAME_SMOOTHING@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DELTA_PEAK_FRAME_SMOOTHING@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	add	w8, w9, w8
	add	w3, w3, w8
	str	w3, [x22]
Lloh7:
	adrp	x25, _DELTA_MAX_FRAMES@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DELTA_MAX_FRAMES@GOTPAGEOFF]
	ldr	w4, [x25]
	cmp	w3, w4
	b.ls	LBB0_4
; %bb.3:
	ldr	w0, [x24]
	ldr	w2, [x21, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x25]
	str	w8, [x22]
LBB0_4:
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _EINVAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w23
	csneg	w0, wzr, w9, hs
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x20]
	str	w23, [x19]
	str	xzr, [x21]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DELTA_MIN_FRAME_USER,4,2       ; @DELTA_MIN_FRAME_USER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s num_buffers too low (%d), increasing to %d\n"

	.comm	_DELTA_PEAK_FRAME_SMOOTHING,8,3 ; @DELTA_PEAK_FRAME_SMOOTHING
	.comm	_DELTA_MAX_FRAMES,4,2           ; @DELTA_MAX_FRAMES
l_.str.1:                               ; @.str.1
	.asciz	"%s output frame count too high (%d), cut to %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_delta_vb2_frame_queue_setup
.subsections_via_symbols
