	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function read_colorspace_details
LCPI0_0:
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_read_colorspace_details:               ## @read_colorspace_details
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	xorl	%ebx, %ebx
	cmpl	$2, (%rdi)
	jl	LBB0_2
## %bb.1:
	leaq	28(%r12), %rdi
	callq	_get_bits1
	movq	%rax, %rbx
	incl	%ebx
LBB0_2:
	movl	%ebx, (%r12)
	leal	(%rbx,%rbx), %eax
	addl	$8, %eax
	movl	%eax, 32(%r12)
	leal	(%rbx,%rbx), %eax
	addl	$15, %eax
	sarl	$3, %eax
	movl	%eax, 4(%r12)
	leaq	28(%r12), %r14
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_bits
	leaq	_read_colorspace_details.colorspaces(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, 4(%r15)
	cmpq	$7, %rax
	jne	LBB0_9
## %bb.3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movslq	%ebx, %rax
	leaq	_read_colorspace_details.pix_fmt_rgb(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 24(%r12)
	movl	(%r15), %ecx
	testb	$1, %cl
	jne	LBB0_4
## %bb.6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_7
LBB0_9:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:
	movq	_AVCOL_RANGE_MPEG@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_8
LBB0_10:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	testb	$1, (%r15)
	jne	LBB0_13
## %bb.17:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1]
	movups	%xmm0, 8(%r12)
	movslq	%ebx, %rax
	shlq	$4, %rax
	leaq	_read_colorspace_details.pix_fmt_for_ss(%rip), %rcx
	movl	12(%rax,%rcx), %eax
	movl	%eax, 24(%r12)
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_13:
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 8(%r12)
	movq	%r14, %rdi
	callq	_get_bits1
	movq	%rax, 16(%r12)
	movslq	%ebx, %rcx
	movq	8(%r12), %rdx
	shlq	$4, %rcx
	leaq	_read_colorspace_details.pix_fmt_for_ss(%rip), %rsi
	addq	%rcx, %rsi
	leaq	(%rsi,%rax,8), %rax
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 24(%r12)
	cmpl	$139, %eax
	jne	LBB0_15
## %bb.14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_7
LBB0_15:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	leaq	L_.str.3(%rip), %rdx
LBB0_7:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @read_colorspace_details.colorspaces
_read_colorspace_details.colorspaces:
	.long	143                             ## 0x8f
	.long	149                             ## 0x95
	.long	148                             ## 0x94
	.long	145                             ## 0x91
	.long	144                             ## 0x90
	.long	150                             ## 0x96
	.long	147                             ## 0x93
	.long	146                             ## 0x92

	.p2align	2                               ## @read_colorspace_details.pix_fmt_rgb
_read_colorspace_details.pix_fmt_rgb:
	.long	142                             ## 0x8e
	.long	141                             ## 0x8d
	.long	140                             ## 0x8c

	.comm	_AVCOL_RANGE_JPEG,8,3           ## @AVCOL_RANGE_JPEG
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reserved bit set in RGB\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"RGB not supported in profile %d\n"

	.section	__TEXT,__const
	.p2align	4                               ## @read_colorspace_details.pix_fmt_for_ss
_read_colorspace_details.pix_fmt_for_ss:
	.long	130                             ## 0x82
	.long	136                             ## 0x88
	.long	133                             ## 0x85
	.long	139                             ## 0x8b
	.long	129                             ## 0x81
	.long	135                             ## 0x87
	.long	132                             ## 0x84
	.long	138                             ## 0x8a
	.long	128                             ## 0x80
	.long	134                             ## 0x86
	.long	131                             ## 0x83
	.long	137                             ## 0x89

	.comm	_AVCOL_RANGE_MPEG,8,3           ## @AVCOL_RANGE_MPEG
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"YUV 4:2:0 not supported in profile %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Profile %d color details reserved bit set\n"

	.no_dead_strip	_read_colorspace_details
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_colorspace_details
_read_colorspace_details:               ; @read_colorspace_details
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x21, [x0, #16]
	ldr	w8, [x0]
	cmp	w8, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_3
LBB0_2:
	add	x0, x21, #28
	bl	_get_bits1
	add	w22, w0, #1
LBB0_3:
	lsl	w8, w22, #1
	add	w9, w8, #8
	str	w9, [x21, #32]
	add	w8, w8, #15
	asr	w8, w8, #3
	stp	w22, w8, [x21]
	add	x20, x21, #28
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
Lloh0:
	adrp	x8, _read_colorspace_details.colorspaces@PAGE
Lloh1:
	add	x8, x8, _read_colorspace_details.colorspaces@PAGEOFF
	ldr	w8, [x8, x0, lsl #2]
	str	w8, [x19, #4]
	cmp	x0, #7
	b.ne	LBB0_6
; %bb.4:
	stp	xzr, xzr, [x21, #8]
Lloh2:
	adrp	x8, _AVCOL_RANGE_JPEG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVCOL_RANGE_JPEG@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh5:
	adrp	x8, _read_colorspace_details.pix_fmt_rgb@PAGE
Lloh6:
	add	x8, x8, _read_colorspace_details.pix_fmt_rgb@PAGEOFF
	ldr	w8, [x8, w22, sxtw #2]
	str	w8, [x21, #24]
	ldr	w8, [x19]
	tbnz	w8, #0, LBB0_8
; %bb.5:
Lloh7:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_6:
	mov	x0, x20
	bl	_get_bits1
Lloh12:
	adrp	x8, _AVCOL_RANGE_JPEG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVCOL_RANGE_JPEG@GOTPAGEOFF]
Lloh14:
	adrp	x9, _AVCOL_RANGE_MPEG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AVCOL_RANGE_MPEG@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldrb	w8, [x19]
	tbnz	w8, #0, LBB0_10
; %bb.7:
	mov	w0, #0
	mov	w8, #1
	dup.2d	v0, x8
	stur	q0, [x21, #8]
Lloh16:
	adrp	x8, _read_colorspace_details.pix_fmt_for_ss@PAGE
Lloh17:
	add	x8, x8, _read_colorspace_details.pix_fmt_for_ss@PAGEOFF
	add	x8, x8, w22, sxtw #4
	ldr	w8, [x8, #12]
	str	w8, [x21, #24]
	b	LBB0_15
LBB0_8:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_15
; %bb.9:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_10:
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x21, #8]
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x21, #16]
	ldr	x8, [x21, #8]
Lloh23:
	adrp	x9, _read_colorspace_details.pix_fmt_for_ss@PAGE
Lloh24:
	add	x9, x9, _read_colorspace_details.pix_fmt_for_ss@PAGEOFF
	add	x9, x9, w22, sxtw #4
	add	x9, x9, x0, lsl #3
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x21, #24]
	cmp	w8, #139
	b.ne	LBB0_12
; %bb.11:
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_15
; %bb.13:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh33:
	adrp	x2, l_.str.3@PAGE
Lloh34:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_av_log
Lloh35:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @read_colorspace_details.colorspaces
_read_colorspace_details.colorspaces:
	.long	143                             ; 0x8f
	.long	149                             ; 0x95
	.long	148                             ; 0x94
	.long	145                             ; 0x91
	.long	144                             ; 0x90
	.long	150                             ; 0x96
	.long	147                             ; 0x93
	.long	146                             ; 0x92

	.p2align	2                               ; @read_colorspace_details.pix_fmt_rgb
_read_colorspace_details.pix_fmt_rgb:
	.long	142                             ; 0x8e
	.long	141                             ; 0x8d
	.long	140                             ; 0x8c

	.comm	_AVCOL_RANGE_JPEG,8,3           ; @AVCOL_RANGE_JPEG
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reserved bit set in RGB\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"RGB not supported in profile %d\n"

	.section	__TEXT,__const
	.p2align	2                               ; @read_colorspace_details.pix_fmt_for_ss
_read_colorspace_details.pix_fmt_for_ss:
	.long	130                             ; 0x82
	.long	136                             ; 0x88
	.long	133                             ; 0x85
	.long	139                             ; 0x8b
	.long	129                             ; 0x81
	.long	135                             ; 0x87
	.long	132                             ; 0x84
	.long	138                             ; 0x8a
	.long	128                             ; 0x80
	.long	134                             ; 0x86
	.long	131                             ; 0x83
	.long	137                             ; 0x89

	.comm	_AVCOL_RANGE_MPEG,8,3           ; @AVCOL_RANGE_MPEG
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"YUV 4:2:0 not supported in profile %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Profile %d color details reserved bit set\n"

	.no_dead_strip	_read_colorspace_details
.subsections_via_symbols
