	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_ov772x
	movl	8(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	callq	_to_soc_camera_host
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r14d
	movq	_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_VERSION
	cmpl	$129, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.6:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_V4L2_IDENT_OV7725@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_V4L2_IDENT_OV7720@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_MIDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movq	_MIDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_dev_err
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PID,4,2                        ## @PID
	.comm	_VER,4,2                        ## @VER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ov7720"

	.comm	_V4L2_IDENT_OV7720,4,2          ## @V4L2_IDENT_OV7720
L_.str.1:                               ## @.str.1
	.asciz	"ov7725"

	.comm	_V4L2_IDENT_OV7725,4,2          ## @V4L2_IDENT_OV7725
L_.str.2:                               ## @.str.2
	.asciz	"Product ID error %x:%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s Product ID %0x:%0x Manufacturer ID %x:%x\n"

	.comm	_MIDH,4,2                       ## @MIDH
	.comm	_MIDL,4,2                       ## @MIDL
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_to_ov772x
	mov	x21, x0
	ldr	w0, [x20, #8]
	cbz	w0, LBB0_8
; %bb.1:
	bl	_to_soc_camera_host
	ldr	x8, [x0]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _PID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
Lloh3:
	adrp	x8, _VER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_VERSION
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh8:
	adrp	x8, _V4L2_IDENT_OV7725@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_IDENT_OV7725@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
Lloh12:
	adrp	x8, _V4L2_IDENT_OV7720@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_IDENT_OV7720@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh14:
	adrp	x8, _MIDH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MIDH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
Lloh17:
	adrp	x8, _MIDL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MIDL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x6, x0
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	x3, x20
	mov	x4, x22
	mov	x5, x21
	bl	_dev_info
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	bl	_dev_err
LBB0_8:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PID,4,2                        ; @PID
	.comm	_VER,4,2                        ; @VER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ov7720"

	.comm	_V4L2_IDENT_OV7720,4,2          ; @V4L2_IDENT_OV7720
l_.str.1:                               ; @.str.1
	.asciz	"ov7725"

	.comm	_V4L2_IDENT_OV7725,4,2          ; @V4L2_IDENT_OV7725
l_.str.2:                               ; @.str.2
	.asciz	"Product ID error %x:%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s Product ID %0x:%0x Manufacturer ID %x:%x\n"

	.comm	_MIDH,4,2                       ; @MIDH
	.comm	_MIDL,4,2                       ; @MIDL
	.no_dead_strip	_ov772x_video_probe
.subsections_via_symbols
