	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov9650_init_sensor
_ov9650_init_sensor:                    ## @ov9650_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
	leaq	-20(%rbp), %rdx
	movl	$28, %esi
	callq	_i2c_r2
	cmpl	$0, (%rbx)
	js	LBB0_6
## %bb.1:
	movl	-20(%rbp), %esi
	cmpl	$32674, %esi                    ## imm = 0x7FA2
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movl	$18, %esi
	movl	$128, %edx
	callq	_i2c_w1
	movl	$200, %edi
	callq	_msleep
	movq	_ov9650_init@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_i2c_w1_buf
	cmpl	$0, (%rbx)
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_5:
	movabsq	$30064771073, %rax              ## imm = 0x700000001
	movq	%rax, (%rbx)
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, (%rbx)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sensor id for ov9650 doesn't match (0x%04x)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ov9650_init,4,2                ## @ov9650_init
L_.str.1:                               ## @.str.1
	.asciz	"OV9650 sensor initialization failed\n"

	.no_dead_strip	_ov9650_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 ov9650_init_sensor
lCPI0_0:
	.long	1                               ; 0x1
	.long	7                               ; 0x7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ov9650_init_sensor:                    ; @ov9650_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
	add	x2, sp, #12
	mov	w1, #28
	bl	_i2c_r2
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
	mov	w9, #32674
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #18
	mov	w2, #128
	bl	_i2c_w1
	mov	w0, #200
	bl	_msleep
Lloh0:
	adrp	x8, _ov9650_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ov9650_init@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_w1_buf
	ldr	w8, [x19]
	tbz	w8, #31, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_4:
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	b	LBB0_6
LBB0_5:
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_6:
	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	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sensor id for ov9650 doesn't match (0x%04x)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ov9650_init,4,2                ; @ov9650_init
l_.str.1:                               ; @.str.1
	.asciz	"OV9650 sensor initialization failed\n"

	.no_dead_strip	_ov9650_init_sensor
.subsections_via_symbols
