	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k83a_probe                   ## -- Begin function s5k83a_probe
	.p2align	4, 0x90
_s5k83a_probe:                          ## @s5k83a_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_force_sensor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_S5K83A_SENSOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.2:
	movq	_s5k83a@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_3:
	movq	_s5k83a_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 8(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 16(%r15)
	movq	$0, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_4:
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_gspca_dbg
	movq	_preinit_s5k83a@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movl	$1, %ebx
	movq	_SENSOR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	-8(%rax,%rbx,8), %rax
	movdqu	16(%rax), %xmm0
	movdqa	%xmm0, -80(%rbp)
	movq	(%rax), %rcx
	movq	8(%rax), %rsi
	cmpq	(%r14), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	leaq	-80(%rbp), %rdx
	movl	$2, %ecx
	callq	_m5602_write_sensor
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%xmm0, %rdx
	movq	%r15, %rdi
	callq	_m5602_write_bridge
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r13d
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	testl	%r13d, %r13d
	je	LBB0_6
LBB0_11:
	xorl	%r14d, %r14d
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_m5602_read_sensor
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	callq	_m5602_read_sensor
	testq	%rax, %rax
	je	LBB0_17
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_15:
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	cmpq	$255, -56(%rbp)
	je	LBB0_14
## %bb.18:
	cmpq	$255, -48(%rbp)
	je	LBB0_14
## %bb.19:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_force_sensor,8,3               ## @force_sensor
	.comm	_S5K83A_SENSOR,8,3              ## @S5K83A_SENSOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Forcing a %s sensor\n"

	.comm	_s5k83a,4,2                     ## @s5k83a
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_D_PROBE,4,2                    ## @D_PROBE
L_.str.1:                               ## @.str.1
	.asciz	"Probing for a s5k83a sensor\n"

	.comm	_preinit_s5k83a,8,3             ## @preinit_s5k83a
	.comm	_SENSOR,8,3                     ## @SENSOR
L_.str.2:                               ## @.str.2
	.asciz	"Detected a s5k83a sensor\n"

	.comm	_s5k83a_modes,8,3               ## @s5k83a_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k83a_probe                   ; -- Begin function s5k83a_probe
	.p2align	2
_s5k83a_probe:                          ; @s5k83a_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
Lloh0:
	adrp	x8, _force_sensor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _force_sensor@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _S5K83A_SENSOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S5K83A_SENSOR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.2:
Lloh6:
	adrp	x8, _s5k83a@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s5k83a@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_pr_info
Lloh11:
	adrp	x8, _s5k83a_modes@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s5k83a_modes@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	str	x0, [x19, #8]
	bl	_ARRAY_SIZE
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #16]
	str	xzr, [x19]
	b	LBB0_13
LBB0_4:
Lloh14:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh19:
	adrp	x21, _preinit_s5k83a@GOTPAGE
Lloh20:
	ldr	x21, [x21, _preinit_s5k83a@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x22, #0
Lloh21:
	adrp	x23, _SENSOR@GOTPAGE
Lloh22:
	ldr	x23, [x23, _SENSOR@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	fmov	x2, d0
	mov	x0, x19
	bl	_m5602_write_bridge
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x20, x0
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	ccmp	w20, #0, #0, lt
	b.ne	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x22, lsl #3]
	ldr	q0, [x8, #16]
	str	q0, [sp, #16]
	ldr	x9, [x23]
	ldp	x10, x1, [x8]
	cmp	x10, x9
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #2
	bl	_m5602_write_sensor
	b	LBB0_7
LBB0_10:
	add	x2, sp, #40
	mov	x0, x19
	mov	w1, #0
	mov	w3, #1
	bl	_m5602_read_sensor
	cbnz	x0, LBB0_12
; %bb.11:
	add	x2, sp, #32
	mov	x0, x19
	mov	w1, #1
	mov	w3, #1
	bl	_m5602_read_sensor
	cbz	x0, LBB0_14
LBB0_12:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	ldr	x8, [sp, #40]
	cmp	x8, #255
	b.eq	LBB0_12
; %bb.15:
	ldr	x8, [sp, #32]
	cmp	x8, #255
	b.eq	LBB0_12
; %bb.16:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_force_sensor,8,3               ; @force_sensor
	.comm	_S5K83A_SENSOR,8,3              ; @S5K83A_SENSOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Forcing a %s sensor\n"

	.comm	_s5k83a,4,2                     ; @s5k83a
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_D_PROBE,4,2                    ; @D_PROBE
l_.str.1:                               ; @.str.1
	.asciz	"Probing for a s5k83a sensor\n"

	.comm	_preinit_s5k83a,8,3             ; @preinit_s5k83a
	.comm	_SENSOR,8,3                     ; @SENSOR
l_.str.2:                               ; @.str.2
	.asciz	"Detected a s5k83a sensor\n"

	.comm	_s5k83a_modes,8,3               ; @s5k83a_modes
.subsections_via_symbols
