	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function write_header
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_write_header:                          ## @write_header
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	cmpq	$0, 32(%r12)
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	cmpq	$0, 32(%r12)
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_get_duration
	leaq	L_.str.8(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_avio_printf
LBB0_2:
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movb	$1, %al
	callq	_avio_printf
	movl	(%rbx), %edi
	cmpq	$0, 32(%r12)
	leaq	L_.str.12(%rip), %rax
	leaq	L_.str.11(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.14(%rip), %rax
	leaq	L_.str.13(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	cmpq	$0, 32(%r12)
	je	LBB0_9
## %bb.3:
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -68(%rbp)
	leaq	-68(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_gmtime_r
	leaq	L_.str.15(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$21, %esi
	movq	%rax, %rcx
	callq	_strftime
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	cmpq	$0, 24(%r12)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.16(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	$1, %edx
	callq	_av_strlcpy
LBB0_6:
	movl	(%rbx), %edi
	leaq	L_.str.17(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rdx
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	movq	(%r12), %rdx
	leaq	L_.str.18(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	movq	8(%r12), %rdx
	leaq	L_.str.19(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	leaq	L_.str.14(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	cmpq	$0, 16(%r12)
	je	LBB0_9
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str.20(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	leaq	L_.str.21(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	movl	(%rbx), %edi
	movq	16(%r12), %rdx
	leaq	L_.str.22(%rip), %rsi
	xorl	%eax, %eax
	callq	_avio_printf
	jmp	LBB0_9
LBB0_8:
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"

L_.str.1:                               ## @.str.1
	.asciz	"<MPD\n"

L_.str.2:                               ## @.str.2
	.asciz	"  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"  xmlns=\"urn:mpeg:DASH:schema:MPD:2011\"\n"

L_.str.4:                               ## @.str.4
	.asciz	"  xsi:schemaLocation=\"urn:mpeg:DASH:schema:MPD:2011\"\n"

L_.str.5:                               ## @.str.5
	.asciz	"  type=\"%s\"\n"

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

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

L_.str.8:                               ## @.str.8
	.asciz	"  mediaPresentationDuration=\"PT%gS\"\n"

L_.str.9:                               ## @.str.9
	.asciz	"  minBufferTime=\"PT%gS\"\n"

L_.str.10:                              ## @.str.10
	.asciz	"  profiles=\"%s\"%s"

L_.str.11:                              ## @.str.11
	.asciz	"urn:mpeg:dash:profile:isoff-live:2011"

L_.str.12:                              ## @.str.12
	.asciz	"urn:webm:dash:profile:webm-on-demand:2012"

L_.str.13:                              ## @.str.13
	.asciz	"\n"

L_.str.14:                              ## @.str.14
	.asciz	">\n"

L_.str.15:                              ## @.str.15
	.asciz	"%Y-%m-%dT%H:%M:%SZ"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
L_.str.16:                              ## @.str.16
	.space	1

L_.str.17:                              ## @.str.17
	.asciz	"  availabilityStartTime=\"%s\"\n"

L_.str.18:                              ## @.str.18
	.asciz	"  timeShiftBufferDepth=\"PT%gS\"\n"

L_.str.19:                              ## @.str.19
	.asciz	"  minimumUpdatePeriod=\"PT%dS\""

L_.str.20:                              ## @.str.20
	.asciz	"<UTCTiming\n"

L_.str.21:                              ## @.str.21
	.asciz	"  schemeIdUri=\"urn:mpeg:dash:utc:http-iso:2014\"\n"

L_.str.22:                              ## @.str.22
	.asciz	"  value=\"%s\"/>\n"

	.no_dead_strip	_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_header
_write_header:                          ; @write_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x21, [x0, #8]
	ldr	w0, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
	ldr	x8, [x21, #32]
Lloh13:
	adrp	x9, l_.str.6@PAGE
Lloh14:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh15:
	adrp	x10, l_.str.7@PAGE
Lloh16:
	add	x10, x10, l_.str.7@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_avio_printf
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w20, [x19]
	mov	x0, x19
	bl	_get_duration
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_avio_printf
LBB0_2:
	ldr	w0, [x19]
	mov	x8, #4607182418800017408
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
	ldr	x8, [x21, #32]
Lloh23:
	adrp	x9, l_.str.11@PAGE
Lloh24:
	add	x9, x9, l_.str.11@PAGEOFF
Lloh25:
	adrp	x10, l_.str.12@PAGE
Lloh26:
	add	x10, x10, l_.str.12@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
Lloh27:
	adrp	x9, l_.str.13@PAGE
Lloh28:
	add	x9, x9, l_.str.13@PAGEOFF
Lloh29:
	adrp	x10, l_.str.14@PAGE
Lloh30:
	add	x10, x10, l_.str.14@PAGEOFF
	csel	x9, x10, x9, eq
	stp	x8, x9, [sp]
Lloh31:
	adrp	x1, l_.str.10@PAGE
Lloh32:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_avio_printf
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x0, #0
	bl	_time
	str	w0, [sp, #28]
	add	x0, sp, #28
	add	x1, sp, #24
	bl	_gmtime_r
	mov	x3, x0
Lloh33:
	adrp	x2, l_.str.15@PAGE
Lloh34:
	add	x2, x2, l_.str.15@PAGEOFF
	add	x0, sp, #35
	mov	w1, #21
	bl	_strftime
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_6
; %bb.5:
Lloh35:
	adrp	x1, l_.str.16@PAGE
Lloh36:
	add	x1, x1, l_.str.16@PAGEOFF
	add	x0, sp, #35
	mov	w2, #1
	bl	_av_strlcpy
LBB0_6:
	ldr	w0, [x19]
	add	x8, sp, #35
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.17@PAGE
Lloh38:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.18@PAGE
Lloh40:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
	ldr	x8, [x21, #8]
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.19@PAGE
Lloh42:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
Lloh43:
	adrp	x1, l_.str.14@PAGE
Lloh44:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_avio_printf
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh45:
	adrp	x1, l_.str.20@PAGE
Lloh46:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
Lloh47:
	adrp	x1, l_.str.21@PAGE
Lloh48:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_avio_printf
	ldr	w0, [x19]
	ldr	x8, [x21, #16]
	str	x8, [sp]
Lloh49:
	adrp	x1, l_.str.22@PAGE
Lloh50:
	add	x1, x1, l_.str.22@PAGEOFF
	bl	_avio_printf
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh51:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.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	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"

l_.str.1:                               ; @.str.1
	.asciz	"<MPD\n"

l_.str.2:                               ; @.str.2
	.asciz	"  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"  xmlns=\"urn:mpeg:DASH:schema:MPD:2011\"\n"

l_.str.4:                               ; @.str.4
	.asciz	"  xsi:schemaLocation=\"urn:mpeg:DASH:schema:MPD:2011\"\n"

l_.str.5:                               ; @.str.5
	.asciz	"  type=\"%s\"\n"

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

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

l_.str.8:                               ; @.str.8
	.asciz	"  mediaPresentationDuration=\"PT%gS\"\n"

l_.str.9:                               ; @.str.9
	.asciz	"  minBufferTime=\"PT%gS\"\n"

l_.str.10:                              ; @.str.10
	.asciz	"  profiles=\"%s\"%s"

l_.str.11:                              ; @.str.11
	.asciz	"urn:mpeg:dash:profile:isoff-live:2011"

l_.str.12:                              ; @.str.12
	.asciz	"urn:webm:dash:profile:webm-on-demand:2012"

l_.str.13:                              ; @.str.13
	.asciz	"\n"

l_.str.14:                              ; @.str.14
	.asciz	">\n"

l_.str.15:                              ; @.str.15
	.asciz	"%Y-%m-%dT%H:%M:%SZ"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
l_.str.16:                              ; @.str.16
	.space	1

l_.str.17:                              ; @.str.17
	.asciz	"  availabilityStartTime=\"%s\"\n"

l_.str.18:                              ; @.str.18
	.asciz	"  timeShiftBufferDepth=\"PT%gS\"\n"

l_.str.19:                              ; @.str.19
	.asciz	"  minimumUpdatePeriod=\"PT%dS\""

l_.str.20:                              ; @.str.20
	.asciz	"<UTCTiming\n"

l_.str.21:                              ; @.str.21
	.asciz	"  schemeIdUri=\"urn:mpeg:dash:utc:http-iso:2014\"\n"

l_.str.22:                              ; @.str.22
	.asciz	"  value=\"%s\"/>\n"

	.no_dead_strip	_write_header
.subsections_via_symbols
