	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7670_enum_frame_interval
_ov7670_enum_frame_interval:            ## @ov7670_enum_frame_interval
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_to_state
	cmpq	$0, 32(%rbx)
	jne	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	16(%rax), %rax
	movl	(%rax), %r12d
	movq	(%rbx), %r13
	movq	_ov7670_frame_rates@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r13
	jae	LBB0_1
## %bb.4:
	testq	%r12, %r12
	je	LBB0_5
## %bb.8:
	movq	(%r14), %rcx
	movq	16(%r14), %rax
	movq	8(%rax), %rdx
	addq	$8, %rdx
	xorl	%eax, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rax
	addq	$16, %rdx
	cmpq	%rax, %r12
	je	LBB0_1
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rcx, -8(%rdx)
	jl	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rsi, (%rdx)
	jl	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rsi
	cmpq	-8(%rdx), %rsi
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%rbx), %rsi
	cmpq	(%rdx), %rsi
	jne	LBB0_15
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	cmpl	%r12d, %eax
	jne	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, 24(%rbx)
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 28(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ov7670_frame_rates,8,3         ## @ov7670_frame_rates
	.no_dead_strip	_ov7670_enum_frame_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7670_enum_frame_interval
_ov7670_enum_frame_interval:            ; @ov7670_enum_frame_interval
	.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, x2
	bl	_to_state
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_13
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w22, [x8]
	ldr	x23, [x19]
Lloh0:
	adrp	x21, _ov7670_frame_rates@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ov7670_frame_rates@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x23, x0
	b.hs	LBB0_13
; %bb.2:
	cbz	w22, LBB0_11
; %bb.3:
	mov	x8, #0
	ldr	x9, [x20, #16]
	ldr	x10, [x9, #8]
	ldr	x9, [x20]
	add	x10, x10, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	add	x10, x10, #16
	cmp	x22, x8
	b.eq	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x9
	b.lt	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x20, #8]
	cbz	x11, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x10]
	cmp	x12, x11
	b.lt	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x19, #8]
	ldur	x12, [x10, #-8]
	cmp	x11, x12
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x19, #16]
	ldr	x12, [x10]
	cmp	x11, x12
	b.ne	LBB0_4
	b	LBB0_12
LBB0_11:
	mov	w8, #0
LBB0_12:
	cmp	w8, w22
	b.ne	LBB0_15
LBB0_13:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
LBB0_15:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #24]
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #28]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ov7670_frame_rates,8,3         ; @ov7670_frame_rates
	.no_dead_strip	_ov7670_enum_frame_interval
.subsections_via_symbols
