	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_enum_fmt
_vidioc_enum_fmt:                       ## @vidioc_enum_fmt
	.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	_NUM_FORMATS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movq	_mtk_video_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	_MTK_FMT_FRAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	_MTK_FMT_ENC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	shlq	$4, %rax
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rbx), %rcx
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r9, %rcx
	jne	LBB0_8
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r8, %rcx
	jne	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%rdi), %edx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
	jmp	LBB0_8
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movl	8(%r10,%rbx), %eax
	movl	%eax, 8(%rdi)
	movl	4(%rdi), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_FORMATS,4,2                ## @NUM_FORMATS
	.comm	_mtk_video_formats,8,3          ## @mtk_video_formats
	.comm	_MTK_FMT_FRAME,8,3              ## @MTK_FMT_FRAME
	.comm	_MTK_FMT_ENC,8,3                ## @MTK_FMT_ENC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_enum_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_enum_fmt
_vidioc_enum_fmt:                       ; @vidioc_enum_fmt
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _NUM_FORMATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_FORMATS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w9, #0
Lloh3:
	adrp	x10, _mtk_video_formats@GOTPAGE
Lloh4:
	ldr	x10, [x10, _mtk_video_formats@GOTPAGEOFF]
Lloh5:
	adrp	x11, _MTK_FMT_FRAME@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MTK_FMT_FRAME@GOTPAGEOFF]
Lloh7:
	ldr	x13, [x10]
Lloh8:
	ldr	x10, [x11]
Lloh9:
	adrp	x11, _MTK_FMT_ENC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MTK_FMT_ENC@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x11]
	add	x11, x13, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #16
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x11, #-8]
	cbz	w1, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x13, x10
	b.ne	LBB0_2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x13, x12
	b.ne	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x0]
	cmp	w9, w13
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #1
	b	LBB0_2
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w8, [x11]
	str	w8, [x0, #8]
	ldr	w0, [x0, #4]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_FORMATS,4,2                ; @NUM_FORMATS
	.comm	_mtk_video_formats,8,3          ; @mtk_video_formats
	.comm	_MTK_FMT_FRAME,8,3              ; @MTK_FMT_FRAME
	.comm	_MTK_FMT_ENC,8,3                ; @MTK_FMT_ENC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_enum_fmt
.subsections_via_symbols
