	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_try_fmt
_mt9m111_try_fmt:                       ## @mt9m111_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	callq	_v4l2_get_subdevdata
	movq	%rax, %rdi
	callq	_to_mt9m111
	movl	12(%r12), %ebx
	movq	_V4L2_MBUS_FMT_SBGGR8_1X8@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	sete	%r13b
	movq	_V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	sete	%r15b
	movq	_mt9m111_colour_fmts@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mt9m111_find_datafmt
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movl	4(%r14), %eax
	movl	%eax, 12(%r12)
LBB0_2:
	orb	%r15b, %r13b
	movl	(%r12), %edi
	movq	_MT9M111_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edi
	jg	LBB0_6
## %bb.3:
	movl	$2, %eax
	cmpl	$2, %edi
	jl	LBB0_6
## %bb.4:
	testb	%r13b, %r13b
	je	LBB0_7
## %bb.5:
	movl	$2, %esi
	callq	_ALIGN
LBB0_6:
	movl	%eax, (%r12)
LBB0_7:
	movl	4(%r12), %edi
	movq	_MT9M111_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edi
	jg	LBB0_11
## %bb.8:
	movl	$2, %eax
	cmpl	$2, %edi
	jl	LBB0_11
## %bb.9:
	testb	%r13b, %r13b
	je	LBB0_12
## %bb.10:
	movl	$2, %esi
	callq	_ALIGN
LBB0_11:
	movl	%eax, 4(%r12)
LBB0_12:
	movl	(%r14), %eax
	movl	%eax, 8(%r12)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_MBUS_FMT_SBGGR8_1X8,4,2   ## @V4L2_MBUS_FMT_SBGGR8_1X8
	.comm	_V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE,4,2 ## @V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE
	.comm	_mt9m111_colour_fmts,4,2        ## @mt9m111_colour_fmts
	.comm	_MT9M111_MAX_HEIGHT,4,2         ## @MT9M111_MAX_HEIGHT
	.comm	_MT9M111_MAX_WIDTH,4,2          ## @MT9M111_MAX_WIDTH
	.no_dead_strip	_mt9m111_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_try_fmt
_mt9m111_try_fmt:                       ; @mt9m111_try_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_v4l2_get_subdevdata
	bl	_to_mt9m111
	mov	x21, x0
	ldr	w20, [x19, #12]
Lloh0:
	adrp	x8, _V4L2_MBUS_FMT_SBGGR8_1X8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_MBUS_FMT_SBGGR8_1X8@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
Lloh3:
	adrp	x8, _V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w20, w8, #4, ne
	cset	w23, eq
Lloh6:
	adrp	x8, _mt9m111_colour_fmts@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mt9m111_colour_fmts@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_mt9m111_find_datafmt
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x20, [x21]
	ldr	w8, [x20, #4]
	str	w8, [x19, #12]
LBB0_2:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _MT9M111_MAX_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT9M111_MAX_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_7
; %bb.3:
	cmp	w0, #2
	b.ge	LBB0_5
; %bb.4:
	mov	w8, #2
	b	LBB0_7
LBB0_5:
	cbz	w23, LBB0_8
; %bb.6:
	mov	w1, #2
	bl	_ALIGN
	mov	x8, x0
LBB0_7:
	str	w8, [x19]
LBB0_8:
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x8, _MT9M111_MAX_WIDTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT9M111_MAX_WIDTH@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_13
; %bb.9:
	cmp	w0, #2
	b.ge	LBB0_11
; %bb.10:
	mov	w8, #2
	b	LBB0_13
LBB0_11:
	cbz	w23, LBB0_14
; %bb.12:
	mov	w1, #2
	bl	_ALIGN
	mov	x8, x0
LBB0_13:
	str	w8, [x19, #4]
LBB0_14:
	ldr	w8, [x20]
	str	w8, [x19, #8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_MBUS_FMT_SBGGR8_1X8,4,2   ; @V4L2_MBUS_FMT_SBGGR8_1X8
	.comm	_V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE,4,2 ; @V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE
	.comm	_mt9m111_colour_fmts,4,2        ; @mt9m111_colour_fmts
	.comm	_MT9M111_MAX_HEIGHT,4,2         ; @MT9M111_MAX_HEIGHT
	.comm	_MT9M111_MAX_WIDTH,4,2          ; @MT9M111_MAX_WIDTH
	.no_dead_strip	_mt9m111_try_fmt
.subsections_via_symbols
