	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coda_s_fmt_vid_out
_coda_s_fmt_vid_out:                    ## @coda_s_fmt_vid_out
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_coda_try_fmt_vid_out
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_coda_s_fmt
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movups	12(%r15), %xmm0
	movups	%xmm0, 32(%rbx)
	movq	(%rbx), %rax
	movq	_CODA_INST_DECODER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	24(%rbx), %rdi
	movl	8(%r15), %esi
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_coda_find_codec
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, 16(%rbx)
	movl	8(%rbx), %edi
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_v4l2_m2m_get_vq
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rdi
	callq	_vb2_is_busy
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_coda_g_fmt
	movl	4(%r15), %eax
	movl	%eax, -68(%rbp)
	movl	(%r15), %eax
	movl	%eax, -72(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_coda_s_fmt_vid_cap
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CODA_INST_DECODER,8,3          ## @CODA_INST_DECODER
	.comm	_V4L2_PIX_FMT_YUV420,4,2        ## @V4L2_PIX_FMT_YUV420
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to determine codec\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.no_dead_strip	_coda_s_fmt_vid_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coda_s_fmt_vid_out
_coda_s_fmt_vid_out:                    ; @coda_s_fmt_vid_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_fh_to_ctx
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_coda_try_fmt_vid_out
	cbnz	w0, LBB0_10
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	mov	x2, #0
	bl	_coda_s_fmt
	cbnz	w0, LBB0_10
; %bb.2:
	ldur	q0, [x21, #12]
	str	q0, [x22, #32]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _CODA_INST_DECODER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CODA_INST_DECODER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x22, #24]
	ldr	w1, [x21, #8]
Lloh3:
	adrp	x8, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_coda_find_codec
	cbz	x0, LBB0_7
; %bb.4:
	str	x0, [x22, #16]
	ldr	w0, [x22, #8]
Lloh6:
	adrp	x22, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_v4l2_m2m_get_vq
	cbz	x0, LBB0_8
; %bb.5:
	bl	_vb2_is_busy
	cbz	x0, LBB0_9
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	ldr	x0, [x22, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x22]
	str	w8, [sp, #28]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_coda_g_fmt
	ldr	d0, [x21]
	str	d0, [sp]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_coda_s_fmt_vid_cap
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CODA_INST_DECODER,8,3          ; @CODA_INST_DECODER
	.comm	_V4L2_PIX_FMT_YUV420,4,2        ; @V4L2_PIX_FMT_YUV420
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to determine codec\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.no_dead_strip	_coda_s_fmt_vid_out
.subsections_via_symbols
