	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt
_vidioc_try_fmt:                        ## @vidioc_try_fmt
	.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
	movq	%rdx, %rdi
	callq	_find_fmt
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ecx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rsi
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	(%rsi), %ecx
	jne	LBB0_4
## %bb.3:
	movl	%edx, (%rbx)
	jmp	LBB0_5
LBB0_4:
	cmpl	%edx, %ecx
	jne	LBB0_1
LBB0_5:
	movl	4(%rbx), %ecx
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	jle	LBB0_7
## %bb.6:
	movl	%edx, 4(%rbx)
	movl	%edx, %ecx
LBB0_7:
	movl	8(%rbx), %edx
	movq	_MAX_HEIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %edx
	jg	LBB0_8
## %bb.9:
	testl	%ecx, %ecx
	jle	LBB0_10
LBB0_11:
	testl	%edx, %edx
	jle	LBB0_12
LBB0_13:
	imull	(%rax), %ecx
	sarl	$3, %ecx
	movl	%ecx, 12(%rbx)
	imull	%edx, %ecx
	movl	%ecx, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movl	%esi, 8(%rbx)
	movl	%esi, %edx
	testl	%ecx, %ecx
	jg	LBB0_11
LBB0_10:
	movl	$1, 4(%rbx)
	movl	$1, %ecx
	testl	%edx, %edx
	jg	LBB0_13
LBB0_12:
	movl	$1, 8(%rbx)
	movl	$1, %edx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_MAX_HEIGHT,4,2                 ## @MAX_HEIGHT
	.no_dead_strip	_vidioc_try_fmt
.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
_vidioc_try_fmt:                        ; @vidioc_try_fmt
	.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
	mov	x0, x2
	bl	_find_fmt
	cbz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x9, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FIELD_ANY@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w10
	b.ne	LBB0_3
; %bb.2:
	str	w9, [x19]
	b	LBB0_4
LBB0_3:
	cmp	w8, w9
	b.ne	LBB0_10
LBB0_4:
	ldr	w9, [x19, #4]
Lloh6:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_6
; %bb.5:
	str	w8, [x19, #4]
	mov	x9, x8
LBB0_6:
	ldr	w10, [x19, #8]
Lloh9:
	adrp	x8, _MAX_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w10, w8
	b.gt	LBB0_12
; %bb.7:
	cmp	w9, #0
	b.le	LBB0_13
LBB0_8:
	cmp	w10, #0
	b.le	LBB0_14
LBB0_9:
	mov	w8, #0
	ldr	w11, [x0]
	mul	w9, w11, w9
	asr	w9, w9, #3
	mul	w10, w10, w9
	stp	w9, w10, [x19, #12]
	b	LBB0_11
LBB0_10:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_11:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	str	w8, [x19, #8]
	mov	x10, x8
	cmp	w9, #0
	b.gt	LBB0_8
LBB0_13:
	mov	w9, #1
	str	w9, [x19, #4]
	cmp	w10, #0
	b.gt	LBB0_9
LBB0_14:
	mov	w10, #1
	str	w10, [x19, #8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_MAX_HEIGHT,4,2                 ; @MAX_HEIGHT
	.no_dead_strip	_vidioc_try_fmt
.subsections_via_symbols
