	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_write
_rtmp_write:                            ## @rtmp_write
	.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	$360, %rsp                      ## imm = 0x168
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -368(%rbp)                ## 8-byte Spill
	movq	(%rdi), %r14
	movq	%rsi, -328(%rbp)
	leaq	80(%r14), %rax
	movq	%rax, -360(%rbp)                ## 8-byte Spill
	leaq	88(%r14), %rax
	movq	%rax, -376(%rbp)                ## 8-byte Spill
	movslq	%edx, %r13
	movq	_RTMP_HEADER@GOTPCREL(%rip), %rbx
	movl	%edx, -308(%rbp)                ## 4-byte Spill
	movq	%rsi, -352(%rbp)                ## 8-byte Spill
	movq	%r13, -384(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %esi
	callq	_FFMIN
	cltq
	leaq	(,%rax,4), %rcx
	addq	%rcx, -328(%rbp)
	subl	%eax, %r15d
	subl	%eax, (%r14)
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-328(%rbp), %rax
	subq	%r12, %rax
	sarq	$2, %rax
	cmpq	%r13, %rax
	jge	LBB0_27
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdi
	subq	8(%r14), %rdi
	jle	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	128(%r14), %rax
	movq	%rax, -304(%rbp)
	movq	_RTMP_AUDIO_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -336(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	callq	_FFMIN
	movq	%rbx, %r13
	movl	%eax, %ebx
	movq	8(%r14), %rsi
	shlq	$2, %rsi
	addq	128(%r14), %rsi
	leaq	-328(%rbp), %rdi
	movl	%eax, %edx
	callq	_bytestream_get_buffer
	movslq	%ebx, %rax
	addq	8(%r14), %rax
	movq	%rax, 8(%r14)
	cmpq	(%r13), %rax
	jl	LBB0_27
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%ebx, %r15d
	leaq	-304(%rbp), %r13
	movq	%r13, %rdi
	callq	_bytestream_get_byte
	movl	%eax, -332(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_bytestream_get_be24
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_bytestream_get_be24
	movl	%eax, -312(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_bytestream_get_byte
	movl	%eax, %r12d
	shll	$24, %r12d
	orl	-312(%rbp), %r12d               ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	-332(%rbp), %r13d               ## 4-byte Reload
	callq	_bytestream_get_be24
	movl	%ebx, -312(%rbp)                ## 4-byte Spill
	movl	%ebx, 16(%r14)
	movq	_RTMP_PT_VIDEO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movl	-336(%rbp), %ebx                ## 4-byte Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_RTMP_VIDEO_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_RTMP_PT_AUDIO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_RTMP_PT_NOTIFY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r14), %rsi
	movq	56(%r14), %rdi
	addq	$8, %rdi
	addq	$4, %rsi
	movl	%ebx, %edx
	callq	_ff_rtmp_check_alloc_array
	testl	%eax, %eax
	js	LBB0_39
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	56(%r14), %rax
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-360(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	-312(%rbp), %r8d                ## 4-byte Reload
	callq	_ff_rtmp_packet_create
	testl	%eax, %eax
	js	LBB0_39
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	120(%r14), %eax
	movl	%eax, 104(%r14)
	movq	88(%r14), %rax
	movq	%rax, 112(%r14)
	movq	-352(%rbp), %r12                ## 8-byte Reload
	movq	-384(%rbp), %r13                ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	16(%r14), %rdi
	subq	24(%r14), %rdi
	movl	%r15d, %esi
	callq	_FFMIN
	movl	%eax, %ebx
	movq	24(%r14), %rsi
	shlq	$2, %rsi
	addq	112(%r14), %rsi
	leaq	-328(%rbp), %rdi
	movl	%eax, %edx
	callq	_bytestream_get_buffer
	movslq	%ebx, %rax
	movq	24(%r14), %rcx
	addq	%rax, %rcx
	movq	%rcx, 24(%r14)
	subl	%eax, %r15d
	movslq	16(%r14), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$4, (%r14)
	movl	80(%r14), %eax
	movq	_RTMP_PT_NOTIFY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	_RTMP_HEADER@GOTPCREL(%rip), %rbx
	jne	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -340(%rbp)
	movq	112(%r14), %rsi
	leaq	-388(%rbp), %r12
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_bytestream2_init
	movq	%r12, %rdi
	leaq	-304(%rbp), %rsi
	movl	$256, %edx                      ## imm = 0x100
	leaq	-340(%rbp), %rcx
	callq	_ff_amf_read_string
	testl	%eax, %eax
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	-304(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	-304(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	96(%r14), %rsi
	addq	$16, %rsi
	movq	-376(%rbp), %rdi                ## 8-byte Reload
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_41
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	88(%r14), %rsi
	movq	96(%r14), %rdx
	leaq	64(%rsi), %rdi
	callq	_memmove
	addq	$16, 96(%r14)
	movq	88(%r14), %rax
	movq	%rax, -320(%rbp)
	leaq	-320(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_ff_amf_write_string
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-352(%rbp), %r12                ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	-360(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_rtmp_send_packet
	testl	%eax, %eax
	js	LBB0_39
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, 16(%r14)
	movq	$0, 24(%r14)
	movq	$0, 8(%r14)
	incq	32(%r14)
	jmp	LBB0_2
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_RTMP_HEADER@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
LBB0_27:
	movq	32(%r14), %rax
	cmpq	40(%r14), %rax
	jl	LBB0_34
## %bb.28:
	movq	$0, 32(%r14)
	movq	_AVIO_FLAG_NONBLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	72(%r14), %rdi
	orl	%eax, (%rdi)
	leaq	-304(%rbp), %rsi
	movl	$1, %edx
	callq	_ffurl_read
	movl	(%rbx), %ecx
	notl	%ecx
	movq	72(%r14), %rdx
	andl	%ecx, (%rdx)
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	je	LBB0_34
## %bb.29:
	testl	%ebx, %ebx
	js	LBB0_35
## %bb.30:
	cmpl	$1, %ebx
	jne	LBB0_34
## %bb.31:
	movl	$0, -320(%rbp)
	movq	72(%r14), %rdi
	movl	64(%r14), %edx
	movq	48(%r14), %r8
	movq	56(%r14), %rcx
	movl	-304(%rbp), %r9d
	leaq	-320(%rbp), %rsi
	callq	_ff_rtmp_packet_read_internal
	testl	%eax, %eax
	jle	LBB0_39
## %bb.32:
	leaq	-320(%rbp), %rdx
	movq	-368(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_rtmp_parse_result
	testl	%eax, %eax
	js	LBB0_39
## %bb.33:
	leaq	-320(%rbp), %rdi
	callq	_ff_rtmp_packet_destroy
LBB0_34:
	movl	-308(%rbp), %ebx                ## 4-byte Reload
	jmp	LBB0_35
LBB0_39:
	movl	%eax, %ebx
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_42
## %bb.36:
	movl	%ebx, %eax
	addq	$360, %rsp                      ## imm = 0x168
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movq	$0, 8(%r14)
	movq	$0, 24(%r14)
	movl	$0, 16(%r14)
	movl	%eax, %ebx
	jmp	LBB0_35
LBB0_42:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTMP_HEADER,8,3                ## @RTMP_HEADER
	.comm	_RTMP_AUDIO_CHANNEL,4,2         ## @RTMP_AUDIO_CHANNEL
	.comm	_RTMP_PT_VIDEO,4,2              ## @RTMP_PT_VIDEO
	.comm	_RTMP_VIDEO_CHANNEL,4,2         ## @RTMP_VIDEO_CHANNEL
	.comm	_RTMP_PT_AUDIO,4,2              ## @RTMP_PT_AUDIO
	.comm	_RTMP_PT_NOTIFY,4,2             ## @RTMP_PT_NOTIFY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"onMetaData"

L_.str.1:                               ## @.str.1
	.asciz	"|RtmpSampleAccess"

L_.str.2:                               ## @.str.2
	.asciz	"@setDataFrame"

	.comm	_AVIO_FLAG_NONBLOCK,4,2         ## @AVIO_FLAG_NONBLOCK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_rtmp_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_write
_rtmp_write:                            ; @rtmp_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #432
	.cfi_def_cfa_offset 432
	stp	x28, x27, [sp, #336]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #352]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #368]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #384]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #400]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #416]            ; 16-byte Folded Spill
	add	x29, sp, #416
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x20, [x0]
	add	x8, x20, #80
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	x8, x20, #88
	stp	x0, x8, [sp, #8]                ; 16-byte Folded Spill
Lloh3:
	adrp	x21, _RTMP_HEADER@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RTMP_HEADER@GOTPAGEOFF]
	sxtw	x23, w2
	str	x1, [sp, #56]
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	mov	x28, x2
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x28
	bl	_FFMIN
	ldr	x8, [sp, #56]
	add	x8, x8, w0, sxtw #2
	str	x8, [sp, #56]
	sub	w28, w28, w0
	ldr	w8, [x20]
	sub	w8, w8, w0
	str	w8, [x20]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #56]
	sub	x8, x8, x22
	cmp	x23, x8, asr #2
	b.le	LBB0_23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x0, [x20]
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	subs	x0, x9, x8
	b.le	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #128]
	str	x8, [sp, #64]
Lloh5:
	adrp	x8, _RTMP_AUDIO_CHANNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTMP_AUDIO_CHANNEL@GOTPAGEOFF]
Lloh7:
	ldr	w27, [x8]
	mov	x1, x28
	bl	_FFMIN
	mov	x26, x0
	ldr	x8, [x20, #128]
	ldr	x9, [x20, #8]
	add	x1, x8, x9, lsl #2
	add	x0, sp, #56
	mov	x2, x26
	bl	_bytestream_get_buffer
	ldr	x8, [x20, #8]
	add	x8, x8, w26, sxtw
	str	x8, [x20, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.lt	LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #64
	bl	_bytestream_get_byte
	mov	x25, x0
	add	x0, sp, #64
	bl	_bytestream_get_be24
	mov	x24, x0
	add	x0, sp, #64
	bl	_bytestream_get_be24
	mov	x19, x0
	add	x0, sp, #64
	bl	_bytestream_get_byte
	orr	w21, w19, w0, lsl #24
	add	x0, sp, #64
	bl	_bytestream_get_be24
	str	w24, [x20, #16]
Lloh8:
	adrp	x8, _RTMP_PT_VIDEO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTMP_PT_VIDEO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _RTMP_VIDEO_CHANNEL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RTMP_VIDEO_CHANNEL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w25, w8
	csel	w19, w9, w27, eq
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh14:
	adrp	x8, _RTMP_PT_AUDIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RTMP_PT_AUDIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w21, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x8, _RTMP_PT_NOTIFY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RTMP_PT_NOTIFY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x20, #48]
	add	x0, x8, #8
	add	x1, x9, #4
	mov	x2, x19
	bl	_ff_rtmp_check_alloc_array
	tbnz	w0, #31, LBB0_31
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #56]
	ldr	x8, [x8, #8]
	str	xzr, [x8, w19, sxtw #3]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	x2, x25
	mov	x3, x21
	mov	x4, x24
	bl	_ff_rtmp_packet_create
	tbnz	w0, #31, LBB0_31
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w28, w28, w26
	ldr	w8, [x20, #120]
	str	w8, [x20, #104]
	ldr	x8, [x20, #88]
	str	x8, [x20, #112]
Lloh20:
	adrp	x21, _RTMP_HEADER@GOTPAGE
Lloh21:
	ldr	x21, [x21, _RTMP_HEADER@GOTPAGEOFF]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x20, #16]
	ldr	x9, [x20, #24]
	sub	x0, x8, x9
	mov	x1, x28
	bl	_FFMIN
	mov	x19, x0
	ldr	x8, [x20, #112]
	ldr	x9, [x20, #24]
	add	x1, x8, x9, lsl #2
	add	x0, sp, #56
	mov	x2, x19
	bl	_bytestream_get_buffer
	ldr	x8, [x20, #24]
	add	x8, x8, w19, sxtw
	str	x8, [x20, #24]
	sub	w28, w28, w19
	ldrsw	x2, [x20, #16]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #4
	str	w8, [x20]
	ldr	w8, [x20, #80]
Lloh22:
	adrp	x9, _RTMP_PT_NOTIFY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RTMP_PT_NOTIFY@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [sp, #52]
	ldr	x1, [x20, #112]
	add	x0, sp, #48
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_bytestream2_init
	add	x0, sp, #48
	add	x1, sp, #64
	add	x3, sp, #52
	mov	w2, #256
	bl	_ff_amf_read_string
	cbnz	w0, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #64
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #64
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #96]
	add	x1, x8, #16
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_34
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldp	x1, x2, [x20, #88]
	add	x0, x1, #64
	bl	_memmove
	ldp	x9, x8, [x20, #88]
	add	x8, x8, #16
	str	x8, [x20, #96]
	str	x9, [sp, #40]
	add	x0, sp, #40
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ff_amf_write_string
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	mov	w2, #0
	bl	_rtmp_send_packet
	tbnz	w0, #31, LBB0_31
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x20, #16]
	str	xzr, [x20, #8]
	ldr	x8, [x20, #32]
	add	x8, x8, #1
	stp	xzr, x8, [x20, #24]
	b	LBB0_2
LBB0_23:
	ldp	x8, x9, [x20, #32]
	cmp	x8, x9
	b.lt	LBB0_30
; %bb.24:
Lloh31:
	adrp	x19, _AVIO_FLAG_NONBLOCK@GOTPAGE
Lloh32:
	ldr	x19, [x19, _AVIO_FLAG_NONBLOCK@GOTPAGEOFF]
	str	xzr, [x20, #32]
	ldr	w8, [x19]
	ldr	x0, [x20, #72]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	add	x1, sp, #64
	mov	w2, #1
	bl	_ffurl_read
	mov	x27, x0
	ldr	w8, [x19]
	ldr	x9, [x20, #72]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
Lloh33:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w27, w0
	b.eq	LBB0_30
; %bb.25:
	tbnz	w27, #31, LBB0_32
; %bb.26:
	cmp	w27, #1
	b.ne	LBB0_30
; %bb.27:
	str	wzr, [sp, #40]
	ldr	x0, [x20, #72]
	ldr	w2, [x20, #64]
	ldp	x4, x3, [x20, #48]
	ldr	w5, [sp, #64]
	add	x1, sp, #40
	bl	_ff_rtmp_packet_read_internal
	cmp	w0, #1
	b.lt	LBB0_31
; %bb.28:
	add	x2, sp, #40
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	bl	_rtmp_parse_result
	tbnz	w0, #31, LBB0_31
; %bb.29:
	add	x0, sp, #40
	bl	_ff_rtmp_packet_destroy
LBB0_30:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	mov	x27, x8
	b	LBB0_32
LBB0_31:
	mov	x27, x0
LBB0_32:
	ldur	x8, [x29, #-96]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.33:
	mov	x0, x27
	ldp	x29, x30, [sp, #416]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #400]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #384]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #368]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #352]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #432
	ret
LBB0_34:
	mov	x27, x0
	str	xzr, [x20, #8]
	str	xzr, [x20, #24]
	str	wzr, [x20, #16]
	b	LBB0_32
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_RTMP_HEADER,8,3                ; @RTMP_HEADER
	.comm	_RTMP_AUDIO_CHANNEL,4,2         ; @RTMP_AUDIO_CHANNEL
	.comm	_RTMP_PT_VIDEO,4,2              ; @RTMP_PT_VIDEO
	.comm	_RTMP_VIDEO_CHANNEL,4,2         ; @RTMP_VIDEO_CHANNEL
	.comm	_RTMP_PT_AUDIO,4,2              ; @RTMP_PT_AUDIO
	.comm	_RTMP_PT_NOTIFY,4,2             ; @RTMP_PT_NOTIFY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"onMetaData"

l_.str.1:                               ; @.str.1
	.asciz	"|RtmpSampleAccess"

l_.str.2:                               ; @.str.2
	.asciz	"@setDataFrame"

	.comm	_AVIO_FLAG_NONBLOCK,4,2         ; @AVIO_FLAG_NONBLOCK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_rtmp_write
.subsections_via_symbols
