	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delta_s_fmt_frame
_delta_s_fmt_frame:                     ## @delta_s_fmt_frame
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -232(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_to_ctx
	movq	%rax, %rbx
	movq	72(%rax), %r12
	movq	80(%rax), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movl	$0, -64(%rbp)
	movl	68(%rax), %edi
	movl	(%r14), %esi
	callq	_v4l2_m2m_get_vq
	movq	%rax, %rdi
	callq	_vb2_is_streaming
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r15d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-232(%rbp), %rsi                ## 8-byte Reload
	movq	%r15, -216(%rbp)                ## 8-byte Spill
	movq	%r12, -224(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_DELTA_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.3:
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_delta_try_fmt_frame
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	-216(%rbp), %rax                ## 8-byte Reload
	je	LBB0_4
## %bb.5:
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	addq	$32, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_9
LBB0_6:
	leaq	-208(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	32(%r14), %rax
	movq	%rax, -176(%rbp)
	movl	40(%r14), %eax
	movl	%eax, -164(%rbp)
	movl	48(%r14), %ecx
	movl	%ecx, -168(%rbp)
	movl	%eax, -180(%rbp)
	movl	%ecx, -184(%rbp)
	movl	28(%r14), %eax
	movl	%eax, -188(%rbp)
	movl	24(%r14), %eax
	movl	%eax, -192(%rbp)
	movups	8(%r14), %xmm0
	movaps	%xmm0, -208(%rbp)
	movq	_set_frameinfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-224(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_call_dec_op
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	-216(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_9
## %bb.7:
	movq	_get_frameinfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-208(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_call_dec_op
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_DELTA_FLAG_FRAMEINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 64(%rbx)
	movaps	-208(%rbp), %xmm0
	movaps	-192(%rbp), %xmm1
	movaps	-176(%rbp), %xmm2
	movups	%xmm0, 16(%rbx)
	movups	%xmm1, 32(%rbx)
	movups	%xmm2, 48(%rbx)
	movl	(%r12), %r12d
	movl	8(%rbx), %ebx
	leaq	-208(%rbp), %rdi
	leaq	-160(%rbp), %rsi
	movl	$100, %edx
	callq	_delta_frameinfo_str
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r12d, %edi
	movl	%ebx, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-176(%rbp), %rsi
	movq	%rsi, 32(%r14)
	movl	-180(%rbp), %edi
	movl	%edi, 40(%r14)
	movl	-184(%rbp), %eax
	movl	%eax, 48(%r14)
	callq	_frame_stride
	movl	%eax, 44(%r14)
	movl	-188(%rbp), %eax
	movl	%eax, 28(%r14)
	movl	-192(%rbp), %eax
	movl	%eax, 24(%r14)
	movaps	-208(%rbp), %xmm0
	movups	%xmm0, 8(%r14)
	jmp	LBB0_9
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s V4L2 S_FMT (CAPTURE): queue busy\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_DELTA_STATE_READY,8,3          ## @DELTA_STATE_READY
L_.str.1:                               ## @.str.1
	.asciz	"%s V4L2 S_FMT (CAPTURE): unsupported format %4.4s\n"

	.comm	_set_frameinfo,4,2              ## @set_frameinfo
	.comm	_get_frameinfo,4,2              ## @get_frameinfo
	.comm	_DELTA_FLAG_FRAMEINFO,4,2       ## @DELTA_FLAG_FRAMEINFO
L_.str.2:                               ## @.str.2
	.asciz	"%s V4L2 SET_FMT (CAPTURE): frameinfo updated to %s\n"

	.no_dead_strip	_delta_s_fmt_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delta_s_fmt_frame
_delta_s_fmt_frame:                     ; @delta_s_fmt_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w0, [x0]
	bl	_to_ctx
	mov	x20, x0
	ldp	x21, x24, [x0, #72]
	str	wzr, [sp, #160]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #128]
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #64]
	ldr	w0, [x0, #68]
	ldr	w1, [x19]
	bl	_v4l2_m2m_get_vq
	bl	_vb2_is_streaming
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x24]
	ldr	w2, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_2:
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x22
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_4:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _DELTA_STATE_READY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DELTA_STATE_READY@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.5:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_delta_try_fmt_frame
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.6:
	ldr	w0, [x24]
	ldr	w2, [x20, #8]
	add	x8, x19, #32
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	b	LBB0_2
LBB0_7:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x19, #32]
	str	x8, [sp, #48]
	ldr	w8, [x19, #40]
	ldr	w9, [x19, #48]
	stp	w9, w8, [sp, #56]
	stp	w9, w8, [sp, #40]
	ldr	d0, [x19, #24]
	str	d0, [sp, #32]
	ldur	q0, [x19, #8]
	str	q0, [sp, #16]
Lloh16:
	adrp	x8, _set_frameinfo@GOTPAGE
Lloh17:
	ldr	x8, [x8, _set_frameinfo@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	x0, x21
	mov	x2, x20
	bl	_call_dec_op
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.8:
Lloh19:
	adrp	x8, _get_frameinfo@GOTPAGE
Lloh20:
	ldr	x8, [x8, _get_frameinfo@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	x0, x21
	mov	x2, x20
	bl	_call_dec_op
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.9:
Lloh22:
	adrp	x8, _DELTA_FLAG_FRAMEINFO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DELTA_FLAG_FRAMEINFO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x20, #64]
	orr	w8, w9, w8
	str	w8, [x20, #64]
	ldp	q1, q0, [sp, #32]
	ldr	q2, [sp, #16]
	stp	q2, q1, [x20, #16]
	str	q0, [x20, #48]
	ldr	w21, [x24]
	ldr	w20, [x20, #8]
	add	x0, sp, #16
	add	x1, sp, #64
	mov	w2, #100
	bl	_delta_frameinfo_str
	str	x0, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_dbg
	ldr	x1, [sp, #48]
	str	x1, [x19, #32]
	ldp	w8, w0, [sp, #40]
	str	w0, [x19, #40]
	str	w8, [x19, #48]
	bl	_frame_stride
	str	w0, [x19, #44]
	ldr	d0, [sp, #32]
	str	d0, [x19, #24]
	ldr	q0, [sp, #16]
	stur	q0, [x19, #8]
	b	LBB0_2
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s V4L2 S_FMT (CAPTURE): queue busy\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_DELTA_STATE_READY,8,3          ; @DELTA_STATE_READY
l_.str.1:                               ; @.str.1
	.asciz	"%s V4L2 S_FMT (CAPTURE): unsupported format %4.4s\n"

	.comm	_set_frameinfo,4,2              ; @set_frameinfo
	.comm	_get_frameinfo,4,2              ; @get_frameinfo
	.comm	_DELTA_FLAG_FRAMEINFO,4,2       ; @DELTA_FLAG_FRAMEINFO
l_.str.2:                               ; @.str.2
	.asciz	"%s V4L2 SET_FMT (CAPTURE): frameinfo updated to %s\n"

	.no_dead_strip	_delta_s_fmt_frame
.subsections_via_symbols
