	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25821_vidioc_try_fmt_vid_out
_cx25821_vidioc_try_fmt_vid_out:        ## @cx25821_vidioc_try_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	(%rax), %r14
	movl	24(%rbx), %edi
	callq	_cx25821_format_by_fourcc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$720, (%rbx)                    ## imm = 0x2D0
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	movl	$480, %ecx                      ## imm = 0x1E0
	movl	$576, %edx                      ## imm = 0x240
	cmovel	%ecx, %edx
	movl	%edx, 4(%rbx)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	imull	$720, (%rax), %eax              ## imm = 0x2D0
	sarl	$3, %eax
	movl	%eax, 8(%rbx)
	imull	%edx, %eax
	movl	%eax, 12(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_cx25821_vidioc_try_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 cx25821_vidioc_try_fmt_vid_out
_cx25821_vidioc_try_fmt_vid_out:        ; @cx25821_vidioc_try_fmt_vid_out
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_video_drvdata
	ldr	x20, [x0]
	ldr	w0, [x19, #24]
	bl	_cx25821_format_by_fourcc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #720
	str	w9, [x19]
	ldr	w10, [x20]
Lloh0:
	adrp	x11, _V4L2_STD_625_50@GOTPAGE
Lloh1:
	ldr	x11, [x11, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	mov	w10, #576
	mov	w11, #480
	csel	w10, w11, w10, eq
Lloh3:
	adrp	x11, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh4:
	ldr	x11, [x11, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	str	w11, [x19, #20]
	ldr	w8, [x8]
	mul	w8, w8, w9
	asr	w8, w8, #3
	stp	w10, w8, [x19, #4]
	mul	w8, w8, w10
Lloh6:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #12]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_cx25821_vidioc_try_fmt_vid_out
.subsections_via_symbols
