	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov772x_video_probe
_ov772x_video_probe:                    ## @ov772x_video_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$8, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ov772x_power_on
	testl	%eax, %eax
	js	LBB0_16
## %bb.1:
	movl	4(%r15), %edi
	movq	_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movl	4(%r15), %edi
	movq	_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_16
## %bb.3:
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %esi
	callq	_VERSION
	cmpl	$129, %eax
	je	LBB0_9
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.5:
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %r12
LBB0_10:
	movl	4(%r15), %edi
	movq	_MIDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_16
## %bb.11:
	movl	4(%r15), %edi
	movq	_MIDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_16
## %bb.12:
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %r8d
	movl	-48(%rbp), %r9d
	movl	-44(%rbp), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_dev_info
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_setup
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_16:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movq	%r15, %rdi
	callq	_ov772x_power_off
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PID,4,2                        ## @PID
	.comm	_VER,4,2                        ## @VER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ov7720"

L_.str.1:                               ## @.str.1
	.asciz	"ov7725"

L_.str.2:                               ## @.str.2
	.asciz	"Product ID error %x:%x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MIDH,4,2                       ## @MIDH
	.comm	_MIDL,4,2                       ## @MIDL
L_.str.3:                               ## @.str.3
	.asciz	"%s Product ID %0x:%0x Manufacturer ID %x:%x\n"

	.no_dead_strip	_ov772x_video_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov772x_video_probe
_ov772x_video_probe:                    ; @ov772x_video_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
	add	x0, x0, #8
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	mov	x0, x19
	bl	_ov772x_power_on
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _PID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.2:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _VER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldp	w1, w0, [sp, #8]
	bl	_VERSION
	cmp	w0, #129
	b.eq	LBB0_6
; %bb.4:
	cmp	w0, #128
	b.ne	LBB0_12
; %bb.5:
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
LBB0_7:
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x8, _MIDH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MIDH@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _MIDL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MIDL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.9:
	ldp	w4, w3, [sp, #8]
	ldp	w6, w5, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_info
	mov	x0, x19
	bl	_v4l2_ctrl_handler_setup
	mov	x21, x0
	b	LBB0_13
LBB0_10:
	mov	x21, x0
LBB0_11:
	mov	x0, x21
	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_12:
	ldp	w3, w2, [sp, #8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x19
	bl	_ov772x_power_off
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PID,4,2                        ; @PID
	.comm	_VER,4,2                        ; @VER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ov7720"

l_.str.1:                               ; @.str.1
	.asciz	"ov7725"

l_.str.2:                               ; @.str.2
	.asciz	"Product ID error %x:%x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MIDH,4,2                       ; @MIDH
	.comm	_MIDL,4,2                       ; @MIDL
l_.str.3:                               ; @.str.3
	.asciz	"%s Product ID %0x:%0x Manufacturer ID %x:%x\n"

	.no_dead_strip	_ov772x_video_probe
.subsections_via_symbols
