	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avcodec_enum_to_chroma_pos     ## -- Begin function avcodec_enum_to_chroma_pos
	.p2align	4, 0x90
_avcodec_enum_to_chroma_pos:            ## @avcodec_enum_to_chroma_pos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AVCHROMA_LOC_UNSPECIFIED@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jae	LBB0_3
## %bb.1:
	movq	_AVCHROMA_LOC_NB@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jbe	LBB0_3
## %bb.2:
	decl	%edx
	movl	%edx, %eax
	shll	$7, %eax
	movzbl	%al, %eax
	movl	%eax, (%rdi)
	movl	%edx, %eax
	shrl	%eax
	xorl	%ecx, %ecx
	cmpl	$4, %edx
	setb	%cl
	xorl	%eax, %ecx
	shll	$7, %ecx
	movl	%ecx, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCHROMA_LOC_UNSPECIFIED,4,2   ## @AVCHROMA_LOC_UNSPECIFIED
	.comm	_AVCHROMA_LOC_NB,4,2            ## @AVCHROMA_LOC_NB
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avcodec_enum_to_chroma_pos     ; -- Begin function avcodec_enum_to_chroma_pos
	.p2align	2
_avcodec_enum_to_chroma_pos:            ; @avcodec_enum_to_chroma_pos
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AVCHROMA_LOC_UNSPECIFIED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVCHROMA_LOC_UNSPECIFIED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AVCHROMA_LOC_NB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVCHROMA_LOC_NB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #0, lo
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	_AVERROR
LBB0_2:
	sub	w8, w2, #1
	ubfiz	w9, w8, #7, #1
	str	w9, [x0]
	cmp	w8, #4
	cset	w9, lo
	eor	w8, w9, w8, lsr #1
	lsl	w8, w8, #7
	str	w8, [x1]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCHROMA_LOC_UNSPECIFIED,4,2   ; @AVCHROMA_LOC_UNSPECIFIED
	.comm	_AVCHROMA_LOC_NB,4,2            ; @AVCHROMA_LOC_NB
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
