	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_write_box_mdhd
_mp4_write_box_mdhd:                    ## @mp4_write_box_mdhd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_MP4_64BITS_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %esi
	callq	_WRITE_U8
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U24
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	callq	_WRITE_U64
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U64
	movq	_MP4_TIMESCALE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_WRITE_U32
	movl	(%rbx), %eax
	imull	(%r14), %eax
	cltq
	imulq	$1125899907, %rax, %rsi         ## imm = 0x431BDE83
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$50, %rsi
	addl	%eax, %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WRITE_U64
	jmp	LBB0_3
LBB0_2:
	callq	_WRITE_U32
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U32
	movq	_MP4_TIMESCALE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_WRITE_U32
	movl	(%rbx), %eax
	imull	(%r14), %eax
	cltq
	imulq	$1125899907, %rax, %rsi         ## imm = 0x431BDE83
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$50, %rsi
	addl	%eax, %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WRITE_U32
LBB0_3:
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	movl	$21956, %esi                    ## imm = 0x55C4
	callq	_WRITE_U16
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U16
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
	.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	"language"

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

	.no_dead_strip	_mp4_write_box_mdhd
.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_mdhd
_mp4_write_box_mdhd:                    ; @mp4_write_box_mdhd
	.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
	mov	w21, #16960
	movk	w21, #15, lsl #16
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
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	cbz	w20, LBB0_2
; %bb.1:
	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	w8, [x19]
	ldr	w9, [x20]
	mul	w8, w9, w8
	sdiv	w1, w8, w21
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U64
	b	LBB0_3
LBB0_2:
	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	w8, [x19]
	ldr	w9, [x20]
	mul	w8, w9, w8
	sdiv	w1, w8, w21
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U32
LBB0_3:
Lloh25:
	adrp	x2, l_.str.6@PAGE
Lloh26:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w1, #21956
	bl	_WRITE_U16
Lloh27:
	adrp	x2, l_.str.7@PAGE
Lloh28:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U16
	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	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	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	"language"

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

	.no_dead_strip	_mp4_write_box_mdhd
.subsections_via_symbols
