	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7670_enum_frame_size
_ov7670_enum_frame_size:                ## @ov7670_enum_frame_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_to_state
	cmpq	$0, 40(%r14)
	je	LBB0_1
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	16(%rax), %rdx
	movl	(%rdx), %ecx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.2:
	movl	(%r14), %r8d
	movq	8(%rdx), %r9
	movq	(%rax), %rbx
	shlq	$4, %rcx
	movl	$-1, %esi
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%esi
	cmpl	%esi, %r8d
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdi
	cmpq	%rdi, %rcx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, (%r9,%rdi)
	jl	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, 8(%r9,%rdi)
	jge	LBB0_7
	jmp	LBB0_9
LBB0_8:
	movq	(%r9,%rdi), %rax
	movq	%rax, 16(%r14)
	movq	%rax, 8(%r14)
	movq	8(%r9,%rdi), %rax
	movq	%rax, 32(%r14)
	movq	%rax, 24(%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ov7670_enum_frame_size
.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_size
_ov7670_enum_frame_size:                ; @ov7670_enum_frame_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_to_state
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x10, [x0, #16]
	ldr	w8, [x10]
	cbz	w8, LBB0_1
; %bb.4:
	ldr	w9, [x19]
	ldr	x10, [x10, #8]
	ldr	x11, [x0]
	add	x10, x10, #8
	mov	w12, #-1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w12, w12, #1
	cmp	w9, w12
	b.eq	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #16
	subs	x8, x8, #1
	b.eq	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x11, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x13, [x10, #-8]
	cmp	x13, x11
	b.lt	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x13, [x0, #8]
	cbz	x13, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x14, [x10]
	cmp	x14, x13
	b.ge	LBB0_5
	b	LBB0_6
LBB0_11:
	mov	w0, #0
	ldur	x8, [x10, #-8]
	stp	x8, x8, [x19, #8]
	ldr	x8, [x10]
	stp	x8, x8, [x19, #24]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ov7670_enum_frame_size
.subsections_via_symbols
