	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9v_init_sensor
_mt9v_init_sensor:                      ## @mt9v_init_sensor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$93, (%rdi)
	leaq	-20(%rbp), %rdx
	movl	$255, %esi
	callq	_i2c_r2
	cmpl	$0, (%rbx)
	js	LBB0_4
## %bb.1:
	cmpl	$33347, -20(%rbp)               ## imm = 0x8243
	jne	LBB0_4
## %bb.2:
	movq	_mt9v011_init@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_i2c_w2_buf
	cmpl	$0, (%rbx)
	js	LBB0_14
## %bb.3:
	movabsq	$8589934594, %rax               ## imm = 0x200000002
	movq	%rax, 4(%rbx)
	movq	_SENSOR_MT9V011@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_19
LBB0_4:
	movl	$92, (%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$4, %edx
	callq	_i2c_w2
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_i2c_r2
	cmpl	$0, (%rbx)
	js	LBB0_8
## %bb.5:
	cmpl	$33338, -20(%rbp)               ## imm = 0x823A
	jne	LBB0_8
## %bb.6:
	movq	_mt9v111_init@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_i2c_w2_buf
	cmpl	$0, (%rbx)
	js	LBB0_16
## %bb.7:
	movabsq	$8589934594, %rax               ## imm = 0x200000002
	movq	%rax, 4(%rbx)
	movq	_SENSOR_MT9V111@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_19
LBB0_8:
	movl	$93, (%rbx)
	movq	%rbx, %rdi
	movl	$240, %esi
	xorl	%edx, %edx
	callq	_i2c_w2
	cmpl	$0, (%rbx)
	jns	LBB0_10
## %bb.9:
	movl	$72, (%rbx)
	movq	%rbx, %rdi
	movl	$240, %esi
	xorl	%edx, %edx
	callq	_i2c_w2
LBB0_10:
	xorl	%r14d, %r14d
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_i2c_r2
	cmpl	$0, (%rbx)
	js	LBB0_15
## %bb.11:
	cmpl	$4649, -20(%rbp)                ## imm = 0x1229
	jne	LBB0_15
## %bb.12:
	movq	_mt9v112_init@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_i2c_w2_buf
	cmpl	$0, (%rbx)
	js	LBB0_17
## %bb.13:
	movabsq	$8589934598, %rax               ## imm = 0x200000006
	movq	%rax, 4(%rbx)
	movq	_SENSOR_MT9V112@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_19
LBB0_14:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_18
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, (%rbx)
	jmp	LBB0_19
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.4(%rip), %rdi
LBB0_18:
	callq	_pr_err
LBB0_19:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mt9v011_init,4,2               ## @mt9v011_init
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MT9V011 sensor initialization failed\n"

	.comm	_SENSOR_MT9V011,4,2             ## @SENSOR_MT9V011
L_.str.1:                               ## @.str.1
	.asciz	"MT9V011 sensor detected\n"

	.comm	_mt9v111_init,4,2               ## @mt9v111_init
L_.str.2:                               ## @.str.2
	.asciz	"MT9V111 sensor initialization failed\n"

	.comm	_SENSOR_MT9V111,4,2             ## @SENSOR_MT9V111
L_.str.3:                               ## @.str.3
	.asciz	"MT9V111 sensor detected\n"

	.comm	_mt9v112_init,4,2               ## @mt9v112_init
L_.str.4:                               ## @.str.4
	.asciz	"MT9V112 sensor initialization failed\n"

	.comm	_SENSOR_MT9V112,4,2             ## @SENSOR_MT9V112
L_.str.5:                               ## @.str.5
	.asciz	"MT9V112 sensor detected\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_mt9v_init_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mt9v_init_sensor
lCPI0_0:
	.long	6                               ; 0x6
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mt9v_init_sensor:                      ; @mt9v_init_sensor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #93
	str	w8, [x0]
	add	x2, sp, #12
	mov	w1, #255
	bl	_i2c_r2
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	mov	w9, #33347
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _mt9v011_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mt9v011_init@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_w2_buf
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_14
; %bb.3:
	movi.2s	v0, #2
	stur	d0, [x19, #4]
Lloh3:
	adrp	x8, _SENSOR_MT9V011@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SENSOR_MT9V011@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	b	LBB0_19
LBB0_4:
	mov	w8, #92
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4
	bl	_i2c_w2
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #255
	bl	_i2c_r2
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_8
; %bb.5:
	ldr	w8, [sp, #12]
	mov	w9, #33338
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _mt9v111_init@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mt9v111_init@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_w2_buf
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_16
; %bb.7:
	movi.2s	v0, #2
	stur	d0, [x19, #4]
Lloh11:
	adrp	x8, _SENSOR_MT9V111@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SENSOR_MT9V111@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	b	LBB0_19
LBB0_8:
	mov	w8, #93
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #240
	mov	w2, #0
	bl	_i2c_w2
	ldr	w8, [x19]
	tbz	w8, #31, LBB0_10
; %bb.9:
	mov	w8, #72
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #240
	mov	w2, #0
	bl	_i2c_w2
LBB0_10:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_i2c_r2
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_15
; %bb.11:
	ldr	w8, [sp, #12]
	mov	w9, #4649
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.12:
Lloh16:
	adrp	x8, _mt9v112_init@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mt9v112_init@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_w2_buf
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_17
; %bb.13:
Lloh19:
	adrp	x8, lCPI0_0@PAGE
Lloh20:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
Lloh21:
	adrp	x8, _SENSOR_MT9V112@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SENSOR_MT9V112@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_info
	b	LBB0_19
LBB0_14:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_18
LBB0_15:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
	b	LBB0_19
LBB0_16:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_18:
	bl	_pr_err
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdrp	Lloh19, Lloh21
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_mt9v011_init,4,2               ; @mt9v011_init
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MT9V011 sensor initialization failed\n"

	.comm	_SENSOR_MT9V011,4,2             ; @SENSOR_MT9V011
l_.str.1:                               ; @.str.1
	.asciz	"MT9V011 sensor detected\n"

	.comm	_mt9v111_init,4,2               ; @mt9v111_init
l_.str.2:                               ; @.str.2
	.asciz	"MT9V111 sensor initialization failed\n"

	.comm	_SENSOR_MT9V111,4,2             ; @SENSOR_MT9V111
l_.str.3:                               ; @.str.3
	.asciz	"MT9V111 sensor detected\n"

	.comm	_mt9v112_init,4,2               ; @mt9v112_init
l_.str.4:                               ; @.str.4
	.asciz	"MT9V112 sensor initialization failed\n"

	.comm	_SENSOR_MT9V112,4,2             ; @SENSOR_MT9V112
l_.str.5:                               ; @.str.5
	.asciz	"MT9V112 sensor detected\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_mt9v_init_sensor
.subsections_via_symbols
