	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_start
_sd_start:                              ## @sd_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	l___const.sd_start.t2+16(%rip), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.sd_start.t2(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rcx,%rax,4), %edx
	cmpq	$3, %rdx
	ja	LBB0_4
## %bb.1:
	movl	$64, %ecx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	$16, %ecx
	jmp	LBB0_5
LBB0_4:
	movl	$32, %ecx
	jmp	LBB0_5
LBB0_3:
	movl	$80, %ecx
LBB0_5:
	movl	%ecx, -60(%rbp)
LBB0_6:
	cmpl	$129, %eax
	je	LBB0_15
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.8:
	movq	$-1, %rbx
	movq	_tas5130a_sensor_init@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	8(%rax,%rbx,8), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_reg_w_buf
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	cltq
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	movl	$15488, %esi                    ## imm = 0x3C80
	callq	_reg_w
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_reg_w_buf
	movq	%r12, %rdi
	movl	$15488, %esi                    ## imm = 0x3C80
	callq	_reg_w
	jmp	LBB0_11
LBB0_15:
	movq	%r12, %rdi
	callq	_om6802_sensor_init
LBB0_11:
	movq	_sensor_data@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movslq	(%r12), %r15
	movl	4(%r12), %edi
	callq	_v4l2_ctrl_g_ctrl
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_setfreq
	movq	%r12, %rdi
	movl	$18, %esi
	callq	_reg_r
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movl	$24, %edx
	callq	_reg_w_buf
	leaq	_sd_start.t3(%rip), %rdx
	movq	%r12, %rdi
	movl	$179, %esi
	movl	$32, %ecx
	callq	_reg_w_ixbuf
	movq	%r12, %rdi
	movl	$19, %esi
	callq	_reg_w
	movl	$15, %edi
	callq	_msleep
	movq	(%r14,%r15,8), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_reg_w_buf
	movq	(%r14,%r15,8), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_reg_w_buf
	cmpl	$129, (%r12)
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_poll_sensor
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_16
## %bb.14:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.sd_start.t2
l___const.sd_start.t2:
	.long	7                               ## 0x7
	.long	0                               ## 0x0
	.long	13                              ## 0xd
	.long	96                              ## 0x60
	.long	14                              ## 0xe
	.long	128                             ## 0x80

	.p2align	4                               ## @sd_start.t3
_sd_start.t3:
	.long	7                               ## 0x7
	.long	0                               ## 0x0
	.long	136                             ## 0x88
	.long	2                               ## 0x2
	.long	6                               ## 0x6
	.long	0                               ## 0x0
	.long	231                             ## 0xe7
	.long	1                               ## 0x1

	.comm	_tas5130a_sensor_init,8,3       ## @tas5130a_sensor_init
	.comm	_sensor_data,8,3                ## @sensor_data
	.no_dead_strip	_sd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_start
_sd_start:                              ; @sd_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	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.sd_start.t2@PAGE
Lloh4:
	add	x8, x8, l___const.sd_start.t2@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	ldp	x8, x9, [x0]
	ldr	w10, [x9, x8, lsl #2]
	cmp	w10, #3
	b.hi	LBB0_3
; %bb.1:
	mov	w9, #64
Lloh5:
	adrp	x11, lJTI0_0@PAGE
Lloh6:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	mov	w9, #16
	b	LBB0_5
LBB0_3:
	mov	w9, #32
	b	LBB0_5
LBB0_4:
	mov	w9, #80
LBB0_5:
	str	w9, [sp, #4]
LBB0_6:
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.8:
	mov	x21, #0
Lloh7:
	adrp	x20, _tas5130a_sensor_init@GOTPAGE
Lloh8:
	ldr	x20, [x20, _tas5130a_sensor_init@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	mov	w2, #8
	bl	_reg_w_buf
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	add	x22, x21, #1
	cmp	x21, w8, sxtw
	mov	x21, x22
	b.lt	LBB0_9
; %bb.10:
	mov	x0, x19
	mov	w1, #15488
	bl	_reg_w
	ldr	x8, [x20]
	add	x8, x8, x22, lsl #3
	ldur	x1, [x8, #-8]
	mov	x0, x19
	mov	w2, #8
	bl	_reg_w_buf
	mov	x0, x19
	mov	w1, #15488
	bl	_reg_w
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_om6802_sensor_init
LBB0_12:
Lloh9:
	adrp	x8, _sensor_data@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sensor_data@GOTPAGEOFF]
Lloh11:
	ldr	x20, [x8]
	ldp	w21, w0, [x19]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	bl	_v4l2_ctrl_g_ctrl
	mov	x1, x0
	mov	x0, x19
	bl	_setfreq
	mov	x0, x19
	mov	w1, #18
	bl	_reg_r
	mov	x1, sp
	mov	x0, x19
	mov	w2, #24
	bl	_reg_w_buf
Lloh12:
	adrp	x2, _sd_start.t3@PAGE
Lloh13:
	add	x2, x2, _sd_start.t3@PAGEOFF
	mov	x0, x19
	mov	w1, #179
	mov	w3, #32
	bl	_reg_w_ixbuf
	mov	x0, x19
	mov	w1, #19
	bl	_reg_w
	mov	w0, #15
	bl	_msleep
	lsl	x21, x21, #3
	ldr	x1, [x20, x21]
	mov	x0, x19
	mov	w2, #8
	bl	_reg_w_buf
	ldr	x1, [x20, x21]
	mov	x0, x19
	mov	w2, #8
	bl	_reg_w_buf
	ldr	w8, [x19]
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_poll_sensor
LBB0_14:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.p2align	2                               ; @__const.sd_start.t2
l___const.sd_start.t2:
	.long	7                               ; 0x7
	.long	0                               ; 0x0
	.long	13                              ; 0xd
	.long	96                              ; 0x60
	.long	14                              ; 0xe
	.long	128                             ; 0x80

	.p2align	2                               ; @sd_start.t3
_sd_start.t3:
	.long	7                               ; 0x7
	.long	0                               ; 0x0
	.long	136                             ; 0x88
	.long	2                               ; 0x2
	.long	6                               ; 0x6
	.long	0                               ; 0x0
	.long	231                             ; 0xe7
	.long	1                               ; 0x1

	.comm	_tas5130a_sensor_init,8,3       ; @tas5130a_sensor_init
	.comm	_sensor_data,8,3                ; @sensor_data
	.no_dead_strip	_sd_start
.subsections_via_symbols
