	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zoran_enum_fmt
_zoran_enum_fmt:                        ## @zoran_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NUM_FORMATS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	_zoran_formats@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$12, %rbx
	cmpq	%rbx, %rcx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, (%rax,%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	12(%r14), %esi
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%esi
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%r14), %edi
	movl	8(%rax,%rbx), %esi
	movl	$3, %edx
	callq	_strncpy
	movq	(%r15), %rcx
	movl	4(%rcx,%rbx), %eax
	movl	%eax, 4(%r14)
	movq	_ZORAN_FORMAT_COMPRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx,%rbx)
	je	LBB0_9
## %bb.8:
	movq	_V4L2_FMT_FLAG_COMPRESSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_FORMATS,4,2                ## @NUM_FORMATS
	.comm	_zoran_formats,8,3              ## @zoran_formats
	.comm	_ZORAN_FORMAT_COMPRESSED,4,2    ## @ZORAN_FORMAT_COMPRESSED
	.comm	_V4L2_FMT_FLAG_COMPRESSED,4,2   ## @V4L2_FMT_FLAG_COMPRESSED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_zoran_enum_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zoran_enum_fmt
_zoran_enum_fmt:                        ; @zoran_enum_fmt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _NUM_FORMATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_FORMATS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	cbz	w10, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, #0
	mov	w9, #0
Lloh3:
	adrp	x21, _zoran_formats@GOTPAGE
Lloh4:
	ldr	x21, [x21, _zoran_formats@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x10, x10, x10, lsl #1
	lsl	x10, x10, #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #12
	cmp	x10, x20
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, x20]
	tst	w11, w2
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x19, #12]
	cmp	w9, w11
	b.ne	LBB0_2
; %bb.6:
	ldr	w0, [x19, #8]
	add	x8, x8, x20
	ldr	w1, [x8, #8]
	mov	w2, #3
	bl	_strncpy
	ldr	x8, [x21]
	add	x8, x8, x20
	ldp	w8, w9, [x8]
	str	w9, [x19, #4]
Lloh5:
	adrp	x9, _ZORAN_FORMAT_COMPRESSED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ZORAN_FORMAT_COMPRESSED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	mov	w0, #0
Lloh8:
	adrp	x8, _V4L2_FMT_FLAG_COMPRESSED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_FMT_FLAG_COMPRESSED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_FORMATS,4,2                ; @NUM_FORMATS
	.comm	_zoran_formats,8,3              ; @zoran_formats
	.comm	_ZORAN_FORMAT_COMPRESSED,4,2    ; @ZORAN_FORMAT_COMPRESSED
	.comm	_V4L2_FMT_FLAG_COMPRESSED,4,2   ; @V4L2_FMT_FLAG_COMPRESSED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_zoran_enum_fmt
.subsections_via_symbols
