	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function om6802_sensor_init
_om6802_sensor_init:                    ## @om6802_sensor_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	l___const.om6802_sensor_init.val+16(%rip), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.om6802_sensor_init.val(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_sensor_reset@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_reg_w_buf
	movl	$100, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$96, %esi
	callq	_reg_r
	testb	$1, %al
	je	LBB0_4
## %bb.1:
	movl	$100, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$96, %esi
	callq	_reg_r
	testb	$1, %al
	je	LBB0_4
## %bb.2:
	movl	$100, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$96, %esi
	callq	_reg_r
	testb	$1, %al
	je	LBB0_4
## %bb.3:
	movl	$100, %edi
	callq	_msleep
LBB0_4:
	movq	%r15, %rdi
	movl	$99, %esi
	callq	_reg_r
	cmpl	$23, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_6:
	movl	$223, %eax
	leaq	_om6802_sensor_init.sensor_init+8(%rip), %rbx
	leaq	-64(%rbp), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %eax
	addq	$8, %rbx
	testl	%eax, %eax
	je	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -60(%rbp)
	movl	-4(%rbx), %eax
	movl	%eax, -52(%rbp)
	cmpl	$0, (%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	$15488, %esi                    ## imm = 0x3C80
	callq	_reg_w
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_reg_w_buf
	movl	$15, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$96, %esi
	callq	_reg_r
	testb	$1, %al
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$15, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$96, %esi
	callq	_reg_r
	testb	$1, %al
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$15, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$96, %esi
	callq	_reg_r
	testb	$1, %al
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$15, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$96, %esi
	callq	_reg_r
	jmp	LBB0_13
LBB0_14:
	movl	$15, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$15488, %esi                    ## imm = 0x3C80
	callq	_reg_w
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.om6802_sensor_init.val
l___const.om6802_sensor_init.val:
	.long	98                              ## 0x62
	.long	0                               ## 0x0
	.long	100                             ## 0x64
	.long	0                               ## 0x0
	.long	96                              ## 0x60
	.long	5                               ## 0x5

	.p2align	4                               ## @om6802_sensor_init.sensor_init
_om6802_sensor_init.sensor_init:
	.long	223                             ## 0xdf
	.long	109                             ## 0x6d
	.long	221                             ## 0xdd
	.long	24                              ## 0x18
	.long	90                              ## 0x5a
	.long	224                             ## 0xe0
	.long	92                              ## 0x5c
	.long	7                               ## 0x7
	.long	93                              ## 0x5d
	.long	176                             ## 0xb0
	.long	94                              ## 0x5e
	.long	30                              ## 0x1e
	.long	96                              ## 0x60
	.long	113                             ## 0x71
	.long	239                             ## 0xef
	.long	0                               ## 0x0
	.long	233                             ## 0xe9
	.long	0                               ## 0x0
	.long	234                             ## 0xea
	.long	0                               ## 0x0
	.long	144                             ## 0x90
	.long	36                              ## 0x24
	.long	145                             ## 0x91
	.long	178                             ## 0xb2
	.long	130                             ## 0x82
	.long	50                              ## 0x32
	.long	253                             ## 0xfd
	.long	65                              ## 0x41
	.long	0                               ## 0x0

	.comm	_sensor_reset,8,3               ## @sensor_reset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad sensor reset %02x\n"

	.no_dead_strip	_om6802_sensor_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function om6802_sensor_init
_om6802_sensor_init:                    ; @om6802_sensor_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.om6802_sensor_init.val@PAGE
Lloh4:
	add	x8, x8, l___const.om6802_sensor_init.val@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
Lloh5:
	adrp	x8, _sensor_reset@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sensor_reset@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	w2, #8
	bl	_reg_w_buf
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	mov	w1, #96
	bl	_reg_r
	tbz	w0, #0, LBB0_4
; %bb.1:
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	mov	w1, #96
	bl	_reg_r
	tbz	w0, #0, LBB0_4
; %bb.2:
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	mov	w1, #96
	bl	_reg_r
	tbz	w0, #0, LBB0_4
; %bb.3:
	mov	w0, #100
	bl	_msleep
LBB0_4:
	mov	x0, x19
	mov	w1, #99
	bl	_reg_r
	cmp	w0, #23
	b.eq	LBB0_6
; %bb.5:
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_6:
	mov	w8, #223
Lloh10:
	adrp	x20, _om6802_sensor_init.sensor_init@PAGE+8
Lloh11:
	add	x20, x20, _om6802_sensor_init.sensor_init@PAGEOFF+8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20], #8
	cbz	w8, LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w9, [x20, #-4]
	str	w8, [sp, #4]
	str	w9, [sp, #12]
	ldr	w8, [x20]
	cbnz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	w1, #15488
	bl	_reg_w
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, sp
	mov	x0, x19
	mov	w2, #24
	bl	_reg_w_buf
	mov	w0, #15
	bl	_msleep
	mov	x0, x19
	mov	w1, #96
	bl	_reg_r
	tbz	w0, #0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #15
	bl	_msleep
	mov	x0, x19
	mov	w1, #96
	bl	_reg_r
	tbz	w0, #0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #15
	bl	_msleep
	mov	x0, x19
	mov	w1, #96
	bl	_reg_r
	tbz	w0, #0, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #15
	bl	_msleep
	mov	x0, x19
	mov	w1, #96
	bl	_reg_r
	b	LBB0_7
LBB0_14:
	mov	w0, #15
	bl	_msleep
	mov	x0, x19
	mov	w1, #15488
	bl	_reg_w
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.om6802_sensor_init.val
l___const.om6802_sensor_init.val:
	.long	98                              ; 0x62
	.long	0                               ; 0x0
	.long	100                             ; 0x64
	.long	0                               ; 0x0
	.long	96                              ; 0x60
	.long	5                               ; 0x5

	.p2align	2                               ; @om6802_sensor_init.sensor_init
_om6802_sensor_init.sensor_init:
	.long	223                             ; 0xdf
	.long	109                             ; 0x6d
	.long	221                             ; 0xdd
	.long	24                              ; 0x18
	.long	90                              ; 0x5a
	.long	224                             ; 0xe0
	.long	92                              ; 0x5c
	.long	7                               ; 0x7
	.long	93                              ; 0x5d
	.long	176                             ; 0xb0
	.long	94                              ; 0x5e
	.long	30                              ; 0x1e
	.long	96                              ; 0x60
	.long	113                             ; 0x71
	.long	239                             ; 0xef
	.long	0                               ; 0x0
	.long	233                             ; 0xe9
	.long	0                               ; 0x0
	.long	234                             ; 0xea
	.long	0                               ; 0x0
	.long	144                             ; 0x90
	.long	36                              ; 0x24
	.long	145                             ; 0x91
	.long	178                             ; 0xb2
	.long	130                             ; 0x82
	.long	50                              ; 0x32
	.long	253                             ; 0xfd
	.long	65                              ; 0x41
	.long	0                               ; 0x0

	.comm	_sensor_reset,8,3               ; @sensor_reset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad sensor reset %02x\n"

	.no_dead_strip	_om6802_sensor_init
.subsections_via_symbols
