	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viacam_enum_framesizes
_viacam_enum_framesizes:                ## @viacam_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
	cmpq	$0, (%rdx)
	je	LBB0_1
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_N_VIA_FMTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	8(%rdx), %rcx
	movq	_via_formats@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rsi,%rdi,8), %rcx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	_V4L2_FRMSIZE_TYPE_CONTINUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdx)
	movq	_QCIF_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rdx)
	movq	_QCIF_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdx)
	movq	_VGA_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdx)
	movq	_VGA_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_N_VIA_FMTS,4,2                 ## @N_VIA_FMTS
	.comm	_via_formats,8,3                ## @via_formats
	.comm	_V4L2_FRMSIZE_TYPE_CONTINUOUS,4,2 ## @V4L2_FRMSIZE_TYPE_CONTINUOUS
	.comm	_QCIF_WIDTH,4,2                 ## @QCIF_WIDTH
	.comm	_QCIF_HEIGHT,4,2                ## @QCIF_HEIGHT
	.comm	_VGA_WIDTH,4,2                  ## @VGA_WIDTH
	.comm	_VGA_HEIGHT,4,2                 ## @VGA_HEIGHT
	.no_dead_strip	_viacam_enum_framesizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function viacam_enum_framesizes
_viacam_enum_framesizes:                ; @viacam_enum_framesizes
	.cfi_startproc
; %bb.0:
	ldr	x8, [x2]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
Lloh3:
	adrp	x8, _N_VIA_FMTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _N_VIA_FMTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_1
; %bb.3:
	ldr	x9, [x2, #8]
Lloh6:
	adrp	x10, _via_formats@GOTPAGE
Lloh7:
	ldr	x10, [x10, _via_formats@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x9, x11
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_4
	b	LBB0_1
LBB0_6:
	mov	w0, #0
Lloh9:
	adrp	x8, _V4L2_FRMSIZE_TYPE_CONTINUOUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_FRMSIZE_TYPE_CONTINUOUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x2, #40]
Lloh12:
	adrp	x8, _QCIF_WIDTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QCIF_WIDTH@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _QCIF_HEIGHT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QCIF_HEIGHT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x2, #32]
Lloh18:
	adrp	x8, _VGA_WIDTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VGA_WIDTH@GOTPAGEOFF]
Lloh20:
	adrp	x9, _VGA_HEIGHT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VGA_HEIGHT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x2, #24]
	movi.2s	v0, #1
	str	d0, [x2, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_N_VIA_FMTS,4,2                 ; @N_VIA_FMTS
	.comm	_via_formats,8,3                ; @via_formats
	.comm	_V4L2_FRMSIZE_TYPE_CONTINUOUS,4,2 ; @V4L2_FRMSIZE_TYPE_CONTINUOUS
	.comm	_QCIF_WIDTH,4,2                 ; @QCIF_WIDTH
	.comm	_QCIF_HEIGHT,4,2                ; @QCIF_HEIGHT
	.comm	_VGA_WIDTH,4,2                  ; @VGA_WIDTH
	.comm	_VGA_HEIGHT,4,2                 ; @VGA_HEIGHT
	.no_dead_strip	_viacam_enum_framesizes
.subsections_via_symbols
