	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcmi_try_fmt
_dcmi_try_fmt:                          ## @dcmi_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	$0, -72(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	(%rsi), %rsi
	callq	_find_format_by_fourcc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movslq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	56(%r13), %rcx
	movq	-8(%rcx,%rax,8), %r12
	movq	(%r12), %rax
	movq	%rax, (%rbx)
LBB0_3:
	movl	8(%rbx), %edi
	movq	_MIN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp
	movl	%eax, 8(%rbx)
	movl	12(%rbx), %edi
	movq	_MIN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp
	movl	%eax, 12(%rbx)
	cmpl	$0, 48(%r13)
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_7:
	movb	$1, %r15b
	cmpq	$0, 40(%r13)
	je	LBB0_9
## %bb.8:
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	___find_outer_frame_size
	movl	-64(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 12(%rbx)
LBB0_9:
	movl	12(%r12), %edx
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_fill_mbus_format
	movl	32(%r13), %edi
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-104(%rbp), %rcx
	movq	%r14, %r8
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_17
## %bb.10:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_fill_pix_format
	movl	8(%rbx), %r14d
	movl	12(%rbx), %esi
	movl	%esi, %ecx
	movl	%r14d, %eax
	testb	%r15b, %r15b
	je	LBB0_12
## %bb.11:
	movq	24(%r13), %rax
	movq	%rax, -48(%rbp)
	movups	8(%r13), %xmm0
	movaps	%xmm0, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -120(%rbp)
	movl	%r14d, -128(%rbp)
	movl	%esi, -124(%rbp)
	leaq	-64(%rbp), %rdi
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	leaq	-128(%rbp), %rsi
	callq	_v4l2_rect_map_inside
	movq	_s32@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	-48(%rbp), %rsi
	movl	12(%rbx), %ecx
	subl	-60(%rbp), %ecx
	xorl	%edx, %edx
	callq	_clamp_t
	movq	%rax, -48(%rbp)
	movl	(%r15), %edi
	movq	-56(%rbp), %rsi
	movl	8(%rbx), %ecx
	subl	-64(%rbp), %ecx
	xorl	%edx, %edx
	callq	_clamp_t
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 8(%r13)
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r13)
	movq	-48(%rbp), %rax
	movq	%rax, 24(%r13)
	movl	8(%r13), %eax
	movl	%eax, 8(%rbx)
	movl	12(%r13), %ecx
	movl	%ecx, 12(%rbx)
LBB0_12:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rbx)
	imull	8(%r12), %eax
	movl	%eax, 16(%rbx)
	imull	%ecx, %eax
	movl	%eax, 20(%rbx)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r12, (%rax)
LBB0_14:
	xorl	%eax, %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.15:
	movl	%r14d, (%rcx)
	movl	%esi, 4(%rcx)
	jmp	LBB0_17
LBB0_16:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_MIN_WIDTH,4,2                  ## @MIN_WIDTH
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_MIN_HEIGHT,4,2                 ## @MIN_HEIGHT
	.comm	_MAX_HEIGHT,4,2                 ## @MAX_HEIGHT
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
	.comm	_s32,4,2                        ## @s32
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.no_dead_strip	_dcmi_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcmi_try_fmt
_dcmi_try_fmt:                          ; @dcmi_try_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #64]
	ldr	x1, [x1]
	bl	_find_format_by_fourcc
	mov	x23, x0
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	cbz	w8, LBB0_16
; %bb.2:
	ldr	x9, [x22, #56]
	sub	w8, w8, #1
	ldr	x23, [x9, w8, sxtw #3]
	ldr	x8, [x23]
	str	x8, [x21]
LBB0_3:
	ldr	w0, [x21, #8]
Lloh3:
	adrp	x8, _MIN_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIN_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [x21, #8]
	ldr	w0, [x21, #12]
Lloh9:
	adrp	x8, _MIN_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MIN_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MAX_HEIGHT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_HEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [x21, #12]
	ldr	w8, [x22, #48]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x21]
Lloh15:
	adrp	x9, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_5:
	mov	w26, #0
	b	LBB0_9
LBB0_6:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_8
; %bb.7:
	add	x2, sp, #32
	mov	x0, x22
	mov	x1, x21
	bl	___find_outer_frame_size
	ldr	d0, [sp, #32]
	str	d0, [x21, #8]
LBB0_8:
	mov	w26, #1
LBB0_9:
	ldr	w2, [x23, #12]
	add	x0, sp, #64
	mov	x1, x21
	bl	_v4l2_fill_mbus_format
	ldr	w0, [x22, #32]
Lloh18:
	adrp	x8, _pad@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _set_fmt@GOTPAGE
Lloh22:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	add	x3, sp, #72
	add	x4, sp, #64
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_17
; %bb.10:
	add	x1, sp, #64
	mov	x0, x21
	bl	_v4l2_fill_pix_format
	ldp	w24, w25, [x21, #8]
	mov	x9, x25
	mov	x8, x24
	cbz	w26, LBB0_12
; %bb.11:
	ldur	q0, [x22, #8]
	str	q0, [sp, #32]
	ldr	x8, [x22, #24]
	str	x8, [sp, #48]
	stp	xzr, xzr, [sp, #16]
	stp	w24, w25, [sp, #8]
	add	x0, sp, #32
	add	x1, sp, #8
	bl	_v4l2_rect_map_inside
Lloh24:
	adrp	x26, _s32@GOTPAGE
Lloh25:
	ldr	x26, [x26, _s32@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	x1, [sp, #48]
	ldr	w8, [x21, #12]
	ldr	w9, [sp, #36]
	sub	w3, w8, w9
	mov	w2, #0
	bl	_clamp_t
	str	x0, [sp, #48]
	ldr	w0, [x26]
	ldr	x1, [sp, #40]
	ldr	w8, [x21, #8]
	ldr	w9, [sp, #32]
	sub	w3, w8, w9
	mov	w2, #0
	bl	_clamp_t
	str	x0, [sp, #40]
	ldr	q0, [sp, #32]
	stur	q0, [x22, #8]
	ldr	x8, [sp, #48]
	str	x8, [x22, #24]
	ldr	w8, [x22, #8]
	str	w8, [x21, #8]
	ldr	w9, [x22, #12]
	str	w9, [x21, #12]
LBB0_12:
Lloh26:
	adrp	x10, _V4L2_FIELD_NONE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	str	w10, [x21, #24]
	ldr	w10, [x23, #8]
	mul	w8, w10, w8
	mul	w9, w9, w8
	stp	w8, w9, [x21, #16]
	cbz	x20, LBB0_14
; %bb.13:
	str	x23, [x20]
LBB0_14:
	mov	w0, #0
	cbz	x19, LBB0_17
; %bb.15:
	stp	w24, w25, [x19]
	b	LBB0_17
LBB0_16:
Lloh29:
	adrp	x8, _ENODATA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_MIN_WIDTH,4,2                  ; @MIN_WIDTH
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_MIN_HEIGHT,4,2                 ; @MIN_HEIGHT
	.comm	_MAX_HEIGHT,4,2                 ; @MAX_HEIGHT
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
	.comm	_s32,4,2                        ; @s32
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_dcmi_try_fmt
.subsections_via_symbols
