	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_packet_read_one_chunk
_rtmp_packet_read_one_chunk:            ## @rtmp_packet_read_one_chunk
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %r14
	movq	%rcx, %rbx
	movl	%edx, -164(%rbp)                ## 4-byte Spill
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%r9d, %r13d
	andl	$63, %r13d
	cmpl	$1, %r13d
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	ja	LBB0_1
## %bb.2:
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movl	$0, -108(%rbp)
	leal	1(%r13), %r12d
	leaq	-112(%rbp), %rsi
	movl	%r12d, %edx
	callq	_ffurl_read_complete
	cmpl	%r12d, %eax
	jne	LBB0_3
## %bb.5:
	addl	$2, %r13d
	leaq	-112(%rbp), %rdi
	callq	_AV_RL16
	movl	%r13d, %ecx
	movl	%r13d, -120(%rbp)               ## 4-byte Spill
	addl	$64, %eax
	movl	%eax, %r13d
	movq	-160(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_6
LBB0_1:
	movl	$1, -120(%rbp)                  ## 4-byte Folded Spill
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_ff_rtmp_check_alloc_array
	testl	%eax, %eax
	js	LBB0_35
## %bb.7:
	movq	(%rbx), %rsi
	movslq	%r13d, %rax
	leaq	(%rax,%rax,2), %r14
	shlq	$4, %r14
	movl	(%rsi,%r14), %eax
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movl	4(%rsi,%r14), %edx
	movl	8(%rsi,%r14), %ebx
	sarl	$6, %r15d
	movq	_RTMP_PS_ONEBYTE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	jne	LBB0_9
## %bb.8:
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movl	12(%rsi,%r14), %eax
	movq	-136(%rbp), %rdi                ## 8-byte Reload
LBB0_19:
	movl	%eax, %r12d
	cmpl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%ebx, -140(%rbp)                ## 4-byte Spill
	jne	LBB0_22
## %bb.20:
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	%edx, -124(%rbp)                ## 4-byte Spill
	leaq	-112(%rbp), %rsi
	movq	%rdi, %rbx
	movl	$4, %edx
	callq	_ffurl_read_complete
	cmpl	$4, %eax
	jne	LBB0_3
## %bb.21:
	leaq	-112(%rbp), %rdi
	callq	_AV_RB32
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movl	-124(%rbp), %edx                ## 4-byte Reload
	movl	-116(%rbp), %eax                ## 4-byte Reload
LBB0_22:
	movq	_RTMP_PS_TWELVEBYTES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	je	LBB0_24
## %bb.23:
	addl	16(%rsi,%r14), %r12d
LBB0_24:
	leaq	(%rsi,%r14), %r15
	leaq	(%rsi,%r14), %r10
	addq	$4, %r10
	movl	20(%rsi,%r14), %r9d
	testl	%r9d, %r9d
	je	LBB0_27
## %bb.25:
	movl	(%r15), %r8d
	movl	-128(%rbp), %r12d               ## 4-byte Reload
	cmpl	%r8d, %r12d
	jne	LBB0_26
## %bb.29:
	movq	32(%rsi,%r14), %rcx
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movq	%rcx, 32(%rbx)
	movl	%r12d, (%rbx)
	movl	40(%rsi,%r14), %ecx
	movl	%ecx, 40(%rbx)
	movl	(%r10), %ecx
	movl	%ecx, 4(%rbx)
	movl	12(%rsi,%r14), %ecx
	movl	%ecx, 12(%rbx)
	movl	24(%rsi,%r14), %ecx
	movl	%ecx, 24(%rbx)
	addl	-120(%rbp), %r9d                ## 4-byte Folded Reload
	movl	%r9d, 20(%rbx)
	movl	16(%rsi,%r14), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 32(%rsi,%r14)
	jmp	LBB0_30
LBB0_9:
	movl	%edx, -124(%rbp)                ## 4-byte Spill
	leaq	-112(%rbp), %rsi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	$3, %edx
	callq	_ffurl_read_complete
	cmpl	$3, %eax
	jne	LBB0_3
## %bb.10:
	leaq	-112(%rbp), %rdi
	callq	_AV_RB24
	movq	_RTMP_PS_FOURBYTES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_12
## %bb.11:
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	addl	$3, -120(%rbp)                  ## 4-byte Folded Spill
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movl	-124(%rbp), %edx                ## 4-byte Reload
	jmp	LBB0_19
LBB0_27:
	movq	%r10, -176(%rbp)                ## 8-byte Spill
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%edx, -124(%rbp)                ## 4-byte Spill
	movl	%r12d, %ecx
	movl	-128(%rbp), %r8d                ## 4-byte Reload
	callq	_ff_rtmp_packet_create
	testl	%eax, %eax
	js	LBB0_35
## %bb.28:
	movl	-120(%rbp), %eax                ## 4-byte Reload
	movl	%eax, 20(%rbx)
	movl	$0, 24(%rbx)
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movl	-116(%rbp), %eax                ## 4-byte Reload
	movl	%eax, 12(%rsi,%r14)
	movl	%r12d, 16(%rsi,%r14)
	xorl	%ecx, %ecx
	movl	-128(%rbp), %r12d               ## 4-byte Reload
	movl	-124(%rbp), %edx                ## 4-byte Reload
	movq	-176(%rbp), %r10                ## 8-byte Reload
LBB0_30:
	leaq	(%rsi,%r14), %rax
	addq	$8, %rax
	movl	-140(%rbp), %edi                ## 4-byte Reload
	movl	%edi, 8(%rbx)
	movl	%r13d, 40(%rsi,%r14)
	movq	%r10, %r13
	movl	%edx, (%r10)
	movl	%r12d, (%r15)
	movl	%edi, (%rax)
	subl	%ecx, %r12d
	movl	%r12d, %edi
	movl	-164(%rbp), %esi                ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, %r15d
	movslq	24(%rbx), %rsi
	shlq	$2, %rsi
	addq	32(%rbx), %rsi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %edx
	callq	_ffurl_read_complete
	cmpl	%r15d, %eax
	jne	LBB0_31
## %bb.32:
	movl	20(%rbx), %eax
	addl	%r15d, %eax
	movl	%eax, 20(%rbx)
	movl	24(%rbx), %ecx
	addl	%r15d, %ecx
	movl	%ecx, 24(%rbx)
	cmpl	%r15d, %r12d
	jle	LBB0_34
## %bb.33:
	movq	32(%rbx), %rdx
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movq	%rdx, 32(%rsi,%r14)
	movl	%eax, 16(%r13)
	movl	%ecx, 24(%rsi,%r14)
	movq	$0, 32(%rbx)
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_26:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	movq	%r10, %rbx
	callq	_av_log
	movq	%r15, %rdi
	callq	_ff_rtmp_packet_destroy
	movl	$0, 16(%rbx)
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_35
LBB0_31:
	movq	%rbx, %rdi
	callq	_ff_rtmp_packet_destroy
	jmp	LBB0_3
LBB0_12:
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	%ebx, -140(%rbp)                ## 4-byte Spill
	leaq	-112(%rbp), %rsi
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_ffurl_read_complete
	cmpl	$3, %eax
	jne	LBB0_3
## %bb.13:
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	callq	_AV_RB24
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_ffurl_read_complete
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.14:
	movl	-112(%rbp), %edx
	movq	_RTMP_PS_TWELVEBYTES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_15
## %bb.16:
	movl	%edx, %r12d
	leaq	-112(%rbp), %rsi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	$4, %edx
	callq	_ffurl_read_complete
	cmpl	$4, %eax
	jne	LBB0_3
## %bb.17:
	addl	$11, -120(%rbp)                 ## 4-byte Folded Spill
	leaq	-112(%rbp), %rdi
	callq	_AV_RL32
	movl	%eax, %ebx
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movl	%r12d, %edx
	jmp	LBB0_18
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_37
## %bb.36:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movl	$0, 16(%r13)
	movl	20(%rbx), %eax
	jmp	LBB0_35
LBB0_15:
	addl	$7, -120(%rbp)                  ## 4-byte Folded Spill
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movl	-140(%rbp), %ebx                ## 4-byte Reload
LBB0_18:
	movl	-116(%rbp), %eax                ## 4-byte Reload
	jmp	LBB0_19
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_RTMP_PS_ONEBYTE,4,2            ## @RTMP_PS_ONEBYTE
	.comm	_RTMP_PS_FOURBYTES,4,2          ## @RTMP_PS_FOURBYTES
	.comm	_RTMP_PS_TWELVEBYTES,4,2        ## @RTMP_PS_TWELVEBYTES
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTMP packet size mismatch %d != %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_rtmp_packet_read_one_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_packet_read_one_chunk
_rtmp_packet_read_one_chunk:            ; @rtmp_packet_read_one_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x27, x5
	mov	x24, x4
	mov	x23, x3
	mov	x28, x2
	mov	x19, x1
	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, #-88]
	and	w22, w5, #0x3f
	cmp	w22, #1
	b.hi	LBB0_3
; %bb.1:
	str	wzr, [sp, #44]
	add	w25, w22, #1
	add	x1, sp, #40
	mov	x0, x20
	mov	x2, x25
	bl	_ffurl_read_complete
	cmp	w0, w25
	b.ne	LBB0_30
; %bb.2:
	add	w21, w22, #2
	add	x0, sp, #40
	bl	_AV_RL16
	add	w22, w0, #64
	b	LBB0_4
LBB0_3:
	mov	w21, #1
LBB0_4:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_ff_rtmp_check_alloc_array
	tbnz	w0, #31, LBB0_32
; %bb.5:
	str	w21, [sp, #36]                  ; 4-byte Folded Spill
	ldr	x25, [x23]
	sxtw	x11, w22
	mov	w8, #48
	smaddl	x23, w22, w8, x25
	mov	x21, x23
	ldr	w2, [x21, #4]!
	mov	x26, x23
	ldr	w8, [x26, #8]!
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	w13, [x23]
	asr	w24, w27, #6
Lloh3:
	adrp	x8, _RTMP_PS_ONEBYTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTMP_PS_ONEBYTE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w24, w8
	str	x11, [sp, #24]                  ; 8-byte Folded Spill
	b.ne	LBB0_15
; %bb.6:
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	mov	w8, #48
	madd	x8, x11, x8, x25
	ldr	w0, [x8, #12]
LBB0_7:
	mov	w8, #16777215
	mov	x28, x0
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.8:
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	mov	x27, x13
	add	x1, sp, #40
	mov	x0, x20
	mov	w2, #4
	bl	_ffurl_read_complete
	cmp	w0, #4
	b.ne	LBB0_30
; %bb.9:
	add	x0, sp, #40
	bl	_AV_RB32
	mov	x28, x0
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	mov	x13, x27
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
LBB0_10:
Lloh6:
	adrp	x8, _RTMP_PS_TWELVEBYTES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTMP_PS_TWELVEBYTES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_12
; %bb.11:
	mov	w8, #48
	madd	x8, x11, x8, x25
	ldr	w8, [x8, #16]
	add	w28, w8, w28
LBB0_12:
	mov	w8, #48
	madd	x24, x11, x8, x25
	ldr	w9, [x24, #20]!
	cbz	w9, LBB0_18
; %bb.13:
	ldr	w4, [x23]
	cmp	w13, w4
	b.ne	LBB0_23
; %bb.14:
	mov	w8, #48
	madd	x10, x11, x8, x25
	ldr	x8, [x10, #32]
	str	x8, [x19, #32]
	str	w13, [x19]
	ldr	w8, [x10, #40]
	str	w8, [x19, #40]
	ldr	w8, [x21]
	str	w8, [x19, #4]
	ldr	w8, [x10, #24]
	ldr	w12, [sp, #36]                  ; 4-byte Folded Reload
	add	w9, w9, w12
	stp	w9, w8, [x19, #20]
	ldur	d0, [x10, #12]
	stur	d0, [x19, #12]
	str	xzr, [x10, #32]
	b	LBB0_20
LBB0_15:
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	mov	x27, x13
	add	x1, sp, #40
	mov	x0, x20
	mov	w2, #3
	bl	_ffurl_read_complete
	cmp	w0, #3
	b.ne	LBB0_30
; %bb.16:
	add	x0, sp, #40
	bl	_AV_RB24
Lloh9:
	adrp	x8, _RTMP_PS_FOURBYTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTMP_PS_FOURBYTES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_25
; %bb.17:
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	add	w8, w8, #3
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	mov	x13, x27
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	b	LBB0_7
LBB0_18:
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x19
	mov	x1, x22
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	mov	x3, x28
	mov	x27, x13
	mov	x4, x13
	bl	_ff_rtmp_packet_create
	tbnz	w0, #31, LBB0_32
; %bb.19:
	mov	w8, #0
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	stp	w9, wzr, [x19, #20]
	mov	w9, #48
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	madd	x9, x11, x9, x25
	ldr	w10, [sp, #8]                   ; 4-byte Folded Reload
	stp	w10, w28, [x9, #12]
	mov	x13, x27
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
LBB0_20:
	ldp	w1, w10, [sp, #12]              ; 8-byte Folded Reload
	str	w10, [x19, #8]
	mov	w9, #48
	madd	x9, x11, x9, x25
	str	w22, [x9, #40]
	str	w2, [x21]
	str	w13, [x23]
	str	w10, [x26]
	sub	w22, w13, w8
	mov	x0, x22
	bl	_FFMIN
	mov	x21, x0
	ldr	x8, [x19, #32]
	ldrsw	x9, [x19, #24]
	add	x1, x8, x9, lsl #2
	mov	x0, x20
	mov	x2, x21
	bl	_ffurl_read_complete
	cmp	w0, w21
	b.ne	LBB0_24
; %bb.21:
	ldp	w8, w10, [x19, #20]
	add	w9, w8, w21
	add	w8, w10, w21
	stp	w9, w8, [x19, #20]
	cmp	w22, w21
	b.le	LBB0_34
; %bb.22:
	ldr	x10, [x19, #32]
	mov	w11, #48
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	madd	x11, x12, x11, x25
	str	x10, [x11, #32]
	str	w9, [x24]
	str	w8, [x11, #24]
	str	xzr, [x19, #32]
Lloh12:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_31
LBB0_23:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x13
	bl	_av_log
	mov	x0, x23
	bl	_ff_rtmp_packet_destroy
	str	wzr, [x24]
Lloh19:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_32
LBB0_24:
	mov	x0, x19
	bl	_ff_rtmp_packet_destroy
	b	LBB0_30
LBB0_25:
	mov	x27, x0
	add	x1, sp, #40
	mov	x0, x20
	mov	w2, #3
	bl	_ffurl_read_complete
	cmp	w0, #3
	b.ne	LBB0_30
; %bb.26:
	add	x0, sp, #40
	bl	_AV_RB24
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	add	x1, sp, #40
	mov	x0, x20
	mov	w2, #1
	bl	_ffurl_read_complete
	cmp	w0, #1
	b.ne	LBB0_30
; %bb.27:
	ldr	w2, [sp, #40]
Lloh22:
	adrp	x8, _RTMP_PS_TWELVEBYTES@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RTMP_PS_TWELVEBYTES@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_35
; %bb.28:
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	add	x1, sp, #40
	mov	x0, x20
	mov	w2, #4
	bl	_ffurl_read_complete
	cmp	w0, #4
	b.ne	LBB0_30
; %bb.29:
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	add	w8, w8, #11
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	add	x0, sp, #40
	bl	_AV_RL32
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w13, [sp, #8]                   ; 4-byte Folded Reload
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	b	LBB0_36
LBB0_30:
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_31:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_32:
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.33:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_34:
	str	wzr, [x24]
	ldr	w0, [x19, #20]
	b	LBB0_32
LBB0_35:
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	add	w8, w8, #7
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w13, [sp, #8]                   ; 4-byte Folded Reload
LBB0_36:
	mov	x0, x27
	b	LBB0_7
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_RTMP_PS_ONEBYTE,4,2            ; @RTMP_PS_ONEBYTE
	.comm	_RTMP_PS_FOURBYTES,4,2          ; @RTMP_PS_FOURBYTES
	.comm	_RTMP_PS_TWELVEBYTES,4,2        ; @RTMP_PS_TWELVEBYTES
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTMP packet size mismatch %d != %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_rtmp_packet_read_one_chunk
.subsections_via_symbols
