	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m001_try_fmt
_mt9m001_try_fmt:                       ## @mt9m001_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_v4l2_get_subdevdata
	movq	%rax, %rdi
	callq	_to_mt9m001
	movq	%rax, %rbx
	leaq	16(%r14), %rdi
	movq	_MT9M001_MIN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT9M001_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%r14), %r15
	movq	_MT9M001_MIN_HEIGHT@GOTPCREL(%rip), %rcx
	movq	24(%rbx), %rax
	movq	(%rcx), %r9
	addq	%rax, %r9
	movq	_MT9M001_MAX_HEIGHT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	subq	$8, %rsp
	movl	$1, %ecx
	movq	%r15, %r8
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	(%rbx), %rsi
	movq	_mt9m001_colour_fmts@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	decq	%rdi
	movl	$2, %esi
	callq	_ALIGN
	movq	%rax, (%r15)
	movq	(%rbx), %rsi
LBB0_2:
	movl	4(%r14), %edi
	movl	16(%rbx), %edx
	callq	_mt9m001_find_datafmt
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 4(%r14)
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9M001_MIN_WIDTH,4,2          ## @MT9M001_MIN_WIDTH
	.comm	_MT9M001_MAX_WIDTH,4,2          ## @MT9M001_MAX_WIDTH
	.comm	_MT9M001_MIN_HEIGHT,8,3         ## @MT9M001_MIN_HEIGHT
	.comm	_MT9M001_MAX_HEIGHT,8,3         ## @MT9M001_MAX_HEIGHT
	.comm	_mt9m001_colour_fmts,8,3        ## @mt9m001_colour_fmts
	.no_dead_strip	_mt9m001_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m001_try_fmt
_mt9m001_try_fmt:                       ; @mt9m001_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	x19, x1
	bl	_v4l2_get_subdevdata
	bl	_to_mt9m001
	mov	x20, x0
	add	x0, x19, #16
Lloh0:
	adrp	x8, _MT9M001_MIN_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT9M001_MIN_WIDTH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MT9M001_MAX_WIDTH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MT9M001_MAX_WIDTH@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w2, [x9]
	add	x21, x19, #8
Lloh6:
	adrp	x8, _MT9M001_MIN_HEIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT9M001_MIN_HEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x20, #24]
	add	x5, x9, x8
Lloh9:
	adrp	x8, _MT9M001_MAX_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT9M001_MAX_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x6, x8, x9
	str	wzr, [sp]
	mov	w3, #1
	mov	x4, x21
	mov	w7, #0
	bl	_v4l_bound_align_image
	ldr	x1, [x20]
Lloh12:
	adrp	x8, _mt9m001_colour_fmts@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mt9m001_colour_fmts@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	sub	x0, x8, #1
	mov	w1, #2
	bl	_ALIGN
	str	x0, [x21]
	ldr	x1, [x20]
LBB0_2:
	ldr	w0, [x19, #4]
	ldr	w2, [x20, #16]
	bl	_mt9m001_find_datafmt
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x20, #8]
	ldr	w8, [x0, #4]
	str	w8, [x19, #4]
LBB0_4:
	ldr	w8, [x0]
	str	w8, [x19]
	mov	w0, #0
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9M001_MIN_WIDTH,4,2          ; @MT9M001_MIN_WIDTH
	.comm	_MT9M001_MAX_WIDTH,4,2          ; @MT9M001_MAX_WIDTH
	.comm	_MT9M001_MIN_HEIGHT,8,3         ; @MT9M001_MIN_HEIGHT
	.comm	_MT9M001_MAX_HEIGHT,8,3         ; @MT9M001_MAX_HEIGHT
	.comm	_mt9m001_colour_fmts,8,3        ; @mt9m001_colour_fmts
	.no_dead_strip	_mt9m001_try_fmt
.subsections_via_symbols
