	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_minf_tag
_mov_write_minf_tag:                    ## @mov_write_minf_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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_avio_tell
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_mov_write_vmhd_tag
	jmp	LBB0_15
LBB0_2:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_mov_write_smhd_tag
	jmp	LBB0_15
LBB0_4:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rcx
	movq	(%r15), %r14
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movl	$116, %edi
	movl	$101, %esi
	movl	$120, %edx
	movl	$116, %ecx
	callq	_MKTAG
	cmpq	%rax, %r14
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_is_clcp_track
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mov_write_gmhd_tag
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_15
LBB0_8:
	movl	$114, %edi
	movl	$116, %esi
	movl	$112, %edx
	movl	$32, %ecx
	callq	_MKTAG
	cmpq	%rax, %r14
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_mov_write_hmhd_tag
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_15
LBB0_10:
	movq	(%r15), %r14
	movl	$116, %edi
	movl	$109, %esi
	movl	$99, %edx
	movl	$100, %ecx
	callq	_MKTAG
	cmpq	%rax, %r14
	jne	LBB0_13
## %bb.11:
	movq	8(%r15), %rax
	movq	_MODE_MOV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_12:
	movq	%rbx, %rdi
	callq	_mov_write_nmhd_tag
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_15
LBB0_13:
	movq	(%r15), %r14
	movl	$103, %edi
	movl	$112, %esi
	movl	$109, %edx
	movl	$100, %ecx
	callq	_MKTAG
	cmpq	%rax, %r14
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mov_write_gmhd_tag
LBB0_15:
	movq	8(%r15), %rax
	movq	_MODE_MOV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_mov_write_hdlr_tag
LBB0_17:
	movq	%rbx, %rdi
	callq	_mov_write_dinf_tag
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_mov_write_stbl_tag
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"minf"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_MODE_MOV,8,3                   ## @MODE_MOV
	.no_dead_strip	_mov_write_minf_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_minf_tag
_mov_write_minf_tag:                    ; @mov_write_minf_tag
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	mov	x0, x1
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x24, _MODE_MOV@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MODE_MOV@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mov_write_vmhd_tag
	b	LBB0_14
LBB0_2:
Lloh7:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mov_write_smhd_tag
	b	LBB0_14
LBB0_4:
Lloh10:
	adrp	x9, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x25, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #116
	mov	w1, #101
	mov	w2, #120
	mov	w3, #116
	bl	_MKTAG
	cmp	x25, x0
	b.eq	LBB0_13
; %bb.6:
	mov	x0, x21
	bl	_is_clcp_track
	cbnz	x0, LBB0_13
	b	LBB0_11
LBB0_7:
	mov	w0, #114
	mov	w1, #116
	mov	w2, #112
	mov	w3, #32
	bl	_MKTAG
	cmp	x25, x0
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_mov_write_hmhd_tag
	b	LBB0_14
LBB0_9:
	ldr	x25, [x21]
	mov	w0, #116
	mov	w1, #109
	mov	w2, #99
	mov	w3, #100
	bl	_MKTAG
	cmp	x25, x0
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_mov_write_nmhd_tag
	b	LBB0_14
LBB0_12:
	ldr	x25, [x21]
	mov	w0, #103
	mov	w1, #112
	mov	w2, #109
	mov	w3, #100
	bl	_MKTAG
	cmp	x25, x0
	b.ne	LBB0_14
LBB0_13:
	mov	x0, x19
	mov	x1, x21
	bl	_mov_write_gmhd_tag
LBB0_14:
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x23
	mov	x1, x19
	mov	x2, #0
	bl	_mov_write_hdlr_tag
LBB0_16:
	mov	x0, x19
	bl	_mov_write_dinf_tag
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_mov_write_stbl_tag
	tbnz	w0, #31, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_update_size
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"minf"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_MODE_MOV,8,3                   ; @MODE_MOV
	.no_dead_strip	_mov_write_minf_tag
.subsections_via_symbols
