	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_flv_data
_append_flv_data:                       ## @append_flv_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movslq	%edx, %rax
	leaq	(,%rax,4), %r13
	addq	16(%rsi), %r13
	movq	%rdi, %rbx
	movslq	(%rsi), %r12
	subq	%rax, %r12
	movl	4(%rsi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rsi), %eax
	movq	_RTMP_PT_AUDIO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movq	_RTMP_PT_VIDEO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, 4(%rbx)
LBB0_4:
	leal	15(%r12), %esi
	movq	%rbx, %rdi
	callq	_update_offset
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	16(%rbx), %esi
	movq	8(%rbx), %rdx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	-60(%rbp), %r13
	movq	%r13, %rdi
	callq	_bytestream2_init_writer
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_bytestream2_skip_p
	movl	8(%r14), %esi
	movq	%r13, %rdi
	callq	_bytestream2_put_byte
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_bytestream2_put_be24
	movq	%r13, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_bytestream2_put_be24
	sarl	$24, %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_bytestream2_put_byte
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_bytestream2_put_be24
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_bytestream2_put_buffer
	movq	_RTMP_HEADER@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_bytestream2_put_be32
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %r15d
	movq	$0, 24(%rbx)
	movq	$0, 8(%rbx)
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTMP_PT_AUDIO,4,2              ## @RTMP_PT_AUDIO
	.comm	_RTMP_PT_VIDEO,4,2              ## @RTMP_PT_VIDEO
	.comm	_RTMP_HEADER,8,3                ## @RTMP_HEADER
	.no_dead_strip	_append_flv_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_flv_data
_append_flv_data:                       ; @append_flv_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x25, [x1, #16]
	ldp	w8, w20, [x1]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	x19, x8, w2, sxtw
	ldr	w8, [x1, #8]
Lloh0:
	adrp	x9, _RTMP_PT_AUDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTMP_PT_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _RTMP_PT_VIDEO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTMP_PT_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x22, #4]
LBB0_4:
	add	w1, w19, #15
	mov	x0, x22
	bl	_update_offset
	mov	x24, x0
	add	x0, x22, #16
	ldr	x1, [x22, #8]
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_6
; %bb.5:
	add	x23, x25, w23, sxtw #2
	ldr	w1, [x22, #16]
	ldr	x2, [x22, #8]
	add	x0, sp, #12
	bl	_bytestream2_init_writer
	add	x0, sp, #12
	mov	x1, x24
	bl	_bytestream2_skip_p
	ldr	w1, [x21, #8]
	add	x0, sp, #12
	bl	_bytestream2_put_byte
	add	x0, sp, #12
	mov	x1, x19
	bl	_bytestream2_put_be24
	add	x0, sp, #12
	mov	x1, x20
	bl	_bytestream2_put_be24
	asr	w1, w20, #24
	add	x0, sp, #12
	bl	_bytestream2_put_byte
	add	x0, sp, #12
	mov	w1, #0
	bl	_bytestream2_put_be24
	add	x0, sp, #12
	mov	x1, x23
	mov	x2, x19
	bl	_bytestream2_put_buffer
Lloh6:
	adrp	x8, _RTMP_HEADER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTMP_HEADER@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x19
	add	x0, sp, #12
	bl	_bytestream2_put_be32
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	str	xzr, [x22, #24]
	str	xzr, [x22, #8]
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RTMP_PT_AUDIO,4,2              ; @RTMP_PT_AUDIO
	.comm	_RTMP_PT_VIDEO,4,2              ; @RTMP_PT_VIDEO
	.comm	_RTMP_HEADER,8,3                ; @RTMP_HEADER
	.no_dead_strip	_append_flv_data
.subsections_via_symbols
