	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt_vid_cap
_vidioc_try_fmt_vid_cap:                ## @vidioc_try_fmt_vid_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	_V4L2_PIX_FMT_UYVY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rdx
	movl	(%rax), %eax
	testl	%eax, (%rdx)
	movl	$288, %edx                      ## imm = 0x120
	movl	$240, %eax
	cmovel	%edx, %eax
	movl	8(%rbx), %edx
	cmpl	$128, %edx
	je	LBB0_9
## %bb.3:
	cmpl	$130, %edx
	je	LBB0_9
## %bb.4:
	cmpl	$129, %edx
	jne	LBB0_6
## %bb.5:
	movl	12(%rbx), %edx
	jmp	LBB0_10
LBB0_1:
	addq	$4, %rax
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_v4l2_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_9:
	movl	12(%rbx), %edx
	cmpl	%edx, %eax
	cmovll	%eax, %edx
LBB0_10:
	movq	%rcx, (%rbx)
	andl	$-2, %edx
	addl	%eax, %eax
	cmpl	%edx, %eax
	cmovgel	%edx, %eax
	cmpl	$201, %eax
	movl	$200, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, 12(%rbx)
	movabsq	$6184752906960, %rax            ## imm = 0x5A0000002D0
	movq	%rax, 16(%rbx)
	imull	$1440, %ecx, %eax               ## imm = 0x5A0
	movl	%eax, 24(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movl	12(%rbx), %edx
	cmpl	%edx, %eax
	jge	LBB0_8
## %bb.7:
	movl	$129, 8(%rbx)
	jmp	LBB0_10
LBB0_8:
	movl	$130, 8(%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_UYVY,8,3          ## @V4L2_PIX_FMT_UYVY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid format, only UYVY supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vidioc_try_fmt_vid_cap
lCPI0_0:
	.long	720                             ; 0x2d0
	.long	1440                            ; 0x5a0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vidioc_try_fmt_vid_cap:                ; @vidioc_try_fmt_vid_cap
	.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
Lloh0:
	adrp	x8, _V4L2_PIX_FMT_UYVY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_PIX_FMT_UYVY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x0]
	tst	w10, w9
	mov	w9, #240
	mov	w10, #288
	csel	w9, w10, w9, eq
	ldr	w10, [x19, #8]
	cmp	w10, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w10, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w10, #129
	b.ne	LBB0_9
; %bb.4:
	ldr	w10, [x19, #12]
	b	LBB0_7
LBB0_5:
	add	x0, x0, #4
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_warn
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	ldr	w10, [x19, #12]
	cmp	w9, w10
	csel	w10, w9, w10, lt
LBB0_7:
	mov	w0, #0
	str	x8, [x19]
	and	w8, w10, #0xfffffffe
	lsl	w9, w9, #1
	cmp	w9, w8
	csel	w8, w9, w8, lt
	mov	w9, #200
	cmp	w8, #200
	csel	w8, w8, w9, gt
	str	w8, [x19, #12]
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x19, #16]
	mov	w9, #1440
	mul	w8, w8, w9
Lloh13:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #24]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w10, [x19, #12]
	cmp	w9, w10
	b.ge	LBB0_11
; %bb.10:
	mov	w11, #129
	str	w11, [x19, #8]
	b	LBB0_7
LBB0_11:
	mov	w11, #130
	str	w11, [x19, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdr	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_UYVY,8,3          ; @V4L2_PIX_FMT_UYVY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid format, only UYVY supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols
