	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov965x_enum_frame_sizes
_ov965x_enum_frame_sizes:               ## @ov965x_enum_frame_sizes
	.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
	movq	_ov965x_formats@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r14d
	movl	(%rbx), %r13d
	movq	_ov965x_framesizes@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jge	LBB0_7
## %bb.1:
	movq	(%r12), %r8
	movslq	%r14d, %rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	addq	%r8, %rdx
	addq	$-16, %rdx
	leal	-1(%rcx), %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	subl	$1, %esi
	jb	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	leaq	-16(%rdx), %rax
	decq	%rcx
	cmpq	(%rdx), %rdi
	movq	%rax, %rdx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%ecx, %ecx
LBB0_5:
	movslq	%ecx, %rax
	shlq	$4, %rax
	movq	(%r8,%rax), %rax
	movq	%rax, 8(%rbx)
	movq	(%r15), %rax
	movslq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %xmm0             ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, 16(%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ov965x_formats,8,3             ## @ov965x_formats
	.comm	_ov965x_framesizes,8,3          ## @ov965x_framesizes
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ov965x_enum_frame_sizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov965x_enum_frame_sizes
_ov965x_enum_frame_sizes:               ; @ov965x_enum_frame_sizes
	.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
Lloh0:
	adrp	x22, _ov965x_formats@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ov965x_formats@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	mov	x20, x0
	ldr	w23, [x19]
Lloh2:
	adrp	x21, _ov965x_framesizes@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ov965x_framesizes@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ge	LBB0_4
; %bb.1:
	ldr	x8, [x22]
	sxtw	x9, w20
	add	x10, x8, w20, sxtw #4
	sub	x10, x10, #16
	sub	w11, w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x12, [x19, #8]
	ldr	x13, [x10], #-16
	sub	w11, w11, #1
	sub	x9, x9, #1
	cmp	x12, x13
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	x9, #0
LBB0_6:
	mov	w0, #0
	sbfiz	x9, x9, #4, #32
	ldr	x8, [x8, x9]
	str	x8, [x19, #8]
	ldr	x8, [x21]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #4
	add	x9, x19, #16
	ldr	d0, [x8, #8]
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x9]
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ov965x_formats,8,3             ; @ov965x_formats
	.comm	_ov965x_framesizes,8,3          ; @ov965x_framesizes
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ov965x_enum_frame_sizes
.subsections_via_symbols
