	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_color_config
_parse_color_config:                    ## @parse_color_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_get_bits1
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	_FF_PROFILE_AV1_PROFESSIONAL@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	$0, %r15d
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, %r15
	movq	(%r13), %rax
	jmp	LBB0_4
LBB0_3:
	xorl	%r15d, %r15d
LBB0_4:
	addl	%r15d, %ebx
	leal	(%rbx,%rbx), %ecx
	addl	$8, %ecx
	movl	%ecx, 8(%r13)
	movq	_FF_PROFILE_AV1_HIGH@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, %r12
LBB0_6:
	movl	%r12d, 12(%r13)
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, 16(%r13)
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, 64(%r13)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, 56(%r13)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	jmp	LBB0_9
LBB0_8:
	movq	_AVCOL_PRI_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r13)
	movq	_AVCOL_TRC_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r13)
	movq	_AVCOL_SPC_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	movq	%rax, 48(%r13)
	cmpl	$0, 12(%r13)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 40(%r13)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 20(%r13)
	movq	$0, 32(%r13)
	jmp	LBB0_27
LBB0_11:
	movq	64(%r13), %rcx
	movq	_AVCOL_PRI_BT709@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_17
LBB0_12:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 40(%r13)
	movq	(%r13), %rax
	movq	_FF_PROFILE_AV1_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 20(%r13)
LBB0_14:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, 32(%r13)
	jmp	LBB0_26
LBB0_15:
	cmpq	(%rbx), %rax
	je	LBB0_19
## %bb.20:
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.21:
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, 20(%r13)
	testl	%eax, %eax
	je	LBB0_25
## %bb.22:
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, 24(%r13)
	cmpl	$0, 20(%r13)
	je	LBB0_26
## %bb.23:
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_26
LBB0_17:
	movq	56(%r13), %rcx
	movq	_AVCOL_TRC_IEC61966_2_1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.18:
	movq	_AVCOL_SPC_RGB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_19:
	movq	$0, 20(%r13)
LBB0_26:
	movq	%r14, %rdi
	callq	_skip_bits1
LBB0_27:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	$1, 20(%r13)
	jmp	LBB0_26
LBB0_25:
	movl	$0, 24(%r13)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_PROFILE_AV1_PROFESSIONAL,8,3 ## @FF_PROFILE_AV1_PROFESSIONAL
	.comm	_FF_PROFILE_AV1_HIGH,8,3        ## @FF_PROFILE_AV1_HIGH
	.comm	_AVCOL_PRI_UNSPECIFIED,8,3      ## @AVCOL_PRI_UNSPECIFIED
	.comm	_AVCOL_TRC_UNSPECIFIED,8,3      ## @AVCOL_TRC_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,8,3      ## @AVCOL_SPC_UNSPECIFIED
	.comm	_AVCOL_PRI_BT709,8,3            ## @AVCOL_PRI_BT709
	.comm	_AVCOL_TRC_IEC61966_2_1,8,3     ## @AVCOL_TRC_IEC61966_2_1
	.comm	_AVCOL_SPC_RGB,8,3              ## @AVCOL_SPC_RGB
	.comm	_FF_PROFILE_AV1_MAIN,8,3        ## @FF_PROFILE_AV1_MAIN
	.no_dead_strip	_parse_color_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function parse_color_config
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_parse_color_config:                    ; @parse_color_config
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_get_bits1
	mov	x22, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FF_PROFILE_AV1_PROFESSIONAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FF_PROFILE_AV1_PROFESSIONAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w22, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_get_bits1
	mov	x21, x0
	ldr	x8, [x20]
LBB0_3:
	add	w9, w21, w22
	lsl	w9, w9, #1
	add	w9, w9, #8
	str	w9, [x20, #8]
Lloh3:
	adrp	x22, _FF_PROFILE_AV1_HIGH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _FF_PROFILE_AV1_HIGH@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_get_bits1
LBB0_6:
	str	w0, [x20, #12]
	mov	x0, x19
	bl	_get_bits1
	str	w0, [x20, #16]
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	x0, [x20, #64]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	x0, [x20, #56]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _AVCOL_PRI_UNSPECIFIED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVCOL_PRI_UNSPECIFIED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _AVCOL_TRC_UNSPECIFIED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AVCOL_TRC_UNSPECIFIED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	stp	x9, x8, [x20, #56]
Lloh11:
	adrp	x8, _AVCOL_SPC_UNSPECIFIED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVCOL_SPC_UNSPECIFIED@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
LBB0_9:
	str	x0, [x20, #48]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_get_bits1
	movi.2s	v0, #1
	stur	d0, [x20, #20]
	stp	xzr, x0, [x20, #32]
	b	LBB0_19
LBB0_11:
	ldr	x8, [x20, #64]
Lloh14:
	adrp	x9, _AVCOL_PRI_BT709@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AVCOL_PRI_BT709@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x20, #56]
Lloh17:
	adrp	x9, _AVCOL_TRC_IEC61966_2_1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AVCOL_TRC_IEC61966_2_1@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _AVCOL_SPC_RGB@GOTPAGE
Lloh21:
	ldr	x10, [x10, _AVCOL_SPC_RGB@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x0, x10, #0, eq
	b.eq	LBB0_17
LBB0_13:
	mov	x0, x19
	bl	_get_bits1
	str	x0, [x20, #40]
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _FF_PROFILE_AV1_MAIN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FF_PROFILE_AV1_MAIN@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	movi.2s	v0, #1
	stur	d0, [x20, #20]
LBB0_15:
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	str	x0, [x20, #32]
	b	LBB0_18
LBB0_16:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_20
LBB0_17:
	stp	wzr, wzr, [x20, #20]
LBB0_18:
	mov	x0, x19
	bl	_skip_bits1
LBB0_19:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_20:
	cbz	w21, LBB0_24
; %bb.21:
	mov	x0, x19
	bl	_get_bits1
	str	w0, [x20, #20]
	cbz	w0, LBB0_25
; %bb.22:
	mov	x0, x19
	bl	_get_bits1
	str	w0, [x20, #24]
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_18
; %bb.23:
	cbnz	w0, LBB0_15
	b	LBB0_18
LBB0_24:
Lloh26:
	adrp	x8, lCPI0_0@PAGE
Lloh27:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #20]
	b	LBB0_18
LBB0_25:
	str	wzr, [x20, #24]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdr	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_PROFILE_AV1_PROFESSIONAL,8,3 ; @FF_PROFILE_AV1_PROFESSIONAL
	.comm	_FF_PROFILE_AV1_HIGH,8,3        ; @FF_PROFILE_AV1_HIGH
	.comm	_AVCOL_PRI_UNSPECIFIED,8,3      ; @AVCOL_PRI_UNSPECIFIED
	.comm	_AVCOL_TRC_UNSPECIFIED,8,3      ; @AVCOL_TRC_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,8,3      ; @AVCOL_SPC_UNSPECIFIED
	.comm	_AVCOL_PRI_BT709,8,3            ; @AVCOL_PRI_BT709
	.comm	_AVCOL_TRC_IEC61966_2_1,8,3     ; @AVCOL_TRC_IEC61966_2_1
	.comm	_AVCOL_SPC_RGB,8,3              ; @AVCOL_SPC_RGB
	.comm	_FF_PROFILE_AV1_MAIN,8,3        ; @FF_PROFILE_AV1_MAIN
	.no_dead_strip	_parse_color_config
.subsections_via_symbols
