	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7648_probe
_ov7648_probe:                          ## @ov7648_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$23, %esi
	movl	$98, %edx
	callq	_reg_w1
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$8, %edx
	callq	_reg_w1
	movl	$33, (%r14)
	movq	%r14, %rdi
	movl	$10, %esi
	movl	$2, %edx
	callq	_i2c_r
	movq	(%r14), %rax
	movl	12(%rax), %ebx
	shll	$8, %ebx
	orl	16(%rax), %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$41, %edx
	callq	_reg_w1
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$66, %edx
	callq	_reg_w1
	movl	%ebx, %eax
	andl	$65280, %eax                    ## imm = 0xFF00
	cmpl	$30208, %eax                    ## imm = 0x7600
	jne	LBB0_1
## %bb.5:
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gspca_dbg                      ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$98, %edx
	callq	_reg_w1
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$8, %edx
	callq	_reg_w1
	movl	$110, (%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_i2c_r
	movq	(%r14), %rax
	movl	12(%rax), %ebx
	shll	$8, %ebx
	orl	16(%rax), %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$41, %edx
	callq	_reg_w1
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$66, %edx
	callq	_reg_w1
	cmpq	$0, 8(%r14)
	js	LBB0_4
## %bb.2:
	cmpl	$4144, %ebx                     ## imm = 0x1030
	jne	LBB0_6
## %bb.3:
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	_SENSOR_PO1030@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor ov%04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sensor po1030\n"

	.comm	_SENSOR_PO1030,4,2              ## @SENSOR_PO1030
L_.str.2:                               ## @.str.2
	.asciz	"Unknown sensor %04x\n"

	.no_dead_strip	_ov7648_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7648_probe
_ov7648_probe:                          ; @ov7648_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w1, #23
	mov	w2, #98
	bl	_reg_w1
	mov	x0, x19
	mov	w1, #1
	mov	w2, #8
	bl	_reg_w1
	mov	w8, #33
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #10
	mov	w2, #2
	bl	_i2c_r
	ldr	x8, [x19]
	ldp	w9, w8, [x8, #12]
	orr	w20, w8, w9, 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
	and	w8, w20, #0xff00
	mov	w9, #30208
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	b	LBB0_5
LBB0_2:
	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	w8, #110
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_i2c_r
	ldr	x8, [x19]
	ldp	w20, w21, [x8, #12]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #41
	bl	_reg_w1
	mov	x0, x19
	mov	w1, #23
	mov	w2, #66
	bl	_reg_w1
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_5
; %bb.3:
	orr	w1, w21, w20, lsl #8
	mov	w8, #4144
	cmp	w1, w8
	b.ne	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh10:
	adrp	x8, _SENSOR_PO1030@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SENSOR_PO1030@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_pr_err
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor ov%04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sensor po1030\n"

	.comm	_SENSOR_PO1030,4,2              ; @SENSOR_PO1030
l_.str.2:                               ; @.str.2
	.asciz	"Unknown sensor %04x\n"

	.no_dead_strip	_ov7648_probe
.subsections_via_symbols
