	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_colr_tag
_mov_write_colr_tag:                    ## @mov_write_colr_tag
	.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, %r15
	movq	%rdi, %r12
	callq	_avio_tell
	movl	%eax, %r14d
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movq	_AVCOL_PRI_UNSPECIFIED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_20
## %bb.1:
	movl	4(%rax), %ecx
	movq	_AVCOL_TRC_UNSPECIFIED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_20
## %bb.2:
	movl	8(%rax), %ecx
	movq	_AVCOL_SPC_UNSPECIFIED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_20
## %bb.3:
	movl	12(%rax), %ecx
	cmpl	$1920, %ecx                     ## imm = 0x780
	jl	LBB0_8
## %bb.4:
	cmpl	$1079, 16(%rax)                 ## imm = 0x437
	jg	LBB0_11
	jmp	LBB0_5
LBB0_8:
	cmpl	$720, %ecx                      ## imm = 0x2D0
	je	LBB0_12
## %bb.9:
	cmpl	$1280, %ecx                     ## imm = 0x500
	jne	LBB0_5
## %bb.10:
	cmpl	$720, 16(%rax)                  ## imm = 0x2D0
	jne	LBB0_5
LBB0_11:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movq	16(%r15), %rax
	movl	$143, (%rax)
	movl	$136, %ecx
	jmp	LBB0_19
LBB0_12:
	movl	(%r15), %eax
	cmpl	$480, %eax                      ## imm = 0x1E0
	je	LBB0_16
## %bb.13:
	cmpl	$576, %eax                      ## imm = 0x240
	je	LBB0_14
## %bb.15:
	cmpl	$486, %eax                      ## imm = 0x1E6
	jne	LBB0_5
LBB0_16:
	movl	$142, %ebx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_17
LBB0_5:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	cmpl	$142, %ecx
	je	LBB0_18
## %bb.6:
	cmpl	$143, %ecx
	je	LBB0_7
## %bb.29:
	cmpl	$144, %ecx
	je	LBB0_18
	jmp	LBB0_20
LBB0_7:
	movl	$136, %ecx
	jmp	LBB0_19
LBB0_14:
	movl	$144, %ebx
	leaq	L_.str.1(%rip), %rdx
LBB0_17:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_av_log
	movq	16(%r15), %rax
	movl	%ebx, (%rax)
LBB0_18:
	movl	$135, %ecx
LBB0_19:
	movl	$132, 4(%rax)
	movl	%ecx, 8(%rax)
LBB0_20:
	movq	8(%r15), %rax
	movq	_MODE_MOV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_MODE_MP4@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_av_assert0
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_ffio_wfourcc
	movq	8(%r15), %rax
	cmpq	(%r13), %rax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r12, %rdi
	callq	_ffio_wfourcc
	movq	16(%r15), %rcx
	movl	$-139, %eax
	addl	(%rcx), %eax
	movl	$2, %ebx
	movl	$2, %esi
	cmpl	$6, %eax
	ja	LBB0_22
## %bb.21:
	cltq
	leaq	l_switch.table.mov_write_colr_tag(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
LBB0_22:
	movq	%r12, %rdi
	callq	_avio_wb16
	movq	16(%r15), %rax
	movl	4(%rax), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_24
## %bb.23:
	cltq
	leaq	l_switch.table.mov_write_colr_tag.7(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
LBB0_24:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_avio_wb16
	movq	16(%r15), %rcx
	movl	$-134, %eax
	addl	8(%rcx), %eax
	movl	$2, %esi
	cmpl	$4, %eax
	ja	LBB0_26
## %bb.25:
	cltq
	leaq	l_switch.table.mov_write_colr_tag.8(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
LBB0_26:
	movq	%r12, %rdi
	callq	_avio_wb16
	movq	8(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_28
## %bb.27:
	movq	16(%r15), %rax
	movq	24(%rax), %rax
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	shll	$7, %esi
	movq	%r12, %rdi
	callq	_avio_w8
LBB0_28:
	movq	%r12, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCOL_PRI_UNSPECIFIED,4,2      ## @AVCOL_PRI_UNSPECIFIED
	.comm	_AVCOL_TRC_UNSPECIFIED,4,2      ## @AVCOL_TRC_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,4,2      ## @AVCOL_SPC_UNSPECIFIED
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"color primaries unspecified, assuming bt709\n"

L_.str.1:                               ## @.str.1
	.asciz	"color primaries unspecified, assuming bt470bg\n"

L_.str.2:                               ## @.str.2
	.asciz	"color primaries unspecified, assuming smpte170\n"

L_.str.3:                               ## @.str.3
	.asciz	"color primaries unspecified, unable to assume anything\n"

	.comm	_MODE_MOV,8,3                   ## @MODE_MOV
	.comm	_MODE_MP4,8,3                   ## @MODE_MP4
L_.str.4:                               ## @.str.4
	.asciz	"colr"

L_.str.5:                               ## @.str.5
	.asciz	"nclx"

L_.str.6:                               ## @.str.6
	.asciz	"nclc"

	.comm	_AVCOL_RANGE_JPEG,8,3           ## @AVCOL_RANGE_JPEG
	.no_dead_strip	_mov_write_colr_tag
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.mov_write_colr_tag
l_switch.table.mov_write_colr_tag:
	.long	12                              ## 0xc
	.long	11                              ## 0xb
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	1                               ## 0x1
	.long	5                               ## 0x5
	.long	9                               ## 0x9

	.p2align	2                               ## @switch.table.mov_write_colr_tag.7
l_switch.table.mov_write_colr_tag.7:
	.long	16                              ## 0x10
	.long	17                              ## 0x11
	.long	7                               ## 0x7
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	18                              ## 0x12

	.p2align	2                               ## @switch.table.mov_write_colr_tag.8
l_switch.table.mov_write_colr_tag.8:
	.long	7                               ## 0x7
	.long	6                               ## 0x6
	.long	1                               ## 0x1
	.long	6                               ## 0x6
	.long	9                               ## 0x9

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_write_colr_tag
_mov_write_colr_tag:                    ; @mov_write_colr_tag
	.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	x21, x1
	mov	x19, x0
	bl	_avio_tell
	mov	x20, x0
	ldr	x8, [x21, #16]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _AVCOL_PRI_UNSPECIFIED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AVCOL_PRI_UNSPECIFIED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_21
; %bb.1:
	ldr	w9, [x8, #4]
Lloh3:
	adrp	x10, _AVCOL_TRC_UNSPECIFIED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AVCOL_TRC_UNSPECIFIED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_21
; %bb.2:
	ldr	w9, [x8, #8]
Lloh6:
	adrp	x10, _AVCOL_SPC_UNSPECIFIED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AVCOL_SPC_UNSPECIFIED@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_21
; %bb.3:
	ldr	w9, [x8, #12]
	cmp	w9, #1920
	b.lt	LBB0_5
; %bb.4:
	ldr	w8, [x8, #16]
	cmp	w8, #1079
	b.gt	LBB0_8
	b	LBB0_13
LBB0_5:
	cmp	w9, #720
	b.eq	LBB0_9
; %bb.6:
	cmp	w9, #1280
	b.ne	LBB0_13
; %bb.7:
	ldr	w8, [x8, #16]
	cmp	w8, #720
	b.ne	LBB0_13
LBB0_8:
Lloh9:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldr	x8, [x21, #16]
	mov	w9, #143
	str	w9, [x8]
	mov	w9, #136
	b	LBB0_20
LBB0_9:
	ldr	w8, [x21]
	cmp	w8, #480
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #576
	b.eq	LBB0_17
; %bb.11:
	cmp	w8, #486
	b.ne	LBB0_13
LBB0_12:
	mov	w22, #142
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_13:
Lloh16:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldr	x8, [x21, #16]
	ldr	w9, [x8]
	cmp	w9, #142
	b.eq	LBB0_19
; %bb.14:
	cmp	w9, #143
	b.eq	LBB0_16
; %bb.15:
	cmp	w9, #144
	b.eq	LBB0_19
	b	LBB0_21
LBB0_16:
	mov	w9, #136
	b	LBB0_20
LBB0_17:
	mov	w22, #144
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_18:
Lloh23:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_av_log
	ldr	x8, [x21, #16]
	str	w22, [x8]
LBB0_19:
	mov	w9, #135
LBB0_20:
	mov	w10, #132
	stp	w10, w9, [x8, #4]
LBB0_21:
	ldr	x8, [x21, #8]
Lloh26:
	adrp	x9, _MODE_MOV@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MODE_MOV@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh29:
	adrp	x22, _MODE_MP4@GOTPAGE
Lloh30:
	ldr	x22, [x22, _MODE_MP4@GOTPAGEOFF]
	ldr	x9, [x22]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_av_assert0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
Lloh33:
	adrp	x10, l_.str.6@PAGE
Lloh34:
	add	x10, x10, l_.str.6@PAGEOFF
Lloh35:
	adrp	x11, l_.str.5@PAGE
Lloh36:
	add	x11, x11, l_.str.5@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
	mov	x0, x19
	bl	_ffio_wfourcc
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
	sub	w8, w8, #139
	cmp	w8, #6
	b.hi	LBB0_23
; %bb.22:
Lloh37:
	adrp	x9, l_switch.table.mov_write_colr_tag@PAGE
Lloh38:
	add	x9, x9, l_switch.table.mov_write_colr_tag@PAGEOFF
	ldr	w1, [x9, w8, sxtw #2]
	b	LBB0_24
LBB0_23:
	mov	w1, #2
LBB0_24:
	mov	x0, x19
	bl	_avio_wb16
	ldr	x8, [x21, #16]
	ldr	w8, [x8, #4]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_26
; %bb.25:
Lloh39:
	adrp	x9, l_switch.table.mov_write_colr_tag.7@PAGE
Lloh40:
	add	x9, x9, l_switch.table.mov_write_colr_tag.7@PAGEOFF
	ldr	w1, [x9, w8, sxtw #2]
	b	LBB0_27
LBB0_26:
	mov	w1, #2
LBB0_27:
	mov	x0, x19
	bl	_avio_wb16
	ldr	x8, [x21, #16]
	ldr	w8, [x8, #8]
	sub	w8, w8, #134
	cmp	w8, #4
	b.hi	LBB0_29
; %bb.28:
Lloh41:
	adrp	x9, l_switch.table.mov_write_colr_tag.8@PAGE
Lloh42:
	add	x9, x9, l_switch.table.mov_write_colr_tag.8@PAGEOFF
	ldr	w1, [x9, w8, sxtw #2]
	b	LBB0_30
LBB0_29:
	mov	w1, #2
LBB0_30:
	mov	x0, x19
	bl	_avio_wb16
	ldr	x8, [x21, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.31:
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #24]
Lloh43:
	adrp	x9, _AVCOL_RANGE_JPEG@GOTPAGE
Lloh44:
	ldr	x9, [x9, _AVCOL_RANGE_JPEG@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	lsl	w1, w8, #7
	mov	x0, x19
	bl	_avio_w8
LBB0_32:
	mov	x0, x19
	mov	x1, x20
	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
	b	_update_size
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCOL_PRI_UNSPECIFIED,4,2      ; @AVCOL_PRI_UNSPECIFIED
	.comm	_AVCOL_TRC_UNSPECIFIED,4,2      ; @AVCOL_TRC_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,4,2      ; @AVCOL_SPC_UNSPECIFIED
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"color primaries unspecified, assuming bt709\n"

l_.str.1:                               ; @.str.1
	.asciz	"color primaries unspecified, assuming bt470bg\n"

l_.str.2:                               ; @.str.2
	.asciz	"color primaries unspecified, assuming smpte170\n"

l_.str.3:                               ; @.str.3
	.asciz	"color primaries unspecified, unable to assume anything\n"

	.comm	_MODE_MOV,8,3                   ; @MODE_MOV
	.comm	_MODE_MP4,8,3                   ; @MODE_MP4
l_.str.4:                               ; @.str.4
	.asciz	"colr"

l_.str.5:                               ; @.str.5
	.asciz	"nclx"

l_.str.6:                               ; @.str.6
	.asciz	"nclc"

	.comm	_AVCOL_RANGE_JPEG,8,3           ; @AVCOL_RANGE_JPEG
	.no_dead_strip	_mov_write_colr_tag
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.mov_write_colr_tag
l_switch.table.mov_write_colr_tag:
	.long	12                              ; 0xc
	.long	11                              ; 0xb
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	1                               ; 0x1
	.long	5                               ; 0x5
	.long	9                               ; 0x9

	.p2align	2                               ; @switch.table.mov_write_colr_tag.7
l_switch.table.mov_write_colr_tag.7:
	.long	16                              ; 0x10
	.long	17                              ; 0x11
	.long	7                               ; 0x7
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	18                              ; 0x12

	.p2align	2                               ; @switch.table.mov_write_colr_tag.8
l_switch.table.mov_write_colr_tag.8:
	.long	7                               ; 0x7
	.long	6                               ; 0x6
	.long	1                               ; 0x1
	.long	6                               ; 0x6
	.long	9                               ; 0x9

.subsections_via_symbols
