	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_chroma_format
_map_chroma_format:                     ## @map_chroma_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	leaq	-8(%rbp), %rsi
	leaq	-4(%rbp), %rdx
	callq	_av_pix_fmt_get_chroma_sub_sample
	movl	-8(%rbp), %eax
	movl	-4(%rbp), %ecx
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.1:
	cmpl	$1, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_cudaVideoChromaFormat_420@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_cudaVideoChromaFormat_422@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	orl	%ecx, %eax
	movl	$-1, %eax
	jne	LBB0_9
## %bb.7:
	movq	_cudaVideoChromaFormat_444@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cudaVideoChromaFormat_420,4,2  ## @cudaVideoChromaFormat_420
	.comm	_cudaVideoChromaFormat_422,4,2  ## @cudaVideoChromaFormat_422
	.comm	_cudaVideoChromaFormat_444,4,2  ## @cudaVideoChromaFormat_444
	.no_dead_strip	_map_chroma_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_chroma_format
_map_chroma_format:                     ; @map_chroma_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	stur	wzr, [x29, #-4]
	str	wzr, [sp, #8]
	sub	x1, x29, #4
	add	x2, sp, #8
	bl	_av_pix_fmt_get_chroma_sub_sample
	ldur	w8, [x29, #-4]
	ldr	w9, [sp, #8]
	cmp	w8, #1
	ccmp	w9, #1, #0, eq
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #1
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_4
; %bb.2:
	orr	w8, w8, w9
Lloh0:
	adrp	x9, _cudaVideoChromaFormat_444@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cudaVideoChromaFormat_444@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csinv	w0, w9, wzr, eq
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _cudaVideoChromaFormat_420@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cudaVideoChromaFormat_420@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _cudaVideoChromaFormat_422@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cudaVideoChromaFormat_422@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cudaVideoChromaFormat_420,4,2  ; @cudaVideoChromaFormat_420
	.comm	_cudaVideoChromaFormat_422,4,2  ; @cudaVideoChromaFormat_422
	.comm	_cudaVideoChromaFormat_444,4,2  ; @cudaVideoChromaFormat_444
	.no_dead_strip	_map_chroma_format
.subsections_via_symbols
