	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7670_enum_framesizes
_ov7670_enum_framesizes:                ## @ov7670_enum_framesizes
	.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	%rsi, %r14
	callq	_to_state
	movq	_N_WIN_SIZES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.1:
	movq	(%r14), %r9
	movq	_ov7670_win_sizes@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax), %rdi
	movq	%r9, %rbx
	shlq	$4, %rbx
	leaq	(%rdx,%rbx), %rsi
	leaq	(%rdx,%rbx), %r8
	addq	$8, %r8
	movl	$-1, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movslq	%ebx, %rdx
	cmpq	%rdx, %r9
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%ecx
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, (%rsi)
	jl	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, (%r8)
	jge	LBB0_6
	jmp	LBB0_8
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_7:
	movq	_V4L2_FRMSIZE_TYPE_DISCRETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movups	(%rsi), %xmm0
	movups	%xmm0, 8(%r14)
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_N_WIN_SIZES,4,2                ## @N_WIN_SIZES
	.comm	_ov7670_win_sizes,8,3           ## @ov7670_win_sizes
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ## @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ov7670_enum_framesizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7670_enum_framesizes
_ov7670_enum_framesizes:                ; @ov7670_enum_framesizes
	.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, x1
	bl	_to_state
Lloh0:
	adrp	x8, _N_WIN_SIZES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _N_WIN_SIZES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
Lloh3:
	adrp	x9, _ov7670_win_sizes@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ov7670_win_sizes@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh5:
	ldr	x9, [x9]
	ldr	x11, [x0]
	add	x9, x9, x10, lsl #4
	add	x12, x9, #8
	mov	w13, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w13, w13, #1
	cmp	x10, w13, sxtw
	b.eq	LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	subs	w8, w8, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x11, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x9]
	cmp	x14, x11
	b.lt	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x0, #8]
	cbz	x14, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x15, [x12]
	cmp	x15, x14
	b.ge	LBB0_2
	b	LBB0_3
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
Lloh9:
	adrp	x8, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	q0, [x9]
	stur	q0, [x19, #8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_N_WIN_SIZES,4,2                ; @N_WIN_SIZES
	.comm	_ov7670_win_sizes,8,3           ; @ov7670_win_sizes
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ; @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ov7670_enum_framesizes
.subsections_via_symbols
