	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movabsq	$1095216660735, %rcx            ## imm = 0xFF000000FF
	movq	%rcx, (%rax)
	movq	_SQ930_CTRL_GET_DEV_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_reg_r
	movq	(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movq	_D_PROBE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	8(%rbx), %r8
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$8, %ecx
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	%rbx, %rdi
	callq	_bridge_init
	movq	8(%rbx), %rax
	movq	_SENSOR_MI0360@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	cmpl	$246, 20(%rax)
	jne	LBB0_4
## %bb.3:
	movq	_SENSOR_ICX098BQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_cmos_probe
LBB0_5:
	movq	(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movl	(%r14), %esi
	movq	_sensor_tb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_global_init
	movq	(%rbx), %rax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQ930_CTRL_GET_DEV_INFO,4,2    ## @SQ930_CTRL_GET_DEV_INFO
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: %*ph\n"

	.comm	_SENSOR_MI0360,8,3              ## @SENSOR_MI0360
	.comm	_SENSOR_ICX098BQ,8,3            ## @SENSOR_ICX098BQ
L_.str.1:                               ## @.str.1
	.asciz	"Sensor %s\n"

	.comm	_sensor_tb,8,3                  ## @sensor_tb
	.no_dead_strip	_sd_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_init
_sd_init:                               ; @sd_init
	.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
	ldr	x8, [x0]
	movi	d0, #0x0000ff000000ff
	str	d0, [x8]
Lloh0:
	adrp	x8, _SQ930_CTRL_GET_DEV_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQ930_CTRL_GET_DEV_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_reg_r
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_6
; %bb.1:
Lloh3:
	adrp	x20, _D_PROBE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _D_PROBE@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w3, #8
	bl	_gspca_dbg
	mov	x0, x19
	bl	_bridge_init
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _SENSOR_MI0360@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SENSOR_MI0360@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x8, #20]
	cmp	w8, #246
	b.ne	LBB0_7
; %bb.3:
Lloh10:
	adrp	x8, _SENSOR_ICX098BQ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SENSOR_ICX098BQ@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_4:
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_6
LBB0_5:
	ldr	w1, [x20]
Lloh13:
	adrp	x8, _sensor_tb@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sensor_tb@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	w3, [x8, x9, lsl #2]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	mov	x0, x19
	mov	w1, #1
	bl	_global_init
	ldr	x0, [x19]
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	mov	x0, x19
	bl	_cmos_probe
	ldr	x0, [x19]
	tbz	x0, #63, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SQ930_CTRL_GET_DEV_INFO,4,2    ; @SQ930_CTRL_GET_DEV_INFO
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: %*ph\n"

	.comm	_SENSOR_MI0360,8,3              ; @SENSOR_MI0360
	.comm	_SENSOR_ICX098BQ,8,3            ; @SENSOR_ICX098BQ
l_.str.1:                               ; @.str.1
	.asciz	"Sensor %s\n"

	.comm	_sensor_tb,8,3                  ; @sensor_tb
	.no_dead_strip	_sd_init
.subsections_via_symbols
