	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k4aa_probe                   ## -- Begin function s5k4aa_probe
	.p2align	4, 0x90
_s5k4aa_probe:                          ## @s5k4aa_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	$88, %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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	l___const.s5k4aa_probe.expected_prod_id+16(%rip), %rax
	movq	%rax, -96(%rbp)
	movaps	l___const.s5k4aa_probe.expected_prod_id(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movq	_force_sensor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_S5K4AA_SENSOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.2:
	movq	_s5k4aa@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_3:
	movq	_s5k4aa_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r15)
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_22
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_s5k4aa@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_15
## %bb.5:
	movl	$1, %ebx
	leaq	-120(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -120(%rbp)
	movq	(%r12), %rax
	movq	-8(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$129, %ecx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$130, %ecx
	jne	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movq	%r15, %rdi
	callq	_m5602_write_bridge
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, -120(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -116(%rbp)
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, -120(%rbp)
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_m5602_write_sensor
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r13d
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	testl	%r13d, %r13d
	je	LBB0_6
LBB0_15:
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$2, %ecx
	callq	_m5602_read_sensor
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_17:
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$2, %ecx
	callq	_m5602_read_sensor
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$2, %ecx
	callq	_m5602_read_sensor
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	leaq	-80(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	movl	$24, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_25
LBB0_20:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_21:
	subl	(%rax), %ebx
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.23:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_25:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_3
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.s5k4aa_probe.expected_prod_id
l___const.s5k4aa_probe.expected_prod_id:
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.long	0                               ## 0x0
	.long	75                              ## 0x4b
	.long	51                              ## 0x33
	.long	117                             ## 0x75

	.comm	_force_sensor,8,3               ## @force_sensor
	.comm	_S5K4AA_SENSOR,8,3              ## @S5K4AA_SENSOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Forcing a %s sensor\n"

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

	.comm	_preinit_s5k4aa,8,3             ## @preinit_s5k4aa
L_.str.2:                               ## @.str.2
	.asciz	"Invalid stream command, exiting init\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Detected a s5k4aa sensor\n"

	.comm	_s5k4aa_modes,8,3               ## @s5k4aa_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k4aa_probe                   ; -- Begin function s5k4aa_probe
	.p2align	2
_s5k4aa_probe:                          ; @s5k4aa_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	xzr, xzr, [sp, #48]
	str	xzr, [sp, #64]
Lloh3:
	adrp	x8, l___const.s5k4aa_probe.expected_prod_id@PAGE
Lloh4:
	add	x8, x8, l___const.s5k4aa_probe.expected_prod_id@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
Lloh5:
	adrp	x8, _force_sensor@GOTPAGE
Lloh6:
	ldr	x8, [x8, _force_sensor@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh8:
	adrp	x9, _S5K4AA_SENSOR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _S5K4AA_SENSOR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.2:
Lloh11:
	adrp	x8, _s5k4aa@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s5k4aa@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_pr_info
Lloh16:
	adrp	x8, _s5k4aa_modes@GOTPAGE
Lloh17:
	ldr	x8, [x8, _s5k4aa_modes@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_20
LBB0_4:
Lloh18:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh23:
	adrp	x21, _preinit_s5k4aa@GOTPAGE
Lloh24:
	ldr	x21, [x21, _preinit_s5k4aa@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x22, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	d0, [x8, #8]
	str	d0, [sp, #8]
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_m5602_write_sensor
LBB0_8:                                 ;   in Loop: Header=BB0_9 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_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	ldr	x8, [x21]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w9, #129
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w9, #130
	b.ne	LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldp	w1, w2, [x8, #4]
	mov	x0, x19
	bl	_m5602_write_bridge
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldp	w1, w9, [x8, #4]
	str	w9, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	b	LBB0_7
LBB0_14:
	add	x20, sp, #48
	add	x2, sp, #48
	mov	x0, x19
	mov	w1, #0
	mov	w3, #2
	bl	_m5602_read_sensor
	cbnz	x0, LBB0_18
; %bb.15:
	add	x2, x20, #8
	mov	x0, x19
	mov	w1, #2
	mov	w3, #2
	bl	_m5602_read_sensor
	cbnz	x0, LBB0_18
; %bb.16:
	add	x8, sp, #48
	add	x2, x8, #16
	mov	x0, x19
	mov	w1, #4
	mov	w3, #2
	bl	_m5602_read_sensor
	cbnz	x0, LBB0_18
; %bb.17:
	add	x0, sp, #48
	add	x1, sp, #16
	mov	w2, #24
	bl	_memcmp
	cbz	x0, LBB0_23
LBB0_18:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldur	x8, [x29, #-40]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_23:
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.s5k4aa_probe.expected_prod_id
l___const.s5k4aa_probe.expected_prod_id:
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.long	0                               ; 0x0
	.long	75                              ; 0x4b
	.long	51                              ; 0x33
	.long	117                             ; 0x75

	.comm	_force_sensor,8,3               ; @force_sensor
	.comm	_S5K4AA_SENSOR,8,3              ; @S5K4AA_SENSOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Forcing a %s sensor\n"

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

	.comm	_preinit_s5k4aa,8,3             ; @preinit_s5k4aa
l_.str.2:                               ; @.str.2
	.asciz	"Invalid stream command, exiting init\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Detected a s5k4aa sensor\n"

	.comm	_s5k4aa_modes,8,3               ; @s5k4aa_modes
.subsections_via_symbols
