	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_sv3d_tag
_mov_write_sv3d_tag:                    ## @mov_write_sv3d_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
	movl	(%rdx), %ecx
	leal	-128(%rcx), %eax
	cmpl	$3, %eax
	jae	LBB0_9
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_AVFMT_FLAG_BITEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	jne	LBB0_2
## %bb.3:
	movq	_LIBAVFORMAT_IDENT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_4
LBB0_9:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_log
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %r12
LBB0_4:
	movq	%rbx, %rdi
	callq	_avio_tell
	movl	%eax, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movq	%rbx, %rdi
	callq	_avio_tell
	movl	%eax, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_avio_put_str
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_update_size
	movq	%rbx, %rdi
	callq	_avio_tell
	movl	%eax, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_avio_wb32
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movl	(%r14), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_5
## %bb.10:
	movq	%rbx, %rdi
	movl	$28, %esi
	callq	_avio_wb32
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	movl	24(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
	addq	$28, %r14
	jmp	LBB0_7
LBB0_5:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_avio_wb32
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	addq	$32, %r14
LBB0_7:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wb32
LBB0_8:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_update_size
	movq	%rbx, %rdi
	movl	%r15d, %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	_AVFMT_FLAG_BITEXACT,4,2        ## @AVFMT_FLAG_BITEXACT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Lavf"

	.comm	_LIBAVFORMAT_IDENT,8,3          ## @LIBAVFORMAT_IDENT
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported projection %d. sv3d not written.\n"

L_.str.2:                               ## @.str.2
	.asciz	"sv3d"

L_.str.3:                               ## @.str.3
	.asciz	"svhd"

L_.str.4:                               ## @.str.4
	.asciz	"proj"

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

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

L_.str.7:                               ## @.str.7
	.asciz	"cbmp"

	.no_dead_strip	_mov_write_sv3d_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_write_sv3d_tag
_mov_write_sv3d_tag:                    ; @mov_write_sv3d_tag
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w3, [x2]
	sub	w8, w3, #128
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AVFMT_FLAG_BITEXACT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVFMT_FLAG_BITEXACT@GOTPAGEOFF]
Lloh2:
	adrp	x10, _LIBAVFORMAT_IDENT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LIBAVFORMAT_IDENT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, l_.str@PAGE
Lloh7:
	add	x11, x11, l_.str@PAGEOFF
	tst	w9, w8
	csel	x22, x10, x11, eq
	mov	x0, x1
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	bl	_avio_tell
	mov	x23, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x22
	bl	_avio_put_str
	mov	x0, x19
	mov	x1, x23
	bl	_update_size
	mov	x0, x19
	bl	_avio_tell
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #24
	bl	_avio_wb32
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x21, #12]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #28
	bl	_avio_wb32
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x21, #20]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x21, #24]
	mov	x0, x19
	bl	_avio_wb32
	add	x8, x21, #28
	b	LBB0_6
LBB0_3:
Lloh18:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #20
	bl	_avio_wb32
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	add	x8, x21, #32
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_avio_wb32
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	bl	_update_size
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_update_size
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AVFMT_FLAG_BITEXACT,4,2        ; @AVFMT_FLAG_BITEXACT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Lavf"

	.comm	_LIBAVFORMAT_IDENT,8,3          ; @LIBAVFORMAT_IDENT
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported projection %d. sv3d not written.\n"

l_.str.2:                               ; @.str.2
	.asciz	"sv3d"

l_.str.3:                               ; @.str.3
	.asciz	"svhd"

l_.str.4:                               ; @.str.4
	.asciz	"proj"

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

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

l_.str.7:                               ; @.str.7
	.asciz	"cbmp"

	.no_dead_strip	_mov_write_sv3d_tag
.subsections_via_symbols
