	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_packet
_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movl	(%rbx), %eax
	xorl	%edi, %edi
	cmpl	4(%rbx), %eax
	setge	%dil
	callq	_av_assert0
	cmpq	$0, 48(%rbx)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdx
	movq	%r14, %rdi
	movl	$17444, %esi                    ## imm = 0x4424
	xorl	%ecx, %ecx
	callq	_put_chunk
LBB0_2:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	subl	%esi, %edx
	movq	32(%rbx), %rcx
	movl	8(%rbx), %r8d
	movq	%r14, %rdi
	callq	_put_payload_parsing_info
	movl	%eax, %r15d
	movslq	12(%rbx), %r12
	movslq	8(%rbx), %rax
	subq	%rax, %r12
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	setle	%dil
	callq	_av_assert0
	addq	16(%rbx), %r12
	movl	8(%rbx), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	8(%r14), %edi
	movq	16(%rbx), %rsi
	movq	(%r14), %rdx
	movslq	%r15d, %rax
	subq	%rax, %rdx
	callq	_avio_write
	movl	8(%r14), %edi
	callq	_avio_flush
	incl	40(%rbx)
	movq	$0, 32(%rbx)
	movq	$-1, (%rbx)
	movq	16(%rbx), %rsi
	addq	$24, %rbx
	movq	(%r14), %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%rbx, %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ffio_init_context
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	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
	ldr	x21, [x0, #16]
	ldp	w8, w9, [x21]
	cmp	w8, w9
	cset	w0, ge
	bl	_av_assert0
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x2, [x19]
	mov	x0, x19
	mov	w1, #17444
	mov	w3, #0
	bl	_put_chunk
LBB0_2:
	ldp	w8, w1, [x21]
	sub	w2, w8, w1
	ldr	x3, [x21, #32]
	ldr	w4, [x21, #8]
	mov	x0, x19
	bl	_put_payload_parsing_info
	mov	x20, x0
	ldpsw	x9, x8, [x21, #8]
	sub	x22, x8, x9
	cmp	w0, w9
	cset	w0, le
	bl	_av_assert0
	ldr	x8, [x21, #16]
	add	x0, x8, x22
	ldr	w2, [x21, #8]
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #8]
	ldr	x1, [x21, #16]
	ldr	x8, [x19]
	sub	x2, x8, w20, sxtw
	bl	_avio_write
	ldr	w0, [x19, #8]
	bl	_avio_flush
	ldr	w8, [x21, #40]
	add	w8, w8, #1
	str	w8, [x21, #40]
	str	xzr, [x21, #32]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x21]
	add	x0, x21, #24
	ldr	x1, [x21, #16]
	ldr	x2, [x19]
	mov	w3, #1
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	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	_ffio_init_context
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_flush_packet
.subsections_via_symbols
