	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_read
_rtmp_read:                             ## @rtmp_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	testl	%edx, %edx
	jle	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ebx
	movl	4(%r13), %esi
	subl	%esi, %ebx
	cmpl	%r15d, %ebx
	jge	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jg	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_get_packet
	testl	%eax, %eax
	jns	LBB0_2
## %bb.5:
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_6:
	addl	8(%r13), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	movl	4(%r13), %eax
	addl	%r15d, %eax
	jmp	LBB0_8
LBB0_7:
	addl	8(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movl	(%r13), %eax
	movl	%ebx, %r15d
LBB0_8:
	movl	%eax, 4(%r13)
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rtmp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_read
_rtmp_read:                             ; @rtmp_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w9, w8, [x23]
	sub	w22, w9, w8
	cmp	w22, w19
	b.ge	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #1
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	w1, #0
	bl	_get_packet
	tbz	w0, #31, LBB0_2
; %bb.5:
	mov	x19, x0
	b	LBB0_9
LBB0_6:
	ldr	w9, [x23, #8]
	add	w1, w9, w8
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [x23, #4]
	add	w8, w8, w19
	b	LBB0_8
LBB0_7:
	ldr	w9, [x23, #8]
	add	w1, w9, w8
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
	ldr	w8, [x23]
	mov	x19, x22
LBB0_8:
	str	w8, [x23, #4]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rtmp_read
.subsections_via_symbols
