	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_write_box_mvhd
_mp4_write_box_mvhd:                    ## @mp4_write_box_mvhd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MP4_64BITS_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %esi
	callq	_WRITE_U8
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U24
	movq	$0, (%r15)
	movl	8(%r15), %r8d
	testq	%r8, %r8
	je	LBB0_12
## %bb.1:
	movq	16(%r15), %rcx
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	xorl	%eax, %eax
LBB0_9:
	testb	$1, %r8b
	je	LBB0_12
## %bb.10:
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	movq	(%rdx), %rcx
	subq	8(%rdx), %rcx
	cmpq	%rax, %rcx
	jle	LBB0_12
## %bb.11:
	movq	%rcx, (%r15)
LBB0_12:
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	callq	_WRITE_U64
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U64
	movq	_MP4_TIMESCALE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_WRITE_U32
	movslq	(%rbx), %rax
	imulq	(%r15), %rax
	movabsq	$4835703278458516699, %rcx      ## imm = 0x431BDE82D7B634DB
	imulq	%rcx
	movq	%rdx, %rsi
	shrq	$63, %rsi
	shrq	$18, %rdx
	addl	%edx, %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WRITE_U64
	jmp	LBB0_15
LBB0_14:
	callq	_WRITE_U32
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U32
	movq	_MP4_TIMESCALE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_WRITE_U32
	movslq	(%rbx), %rax
	imulq	(%r15), %rax
	movabsq	$4835703278458516699, %rcx      ## imm = 0x431BDE82D7B634DB
	imulq	%rcx
	movq	%rdx, %rsi
	shrq	$63, %rsi
	shrq	$18, %rdx
	addl	%edx, %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WRITE_U32
LBB0_15:
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_WRITE_U32
	leaq	L_.str.7(%rip), %rdx
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_WRITE_U16
	leaq	L_.str.8(%rip), %r14
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U16
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	leaq	L_.str.9(%rip), %r14
	movq	%r15, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	movl	$1073741824, %esi               ## imm = 0x40000000
	movq	%r14, %rdx
	callq	_WRITE_U32
	leaq	L_.str.10(%rip), %r14
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_WRITE_U32
	movl	8(%r15), %esi
	incl	%esi
	leaq	L_.str.11(%rip), %rdx
	movq	%r15, %rdi
	callq	_WRITE_U32
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
LBB0_3:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %rdi
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi), %rbx
	movq	(%rbx), %rsi
	subq	8(%rbx), %rsi
	cmpq	%rax, %rsi
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, (%r15)
	movq	%rsi, %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rcx,%rdx,8), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi), %rbx
	movq	(%rbx), %rsi
	subq	8(%rbx), %rsi
	cmpq	%rax, %rsi
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, (%r15)
	movq	%rsi, %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MP4_64BITS_TIME,4,2            ## @MP4_64BITS_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version"

L_.str.1:                               ## @.str.1
	.asciz	"flags"

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

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

	.comm	_MP4_TIMESCALE,4,2              ## @MP4_TIMESCALE
L_.str.4:                               ## @.str.4
	.asciz	"timescale"

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

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

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

L_.str.8:                               ## @.str.8
	.asciz	"reserved"

L_.str.9:                               ## @.str.9
	.asciz	"matrix"

L_.str.10:                              ## @.str.10
	.asciz	"pre_defined"

L_.str.11:                              ## @.str.11
	.asciz	"next_track_ID"

	.no_dead_strip	_mp4_write_box_mvhd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_write_box_mvhd
_mp4_write_box_mvhd:                    ; @mp4_write_box_mvhd
	.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, x0
Lloh0:
	adrp	x8, _MP4_64BITS_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP4_64BITS_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_WRITE_U8
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U24
	str	xzr, [x19]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x10, #0
	ldr	x9, [x19, #16]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	x11, [x11]
	ldr	x11, [x11]
	ldp	x12, x11, [x11]
	sub	x11, x12, x11
	cmp	x11, x10
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x11, [x19]
	mov	x10, x11
	b	LBB0_2
LBB0_5:
	mov	w21, #16960
	movk	w21, #15, lsl #16
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	cbz	w20, LBB0_7
; %bb.6:
	bl	_WRITE_U64
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U64
Lloh11:
	adrp	x20, _MP4_TIMESCALE@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MP4_TIMESCALE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh13:
	adrp	x2, l_.str.4@PAGE
Lloh14:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U32
	ldr	x8, [x19]
	ldrsw	x9, [x20]
	mul	x8, x8, x9
	sdiv	x1, x8, x21
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_WRITE_U64
	b	LBB0_8
LBB0_7:
	bl	_WRITE_U32
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U32
Lloh19:
	adrp	x20, _MP4_TIMESCALE@GOTPAGE
Lloh20:
	ldr	x20, [x20, _MP4_TIMESCALE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh21:
	adrp	x2, l_.str.4@PAGE
Lloh22:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U32
	ldr	x8, [x19]
	ldrsw	x9, [x20]
	mul	x8, x8, x9
	sdiv	x1, x8, x21
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_WRITE_U32
LBB0_8:
Lloh25:
	adrp	x2, l_.str.6@PAGE
Lloh26:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w1, #65536
	bl	_WRITE_U32
Lloh27:
	adrp	x2, l_.str.7@PAGE
Lloh28:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w1, #256
	bl	_WRITE_U16
Lloh29:
	adrp	x20, l_.str.8@PAGE
Lloh30:
	add	x20, x20, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U16
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
Lloh31:
	adrp	x20, l_.str.9@PAGE
Lloh32:
	add	x20, x20, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	w1, #65536
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #65536
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #1073741824
	mov	x2, x20
	bl	_WRITE_U32
Lloh33:
	adrp	x20, l_.str.10@PAGE
Lloh34:
	add	x20, x20, l_.str.10@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	ldr	w8, [x19, #8]
	add	w1, w8, #1
Lloh35:
	adrp	x2, l_.str.11@PAGE
Lloh36:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U32
	mov	x0, x19
	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	_STREAM_STATUS
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MP4_64BITS_TIME,4,2            ; @MP4_64BITS_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version"

l_.str.1:                               ; @.str.1
	.asciz	"flags"

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

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

	.comm	_MP4_TIMESCALE,4,2              ; @MP4_TIMESCALE
l_.str.4:                               ; @.str.4
	.asciz	"timescale"

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

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

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

l_.str.8:                               ; @.str.8
	.asciz	"reserved"

l_.str.9:                               ; @.str.9
	.asciz	"matrix"

l_.str.10:                              ; @.str.10
	.asciz	"pre_defined"

l_.str.11:                              ; @.str.11
	.asciz	"next_track_ID"

	.no_dead_strip	_mp4_write_box_mvhd
.subsections_via_symbols
