	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7740_detect
_ov7740_detect:                         ## @ov7740_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	_REG_MIDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	cmpl	$127, -24(%rbp)
	jne	LBB0_8
## %bb.2:
	movq	_REG_MIDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	cmpl	$162, -20(%rbp)
	jne	LBB0_8
## %bb.4:
	movq	_REG_PIDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	cmpl	$119, -16(%rbp)
	jne	LBB0_8
## %bb.6:
	movq	_REG_PIDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	-12(%rbp), %ecx
	addl	$-64, %ecx
	xorl	%eax, %eax
	cmpl	$3, %ecx
	jb	LBB0_9
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MIDH,4,2                   ## @REG_MIDH
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_REG_MIDL,4,2                   ## @REG_MIDL
	.comm	_REG_PIDH,4,2                   ## @REG_PIDH
	.comm	_REG_PIDL,4,2                   ## @REG_PIDL
	.no_dead_strip	_ov7740_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7740_detect
_ov7740_detect:                         ; @ov7740_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _REG_MIDH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_MIDH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_regmap_read
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #127
	b.ne	LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _REG_MIDL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_MIDL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_regmap_read
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w8, [sp, #8]
	cmp	w8, #162
	b.ne	LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _REG_PIDH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_PIDH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x19
	bl	_regmap_read
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w8, [sp, #4]
	cmp	w8, #119
	b.ne	LBB0_9
; %bb.6:
Lloh9:
	adrp	x8, _REG_PIDL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_PIDL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_regmap_read
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w8, [sp]
	sub	w8, w8, #64
	cmp	w8, #3
	b.hs	LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MIDH,4,2                   ; @REG_MIDH
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_REG_MIDL,4,2                   ; @REG_MIDL
	.comm	_REG_PIDH,4,2                   ; @REG_PIDH
	.comm	_REG_PIDL,4,2                   ; @REG_PIDL
	.no_dead_strip	_ov7740_detect
.subsections_via_symbols
