	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_choose_chroma_location      ## -- Begin function ff_choose_chroma_location
	.p2align	4, 0x90
_ff_choose_chroma_location:             ## @ff_choose_chroma_location
	.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	(%rsi), %rbx
	movl	20(%rbx), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %rcx
	movq	(%rbx), %rax
	movq	_AVCHROMA_LOC_UNSPECIFIED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_15
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.2:
	movl	(%rcx), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	cmpl	$1, 4(%rcx)
	jne	LBB0_15
## %bb.5:
	cmpl	$1, %edx
	jne	LBB0_15
## %bb.6:
	movq	8(%rbx), %rcx
	movq	_AV_FIELD_UNKNOWN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_AV_FIELD_PROGRESSIVE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rsi, %rcx
	je	LBB0_8
## %bb.7:
	cmpq	%rdx, %rcx
	jne	LBB0_10
LBB0_8:
	movl	$-129, %edi
	addl	16(%rbx), %edi
	cmpl	$1, %edi
	ja	LBB0_10
## %bb.9:
	movq	_AVCHROMA_LOC_CENTER@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	movq	_AVCHROMA_LOC_TOPLEFT@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	cmpq	%rsi, %rcx
	je	LBB0_12
## %bb.11:
	cmpq	%rdx, %rcx
	je	LBB0_15
LBB0_12:
	cmpl	$128, 16(%rbx)
	jne	LBB0_15
## %bb.13:
	movq	_AVCHROMA_LOC_LEFT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCHROMA_LOC_UNSPECIFIED,8,3   ## @AVCHROMA_LOC_UNSPECIFIED
	.comm	_AVCHROMA_LOC_TOPLEFT,4,2       ## @AVCHROMA_LOC_TOPLEFT
	.comm	_AV_FIELD_UNKNOWN,8,3           ## @AV_FIELD_UNKNOWN
	.comm	_AV_FIELD_PROGRESSIVE,8,3       ## @AV_FIELD_PROGRESSIVE
	.comm	_AVCHROMA_LOC_CENTER,4,2        ## @AVCHROMA_LOC_CENTER
	.comm	_AVCHROMA_LOC_LEFT,4,2          ## @AVCHROMA_LOC_LEFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_choose_chroma_location      ; -- Begin function ff_choose_chroma_location
	.p2align	2
_ff_choose_chroma_location:             ; @ff_choose_chroma_location
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x1]
	ldr	w0, [x19, #20]
	bl	_av_pix_fmt_desc_get
	mov	x8, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x9, _AVCHROMA_LOC_UNSPECIFIED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVCHROMA_LOC_UNSPECIFIED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_9
; %bb.1:
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.3:
	ldr	w8, [x8, #4]
	cmp	w8, #1
	ccmp	w9, #1, #0, eq
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _AV_FIELD_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_FIELD_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _AV_FIELD_PROGRESSIVE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_FIELD_PROGRESSIVE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.5:
	ldr	w11, [x19, #16]
	sub	w11, w11, #129
	cmp	w11, #1
	b.hi	LBB0_10
; %bb.6:
Lloh9:
	adrp	x8, _AVCHROMA_LOC_CENTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVCHROMA_LOC_CENTER@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _AVCHROMA_LOC_TOPLEFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVCHROMA_LOC_TOPLEFT@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	cmp	x8, x9
	ccmp	x8, x10, #0, ne
	b.eq	LBB0_9
; %bb.11:
	ldr	w8, [x19, #16]
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.12:
Lloh13:
	adrp	x8, _AVCHROMA_LOC_LEFT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVCHROMA_LOC_LEFT@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCHROMA_LOC_UNSPECIFIED,8,3   ; @AVCHROMA_LOC_UNSPECIFIED
	.comm	_AVCHROMA_LOC_TOPLEFT,4,2       ; @AVCHROMA_LOC_TOPLEFT
	.comm	_AV_FIELD_UNKNOWN,8,3           ; @AV_FIELD_UNKNOWN
	.comm	_AV_FIELD_PROGRESSIVE,8,3       ; @AV_FIELD_PROGRESSIVE
	.comm	_AVCHROMA_LOC_CENTER,4,2        ; @AVCHROMA_LOC_CENTER
	.comm	_AVCHROMA_LOC_LEFT,4,2          ; @AVCHROMA_LOC_LEFT
.subsections_via_symbols
