	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5640_enum_frame_interval
_ov5640_enum_frame_interval:            ## @ov5640_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_to_ov5640_dev
	cmpq	$0, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	movq	_OV5640_NUM_FRAMERATES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jae	LBB0_1
## %bb.3:
	movl	$1, -16(%rbp)
	movq	_ov5640_framerates@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, -12(%rbp)
	movl	24(%rbx), %ecx
	movl	28(%rbx), %edx
	leaq	-16(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ov5640_try_frame_interval
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	movq	-16(%rbp), %rax
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OV5640_NUM_FRAMERATES,8,3      ## @OV5640_NUM_FRAMERATES
	.comm	_ov5640_framerates,8,3          ## @ov5640_framerates
	.no_dead_strip	_ov5640_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 ov5640_enum_frame_interval
_ov5640_enum_frame_interval:            ; @ov5640_enum_frame_interval
	.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, x2
	bl	_to_ov5640_dev
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _OV5640_NUM_FRAMERATES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OV5640_NUM_FRAMERATES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.2:
	mov	w9, #1
	str	w9, [sp, #8]
Lloh3:
	adrp	x9, _ov5640_framerates@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ov5640_framerates@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [sp, #12]
	ldp	w3, w2, [x19, #24]
	add	x1, sp, #8
	bl	_ov5640_try_frame_interval
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19, #16]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OV5640_NUM_FRAMERATES,8,3      ; @OV5640_NUM_FRAMERATES
	.comm	_ov5640_framerates,8,3          ; @ov5640_framerates
	.no_dead_strip	_ov5640_enum_frame_interval
.subsections_via_symbols
