	.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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	cmpq	$0, (%rbx)
	je	LBB0_1
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r14
	movq	_NUM_SUPPORTED_FRAMESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	movq	8(%rbx), %rsi
	movq	_mtk_vdec_framesizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$5, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rcx,%rdx), %rsi
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_3
	jmp	LBB0_9
LBB0_4:
	movq	_V4L2_FRMSIZE_TYPE_STEPWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	24(%rcx,%rdx), %rax
	movq	%rax, 32(%rbx)
	movups	8(%rcx,%rdx), %xmm0
	movups	%xmm0, 16(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %edx
	movq	_VCODEC_CAPABILITY_4K_DISABLED@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	20(%rbx), %r10d
	movl	32(%rbx), %r8d
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_mtk_v4l2_debug
	movq	_VCODEC_DEC_4K_CODED_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, 32(%rbx)
	movq	_VCODEC_DEC_4K_CODED_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%r10d, 20(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %edx
LBB0_7:
	movl	36(%rbx), %ecx
	movl	28(%rbx), %r9d
	movl	16(%rbx), %r11d
	movl	24(%rbx), %r14d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	pushq	%r14
	callq	_mtk_v4l2_debug
	addq	$32, %rsp
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NUM_SUPPORTED_FRAMESIZE,4,2    ## @NUM_SUPPORTED_FRAMESIZE
	.comm	_mtk_vdec_framesizes,8,3        ## @mtk_vdec_framesizes
	.comm	_V4L2_FRMSIZE_TYPE_STEPWISE,4,2 ## @V4L2_FRMSIZE_TYPE_STEPWISE
	.comm	_VCODEC_CAPABILITY_4K_DISABLED,4,2 ## @VCODEC_CAPABILITY_4K_DISABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"4K is enabled"

	.comm	_VCODEC_DEC_4K_CODED_WIDTH,4,2  ## @VCODEC_DEC_4K_CODED_WIDTH
	.comm	_VCODEC_DEC_4K_CODED_HEIGHT,4,2 ## @VCODEC_DEC_4K_CODED_HEIGHT
L_.str.1:                               ## @.str.1
	.asciz	"%x, %d %d %d %d %d %d"

	.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x0, x1
	bl	_fh_to_ctx
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
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.4:
	mov	x20, x0
	ldr	x10, [x19, #8]
Lloh6:
	adrp	x9, _mtk_vdec_framesizes@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mtk_vdec_framesizes@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x9, x9, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	cmp	x10, x11
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #32
	subs	x8, x8, #1
	b.ne	LBB0_5
	b	LBB0_1
LBB0_7:
Lloh9:
	adrp	x8, _V4L2_FRMSIZE_TYPE_STEPWISE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_FRMSIZE_TYPE_STEPWISE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	x8, [x9, #16]
	ldr	q0, [x9]
	str	q0, [x19, #16]
	str	x8, [x19, #32]
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VCODEC_CAPABILITY_4K_DISABLED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VCODEC_CAPABILITY_4K_DISABLED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w9, [x19, #32]
	ldr	w10, [x19, #20]
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_mtk_v4l2_debug
Lloh17:
	adrp	x8, _VCODEC_DEC_4K_CODED_WIDTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VCODEC_DEC_4K_CODED_WIDTH@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x8]
	str	w9, [x19, #32]
Lloh20:
	adrp	x8, _VCODEC_DEC_4K_CODED_HEIGHT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VCODEC_DEC_4K_CODED_HEIGHT@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x8]
	str	w10, [x19, #20]
	ldr	x8, [x20]
	ldr	w8, [x8]
LBB0_10:
	ldr	w11, [x19, #36]
	ldp	w13, w12, [x19, #24]
	ldr	w14, [x19, #16]
	stp	x10, x14, [sp, #40]
	stp	x12, x13, [sp, #24]
	stp	x11, x9, [sp, #8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	w0, #1
	bl	_mtk_v4l2_debug
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NUM_SUPPORTED_FRAMESIZE,4,2    ; @NUM_SUPPORTED_FRAMESIZE
	.comm	_mtk_vdec_framesizes,8,3        ; @mtk_vdec_framesizes
	.comm	_V4L2_FRMSIZE_TYPE_STEPWISE,4,2 ; @V4L2_FRMSIZE_TYPE_STEPWISE
	.comm	_VCODEC_CAPABILITY_4K_DISABLED,4,2 ; @VCODEC_CAPABILITY_4K_DISABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"4K is enabled"

	.comm	_VCODEC_DEC_4K_CODED_WIDTH,4,2  ; @VCODEC_DEC_4K_CODED_WIDTH
	.comm	_VCODEC_DEC_4K_CODED_HEIGHT,4,2 ; @VCODEC_DEC_4K_CODED_HEIGHT
l_.str.1:                               ; @.str.1
	.asciz	"%x, %d %d %d %d %d %d"

	.no_dead_strip	_vidioc_enum_framesizes
.subsections_via_symbols
