	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_enum_framesizes
_vidioc_enum_framesizes:                ## @vidioc_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_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_NUM_SUPPORTED_FRAMESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movq	8(%rdx), %rsi
	movq	_mtk_venc_framesizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rcx,%rdi), %rsi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdi
	cmpq	%rdi, %rax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movq	_V4L2_FRMSIZE_TYPE_STEPWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdx)
	movl	8(%rcx,%rdi), %eax
	movl	%eax, 16(%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NUM_SUPPORTED_FRAMESIZE,4,2    ## @NUM_SUPPORTED_FRAMESIZE
	.comm	_mtk_venc_framesizes,8,3        ## @mtk_venc_framesizes
	.comm	_V4L2_FRMSIZE_TYPE_STEPWISE,4,2 ## @V4L2_FRMSIZE_TYPE_STEPWISE
	.no_dead_strip	_vidioc_enum_framesizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_enum_framesizes
_vidioc_enum_framesizes:                ; @vidioc_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, _NUM_SUPPORTED_FRAMESIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_SUPPORTED_FRAMESIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.3:
	ldr	x10, [x2, #8]
Lloh6:
	adrp	x9, _mtk_venc_framesizes@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mtk_venc_framesizes@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x9, x9, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	cmp	x10, x11
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_4
	b	LBB0_1
LBB0_6:
	mov	w0, #0
Lloh9:
	adrp	x8, _V4L2_FRMSIZE_TYPE_STEPWISE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_FRMSIZE_TYPE_STEPWISE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x9]
	stp	w9, w8, [x2, #16]
	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	_EINVAL,4,2                     ; @EINVAL
	.comm	_NUM_SUPPORTED_FRAMESIZE,4,2    ; @NUM_SUPPORTED_FRAMESIZE
	.comm	_mtk_venc_framesizes,8,3        ; @mtk_venc_framesizes
	.comm	_V4L2_FRMSIZE_TYPE_STEPWISE,4,2 ; @V4L2_FRMSIZE_TYPE_STEPWISE
	.no_dead_strip	_vidioc_enum_framesizes
.subsections_via_symbols
