	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_STK1135_REG_GCTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$32, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	callq	_stk1135_configure_clock
	movq	_STK1135_REG_CISPO@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_reg_w
	movq	(%r14), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_reg_w
	movq	(%r14), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_reg_w
	movq	(%r14), %rsi
	addq	$3, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_reg_w
	movl	12(%rbx), %r15d
	movl	16(%rbx), %r14d
	movq	_STK1135_REG_CIEPO@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movzbl	%r15b, %edx
	movq	%rbx, %rdi
	callq	_reg_w
	movq	(%r12), %rsi
	incq	%rsi
	sarl	$8, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_reg_w
	movq	(%r12), %rsi
	addq	$2, %rsi
	movzbl	%r14b, %edx
	movq	%rbx, %rdi
	callq	_reg_w
	movq	(%r12), %rsi
	addq	$3, %rsi
	sarl	$8, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_reg_w
	movq	_STK1135_REG_SCTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	callq	_stk1135_configure_mt9m112
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	movl	$128, %ecx
	callq	_reg_w_mask
	cmpq	$0, (%rbx)
	js	LBB0_2
## %bb.1:
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gspca_dbg
LBB0_2:
	movq	$0, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STK1135_REG_GCTRL,8,3          ## @STK1135_REG_GCTRL
	.comm	_STK1135_REG_CISPO,8,3          ## @STK1135_REG_CISPO
	.comm	_STK1135_REG_CIEPO,8,3          ## @STK1135_REG_CIEPO
	.comm	_STK1135_REG_SCTRL,8,3          ## @STK1135_REG_SCTRL
	.comm	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"camera started alt: 0x%02x\n"

	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _STK1135_REG_GCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STK1135_REG_GCTRL@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	w2, #32
	bl	_reg_w
	mov	x0, x19
	bl	_stk1135_configure_clock
Lloh3:
	adrp	x20, _STK1135_REG_CISPO@GOTPAGE
Lloh4:
	ldr	x20, [x20, _STK1135_REG_CISPO@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_w
	ldr	x8, [x20]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #0
	bl	_reg_w
	ldr	x8, [x20]
	add	x1, x8, #2
	mov	x0, x19
	mov	w2, #0
	bl	_reg_w
	ldr	x8, [x20]
	add	x1, x8, #3
	mov	x0, x19
	mov	w2, #0
	bl	_reg_w
	ldp	w20, w21, [x19, #12]
Lloh5:
	adrp	x22, _STK1135_REG_CIEPO@GOTPAGE
Lloh6:
	ldr	x22, [x22, _STK1135_REG_CIEPO@GOTPAGEOFF]
	ldr	x1, [x22]
	and	w2, w20, #0xff
	mov	x0, x19
	bl	_reg_w
	ldr	x8, [x22]
	add	x1, x8, #1
	asr	w2, w20, #8
	mov	x0, x19
	bl	_reg_w
	ldr	x8, [x22]
	add	x1, x8, #2
	and	w2, w21, #0xff
	mov	x0, x19
	bl	_reg_w
	ldr	x8, [x22]
	add	x1, x8, #3
	asr	w2, w21, #8
	mov	x0, x19
	bl	_reg_w
Lloh7:
	adrp	x20, _STK1135_REG_SCTRL@GOTPAGE
Lloh8:
	ldr	x20, [x20, _STK1135_REG_SCTRL@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #32
	bl	_reg_w
	mov	x0, x19
	bl	_stk1135_configure_mt9m112
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #128
	mov	w3, #128
	bl	_reg_w_mask
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
LBB0_2:
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STK1135_REG_GCTRL,8,3          ; @STK1135_REG_GCTRL
	.comm	_STK1135_REG_CISPO,8,3          ; @STK1135_REG_CISPO
	.comm	_STK1135_REG_CIEPO,8,3          ; @STK1135_REG_CIEPO
	.comm	_STK1135_REG_SCTRL,8,3          ; @STK1135_REG_SCTRL
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"camera started alt: 0x%02x\n"

	.no_dead_strip	_sd_start
.subsections_via_symbols
