	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt9m111_start                  ## -- Begin function mt9m111_start
	.p2align	4, 0x90
_mt9m111_start:                         ## @mt9m111_start
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rcx,%rax,8), %r12d
	movl	4(%rcx,%rax,8), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_start_mt9m111@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	movq	_BRIDGE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	-8(%rax,%r12,8), %rax
	movq	(%rax), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rsi
	movl	16(%rax), %edx
	movq	%r14, %rdi
	callq	_m5602_write_bridge
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movups	16(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	leaq	-80(%rbp), %rdx
	movl	$2, %ecx
	callq	_m5602_write_sensor
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	testl	%ebx, %ebx
	je	LBB0_2
LBB0_7:
	testl	%ebx, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	js	LBB0_34
LBB0_8:
	movq	_M5602_XB_VSYNC_PARA@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	movzbl	%ah, %edx
	movq	%r14, %rdi
	callq	_m5602_write_bridge
	testl	%eax, %eax
	js	LBB0_26
## %bb.9:
	leal	-1(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rsi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_m5602_write_bridge
	testl	%eax, %eax
	js	LBB0_26
## %bb.10:
	jne	LBB0_14
## %bb.11:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_m5602_write_bridge
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_m5602_write_bridge
	movl	%eax, %ebx
LBB0_13:
	testl	%ebx, %ebx
	js	LBB0_34
LBB0_14:
	movq	_M5602_XB_SIG_INI@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_m5602_write_bridge
	testl	%eax, %eax
	js	LBB0_26
## %bb.15:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_m5602_write_bridge
	testl	%eax, %eax
	js	LBB0_26
## %bb.16:
	jne	LBB0_20
## %bb.17:
	movq	_M5602_XB_HSYNC_PARA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_m5602_write_bridge
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	_M5602_XB_HSYNC_PARA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_m5602_write_bridge
	movl	%eax, %ebx
LBB0_19:
	testl	%ebx, %ebx
	js	LBB0_34
LBB0_20:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_M5602_XB_HSYNC_PARA@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	movzbl	%ah, %edx
	movq	%r14, %rdi
	callq	_m5602_write_bridge
	testl	%eax, %eax
	js	LBB0_26
## %bb.21:
	movq	(%r12), %rsi
	movzbl	%r13b, %edx
	movq	%r14, %rdi
	callq	_m5602_write_bridge
	testl	%eax, %eax
	js	LBB0_26
## %bb.22:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_m5602_write_bridge
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_34
## %bb.23:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpl	$641, %r13d                     ## imm = 0x281
	je	LBB0_32
## %bb.24:
	cmpl	$321, %r13d                     ## imm = 0x141
	jne	LBB0_34
## %bb.25:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_33
LBB0_26:
	movl	%eax, %ebx
LBB0_34:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	leaq	L_.str(%rip), %rdx
LBB0_33:
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_gspca_dbg
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_start_mt9m111,8,3              ## @start_mt9m111
	.comm	_BRIDGE,8,3                     ## @BRIDGE
	.comm	_M5602_XB_VSYNC_PARA,8,3        ## @M5602_XB_VSYNC_PARA
	.comm	_M5602_XB_SIG_INI,8,3           ## @M5602_XB_SIG_INI
	.comm	_M5602_XB_HSYNC_PARA,8,3        ## @M5602_XB_HSYNC_PARA
	.comm	_D_CONF,4,2                     ## @D_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configuring camera for VGA mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"Configuring camera for QVGA mode\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt9m111_start                  ; -- Begin function mt9m111_start
	.p2align	2
_mt9m111_start:                         ; @mt9m111_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldp	x9, x8, [x0]
	add	x8, x8, x9, lsl #3
	ldp	w21, w22, [x8]
Lloh0:
	adrp	x23, _start_mt9m111@GOTPAGE
Lloh1:
	ldr	x23, [x23, _start_mt9m111@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x25, _BRIDGE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _BRIDGE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	q0, [x8, #16]
	str	q0, [sp]
	ldr	x1, [x8, #8]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #2
	bl	_m5602_write_sensor
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	add	x24, x24, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	ccmp	w20, #0, #0, lt
	b.ne	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [x8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x8, #8]
	ldr	w2, [x8, #16]
	mov	x0, x19
	bl	_m5602_write_bridge
	b	LBB0_3
LBB0_6:
	tbnz	w20, #31, LBB0_26
LBB0_7:
Lloh4:
	adrp	x23, _M5602_XB_VSYNC_PARA@GOTPAGE
Lloh5:
	ldr	x23, [x23, _M5602_XB_VSYNC_PARA@GOTPAGEOFF]
	ldr	x1, [x23]
	ubfx	w2, w22, #8, #8
	mov	x0, x19
	bl	_m5602_write_bridge
	tbnz	w0, #31, LBB0_25
; %bb.8:
	ldr	x1, [x23]
	and	w2, w22, #0xff
	mov	x0, x19
	bl	_m5602_write_bridge
	mov	x20, x0
	tbnz	w0, #31, LBB0_26
; %bb.9:
	cbnz	w20, LBB0_13
; %bb.10:
	ldr	x1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_m5602_write_bridge
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_m5602_write_bridge
	mov	x20, x0
LBB0_12:
	tbnz	w20, #31, LBB0_26
LBB0_13:
Lloh6:
	adrp	x22, _M5602_XB_SIG_INI@GOTPAGE
Lloh7:
	ldr	x22, [x22, _M5602_XB_SIG_INI@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_m5602_write_bridge
	tbnz	w0, #31, LBB0_25
; %bb.14:
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #2
	bl	_m5602_write_bridge
	mov	x20, x0
	tbnz	w0, #31, LBB0_26
; %bb.15:
Lloh8:
	adrp	x23, _M5602_XB_HSYNC_PARA@GOTPAGE
Lloh9:
	ldr	x23, [x23, _M5602_XB_HSYNC_PARA@GOTPAGEOFF]
	cbnz	w20, LBB0_19
; %bb.16:
	ldr	x1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_m5602_write_bridge
	mov	x20, x0
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	x1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_m5602_write_bridge
	mov	x20, x0
LBB0_18:
	tbnz	w20, #31, LBB0_26
LBB0_19:
	sub	w24, w21, #1
	ldr	x1, [x23]
	ubfx	w2, w24, #8, #8
	mov	x0, x19
	bl	_m5602_write_bridge
	tbnz	w0, #31, LBB0_25
; %bb.20:
	ldr	x1, [x23]
	and	w2, w24, #0xff
	mov	x0, x19
	bl	_m5602_write_bridge
	tbnz	w0, #31, LBB0_25
; %bb.21:
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_m5602_write_bridge
	mov	x20, x0
	tbnz	w0, #31, LBB0_26
; %bb.22:
	cmp	w21, #641
	b.eq	LBB0_27
; %bb.23:
	cmp	w21, #321
	b.ne	LBB0_26
; %bb.24:
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_28
LBB0_25:
	mov	x20, x0
LBB0_26:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_27:
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
LBB0_28:
Lloh14:
	adrp	x8, _D_CONF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gspca_dbg
	b	LBB0_26
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_start_mt9m111,8,3              ; @start_mt9m111
	.comm	_BRIDGE,8,3                     ; @BRIDGE
	.comm	_M5602_XB_VSYNC_PARA,8,3        ; @M5602_XB_VSYNC_PARA
	.comm	_M5602_XB_SIG_INI,8,3           ; @M5602_XB_SIG_INI
	.comm	_M5602_XB_HSYNC_PARA,8,3        ; @M5602_XB_HSYNC_PARA
	.comm	_D_CONF,4,2                     ; @D_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configuring camera for VGA mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"Configuring camera for QVGA mode\n"

.subsections_via_symbols
