	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	(%rax), %r12
	movl	24(%rbx), %edi
	callq	_format_by_fourcc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%r12), %edi
	callq	_norm_maxw
	movl	%eax, %r15d
	movl	(%r12), %edi
	callq	_norm_maxh
	movl	%eax, %r12d
	movl	(%rbx), %r13d
	leal	-128(%r13), %eax
	cmpl	$5, %eax
	jb	LBB0_4
## %bb.3:
	movl	%r12d, %eax
	shrl	%eax
	cmpl	4(%rbx), %eax
	movl	$132, %r13d
	sbbl	$0, %r13d
LBB0_4:
	movl	%r13d, %edi
	callq	_V4L2_FIELD_HAS_T_OR_B
	testq	%rax, %rax
	setne	%cl
	shrl	%cl, %r12d
	leaq	8(%rbx), %rdi
	leaq	4(%rbx), %r8
	subq	$8, %rsp
	movl	$48, %esi
	movl	%r15d, %edx
	movl	$2, %ecx
	movl	$32, %r9d
	pushq	$0
	pushq	$0
	pushq	%r12
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movl	%r13d, (%rbx)
	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
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	bl	_video_drvdata
	ldr	x22, [x0]
	ldr	w0, [x19, #24]
	bl	_format_by_fourcc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w0, [x22]
	bl	_norm_maxw
	mov	x21, x0
	ldr	w0, [x22]
	bl	_norm_maxh
	mov	x23, x0
	ldr	w22, [x19]
	sub	w8, w22, #128
	cmp	w8, #5
	b.lo	LBB0_3
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w8, w23, lsr #1
	mov	w8, #131
	cinc	w22, w8, ls
LBB0_3:
	mov	x0, x22
	bl	_V4L2_FIELD_HAS_T_OR_B
	cmp	x0, #0
	cset	w8, ne
	lsr	w6, w23, w8
	add	x0, x19, #8
	add	x4, x19, #4
	str	wzr, [sp]
	mov	w1, #48
	mov	x2, x21
	mov	w3, #2
	mov	w5, #32
	mov	w7, #0
	bl	_v4l_bound_align_image
	mov	w0, #0
	str	w22, [x19]
	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]
Lloh0:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols
