	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_color_type
_get_color_type:                        ## @get_color_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_AV_PIX_FMT_FLAG_PAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FF_COLOR_RGB@GOTPCREL(%rip), %r14
	testl	%eax, (%rdi)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	decl	%eax
	cmpl	$2, %eax
	jae	LBB0_3
## %bb.2:
	movq	_FF_COLOR_GRAY@GOTPCREL(%rip), %r14
	jmp	LBB0_13
LBB0_3:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	_AV_PIX_FMT_FLAG_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_13
## %bb.10:
	cmpl	$0, 4(%rbx)
	jne	LBB0_11
## %bb.12:
	movq	_FF_COLOR_NA@GOTPCREL(%rip), %r14
	jmp	LBB0_13
LBB0_5:
	movq	_FF_COLOR_YUV_JPEG@GOTPCREL(%rip), %r14
	jmp	LBB0_13
LBB0_11:
	movq	_FF_COLOR_YUV@GOTPCREL(%rip), %r14
	jmp	LBB0_13
LBB0_8:
	movq	_FF_COLOR_XYZ@GOTPCREL(%rip), %r14
LBB0_13:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_PAL,4,2        ## @AV_PIX_FMT_FLAG_PAL
	.comm	_FF_COLOR_RGB,4,2               ## @FF_COLOR_RGB
	.comm	_FF_COLOR_GRAY,4,2              ## @FF_COLOR_GRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"yuvj"

	.comm	_FF_COLOR_YUV_JPEG,4,2          ## @FF_COLOR_YUV_JPEG
L_.str.1:                               ## @.str.1
	.asciz	"xyz"

	.comm	_FF_COLOR_XYZ,4,2               ## @FF_COLOR_XYZ
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ## @AV_PIX_FMT_FLAG_RGB
	.comm	_FF_COLOR_NA,4,2                ## @FF_COLOR_NA
	.comm	_FF_COLOR_YUV,4,2               ## @FF_COLOR_YUV
	.no_dead_strip	_get_color_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_color_type
_get_color_type:                        ; @get_color_type
	.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	w8, [x0]
Lloh0:
	adrp	x9, _AV_PIX_FMT_FLAG_PAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_FLAG_PAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _FF_COLOR_RGB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FF_COLOR_RGB@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0, #4]
	sub	w8, w8, #1
	cmp	w8, #2
	b.hs	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _FF_COLOR_GRAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FF_COLOR_GRAY@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	w0, LBB0_10
; %bb.6:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	w0, LBB0_11
LBB0_8:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _AV_PIX_FMT_FLAG_RGB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_PIX_FMT_FLAG_RGB@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.9:
	ldr	w8, [x19, #4]
Lloh14:
	adrp	x9, _FF_COLOR_YUV@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FF_COLOR_YUV@GOTPAGEOFF]
Lloh16:
	adrp	x10, _FF_COLOR_NA@GOTPAGE
Lloh17:
	ldr	x10, [x10, _FF_COLOR_NA@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	b	LBB0_12
LBB0_10:
Lloh18:
	adrp	x8, _FF_COLOR_YUV_JPEG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FF_COLOR_YUV_JPEG@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _FF_COLOR_XYZ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FF_COLOR_XYZ@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_PAL,4,2        ; @AV_PIX_FMT_FLAG_PAL
	.comm	_FF_COLOR_RGB,4,2               ; @FF_COLOR_RGB
	.comm	_FF_COLOR_GRAY,4,2              ; @FF_COLOR_GRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"yuvj"

	.comm	_FF_COLOR_YUV_JPEG,4,2          ; @FF_COLOR_YUV_JPEG
l_.str.1:                               ; @.str.1
	.asciz	"xyz"

	.comm	_FF_COLOR_XYZ,4,2               ; @FF_COLOR_XYZ
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ; @AV_PIX_FMT_FLAG_RGB
	.comm	_FF_COLOR_NA,4,2                ; @FF_COLOR_NA
	.comm	_FF_COLOR_YUV,4,2               ; @FF_COLOR_YUV
	.no_dead_strip	_get_color_type
.subsections_via_symbols
