	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rdi
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	(%rdi), %rcx
	jne	LBB0_4
## %bb.1:
	movq	%rsi, (%rbx)
	jmp	LBB0_2
LBB0_4:
	cmpq	%rsi, %rcx
	jne	LBB0_5
LBB0_2:
	movq	_FMT_TYPE_OUTPUT@GOTPCREL(%rip), %rsi
	leaq	8(%rbx), %r15
	movq	_S5P_JPEG_MIN_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_S5P_JPEG_MAX_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, (%rsi)
	jne	LBB0_6
## %bb.3:
	leaq	12(%rbx), %r9
	movq	_S5P_JPEG_MIN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_S5P_JPEG_MAX_HEIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	subq	$8, %rsp
	movq	%rdx, %rdi
	movq	%r15, %rsi
	movl	%r10d, %edx
	xorl	%r8d, %r8d
	pushq	$0
	jmp	LBB0_7
LBB0_6:
	movl	16(%r14), %r12d
	movl	20(%r14), %r8d
	leaq	12(%rbx), %r9
	movq	_S5P_JPEG_MIN_HEIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r11d
	movq	_S5P_JPEG_MAX_HEIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	subq	$8, %rsp
	movq	%rdx, %rdi
	movq	%r15, %rsi
	movl	%r10d, %edx
	pushq	%r12
LBB0_7:
	pushq	%rax
	pushq	%r11
	callq	_jpeg_bound_align_image
	addq	$32, %rsp
	movq	(%r14), %rax
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	cmpl	$0, 16(%rbx)
	jg	LBB0_10
## %bb.9:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_10:
	movl	$0, 20(%rbx)
	jmp	LBB0_18
LBB0_11:
	movl	20(%rbx), %ecx
	movl	8(%r14), %eax
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.12:
	movl	(%r15), %edx
	cmpl	%edx, %ecx
	cmovlel	%edx, %ecx
	jmp	LBB0_17
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_13:
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.15:
	leal	(,%rcx,8), %eax
	movl	12(%r14), %esi
	cltd
	idivl	%esi
	movl	(%r15), %edx
	cmpl	%edx, %eax
	jge	LBB0_17
## %bb.16:
	imull	%edx, %esi
	sarl	$3, %esi
	movl	%esi, %ecx
	jmp	LBB0_17
LBB0_14:
	movl	(%r15), %edx
LBB0_17:
	movl	%ecx, 20(%rbx)
	imull	12(%rbx), %edx
	imull	12(%r14), %edx
	sarl	$3, %edx
	movl	%edx, 16(%rbx)
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_ANY,8,3             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FMT_TYPE_OUTPUT,4,2            ## @FMT_TYPE_OUTPUT
	.comm	_S5P_JPEG_MIN_WIDTH,4,2         ## @S5P_JPEG_MIN_WIDTH
	.comm	_S5P_JPEG_MAX_WIDTH,4,2         ## @S5P_JPEG_MAX_WIDTH
	.comm	_S5P_JPEG_MIN_HEIGHT,4,2        ## @S5P_JPEG_MIN_HEIGHT
	.comm	_S5P_JPEG_MAX_HEIGHT,4,2        ## @S5P_JPEG_MAX_HEIGHT
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.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:
	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	x9, x3
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x10, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_FIELD_ANY@GOTPAGEOFF]
	ldr	x8, [x0]
Lloh2:
	ldr	x11, [x10]
Lloh3:
	adrp	x10, _V4L2_FIELD_NONE@GOTPAG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ldr	x9, [x9, _S5P_JPEG_MAX_HEIGHT@GOTPAGEOFF]
Lloh26:
	ldr	w7, [x9]
	ldp	w9, w4, [x20, #16]
	str	w9, [sp]
	mov	x0, x2
	mov	x1, x21
	mov	x2, x8
LBB0_6:
	bl	_jpeg_bound_align_image
	ldr	x8, [x20]
Lloh27:
	adrp	x9, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh28:
	ldr	x9, [x9, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	b.gt	LBB0_9
; %bb.8:
Lloh30:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_9:
	mov	w0, #0
	str	wzr, [x19, #20]
	b	LBB0_18
LBB0_10:
	ldr	w8, [x19, #20]
	ldr	w9, [x20, #8]
	cmp	w9, #2
	b.lt	LBB0_13
; %bb.11:
	ldr	w9, [x21]
	cmp	w8, w9
	csel	w8, w8, w9, gt
	b	LBB0_17
LBB0_12:
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_13:
	cmp	w9, #1
	b.ne	LBB0_16
; %bb.14:
	lsl	w9, w8, #3
	ldr	w10, [x20, #12]
	sdiv	w11, w9, w10
	ldr	w9, [x21]
	cmp	w11, w9
	b.ge	LBB0_17
; %bb.15:
	mul	w8, w9, w10
	asr	w8, w8, #3
	b	LBB0_17
LBB0_16:
	ldr	w9, [x21]
LBB0_17:
	mov	w0, #0
	ldr	w10, [x19, #12]
	mul	w9, w10, w9
	ldr	w10, [x20, #12]
	mul	w9, w9, w10
	asr	w9, w9, #3
	stp	w9, w8, [x19, #16]
LBB0_18:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_ANY,8,3             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FMT_TYPE_OUTPUT,4,2            ; @FMT_TYPE_OUTPUT
	.comm	_S5P_JPEG_MIN_WIDTH,4,2         ; @S5P_JPEG_MIN_WIDTH
	.comm	_S5P_JPEG_MAX_WIDTH,4,2         ; @S5P_JPEG_MAX_WIDTH
	.comm	_S5P_JPEG_MIN_HEIGHT,4,2        ; @S5P_JPEG_MIN_HEIGHT
	.comm	_S5P_JPEG_MAX_HEIGHT,4,2        ; @S5P_JPEG_MAX_HEIGHT
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_vidioc_try_fmt
.subsections_via_symbols
