	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rdi
	movq	(%rsi), %rbx
	movq	(%rbx), %r15
	callq	_DEB_EE
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_saa7146_format_by_fourcc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movq	8(%r15), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %ecx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rsi
	cmpl	%edi, (%rsi)
	jne	LBB0_5
## %bb.3:
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movl	$130, %edi
	cmpl	%esi, 4(%r14)
	jle	LBB0_4
	jmp	LBB0_7
LBB0_5:
	leal	-128(%rdi), %esi
	cmpl	$3, %esi
	ja	LBB0_8
## %bb.6:
	leaq	LJTI0_0(%rip), %rbx
	movslq	(%rbx,%rsi,4), %rsi
	addq	%rbx, %rsi
	jmpq	*%rsi
LBB0_4:
	movl	$129, (%r15)
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
LBB0_10:
	movl	%esi, %ecx
	jmp	LBB0_11
LBB0_7:
	movl	$129, (%r15)
	movl	$129, %edi
LBB0_11:
	movl	%edi, (%r14)
	movl	8(%r14), %edi
	cmpl	%edx, %edi
	jle	LBB0_13
## %bb.12:
	movl	%edx, 8(%r14)
	movl	%edx, %edi
LBB0_13:
	movl	4(%r14), %edx
	cmpl	%ecx, %edx
	jle	LBB0_15
## %bb.14:
	movl	%ecx, 4(%r14)
	movl	%ecx, %edx
LBB0_15:
	movl	(%rax), %esi
	imull	%esi, %edi
	leal	7(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	sarl	$3, %eax
	movl	12(%r14), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_17
## %bb.16:
	movl	%eax, 12(%r14)
	movl	%eax, %ecx
LBB0_17:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdi
	imull	(%rdi), %esi
	movl	%esi, %edi
	addl	%esi, %edi
	leal	7(%rsi,%rsi), %esi
	cmovnsl	%edi, %esi
	sarl	$3, %esi
	cmpl	%esi, %ecx
	jle	LBB0_19
## %bb.18:
	movl	%eax, 12(%r14)
	movl	%eax, %ecx
LBB0_19:
	imull	%ecx, %edx
	movl	%edx, 16(%r14)
	movslq	%edx, %rdi
	callq	_DEB_D
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_8:
	callq	_DEB_D
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$128, (%r15)
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movl	$131, %edi
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x0, x1
	ldr	x20, [x1]
	ldr	x21, [x20]
	bl	_DEB_EE
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_saa7146_format_by_fourcc
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w8, [x19]
	ldr	x9, [x21, #8]
	ldp	w10, w9, [x9]
Lloh0:
	adrp	x11, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x11, [x11, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	cmp	w11, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w9, #0
	cinc	w11, w9, lt
	cmp	w8, w11, asr #1
	b.gt	LBB0_7
; %bb.3:
	mov	w8, #130
	b	LBB0_6
LBB0_4:
	sub	w11, w8, #128
	cmp	w11, #3
	b.hi	LBB0_8
; %bb.5:
Lloh3:
	adrp	x12, lJTI0_0@PAGE
Lloh4:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_6
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_6:
	mov	w11, #129
	str	w11, [x21]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	b	LBB0_11
LBB0_7:
	mov	w8, #129
	str	w8, [x21]
	b	LBB0_11
LBB0_8:
	mov	x0, x8
	bl	_DEB_D
LBB0_9:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_10:
	mov	w8, #128
	str	w8, [x21]
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w9, w8, #1
	mov	w8, #131
LBB0_11:
	str	w8, [x19]
	ldr	w11, [x19, #8]
	cmp	w11, w10
	b.le	LBB0_13
; %bb.12:
	str	w10, [x19, #8]
	mov	x11, x10
LBB0_13:
	ldr	w8, [x19, #4]
	cmp	w8, w9
	b.le	LBB0_15
; %bb.14:
	str	w9, [x19, #4]
	mov	x8, x9
LBB0_15:
	ldr	w12, [x0]
	mul	w9, w12, w11
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	ldr	w10, [x19, #12]
	cmp	w10, w9
	b.ge	LBB0_17
; %bb.16:
	str	w9, [x19, #12]
	mov	x10, x9
LBB0_17:
Lloh8:
	adrp	x11, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	mul	w11, w12, w11
	lsl	w11, w11, #1
	add	w12, w11, #7
	cmp	w11, #0
	csel	w11, w12, w11, lt
	cmp	w10, w11, asr #3
	b.le	LBB0_19
; %bb.18:
	str	w9, [x19, #12]
	mov	x10, x9
LBB0_19:
	mul	w8, w8, w10
	str	w8, [x19, #16]
	sxtw	x0, w8
	bl	_DEB_D
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols
