	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function flush_packet
LCPI0_0:
	.quad	0x40f5f90000000000              ## double 9.0E+4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_flush_packet:                          ## @flush_packet
	.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	$632, %rsp                      ## imm = 0x278
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -620(%rbp)                ## 4-byte Spill
	movsd	%xmm2, -568(%rbp)               ## 8-byte Spill
	movsd	%xmm1, -616(%rbp)               ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	16(%rdi), %rbx
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	%rax, -576(%rbp)                ## 8-byte Spill
	movl	(%rax), %ecx
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsd	%xmm0, -600(%rbp)               ## 8-byte Spill
	divsd	LCPI0_0(%rip), %xmm0
	leaq	L_.str(%rip), %rdx
	movq	%rcx, -584(%rbp)                ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_log
	movsd	-568(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	(%rbx), %eax
	cltd
	idivl	4(%rbx)
	testl	%edx, %edx
	movq	%rbx, -592(%rbp)                ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movsd	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jne	LBB0_2
	jnp	LBB0_10
LBB0_2:
	leaq	-560(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_put_pack_header
	movslq	%eax, %rcx
	leaq	-560(,%rcx,4), %r15
	addq	%rbp, %r15
	movsd	-568(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rbx)
	cmpq	$0, 64(%rbx)
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	-576(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, 8(%rax)
	jne	LBB0_17
## %bb.4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-584(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %edx
	callq	_put_system_header
	cltq
	leaq	(%r15,%rax,4), %r15
	jmp	LBB0_18
LBB0_5:
	cmpq	$0, 48(%rbx)
	je	LBB0_11
## %bb.6:
	movq	-576(%rbp), %rcx                ## 8-byte Reload
	cmpq	$0, 48(%rcx)
	movq	-584(%rbp), %rdx                ## 8-byte Reload
	je	LBB0_13
LBB0_7:
	movq	-592(%rbp), %rcx                ## 8-byte Reload
	movl	16(%rcx), %ebx
	subl	%eax, %ebx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	-600(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jne	LBB0_8
	jnp	LBB0_15
LBB0_8:
	movsd	-616(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jne	LBB0_9
	jnp	LBB0_99
LBB0_9:
	addl	$-20, %ebx
	jmp	LBB0_100
LBB0_10:
	leaq	-560(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_11:
	movl	(%rbx), %eax
	cltd
	idivl	32(%rbx)
	testl	%edx, %edx
	je	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	-592(%rbp), %rcx                ## 8-byte Reload
	cmpl	$0, (%rcx)
	je	LBB0_7
## %bb.14:
	xorl	%ebx, %ebx
	movq	%rdx, %r14
	jmp	LBB0_18
LBB0_15:
	addl	$-10, %ebx
	jmp	LBB0_100
LBB0_16:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_put_system_header
	cltq
	leaq	(%r15,%rax,4), %r15
LBB0_17:
	movq	-584(%rbp), %r14                ## 8-byte Reload
LBB0_18:
	leaq	-560(%rbp), %rsi
	subq	%rsi, %r15
	shrq	$2, %r15
	movl	(%r13), %edi
	movl	%r15d, %edx
	callq	_avio_write
	movq	-592(%rbp), %rax                ## 8-byte Reload
	movl	16(%rax), %esi
	subl	%r15d, %esi
	movq	%rax, %r15
	movl	%r14d, %edx
	andl	$224, %edx
	movq	_AUDIO_ID@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	(%rax), %edx
	movl	$20, %r12d
	cmovnel	%ecx, %r12d
	cmpq	$0, 64(%r15)
	cmovel	%ecx, %r12d
	je	LBB0_20
## %bb.19:
	movq	-576(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_24
LBB0_20:
	cmpq	$0, 56(%r15)
	je	LBB0_23
## %bb.21:
	cmpl	$0, (%r15)
	movsd	-600(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jne	LBB0_26
## %bb.22:
	movl	$1, %eax
	jmp	LBB0_25
LBB0_23:
	movsd	-600(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jmp	LBB0_26
LBB0_24:
	movq	56(%r15), %rax
	movsd	-600(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
LBB0_25:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%esi, %ebx
	subl	%r12d, %ebx
LBB0_26:
	movl	%ecx, -664(%rbp)                ## 4-byte Spill
	subl	%r12d, %esi
	subl	%ebx, %esi
	testl	%esi, %esi
	jle	LBB0_29
## %bb.27:
	movl	%edx, -656(%rbp)                ## 4-byte Spill
	addl	$-6, %esi
	movq	40(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.28:
	xorl	%eax, %eax
	movq	-576(%rbp), %rdx                ## 8-byte Reload
	cmpq	$0, 8(%rdx)
	sete	%al
	leal	(%rax,%rax,2), %eax
	orl	$4, %eax
	jmp	LBB0_31
LBB0_29:
	xorl	%eax, %eax
	movq	%rax, -616(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -568(%rbp)                ## 8-byte Spill
	movq	-576(%rbp), %r14                ## 8-byte Reload
	testl	%ebx, %ebx
	jg	LBB0_92
	jmp	LBB0_93
LBB0_30:
	xorl	%eax, %eax
LBB0_31:
	xorl	%edx, %edx
	testq	%rcx, %rcx
	sete	%dl
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdi
	movsd	-616(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	cmpneqsd	%xmm1, %xmm0
	movq	%xmm0, %rcx
	movq	%rcx, -632(%rbp)                ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	andl	$1, %ecx
	ucomisd	(%rdi), %xmm1
	leal	5(%rcx,%rcx,4), %ecx
	cmovnel	%ecx, %edx
	cmovpl	%ecx, %edx
	addl	%eax, %edx
	movl	%esi, %r15d
	movq	%rdx, -648(%rbp)                ## 8-byte Spill
	subl	%edx, %r15d
	cmpl	$191, %r14d
	movl	%esi, -568(%rbp)                ## 4-byte Spill
	jg	LBB0_34
## %bb.32:
	movq	_PRIVATE_STREAM_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -604(%rbp)                ## 4-byte Spill
	cmpl	$64, %r14d
	jl	LBB0_35
## %bb.33:
	xorl	%eax, %eax
	cmpl	$160, %r14d
	setb	%al
	leal	(%rax,%rax,2), %eax
	addl	%eax, %r15d
	addl	$-7, %r15d
	jmp	LBB0_36
LBB0_34:
	leal	256(%r14), %eax
	movl	%eax, -604(%rbp)                ## 4-byte Spill
	jmp	LBB0_36
LBB0_35:
	decl	%r15d
LBB0_36:
	movq	-576(%rbp), %rax                ## 8-byte Reload
	movl	40(%rax), %edi
	callq	_av_fifo_size
	movl	%r15d, %ecx
	subl	%eax, %ecx
	cmpl	-620(%rbp), %r15d               ## 4-byte Folded Reload
	movq	%r15, %r9
	jg	LBB0_43
## %bb.37:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movsd	-600(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movq	%rbx, %rdi
	jne	LBB0_38
	jnp	LBB0_44
LBB0_38:
	movq	-632(%rbp), %rax                ## 8-byte Reload
	andl	$1, %eax
	leal	(%rax,%rax,4), %eax
	movq	-592(%rbp), %r15                ## 8-byte Reload
	cmpq	$1, 40(%r15)
	sbbl	$0, %eax
	addl	$5, %eax
	cmpq	$0, 48(%r15)
	movq	-584(%rbp), %r8                 ## 8-byte Reload
	je	LBB0_41
## %bb.39:
	movq	-576(%rbp), %rdx                ## 8-byte Reload
	cmpq	$0, 48(%rdx)
	je	LBB0_41
## %bb.40:
	addl	%eax, %edi
	subl	%eax, -568(%rbp)                ## 4-byte Folded Spill
	jmp	LBB0_42
LBB0_41:
	addl	%eax, %r9d
LBB0_42:
	movq	-648(%rbp), %rdx                ## 8-byte Reload
	subl	%eax, %edx
	movq	%rdx, -648(%rbp)                ## 8-byte Spill
	addl	%eax, %ecx
	xorl	%eax, %eax
	movl	%r9d, %edx
	subl	-620(%rbp), %edx                ## 4-byte Folded Reload
	cmovlel	%eax, %edx
	addl	%edx, %ecx
	movapd	%xmm1, %xmm0
	jmp	LBB0_46
LBB0_43:
	movsd	-616(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movq	-592(%rbp), %r15                ## 8-byte Reload
	movq	%rbx, %rdi
	movsd	-600(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jmp	LBB0_45
LBB0_44:
	movsd	-616(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movq	-592(%rbp), %r15                ## 8-byte Reload
LBB0_45:
	movq	-584(%rbp), %r8                 ## 8-byte Reload
LBB0_46:
	leal	-1(%rdi), %eax
	cmpl	$6, %eax
	ja	LBB0_48
## %bb.47:
	addl	%edi, -568(%rbp)                ## 4-byte Folded Spill
	addl	%edi, %r9d
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovlel	%eax, %ecx
	addl	%edi, %ecx
	xorl	%edi, %edi
LBB0_48:
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	cmovgl	%ecx, %ebx
	movq	_PRIVATE_STREAM_1@GOTPCREL(%rip), %rcx
	cmpl	$160, %r8d
	movsd	%xmm0, -600(%rbp)               ## 8-byte Spill
	movsd	%xmm1, -640(%rbp)               ## 8-byte Spill
	movq	%rdi, -632(%rbp)                ## 8-byte Spill
	jl	LBB0_52
## %bb.49:
	movl	-604(%rbp), %eax                ## 4-byte Reload
	cmpl	(%rcx), %eax
	movq	-576(%rbp), %rsi                ## 8-byte Reload
	jne	LBB0_53
## %bb.50:
	movq	%rbx, %r15
	movq	%r9, %rbx
	movl	40(%rsi), %edi
	movq	%rsi, %r14
	callq	_av_fifo_size
	movq	%rbx, %r9
	cmpl	%eax, %r9d
	jge	LBB0_55
## %bb.51:
	movl	%r9d, %eax
	cltd
	idivl	20(%r14)
	addl	%r15d, %edx
	movl	%edx, %ebx
	movq	-632(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_56
LBB0_52:
	movq	-576(%rbp), %rsi                ## 8-byte Reload
LBB0_53:
	cmpl	$17, %ebx
	jl	LBB0_57
LBB0_54:
	addl	%ebx, %edi
	movq	%rdi, -632(%rbp)                ## 8-byte Spill
	movl	-568(%rbp), %r14d               ## 4-byte Reload
	subl	%ebx, %r14d
	subl	%ebx, %r9d
	xorl	%ebx, %ebx
	jmp	LBB0_58
LBB0_55:
	movq	-632(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rbx
LBB0_56:
	movq	-592(%rbp), %r15                ## 8-byte Reload
	movq	%r14, %rsi
	cmpl	$17, %ebx
	jge	LBB0_54
LBB0_57:
	movl	-568(%rbp), %r14d               ## 4-byte Reload
LBB0_58:
	movq	%r9, -616(%rbp)                 ## 8-byte Spill
	movl	%r9d, %edx
	subl	%ebx, %edx
	movq	%r13, %rdi
	movl	%edx, -660(%rbp)                ## 4-byte Spill
	callq	_get_nb_frames
	movl	%eax, -652(%rbp)                ## 4-byte Spill
	movl	(%r13), %edi
	movl	-604(%rbp), %esi                ## 4-byte Reload
	callq	_avio_wb32
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_avio_wb16
	cmpq	$0, 40(%r15)
	movq	%rbx, -568(%rbp)                ## 8-byte Spill
	je	LBB0_62
LBB0_59:
	movl	(%r13), %edi
	movl	$128, %r14d
	movl	$128, %esi
	callq	_avio_w8
	movsd	-600(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm0
	jne	LBB0_60
	jnp	LBB0_69
LBB0_60:
	movsd	-640(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movq	-576(%rbp), %rax                ## 8-byte Reload
	jne	LBB0_61
	jnp	LBB0_70
LBB0_61:
	movl	$192, %r14d
	jmp	LBB0_70
LBB0_62:
	testl	%ebx, %ebx
	jle	LBB0_66
## %bb.63:
                                        ## kill: def $ebx killed $ebx killed $rbx
	.p2align	4, 0x90
LBB0_64:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	$255, %esi
	callq	_avio_w8
	decl	%ebx
	jne	LBB0_64
## %bb.65:
	cmpq	$0, 40(%r15)
	movq	-568(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_59
LBB0_66:
	movsd	-600(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm0
	jne	LBB0_67
	jnp	LBB0_79
LBB0_67:
	movsd	-640(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movl	(%r13), %edi
	jne	LBB0_68
	jnp	LBB0_80
LBB0_68:
	movl	$3, %esi
	callq	_put_timestamp
	movl	(%r13), %edi
	movl	$1, %esi
	movsd	-640(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jmp	LBB0_81
LBB0_69:
	xorl	%r14d, %r14d
	movq	-576(%rbp), %rax                ## 8-byte Reload
LBB0_70:
	movq	8(%rax), %r15
	xorl	%esi, %esi
	testq	%r15, %r15
	sete	%sil
	orl	%r14d, %esi
	movl	(%r13), %edi
	callq	_avio_w8
	movl	(%r13), %edi
	movq	-648(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%rbx), %esi
	addl	$-3, %esi
	callq	_avio_w8
	testb	$-128, %r14b
	jne	LBB0_72
## %bb.71:
	andl	$64, %r14d
	jmp	LBB0_73
LBB0_72:
	movl	(%r13), %edi
	xorl	%esi, %esi
	andl	$64, %r14d
	sete	%sil
	xorl	$3, %esi
	movsd	-600(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_put_timestamp
LBB0_73:
	testl	%r14d, %r14d
	movsd	-640(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	je	LBB0_75
## %bb.74:
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_put_timestamp
LBB0_75:
	testq	%r15, %r15
	movq	-592(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_82
## %bb.76:
	movl	(%r13), %edi
	movl	$16, %esi
	callq	_avio_w8
	movl	(%r13), %edi
	movq	-576(%rbp), %rax                ## 8-byte Reload
	movl	24(%rax), %eax
	movl	-656(%rbp), %ecx                ## 4-byte Reload
	movq	_AUDIO_ID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_78
## %bb.77:
	leal	127(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$7, %esi
	orl	$16384, %esi                    ## imm = 0x4000
	callq	_avio_wb16
	jmp	LBB0_82
LBB0_78:
	leal	1023(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$10, %esi
	orl	$24576, %esi                    ## imm = 0x6000
	callq	_avio_wb16
	jmp	LBB0_82
LBB0_79:
	movl	(%r13), %edi
	movl	$15, %esi
	callq	_avio_w8
	jmp	LBB0_82
LBB0_80:
	movl	$2, %esi
LBB0_81:
	callq	_put_timestamp
LBB0_82:
	movq	-576(%rbp), %r14                ## 8-byte Reload
	cmpq	$0, 40(%r15)
	je	LBB0_86
## %bb.83:
	movl	(%r13), %edi
	movl	$255, %esi
	callq	_avio_w8
	cmpl	$0, -568(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_86
## %bb.84:
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_85:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	$255, %esi
	callq	_avio_w8
	decl	%ebx
	jne	LBB0_85
LBB0_86:
	movl	-604(%rbp), %eax                ## 4-byte Reload
	movq	_PRIVATE_STREAM_1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_91
## %bb.87:
	movl	(%r13), %edi
	movq	-584(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_avio_w8
	cmpl	$160, %ebx
	jl	LBB0_89
## %bb.88:
	movl	(%r13), %edi
	movl	$7, %esi
	callq	_avio_w8
	movl	(%r13), %edi
	movl	$4, %esi
	callq	_avio_wb16
	movl	(%r13), %edi
	movq	32(%r14), %rax
	movl	(%rax), %esi
	callq	_avio_w8
	movl	(%r13), %edi
	movq	32(%r14), %rax
	movl	4(%rax), %esi
	callq	_avio_w8
	movl	(%r13), %edi
	movq	32(%r14), %rax
	movl	8(%rax), %esi
	callq	_avio_w8
	jmp	LBB0_91
LBB0_89:
	cmpl	$64, %ebx
	jl	LBB0_91
## %bb.90:
	movl	(%r13), %edi
	movl	-652(%rbp), %esi                ## 4-byte Reload
	callq	_avio_w8
	movl	(%r13), %edi
	movl	-620(%rbp), %esi                ## 4-byte Reload
	incl	%esi
	callq	_avio_wb16
LBB0_91:
	movl	40(%r14), %edi
	callq	_av_fifo_size
	xorl	%edi, %edi
	movl	-660(%rbp), %ebx                ## 4-byte Reload
	cmpl	%eax, %ebx
	setle	%dil
	callq	_av_assert0
	movl	40(%r14), %edi
	movl	(%r13), %esi
	movq	_avio_write@GOTPCREL(%rip), %rcx
	movl	%ebx, %edx
	callq	_av_fifo_generic_read
	subl	%ebx, 16(%r14)
	movq	-632(%rbp), %rbx                ## 8-byte Reload
	testl	%ebx, %ebx
	jle	LBB0_93
LBB0_92:
	movl	(%r13), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_put_padding_packet
LBB0_93:
	testl	%r12d, %r12d
	je	LBB0_95
	.p2align	4, 0x90
LBB0_94:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_avio_w8
	decl	%r12d
	jne	LBB0_94
LBB0_95:
	movl	(%r13), %edi
	callq	_avio_flush
	incl	(%r15)
	cmpl	$0, -664(%rbp)                  ## 4-byte Folded Reload
	movq	-568(%rbp), %rcx                ## 8-byte Reload
	jne	LBB0_97
## %bb.96:
	incq	8(%r14)
LBB0_97:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	movq	-616(%rbp), %rax                ## 8-byte Reload
	jne	LBB0_111
## %bb.98:
	subl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$632, %rsp                      ## imm = 0x278
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_99:
	addl	$-15, %ebx
LBB0_100:
	movq	-576(%rbp), %rax                ## 8-byte Reload
	movl	16(%rax), %eax
	testl	%eax, %eax
	je	LBB0_103
## %bb.101:
	movq	-592(%rbp), %rcx                ## 8-byte Reload
	cmpl	$0, (%rcx)
	je	LBB0_103
## %bb.102:
	xorl	%ecx, %ecx
	subl	%eax, %ebx
	cmovlel	%ecx, %ebx
	movq	%rdx, %r14
	jmp	LBB0_18
LBB0_103:
	movq	-576(%rbp), %r12                ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_put_system_header
                                        ## kill: def $eax killed $eax def $rax
	leaq	(%r15,%rax,4), %rdx
	subq	%r14, %rdx
	shrq	$2, %rdx
	movl	(%r13), %edi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_avio_write
	movl	(%r13), %edi
	movq	_PRIVATE_STREAM_2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_avio_wb32
	movl	(%r13), %edi
	movl	$980, %esi                      ## imm = 0x3D4
	callq	_avio_wb16
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_avio_w8
	movl	$979, %ebx                      ## imm = 0x3D3
	.p2align	4, 0x90
LBB0_104:                               ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_avio_w8
	decl	%ebx
	jne	LBB0_104
## %bb.105:
	movl	(%r13), %edi
	movl	(%r14), %esi
	callq	_avio_wb32
	movl	(%r13), %edi
	movl	$1018, %esi                     ## imm = 0x3FA
	callq	_avio_wb16
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_avio_w8
	movl	$1017, %ebx                     ## imm = 0x3F9
	movq	-592(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_106:                               ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_avio_w8
	decl	%ebx
	jne	LBB0_106
## %bb.107:
	leaq	-560(%rbp), %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	incl	(%r14)
	movq	$0, 48(%r12)
	movslq	16(%r14), %rax
	imulq	$90000, %rax, %rax              ## imm = 0x15F90
	imulq	$50, 24(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_109
## %bb.108:
	cqto
	idivq	%rcx
	jmp	LBB0_110
LBB0_109:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_110:
	movq	-584(%rbp), %r12                ## 8-byte Reload
	movsd	-568(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	cvtsi2sd	%rax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -568(%rbp)               ## 8-byte Spill
	leaq	-560(%rbp), %rsi
	movq	%r13, %rdi
	callq	_put_pack_header
	movsd	-568(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%r14)
	cltq
	leaq	-560(,%rax,4), %r15
	addq	%rbp, %r15
	xorl	%ebx, %ebx
	movq	%r12, %r14
	jmp	LBB0_18
LBB0_111:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet ID=%2x PTS=%0.3f\n"

	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_PRIVATE_STREAM_2,4,2           ## @PRIVATE_STREAM_2
	.comm	_AUDIO_ID,4,2                   ## @AUDIO_ID
	.comm	_PRIVATE_STREAM_1,4,2           ## @PRIVATE_STREAM_1
	.no_dead_strip	_flush_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_packet
_flush_packet:                          ; @flush_packet
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	sub	sp, sp, #560
	mov	x22, x2
	fmov	d10, d2
	fmov	d9, d1
	fmov	d8, d0
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-128]
	ldp	x8, x28, [x0, #8]
	ldr	x8, [x8, w1, sxtw #3]
	ldr	x19, [x8]
	ldr	w27, [x19]
Lloh3:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x8, #273778395316224
	movk	x8, #16629, lsl #48
	fmov	d0, x8
	fdiv	d0, d8, d0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x27
	bl	_av_log
	ldp	w8, w9, [x28]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbz	w8, LBB0_2
; %bb.1:
	ldr	d0, [x28, #8]
	fcmp	d0, d10
	b.eq	LBB0_10
LBB0_2:
	add	x21, sp, #32
	add	x1, sp, #32
	mov	x0, x20
	fmov	d0, d10
	bl	_put_pack_header
	add	x24, x21, w0, sxtw #2
	str	d10, [x28, #8]
	ldr	x8, [x28, #64]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
LBB0_4:
	mov	w23, #0
	b	LBB0_20
LBB0_5:
	ldr	x8, [x28, #48]
	cbz	x8, LBB0_13
; %bb.6:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_65
LBB0_7:
	ldr	w8, [x28, #16]
	sub	w8, w8, w0
	sub	w9, w8, #10
Lloh8:
	adrp	x10, _AV_NOPTS_VALUE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	d0, [x10]
	sub	w10, w8, #15
	sub	w8, w8, #20
	fcmp	d9, d8
	csel	w8, w10, w8, eq
	fcmp	d0, d8
	csel	w8, w9, w8, eq
	ldr	w9, [x19, #16]
	cbz	w9, LBB0_15
; %bb.8:
	ldr	w10, [x28]
	cbz	w10, LBB0_15
; %bb.9:
	subs	w8, w8, w9
	csel	w23, w8, wzr, gt
	b	LBB0_20
LBB0_10:
	mov	w23, #0
	add	x24, sp, #32
	b	LBB0_20
LBB0_11:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x27
LBB0_12:
	bl	_put_system_header
	mov	w23, #0
	add	x24, x24, w0, sxtw #2
	b	LBB0_20
LBB0_13:
	ldr	w8, [x28]
	ldr	w9, [x28, #32]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbnz	w8, LBB0_4
; %bb.14:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	b	LBB0_12
LBB0_15:
	mov	x23, x22
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_put_system_header
	add	x8, x24, w0, uxtw #2
	add	x9, sp, #32
	sub	x8, x8, x9
	lsr	x2, x8, #2
	ldr	w0, [x20]
	add	x1, sp, #32
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_avio_write
	ldr	w0, [x20]
Lloh11:
	adrp	x21, _PRIVATE_STREAM_2@GOTPAGE
Lloh12:
	ldr	x21, [x21, _PRIVATE_STREAM_2@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_avio_wb32
	ldr	w0, [x20]
	mov	w1, #980
	bl	_avio_wb16
	ldr	w0, [x20]
	mov	w1, #0
	bl	_avio_w8
	mov	w22, #979
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	w1, #0
	bl	_avio_w8
	subs	w22, w22, #1
	b.ne	LBB0_16
; %bb.17:
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_avio_wb32
	ldr	w0, [x20]
	mov	w1, #1018
	bl	_avio_wb16
	ldr	w0, [x20]
	mov	w1, #1
	bl	_avio_w8
	mov	w21, #1017
	mov	x22, x23
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	w1, #0
	bl	_avio_w8
	subs	w21, w21, #1
	b.ne	LBB0_18
; %bb.19:
	add	x21, sp, #32
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	ldr	w8, [x28]
	add	w8, w8, #1
	str	w8, [x28]
	str	xzr, [x19, #48]
	ldrsw	x8, [x28, #16]
	mov	w9, #24464
	movk	w9, #1, lsl #16
	mul	x8, x8, x9
	ldr	x9, [x28, #24]
	mov	w10, #50
	mul	x9, x9, x10
	sdiv	x8, x8, x9
	scvtf	d0, x8
	fadd	d10, d0, d10
	add	x1, sp, #32
	mov	x0, x20
	fmov	d0, d10
	bl	_put_pack_header
	mov	w23, #0
	str	d10, [x28, #8]
	add	x24, x21, w0, sxtw #2
LBB0_20:
	add	x8, sp, #32
	sub	x8, x24, x8
	lsr	x24, x8, #2
	ldr	w0, [x20]
	add	x1, sp, #32
	mov	x2, x24
	bl	_avio_write
	ldr	w8, [x28, #16]
	sub	w8, w8, w24
	ldr	x9, [x28, #64]
	and	w12, w27, #0xe0
Lloh13:
	adrp	x10, _AUDIO_ID@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AUDIO_ID@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	mov	w11, #20
	cmp	w12, w10
	csel	w10, w11, wzr, eq
	cmp	x9, #0
	csel	w21, wzr, w10, eq
	cbz	x9, LBB0_22
; %bb.21:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_25
LBB0_22:
	ldr	x9, [x28, #56]
	cbz	x9, LBB0_24
; %bb.23:
	ldr	w9, [x28]
	cbz	w9, LBB0_26
LBB0_24:
	mov	w25, #0
	b	LBB0_28
LBB0_25:
	ldr	x9, [x28, #56]
	b	LBB0_27
LBB0_26:
	mov	w9, #1
LBB0_27:
	cmp	x9, #0
	cset	w25, ne
	sub	w23, w8, w21
LBB0_28:
	add	w9, w21, w23
	sub	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.29:
	sub	w24, w8, #6
	ldr	x8, [x28, #40]
	str	w25, [sp, #20]                  ; 4-byte Folded Spill
	cbz	x8, LBB0_32
; %bb.30:
	ldr	x9, [x19, #8]
	cmp	x9, #0
	mov	w9, #4
	mov	w10, #7
	csel	w9, w10, w9, eq
	b	LBB0_33
LBB0_31:
	mov	w22, #0
	mov	w24, #0
	cmp	w23, #1
	b.ge	LBB0_78
	b	LBB0_79
LBB0_32:
	mov	w9, #0
LBB0_33:
	cmp	x8, #0
	cset	w8, eq
Lloh16:
	adrp	x10, _AV_NOPTS_VALUE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh18:
	ldr	d0, [x10]
	fcmp	d9, d8
	mov	w10, #5
	mov	w11, #10
	csel	w10, w11, w10, ne
	fcmp	d0, d8
	csel	w8, w10, w8, ne
	add	w26, w9, w8
	sub	w25, w24, w26
Lloh19:
	adrp	x8, _PRIVATE_STREAM_1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PRIVATE_STREAM_1@GOTPAGEOFF]
	cmp	w27, #191
	str	w12, [sp, #12]                  ; 4-byte Folded Spill
	b.gt	LBB0_35
; %bb.34:
	ldr	w8, [x8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	sub	w8, w25, #1
	mov	w9, #-4
	mov	w10, #-7
	cmp	w27, #159
	csel	w9, w10, w9, hi
	add	w9, w25, w9
	cmp	w27, #64
	csel	w25, w8, w9, lt
	b	LBB0_36
LBB0_35:
	add	w8, w27, #256
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
LBB0_36:
	ldr	w0, [x19, #40]
	bl	_av_fifo_size
	sub	w8, w25, w0
Lloh21:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh23:
	ldr	d10, [x9]
	cmp	w25, w22
	fccmp	d10, d8, #4, le
	str	w27, [sp, #24]                  ; 4-byte Folded Spill
	b.ne	LBB0_38
; %bb.37:
	fmov	d10, d9
	b	LBB0_43
LBB0_38:
	fcmp	d9, d8
	mov	w9, #5
	csel	w9, w9, wzr, ne
	ldp	x10, x11, [x28, #40]
	cmp	x10, #0
	mov	w10, #4
	cinc	w10, w10, ne
	add	w9, w10, w9
	sub	w26, w26, w9
	cbz	x11, LBB0_41
; %bb.39:
	ldr	x10, [x19, #48]
	cbz	x10, LBB0_41
; %bb.40:
	add	w23, w9, w23
	sub	w24, w24, w9
	b	LBB0_42
LBB0_41:
	add	w25, w9, w25
LBB0_42:
	subs	w10, w25, w22
	csel	w10, w10, wzr, gt
	add	w8, w9, w8
	add	w8, w8, w10
	fmov	d8, d10
LBB0_43:
	sub	w9, w23, #1
	add	w10, w23, w24
	add	w11, w23, w25
	cmp	w8, #0
	csel	w12, w8, wzr, gt
	add	w12, w23, w12
	cmp	w9, #6
	csel	w25, w25, w11, hi
	csel	w8, w8, w12, hi
	csel	w27, w24, w10, hi
	csel	w23, w23, wzr, hi
	cmp	w8, #0
	csel	w24, w8, wzr, gt
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, #160
	b.lt	LBB0_47
; %bb.44:
Lloh24:
	adrp	x8, _PRIVATE_STREAM_1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PRIVATE_STREAM_1@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_47
; %bb.45:
	ldr	w0, [x19, #40]
	bl	_av_fifo_size
	cmp	w25, w0
	b.ge	LBB0_47
; %bb.46:
	ldr	w8, [x19, #20]
	sdiv	w9, w25, w8
	msub	w8, w9, w8, w25
	add	w24, w8, w24
LBB0_47:
	add	w8, w24, w23
	sub	w9, w27, w24
	sub	w10, w25, w24
	cmp	w24, #17
	csel	w10, w25, w10, lt
	csel	w24, w24, wzr, lt
	csel	w27, w27, w9, lt
	csel	w23, w23, w8, lt
	str	w10, [sp, #16]                  ; 4-byte Folded Spill
	sub	w25, w10, w24
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_get_nb_frames
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	ldr	w0, [x20]
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_avio_wb32
	ldr	w0, [x20]
	mov	x1, x27
	bl	_avio_wb16
	ldr	x8, [x28, #40]
	str	w22, [sp, #8]                   ; 4-byte Folded Spill
	cbz	x8, LBB0_54
LBB0_48:
	ldr	w0, [x20]
	mov	w1, #128
	bl	_avio_w8
Lloh27:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh29:
	ldr	d0, [x8]
	mov	w8, #128
	fcmp	d10, d8
	mov	w9, #192
	csel	w8, w8, w9, eq
	fcmp	d8, d0
	csel	w22, wzr, w8, eq
	ldr	x27, [x19, #8]
	cmp	x27, #0
	cset	w8, eq
	orr	w1, w22, w8
	ldr	w0, [x20]
	bl	_avio_w8
	ldr	w0, [x20]
	add	w8, w26, w24
	sub	w1, w8, #3
	bl	_avio_w8
	tbnz	w22, #7, LBB0_50
; %bb.49:
	and	w22, w22, #0x40
	cbnz	w22, LBB0_51
	b	LBB0_52
LBB0_50:
	ldr	w0, [x20]
	ands	w22, w22, #0x40
	mov	w8, #2
	cinc	w1, w8, ne
	fmov	d0, d8
	bl	_put_timestamp
	cbz	w22, LBB0_52
LBB0_51:
	ldr	w0, [x20]
	mov	w1, #1
	fmov	d0, d10
	bl	_put_timestamp
LBB0_52:
	cbz	x27, LBB0_61
; %bb.53:
	ldr	x8, [x28, #40]
	cbnz	x8, LBB0_69
	b	LBB0_72
LBB0_54:
	cmp	w24, #1
	b.lt	LBB0_58
; %bb.55:
	mov	x22, x24
LBB0_56:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	w1, #255
	bl	_avio_w8
	subs	w22, w22, #1
	b.ne	LBB0_56
; %bb.57:
	ldr	x8, [x28, #40]
	cbnz	x8, LBB0_48
LBB0_58:
Lloh30:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh32:
	ldr	d0, [x8]
	fcmp	d8, d0
	b.eq	LBB0_66
; %bb.59:
	ldr	w0, [x20]
	fcmp	d10, d8
	b.eq	LBB0_67
; %bb.60:
	mov	w1, #3
	fmov	d0, d8
	bl	_put_timestamp
	ldr	w0, [x20]
	mov	w1, #1
	fmov	d0, d10
	b	LBB0_68
LBB0_61:
	ldr	w0, [x20]
	mov	w1, #16
	bl	_avio_w8
Lloh33:
	adrp	x8, _AUDIO_ID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AUDIO_ID@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x8]
	ldr	w0, [x20]
	ldr	w8, [x19, #24]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w10, w9
	b.ne	LBB0_63
; %bb.62:
	add	w9, w8, #127
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #7
	orr	w1, w8, #0x4000
	b	LBB0_64
LBB0_63:
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #10
	orr	w1, w8, #0x6000
LBB0_64:
	bl	_avio_wb16
	ldr	x8, [x28, #40]
	cbnz	x8, LBB0_69
	b	LBB0_72
LBB0_65:
	ldr	w8, [x28]
	cbnz	w8, LBB0_4
	b	LBB0_7
LBB0_66:
	ldr	w0, [x20]
	mov	w1, #15
	bl	_avio_w8
	ldr	x8, [x28, #40]
	cbnz	x8, LBB0_69
	b	LBB0_72
LBB0_67:
	mov	w1, #2
	fmov	d0, d8
LBB0_68:
	bl	_put_timestamp
	ldr	x8, [x28, #40]
	cbz	x8, LBB0_72
LBB0_69:
	ldr	w0, [x20]
	mov	w1, #255
	bl	_avio_w8
	cmp	w24, #1
	b.lt	LBB0_72
; %bb.70:
	mov	x22, x24
LBB0_71:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	w1, #255
	bl	_avio_w8
	subs	w22, w22, #1
	b.ne	LBB0_71
LBB0_72:
Lloh36:
	adrp	x8, _PRIVATE_STREAM_1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PRIVATE_STREAM_1@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldp	w22, w9, [sp, #24]              ; 8-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_77
; %bb.73:
	ldr	w0, [x20]
	mov	x1, x22
	bl	_avio_w8
	cmp	w22, #160
	b.lt	LBB0_75
; %bb.74:
	ldr	w0, [x20]
	mov	w1, #7
	bl	_avio_w8
	ldr	w0, [x20]
	mov	w1, #4
	bl	_avio_wb16
	ldr	w0, [x20]
	ldr	x8, [x19, #32]
	ldr	w1, [x8]
	bl	_avio_w8
	ldr	w0, [x20]
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	bl	_avio_w8
	ldr	w0, [x20]
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #8]
	bl	_avio_w8
	b	LBB0_77
LBB0_75:
	cmp	w22, #64
	b.lt	LBB0_77
; %bb.76:
	ldr	w0, [x20]
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	bl	_avio_w8
	ldr	w0, [x20]
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	add	w1, w8, #1
	bl	_avio_wb16
LBB0_77:
	ldr	w0, [x19, #40]
	bl	_av_fifo_size
	cmp	w25, w0
	cset	w0, le
	bl	_av_assert0
	ldr	w0, [x19, #40]
	ldr	w1, [x20]
Lloh39:
	adrp	x3, _avio_write@GOTPAGE
Lloh40:
	ldr	x3, [x3, _avio_write@GOTPAGEOFF]
	mov	x2, x25
	bl	_av_fifo_generic_read
	ldr	w8, [x19, #16]
	sub	w8, w8, w25
	str	w8, [x19, #16]
	ldp	w22, w25, [sp, #16]             ; 8-byte Folded Reload
	cmp	w23, #1
	b.lt	LBB0_79
LBB0_78:
	ldr	w1, [x20]
	mov	x0, x20
	mov	x2, x23
	bl	_put_padding_packet
LBB0_79:
	cbz	w21, LBB0_81
LBB0_80:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	w1, #0
	bl	_avio_w8
	subs	w21, w21, #1
	b.ne	LBB0_80
LBB0_81:
	ldr	w0, [x20]
	bl	_avio_flush
	ldr	w8, [x28]
	add	w8, w8, #1
	str	w8, [x28]
	cbnz	w25, LBB0_83
; %bb.82:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
LBB0_83:
	ldur	x8, [x29, #-128]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_85
; %bb.84:
	sub	w0, w22, w24
	add	sp, sp, #560
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
LBB0_85:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet ID=%2x PTS=%0.3f\n"

	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_PRIVATE_STREAM_2,4,2           ; @PRIVATE_STREAM_2
	.comm	_AUDIO_ID,4,2                   ; @AUDIO_ID
	.comm	_PRIVATE_STREAM_1,4,2           ; @PRIVATE_STREAM_1
	.no_dead_strip	_flush_packet
.subsections_via_symbols
