	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_init
_sd_init:                               ## @sd_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$231, %esi
	movl	$58, %edx
	callq	_reg_w
	movq	%r14, %rdi
	movl	$224, %esi
	movl	$8, %edx
	callq	_reg_w
	movl	$100, %edi
	callq	_msleep
	movq	_OV534_REG_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$96, %edx
	callq	_reg_w
	movq	%r14, %rdi
	movl	$18, %esi
	movl	$128, %edx
	callq	_sccb_write
	movl	$10, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_sccb_read
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_sccb_read
	movl	%eax, %ebx
	shll	$8, %ebx
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_sccb_read
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_sccb_read
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_gspca_dbg
	movl	%r15d, %eax
	andl	$-16, %eax
	movswl	%ax, %ecx
	movzwl	%cx, %eax
	cmpl	$13839, %ecx                    ## imm = 0x360F
	jg	LBB0_5
## %bb.1:
	cmpl	$38480, %eax                    ## imm = 0x9650
	je	LBB0_8
## %bb.2:
	cmpl	$38672, %eax                    ## imm = 0x9710
	jne	LBB0_11
## %bb.3:
	movq	_SENSOR_OV971x@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ov971x_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%r14)
	movabsq	$70368744177665, %rax           ## imm = 0x400000000001
	movq	%rax, 8(%r14)
	movl	$2, 16(%r14)
	movq	_ov971x_init@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_sccb_w_array
	movq	%r14, %rdi
	movl	$28, %esi
	xorl	%edx, %edx
	callq	_reg_w
	movq	%r14, %rdi
	movl	$29, %esi
	xorl	%edx, %edx
	callq	_reg_w
	leaq	40(%r14), %rdi
	callq	_video_device_node_name
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	cltq
	cmpb	$48, -1(%rax,%rbx)
	jne	LBB0_12
## %bb.4:
	movq	%r14, %rdi
	movl	$86, %esi
	movl	$31, %edx
	jmp	LBB0_13
LBB0_5:
	cmpl	$13840, %eax                    ## imm = 0x3610
	je	LBB0_10
## %bb.6:
	cmpl	$22048, %eax                    ## imm = 0x5620
	jne	LBB0_11
## %bb.7:
	movq	_SENSOR_OV562x@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ov562x_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%r14)
	movq	_ov562x_init@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_reg_w_array
	movq	_ov562x_init_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_sccb_w_array
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_8:
	movq	_SENSOR_OV965x@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ov965x_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%r14)
	movq	_bridge_init@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_reg_w_array
	movq	_ov965x_init@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_sccb_w_array
	movq	_bridge_init_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_reg_w_array
	movq	_ov965x_init_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_sccb_w_array
	movq	%r14, %rdi
	movl	$224, %esi
	xorl	%edx, %edx
	callq	_reg_w
	movq	%r14, %rdi
	movl	$224, %esi
	movl	$1, %edx
	callq	_reg_w
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_set_led
LBB0_9:
	movq	%r14, %rdi
	movl	$224, %esi
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_10:
	movq	_SENSOR_OV361x@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ov361x_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%r14)
	movq	%r14, %rdi
	movl	$231, %esi
	movl	$58, %edx
	callq	_reg_w
	movq	%r14, %rdi
	movl	$241, %esi
	movl	$96, %edx
	callq	_reg_w
	movq	%r14, %rdi
	movl	$18, %esi
	movl	$128, %edx
	callq	_sccb_write
	jmp	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	movl	$86, %esi
	movl	$23, %edx
LBB0_13:
	callq	_reg_w
LBB0_14:
	movl	(%r14), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV534_REG_ADDRESS,4,2          ## @OV534_REG_ADDRESS
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor ID: %04x\n"

	.comm	_SENSOR_OV965x,4,2              ## @SENSOR_OV965x
	.comm	_ov965x_mode,8,3                ## @ov965x_mode
	.comm	_bridge_init,8,3                ## @bridge_init
	.comm	_ov965x_init,8,3                ## @ov965x_init
	.comm	_bridge_init_2,8,3              ## @bridge_init_2
	.comm	_ov965x_init_2,8,3              ## @ov965x_init_2
	.comm	_SENSOR_OV971x,4,2              ## @SENSOR_OV971x
	.comm	_ov971x_mode,8,3                ## @ov971x_mode
	.comm	_ov971x_init,8,3                ## @ov971x_init
	.comm	_SENSOR_OV562x,4,2              ## @SENSOR_OV562x
	.comm	_ov562x_mode,8,3                ## @ov562x_mode
	.comm	_ov562x_init,8,3                ## @ov562x_init
	.comm	_ov562x_init_2,8,3              ## @ov562x_init_2
	.comm	_SENSOR_OV361x,4,2              ## @SENSOR_OV361x
	.comm	_ov361x_mode,8,3                ## @ov361x_mode
L_.str.1:                               ## @.str.1
	.asciz	"Unknown sensor %04x"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sd_init
.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 sd_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	16384                           ; 0x4000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sd_init:                               ; @sd_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	w1, #231
	mov	w2, #58
	bl	_reg_w
	mov	x0, x19
	mov	w1, #224
	mov	w2, #8
	bl	_reg_w
	mov	w0, #100
	bl	_msleep
Lloh0:
	adrp	x8, _OV534_REG_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV534_REG_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #96
	bl	_reg_w
	mov	x0, x19
	mov	w1, #18
	mov	w2, #128
	bl	_sccb_write
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	mov	w1, #10
	bl	_sccb_read
	mov	x0, x19
	mov	w1, #10
	bl	_sccb_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #11
	bl	_sccb_read
	mov	x0, x19
	mov	w1, #11
	bl	_sccb_read
	orr	w20, w0, w20, lsl #8
Lloh3:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_gspca_dbg
	and	w8, w20, #0xfff0
	mov	w9, #38479
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.1:
	mov	w9, #13840
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.2:
	mov	w9, #22048
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.3:
Lloh8:
	adrp	x8, _SENSOR_OV562x@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SENSOR_OV562x@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh11:
	adrp	x8, _ov562x_mode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ov562x_mode@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	str	x0, [x19, #32]
	bl	_ARRAY_SIZE
	str	x0, [x19, #24]
Lloh14:
	adrp	x8, _ov562x_init@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ov562x_init@GOTPAGEOFF]
Lloh16:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_reg_w_array
Lloh17:
	adrp	x8, _ov562x_init_2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ov562x_init_2@GOTPAGEOFF]
Lloh19:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_sccb_w_array
	b	LBB0_7
LBB0_4:
	mov	w9, #38672
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.5:
	mov	w9, #38480
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.6:
Lloh20:
	adrp	x8, _SENSOR_OV965x@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SENSOR_OV965x@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh23:
	adrp	x8, _ov965x_mode@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ov965x_mode@GOTPAGEOFF]
Lloh25:
	ldr	x0, [x8]
	str	x0, [x19, #32]
	bl	_ARRAY_SIZE
	str	x0, [x19, #24]
Lloh26:
	adrp	x8, _bridge_init@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bridge_init@GOTPAGEOFF]
Lloh28:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_reg_w_array
Lloh29:
	adrp	x8, _ov965x_init@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ov965x_init@GOTPAGEOFF]
Lloh31:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_sccb_w_array
Lloh32:
	adrp	x8, _bridge_init_2@GOTPAGE
Lloh33:
	ldr	x8, [x8, _bridge_init_2@GOTPAGEOFF]
Lloh34:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_reg_w_array
Lloh35:
	adrp	x8, _ov965x_init_2@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ov965x_init_2@GOTPAGEOFF]
Lloh37:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_sccb_w_array
	mov	x0, x19
	mov	w1, #224
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #224
	mov	w2, #1
	bl	_reg_w
	mov	x0, x19
	mov	w1, #0
	bl	_set_led
LBB0_7:
	mov	x0, x19
	mov	w1, #224
	mov	w2, #0
LBB0_8:
	bl	_reg_w
	b	LBB0_11
LBB0_9:
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_err
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
Lloh43:
	adrp	x8, _SENSOR_OV361x@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SENSOR_OV361x@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh46:
	adrp	x8, _ov361x_mode@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ov361x_mode@GOTPAGEOFF]
Lloh48:
	ldr	x0, [x8]
	str	x0, [x19, #32]
	bl	_ARRAY_SIZE
	str	x0, [x19, #24]
	mov	x0, x19
	mov	w1, #231
	mov	w2, #58
	bl	_reg_w
	mov	x0, x19
	mov	w1, #241
	mov	w2, #96
	bl	_reg_w
	mov	x0, x19
	mov	w1, #18
	mov	w2, #128
	bl	_sccb_write
LBB0_11:
	ldr	w0, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh49:
	adrp	x8, _SENSOR_OV971x@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SENSOR_OV971x@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh52:
	adrp	x8, _ov971x_mode@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ov971x_mode@GOTPAGEOFF]
Lloh54:
	ldr	x0, [x8]
	str	x0, [x19, #32]
	bl	_ARRAY_SIZE
	str	x0, [x19, #24]
Lloh55:
	adrp	x8, lCPI0_0@PAGE
Lloh56:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	mov	w8, #2
	str	w8, [x19, #16]
Lloh57:
	adrp	x8, _ov971x_init@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ov971x_init@GOTPAGEOFF]
Lloh59:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_sccb_w_array
	mov	x0, x19
	mov	w1, #28
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #29
	mov	w2, #0
	bl	_reg_w
	add	x0, x19, #40
	bl	_video_device_node_name
	mov	x20, x0
	bl	_strlen
	add	x8, x20, w0, sxtw
	ldurb	w8, [x8, #-1]
	mov	x0, x19
	mov	w1, #86
	cmp	w8, #48
	b.ne	LBB0_15
; %bb.14:
	mov	w2, #31
	b	LBB0_8
LBB0_15:
	mov	w2, #23
	b	LBB0_8
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdr	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_OV534_REG_ADDRESS,4,2          ; @OV534_REG_ADDRESS
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor ID: %04x\n"

	.comm	_SENSOR_OV965x,4,2              ; @SENSOR_OV965x
	.comm	_ov965x_mode,8,3                ; @ov965x_mode
	.comm	_bridge_init,8,3                ; @bridge_init
	.comm	_ov965x_init,8,3                ; @ov965x_init
	.comm	_bridge_init_2,8,3              ; @bridge_init_2
	.comm	_ov965x_init_2,8,3              ; @ov965x_init_2
	.comm	_SENSOR_OV971x,4,2              ; @SENSOR_OV971x
	.comm	_ov971x_mode,8,3                ; @ov971x_mode
	.comm	_ov971x_init,8,3                ; @ov971x_init
	.comm	_SENSOR_OV562x,4,2              ; @SENSOR_OV562x
	.comm	_ov562x_mode,8,3                ; @ov562x_mode
	.comm	_ov562x_init,8,3                ; @ov562x_init
	.comm	_ov562x_init_2,8,3              ; @ov562x_init_2
	.comm	_SENSOR_OV361x,4,2              ; @SENSOR_OV361x
	.comm	_ov361x_mode,8,3                ; @ov361x_mode
l_.str.1:                               ; @.str.1
	.asciz	"Unknown sensor %04x"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sd_init
.subsections_via_symbols
