	.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
	movq	(%rdx), %rax
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_V4L2_PIX_FMT_MJPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	8(%rdx), %rcx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rsi
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rsi), %rcx
	je	LBB0_5
## %bb.4:
	cmpq	%rax, %rcx
	je	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	%rax, 8(%rdx)
	cmpl	$321, 16(%rdx)                  ## imm = 0x141
	movl	$320, %eax                      ## imm = 0x140
	movl	$640, %ecx                      ## imm = 0x280
	cmovll	%eax, %ecx
	movl	$240, %eax
	movl	$480, %esi                      ## imm = 0x1E0
	cmovll	%eax, %esi
	movl	%ecx, 16(%rdx)
	movl	%esi, 20(%rdx)
	addl	%ecx, %ecx
	movl	%ecx, 24(%rdx)
	imull	%esi, %ecx
	movl	%ecx, 28(%rdx)
	movq	$0, 32(%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ## @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_PIX_FMT_MJPEG,8,3         ## @V4L2_PIX_FMT_MJPEG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_ANY,8,3             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.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
	.p2align	2                               ; -- Begin function vidioc_try_fmt_vid_cap
_vidioc_try_fmt_vid_cap:                ; @vidioc_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_PIX_FMT_MJPEG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_PIX_FMT_MJPEG@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x2, #8]
Lloh6:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
Lloh9:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x9, x10
	ccmp	x9, x8, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	str	x8, [x2, #8]
	ldr	w8, [x2, #16]
	mov	w9, #640
	mov	w10, #320
	cmp	w8, #321
	csel	w8, w10, w9, lt
	mov	w9, #480
	mov	w10, #240
	csel	w9, w10, w9, lt
	stp	w8, w9, [x2, #16]
	lsl	w8, w8, #1
	mul	w9, w9, w8
	stp	w8, w9, [x2, #24]
	str	xzr, [x2, #32]
	ret
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ; @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_PIX_FMT_MJPEG,8,3         ; @V4L2_PIX_FMT_MJPEG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_ANY,8,3             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols
