	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmpe_read
_rtmpe_read:                            ## @rtmpe_read
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	8(%rdi), %r15
	movq	_AVIO_FLAG_NONBLOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	(%rdi), %eax
	movq	16(%r15), %rdi
	orl	%eax, (%rdi)
	callq	_ffurl_read
	movl	%eax, %ebx
	movl	(%r12), %eax
	notl	%eax
	movq	16(%r15), %rcx
	andl	%eax, (%rcx)
	testl	%ebx, %ebx
	jns	LBB0_2
## %bb.1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
LBB0_2:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.3:
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_av_rc4_crypt
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIO_FLAG_NONBLOCK,4,2         ## @AVIO_FLAG_NONBLOCK
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_rtmpe_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmpe_read
_rtmpe_read:                            ; @rtmpe_read
	.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, x1
	ldr	x20, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _AVIO_FLAG_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AVIO_FLAG_NONBLOCK@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w8, w9, w8
	ldr	x0, [x20, #16]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	bl	_ffurl_read
	mov	x21, x0
	ldr	w8, [x22]
	ldr	x9, [x20, #16]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	ccmp	w21, #1, #8, ne
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	mov	x3, x21
	mov	x4, #0
	mov	w5, #1
	bl	_av_rc4_crypt
LBB0_4:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIO_FLAG_NONBLOCK,4,2         ; @AVIO_FLAG_NONBLOCK
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_rtmpe_read
.subsections_via_symbols
