	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7670_detect
_ov7670_detect:                         ## @ov7670_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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_ov7670_init
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	_REG_MIDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-9(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ov7670_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	cmpb	$127, -9(%rbp)
	jne	LBB0_9
## %bb.3:
	movq	_REG_MIDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-9(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ov7670_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	cmpb	$-94, -9(%rbp)
	jne	LBB0_9
## %bb.5:
	movq	_REG_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-9(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ov7670_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	cmpb	$118, -9(%rbp)
	jne	LBB0_9
## %bb.7:
	movq	_REG_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-9(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ov7670_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	cmpb	$115, -9(%rbp)
	je	LBB0_10
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %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_PID,4,2                    ## @REG_PID
	.comm	_REG_VER,4,2                    ## @REG_VER
	.no_dead_strip	_ov7670_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7670_detect
_ov7670_detect:                         ; @ov7670_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
	mov	x19, x0
	mov	w1, #0
	bl	_ov7670_init
	tbnz	w0, #31, LBB0_11
; %bb.1:
Lloh0:
	adrp	x8, _REG_MIDH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_MIDH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #15
	mov	x0, x19
	bl	_ov7670_read
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldrb	w8, [sp, #15]
	cmp	w8, #127
	b.ne	LBB0_10
; %bb.3:
Lloh3:
	adrp	x8, _REG_MIDL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_MIDL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #15
	mov	x0, x19
	bl	_ov7670_read
	tbnz	w0, #31, LBB0_11
; %bb.4:
	ldrb	w8, [sp, #15]
	cmp	w8, #162
	b.ne	LBB0_10
; %bb.5:
Lloh6:
	adrp	x8, _REG_PID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_PID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #15
	mov	x0, x19
	bl	_ov7670_read
	tbnz	w0, #31, LBB0_11
; %bb.6:
	ldrb	w8, [sp, #15]
	cmp	w8, #118
	b.ne	LBB0_10
; %bb.7:
Lloh9:
	adrp	x8, _REG_VER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_VER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #15
	mov	x0, x19
	bl	_ov7670_read
	tbnz	w0, #31, LBB0_11
; %bb.8:
	ldrb	w8, [sp, #15]
	cmp	w8, #115
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_PID,4,2                    ; @REG_PID
	.comm	_REG_VER,4,2                    ; @REG_VER
	.no_dead_strip	_ov7670_detect
.subsections_via_symbols
