	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mi0360_probe
_mi0360_probe:                          ## @mi0360_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	_mi0360_probe.probe_tb(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.4:
	xorl	%r13d, %r13d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$23, %esi
	movl	$98, %edx
	callq	_reg_w1
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$8, %edx
	callq	_reg_w1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_w8
	leaq	64(%rbx), %rsi
	movq	%r15, %rdi
	callq	_i2c_w8
	leaq	128(%rbx), %rsi
	movq	%r15, %rdi
	callq	_i2c_w8
	movl	$2, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$10, %esi
	movl	$5, %edx
	callq	_reg_r
	movq	(%r15), %rax
	movl	12(%rax), %r12d
	shll	$8, %r12d
	orl	16(%rax), %r12d
	cmpq	$1, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	192(%rbx), %rsi
	movq	%r15, %rdi
	callq	_i2c_w8
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$41, %edx
	callq	_reg_w1
	movq	%r15, %rdi
	movl	$23, %esi
	movl	$66, %edx
	callq	_reg_w1
	cmpl	$65535, %r12d                   ## imm = 0xFFFF
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$256, %rbx                      ## imm = 0x100
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.3:
	movl	$65535, %r12d                   ## imm = 0xFFFF
LBB0_8:
	cmpq	$0, 8(%r15)
	jns	LBB0_9
	jmp	LBB0_14
LBB0_1:
	xorl	%r12d, %r12d
	cmpq	$0, 8(%r15)
	js	LBB0_14
LBB0_9:
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	cmpl	$33347, %r12d                   ## imm = 0x8243
	je	LBB0_16
## %bb.10:
	cmpl	$33338, %r12d                   ## imm = 0x823A
	je	LBB0_15
## %bb.11:
	cmpl	$33313, %r12d                   ## imm = 0x8221
	jne	LBB0_17
## %bb.12:
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	_SENSOR_MI0360B@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_16:
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gspca_dbg                      ## TAILCALL
LBB0_15:
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	_SENSOR_MT9V111@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gspca_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @mi0360_probe.probe_tb
_mi0360_probe.probe_tb:
	.quad	176                             ## 0xb0
	.quad	93                              ## 0x5d
	.quad	7                               ## 0x7
	.quad	0                               ## 0x0
	.quad	2                               ## 0x2
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	16                              ## 0x10
	.quad	144                             ## 0x90
	.quad	93                              ## 0x5d
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	16                              ## 0x10
	.quad	162                             ## 0xa2
	.quad	93                              ## 0x5d
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	16                              ## 0x10
	.quad	176                             ## 0xb0
	.quad	93                              ## 0x5d
	.quad	7                               ## 0x7
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	16                              ## 0x10
	.quad	176                             ## 0xb0
	.quad	92                              ## 0x5c
	.quad	1                               ## 0x1
	.quad	0                               ## 0x0
	.quad	4                               ## 0x4
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	16                              ## 0x10
	.quad	144                             ## 0x90
	.quad	92                              ## 0x5c
	.quad	54                              ## 0x36
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	16                              ## 0x10
	.quad	162                             ## 0xa2
	.quad	92                              ## 0x5c
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	16                              ## 0x10
	.space	64

	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor mi0360b\n"

	.comm	_SENSOR_MI0360B,4,2             ## @SENSOR_MI0360B
L_.str.1:                               ## @.str.1
	.asciz	"Sensor mt9v111\n"

	.comm	_SENSOR_MT9V111,4,2             ## @SENSOR_MT9V111
L_.str.2:                               ## @.str.2
	.asciz	"Sensor mi0360\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unknown sensor %04x - forced to mi0360\n"

	.no_dead_strip	_mi0360_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mi0360_probe
_mi0360_probe:                          ; @mi0360_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x0, _mi0360_probe.probe_tb@PAGE
Lloh1:
	add	x0, x0, _mi0360_probe.probe_tb@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, #0
Lloh2:
	adrp	x20, _mi0360_probe.probe_tb@PAGE
Lloh3:
	add	x20, x20, _mi0360_probe.probe_tb@PAGEOFF
	mov	w23, #65535
	mov	x21, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #23
	mov	w2, #98
	bl	_reg_w1
	mov	x0, x19
	mov	w1, #1
	mov	w2, #8
	bl	_reg_w1
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_w8
	add	x1, x21, #64
	mov	x0, x19
	bl	_i2c_w8
	add	x1, x21, #128
	mov	x0, x19
	bl	_i2c_w8
	mov	w0, #2
	bl	_msleep
	mov	x0, x19
	mov	w1, #10
	mov	w2, #5
	bl	_reg_r
	ldr	x8, [x19]
	ldp	w24, w25, [x8, #12]
	cmp	x22, #1
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x21, #192
	mov	x0, x19
	bl	_i2c_w8
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	orr	w24, w25, w24, lsl #8
	mov	x0, x19
	mov	w1, #1
	mov	w2, #41
	bl	_reg_w1
	mov	x0, x19
	mov	w1, #23
	mov	w2, #66
	bl	_reg_w1
	cmp	w24, w23
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x21, x21, #256
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
; %bb.6:
	mov	w24, #65535
LBB0_7:
	ldr	x8, [x19, #8]
	tbz	x8, #63, LBB0_9
	b	LBB0_17
LBB0_8:
	mov	w24, #0
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_17
LBB0_9:
	mov	w8, #33347
	cmp	w24, w8
	b.eq	LBB0_13
; %bb.10:
	mov	w8, #33338
	cmp	w24, w8
	b.eq	LBB0_14
; %bb.11:
	mov	w8, #33313
	cmp	w24, w8
	b.ne	LBB0_16
; %bb.12:
Lloh4:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh9:
	adrp	x8, _SENSOR_MI0360B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SENSOR_MI0360B@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh11:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_gspca_dbg
LBB0_14:
Lloh16:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh21:
	adrp	x8, _SENSOR_MT9V111@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SENSOR_MT9V111@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_17
LBB0_16:
Lloh23:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	str	x24, [sp]
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @mi0360_probe.probe_tb
_mi0360_probe.probe_tb:
	.quad	176                             ; 0xb0
	.quad	93                              ; 0x5d
	.quad	7                               ; 0x7
	.quad	0                               ; 0x0
	.quad	2                               ; 0x2
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	16                              ; 0x10
	.quad	144                             ; 0x90
	.quad	93                              ; 0x5d
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	16                              ; 0x10
	.quad	162                             ; 0xa2
	.quad	93                              ; 0x5d
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	16                              ; 0x10
	.quad	176                             ; 0xb0
	.quad	93                              ; 0x5d
	.quad	7                               ; 0x7
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	16                              ; 0x10
	.quad	176                             ; 0xb0
	.quad	92                              ; 0x5c
	.quad	1                               ; 0x1
	.quad	0                               ; 0x0
	.quad	4                               ; 0x4
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	16                              ; 0x10
	.quad	144                             ; 0x90
	.quad	92                              ; 0x5c
	.quad	54                              ; 0x36
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	16                              ; 0x10
	.quad	162                             ; 0xa2
	.quad	92                              ; 0x5c
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	16                              ; 0x10
	.space	64

	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor mi0360b\n"

	.comm	_SENSOR_MI0360B,4,2             ; @SENSOR_MI0360B
l_.str.1:                               ; @.str.1
	.asciz	"Sensor mt9v111\n"

	.comm	_SENSOR_MT9V111,4,2             ; @SENSOR_MT9V111
l_.str.2:                               ; @.str.2
	.asciz	"Sensor mi0360\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unknown sensor %04x - forced to mi0360\n"

	.no_dead_strip	_mi0360_probe
.subsections_via_symbols
