	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output_server_manifest
_output_server_manifest:                ## @output_server_manifest
	.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
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %rcx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-1056(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	movq	%r13, %r8
	callq	_snprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	movl	$39, %esi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fwrite
	leaq	L_.str.3(%rip), %rdi
	movl	$54, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	leaq	L_.str.4(%rip), %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	leaq	L_.str.6(%rip), %rdi
	movl	$9, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	leaq	L_.str.7(%rip), %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	leaq	L_.str.8(%rip), %rdi
	movl	$11, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	cmpl	$0, (%r15)
	movq	%r15, %rcx
	movq	%rbx, %r15
	jle	LBB0_5
## %bb.3:
	movq	%r14, %rbx
	xorl	%r13d, %r13d
	movq	%rcx, -1064(%rbp)               ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rax
	movq	(%rax,%r13,8), %r14
	cmpq	$0, 16(%r14)
	leaq	L_.str.9(%rip), %r12
	leaq	L_.str.10(%rip), %rax
	cmoveq	%rax, %r12
	movl	(%r14), %r8d
	movl	8(%r14), %r9d
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	4(%r14), %edx
	movq	%r15, %rdi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r15, %rdi
	leaq	L_.str.13(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	-1064(%rbp), %rcx               ## 8-byte Reload
	incq	%r13
	movslq	(%rcx), %rax
	cmpq	%rax, %r13
	jl	LBB0_4
LBB0_5:
	leaq	L_.str.14(%rip), %rdi
	movl	$12, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	leaq	L_.str.15(%rip), %rdi
	movl	$9, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	leaq	L_.str.16(%rip), %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	movq	%r15, %rdi
	callq	_fclose
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-1056(%rbp), %rdi
	callq	_perror
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s.ism"

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

L_.str.2:                               ## @.str.2
	.asciz	"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"

L_.str.3:                               ## @.str.3
	.asciz	"<smil xmlns=\"http://www.w3.org/2001/SMIL20/Language\">\n"

L_.str.4:                               ## @.str.4
	.asciz	"\t<head>\n"

L_.str.5:                               ## @.str.5
	.asciz	"\t\t<meta name=\"clientManifestRelativePath\" content=\"%s%s.ismc\" />\n"

L_.str.6:                               ## @.str.6
	.asciz	"\t</head>\n"

L_.str.7:                               ## @.str.7
	.asciz	"\t<body>\n"

L_.str.8:                               ## @.str.8
	.asciz	"\t\t<switch>\n"

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

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

L_.str.11:                              ## @.str.11
	.asciz	"\t\t\t<%s src=\"%s%s\" systemBitrate=\"%d\">\n"

L_.str.12:                              ## @.str.12
	.asciz	"\t\t\t\t<param name=\"trackID\" value=\"%d\" valueType=\"data\" />\n"

L_.str.13:                              ## @.str.13
	.asciz	"\t\t\t</%s>\n"

L_.str.14:                              ## @.str.14
	.asciz	"\t\t</switch>\n"

L_.str.15:                              ## @.str.15
	.asciz	"\t</body>\n"

L_.str.16:                              ## @.str.16
	.asciz	"</smil>\n"

	.no_dead_strip	_output_server_manifest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_server_manifest
_output_server_manifest:                ; @output_server_manifest
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1056
	mov	x22, x4
	mov	x26, x3
	mov	x3, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	w1, #1000
	mov	x4, x23
	bl	_snprintf
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #40
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #39
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #54
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w1, #8
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	stp	x22, x23, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	w1, #9
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	w1, #8
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	w1, #11
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x25, #0
Lloh21:
	adrp	x27, l_.str.10@PAGE
Lloh22:
	add	x27, x27, l_.str.10@PAGEOFF
Lloh23:
	adrp	x22, l_.str.11@PAGE
Lloh24:
	add	x22, x22, l_.str.11@PAGEOFF
Lloh25:
	adrp	x23, l_.str.12@PAGE
Lloh26:
	add	x23, x23, l_.str.12@PAGEOFF
Lloh27:
	adrp	x24, l_.str.13@PAGE
Lloh28:
	add	x24, x24, l_.str.13@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x28, [x8, x25, lsl #3]
	ldr	x8, [x28, #16]
	cmp	x8, #0
Lloh29:
	adrp	x8, l_.str.9@PAGE
Lloh30:
	add	x8, x8, l_.str.9@PAGEOFF
	csel	x20, x27, x8, eq
	ldr	w8, [x28]
	ldr	w9, [x28, #8]
	stp	x8, x9, [sp, #16]
	stp	x20, x26, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_fprintf
	ldr	w8, [x28, #4]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_fprintf
	str	x20, [sp]
	mov	x0, x19
	mov	x1, x24
	bl	_fprintf
	add	x25, x25, #1
	ldrsw	x8, [x21]
	cmp	x25, x8
	b.lt	LBB0_3
LBB0_4:
Lloh31:
	adrp	x0, l_.str.14@PAGE
Lloh32:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	w1, #12
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
Lloh33:
	adrp	x0, l_.str.15@PAGE
Lloh34:
	add	x0, x0, l_.str.15@PAGEOFF
	mov	w1, #9
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
Lloh35:
	adrp	x0, l_.str.16@PAGE
Lloh36:
	add	x0, x0, l_.str.16@PAGEOFF
	mov	w1, #8
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	mov	x0, x19
	bl	_fclose
LBB0_5:
	ldur	x8, [x29, #-96]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	add	x0, sp, #40
	bl	_perror
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s.ism"

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

l_.str.2:                               ; @.str.2
	.asciz	"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"

l_.str.3:                               ; @.str.3
	.asciz	"<smil xmlns=\"http://www.w3.org/2001/SMIL20/Language\">\n"

l_.str.4:                               ; @.str.4
	.asciz	"\t<head>\n"

l_.str.5:                               ; @.str.5
	.asciz	"\t\t<meta name=\"clientManifestRelativePath\" content=\"%s%s.ismc\" />\n"

l_.str.6:                               ; @.str.6
	.asciz	"\t</head>\n"

l_.str.7:                               ; @.str.7
	.asciz	"\t<body>\n"

l_.str.8:                               ; @.str.8
	.asciz	"\t\t<switch>\n"

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

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

l_.str.11:                              ; @.str.11
	.asciz	"\t\t\t<%s src=\"%s%s\" systemBitrate=\"%d\">\n"

l_.str.12:                              ; @.str.12
	.asciz	"\t\t\t\t<param name=\"trackID\" value=\"%d\" valueType=\"data\" />\n"

l_.str.13:                              ; @.str.13
	.asciz	"\t\t\t</%s>\n"

l_.str.14:                              ; @.str.14
	.asciz	"\t\t</switch>\n"

l_.str.15:                              ; @.str.15
	.asciz	"\t</body>\n"

l_.str.16:                              ; @.str.16
	.asciz	"</smil>\n"

	.no_dead_strip	_output_server_manifest
.subsections_via_symbols
