	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avcodec_chroma_pos_to_enum     ## -- Begin function avcodec_chroma_pos_to_enum
	.p2align	4, 0x90
_avcodec_chroma_pos_to_enum:            ## @avcodec_chroma_pos_to_enum
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r15d
	movq	_AVCHROMA_LOC_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_AVCHROMA_LOC_NB@GOTPCREL(%rip), %r14
	leaq	-52(%rbp), %r12
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jge	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_avcodec_enum_to_chroma_pos
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r15d, -52(%rbp)
	jne	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -48(%rbp)
	jne	LBB0_1
	jmp	LBB0_6
LBB0_5:
	movq	_AVCHROMA_LOC_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCHROMA_LOC_UNSPECIFIED,4,2   ## @AVCHROMA_LOC_UNSPECIFIED
	.comm	_AVCHROMA_LOC_NB,4,2            ## @AVCHROMA_LOC_NB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avcodec_chroma_pos_to_enum     ; -- Begin function avcodec_chroma_pos_to_enum
	.p2align	2
_avcodec_chroma_pos_to_enum:            ; @avcodec_chroma_pos_to_enum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _AVCHROMA_LOC_UNSPECIFIED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AVCHROMA_LOC_UNSPECIFIED@GOTPAGEOFF]
	ldr	w19, [x22]
Lloh2:
	adrp	x23, _AVCHROMA_LOC_NB@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AVCHROMA_LOC_NB@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w19, w19, #1
	ldr	w8, [x23]
	cmp	w19, w8
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x2, x19
	bl	_avcodec_enum_to_chroma_pos
	cbnz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w9, w8, [sp, #8]
	cmp	w8, w21
	ccmp	w9, w20, #0, eq
	b.ne	LBB0_1
	b	LBB0_5
LBB0_4:
	ldr	w19, [x22]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCHROMA_LOC_UNSPECIFIED,4,2   ; @AVCHROMA_LOC_UNSPECIFIED
	.comm	_AVCHROMA_LOC_NB,4,2            ; @AVCHROMA_LOC_NB
.subsections_via_symbols
