	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	movl	24(%rbx), %edi
	callq	_format_by_fourcc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %r12d
	movl	(%r15), %edi
	callq	_norm_maxh
                                        ## kill: def $eax killed $eax def $rax
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_4
## %bb.2:
	movl	%eax, %edx
	shrl	%edx
	movl	$132, %r12d
	movl	$131, %ecx
	cmpl	%edx, 4(%rbx)
	jbe	LBB0_8
	jmp	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_4:
	leal	-129(%r12), %ecx
	cmpl	$3, %ecx
	jb	LBB0_9
## %bb.6:
	cmpl	$132, %r12d
	je	LBB0_8
## %bb.7:
	cmpl	$128, %r12d
	jne	LBB0_12
LBB0_8:
	shrl	%eax
LBB0_9:
	movl	%r12d, %ecx
LBB0_10:
	movl	%ecx, (%rbx)
	leaq	8(%rbx), %rdi
	leaq	4(%rbx), %r8
	subq	$8, %rsp
	movl	$48, %esi
	movl	$720, %edx                      ## imm = 0x2D0
	movl	$2, %ecx
	movl	$32, %r9d
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movl	(%r14), %eax
	imull	8(%rbx), %eax
	sarl	$3, %eax
	movl	%eax, 12(%rbx)
	imull	4(%rbx), %eax
	movl	%eax, 16(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$131, %ecx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.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
	.p2align	2                               ; -- Begin function vidioc_try_fmt_vid_cap
_vidioc_try_fmt_vid_cap:                ; @vidioc_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	bl	_video_drvdata
	mov	x21, x0
	ldr	w0, [x19, #24]
	bl	_format_by_fourcc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w22, [x19]
	ldr	w0, [x21]
	bl	_norm_maxh
	mov	x6, x0
Lloh0:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w8, w6, lsr #1
	b.hi	LBB0_9
; %bb.3:
	mov	w22, #132
	lsr	w6, w6, #1
	b	LBB0_10
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	sub	w8, w22, #129
	cmp	w8, #3
	b.lo	LBB0_10
; %bb.6:
	cmp	w22, #132
	b.eq	LBB0_8
; %bb.7:
	cmp	w22, #128
	b.ne	LBB0_9
LBB0_8:
	lsr	w6, w6, #1
	b	LBB0_10
LBB0_9:
	mov	w22, #131
LBB0_10:
	str	w22, [x19]
	add	x0, x19, #8
	add	x4, x19, #4
	str	wzr, [sp]
	mov	w1, #48
	mov	w2, #720
	mov	w3, #2
	mov	w5, #32
	mov	w7, #0
	bl	_v4l_bound_align_image
	mov	w0, #0
	ldr	w8, [x20]
	ldp	w10, w9, [x19, #4]
	mul	w8, w8, w9
	asr	w8, w8, #3
	mul	w9, w10, w8
	stp	w8, w9, [x19, #12]
Lloh6:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols
