	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7630_probe
_ov7630_probe:                          ## @ov7630_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, %rbx
	movl	$23, %esi
	movl	$98, %edx
	callq	_reg_w1
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$8, %edx
	callq	_reg_w1
	movl	$33, (%rbx)
	movq	%rbx, %rdi
	movl	$10, %esi
	movl	$2, %edx
	callq	_i2c_r
	movq	(%rbx), %rax
	movl	12(%rax), %r14d
	shll	$8, %r14d
	orl	16(%rax), %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$41, %edx
	callq	_reg_w1
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$66, %edx
	callq	_reg_w1
	cmpq	$0, 8(%rbx)
	js	LBB0_3
## %bb.1:
	cmpl	$30248, %r14d                   ## imm = 0x7628
	jne	LBB0_2
## %bb.4:
	movq	_SENSOR_SOI768@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_V4L2_IN_ST_VFLIP@GOTPCREL(%rip), %rax
	movq	_V4L2_IN_ST_HFLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gspca_dbg                      ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gspca_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_SOI768,4,2              ## @SENSOR_SOI768
	.comm	_V4L2_IN_ST_VFLIP,4,2           ## @V4L2_IN_ST_VFLIP
	.comm	_V4L2_IN_ST_HFLIP,4,2           ## @V4L2_IN_ST_HFLIP
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor soi768\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sensor ov%04x\n"

	.no_dead_strip	_ov7630_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7630_probe
_ov7630_probe:                          ; @ov7630_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	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_4
; %bb.1:
	orr	w8, w21, w20, lsl #8
	mov	w9, #30248
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _SENSOR_SOI768@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SENSOR_SOI768@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh3:
	adrp	x8, _V4L2_IN_ST_VFLIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_IN_ST_VFLIP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _V4L2_IN_ST_HFLIP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_IN_ST_HFLIP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #16]
Lloh9:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	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	_gspca_dbg
LBB0_3:
Lloh14:
	adrp	x9, _D_PROBE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _D_PROBE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
LBB0_4:
	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
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_SOI768,4,2              ; @SENSOR_SOI768
	.comm	_V4L2_IN_ST_VFLIP,4,2           ; @V4L2_IN_ST_VFLIP
	.comm	_V4L2_IN_ST_HFLIP,4,2           ; @V4L2_IN_ST_HFLIP
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor soi768\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sensor ov%04x\n"

	.no_dead_strip	_ov7630_probe
.subsections_via_symbols
