	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcdec_map_color_format
_mcdec_map_color_format:                ## @mcdec_map_color_format
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rsi)
	je	LBB0_2
## %bb.1:
	movq	_AV_PIX_FMT_MEDIACODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_2:
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_COLOR_FormatYCbYCr@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_COLOR_TI_FormatYUV420PackedSemiPlanar@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, (%r12)
LBB0_5:
	movq	_color_formats@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpl	%r13d, (%rdi,%rbx,8)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %ecx
	movl	%r13d, %r8d
	callq	_av_log
	jmp	LBB0_11
LBB0_8:
	movl	4(%rdi,%rbx,8), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_MEDIACODEC,4,2      ## @AV_PIX_FMT_MEDIACODEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OMX.k3.video.decoder.avc"

	.comm	_COLOR_FormatYCbYCr,4,2         ## @COLOR_FormatYCbYCr
	.comm	_COLOR_TI_FormatYUV420PackedSemiPlanar,4,2 ## @COLOR_TI_FormatYUV420PackedSemiPlanar
	.comm	_color_formats,8,3              ## @color_formats
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Output color format 0x%x (value=%d) is not supported\n"

	.no_dead_strip	_mcdec_map_color_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcdec_map_color_format
_mcdec_map_color_format:                ; @mcdec_map_color_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_PIX_FMT_MEDIACODEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_MEDIACODEC@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_2:
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh3:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	ldr	w0, [x1, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
Lloh8:
	adrp	x8, _COLOR_FormatYCbYCr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _COLOR_FormatYCbYCr@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, w20, #0, eq
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _COLOR_TI_FormatYUV420PackedSemiPlanar@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COLOR_TI_FormatYUV420PackedSemiPlanar@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	str	w20, [x22]
LBB0_4:
Lloh14:
	adrp	x22, _color_formats@GOTPAGE
Lloh15:
	ldr	x22, [x22, _color_formats@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x23, #0
	mov	x24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	w8, [x0, x23]
	cmp	w8, w20
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	bl	_FF_ARRAY_ELEMS
	add	x23, x23, #8
	cmp	x24, w0, sxtw
	b.lt	LBB0_6
LBB0_8:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	mov	x4, x20
	bl	_av_log
	b	LBB0_10
LBB0_9:
	add	x8, x0, x23
	ldr	w19, [x8, #4]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_MEDIACODEC,4,2      ; @AV_PIX_FMT_MEDIACODEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OMX.k3.video.decoder.avc"

	.comm	_COLOR_FormatYCbYCr,4,2         ; @COLOR_FormatYCbYCr
	.comm	_COLOR_TI_FormatYUV420PackedSemiPlanar,4,2 ; @COLOR_TI_FormatYUV420PackedSemiPlanar
	.comm	_color_formats,8,3              ; @color_formats
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Output color format 0x%x (value=%d) is not supported\n"

	.no_dead_strip	_mcdec_map_color_format
.subsections_via_symbols
