	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_read_stream_messages     ## -- Begin function redis_read_stream_messages
	.p2align	4, 0x90
_redis_read_stream_messages:            ## @redis_read_stream_messages
	.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
	testl	%esi, %esi
	jle	LBB0_12
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	leaq	-44(%rbp), %rsi
	callq	_read_mbulk_header
	xorl	%ebx, %ebx
	testq	%rax, %rax
	js	LBB0_10
## %bb.2:
	cmpl	$2, -44(%rbp)
	jne	LBB0_10
## %bb.3:
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	-52(%rbp), %rsi
	callq	_redis_sock_read
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_read_mbulk_header
	testq	%rax, %rax
	js	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, -48(%rbp)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_array_init
	movl	-48(%rbp), %edx
	movq	_UNSERIALIZE_VALS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_redis_mbulk_reply_loop
	movq	_SCORE_DECODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_array_zip_values_and_scores
	movl	-52(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rcx
	callq	_add_assoc_zval_ex
	movq	%rbx, %rdi
	callq	_efree
	decl	%r12d
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	-44(%rbp), %rsi
	callq	_read_mbulk_header
	testq	%rax, %rax
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, -44(%rbp)
	je	LBB0_4
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_11:
	movq	%rbx, %rdi
	callq	_efree
LBB0_14:
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_12:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNSERIALIZE_VALS,4,2           ## @UNSERIALIZE_VALS
	.comm	_SCORE_DECODE_NONE,4,2          ## @SCORE_DECODE_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_read_stream_messages     ; -- Begin function redis_read_stream_messages
	.p2align	2
_redis_read_stream_messages:            ; @redis_read_stream_messages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w1, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #8
	bl	_read_mbulk_header
	mov	x22, #0
	tbnz	x0, #63, LBB0_10
; %bb.2:
	ldr	w8, [sp, #8]
	cmp	w8, #2
	b.ne	LBB0_10
; %bb.3:
Lloh0:
	adrp	x23, _UNSERIALIZE_VALS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _UNSERIALIZE_VALS@GOTPAGEOFF]
Lloh2:
	adrp	x24, _SCORE_DECODE_NONE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SCORE_DECODE_NONE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_redis_sock_read
	cbz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	add	x1, sp, #4
	mov	x0, x21
	bl	_read_mbulk_header
	tbnz	x0, #63, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [sp, #4]
	tbnz	w8, #0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_array_init
	ldr	w2, [sp, #4]
	ldr	w3, [x23]
	add	x1, sp, #12
	mov	x0, x21
	bl	_redis_mbulk_reply_loop
	ldr	w2, [x24]
	add	x1, sp, #12
	mov	x0, x21
	bl	_array_zip_values_and_scores
	ldr	w2, [sp]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x22
	bl	_add_assoc_zval_ex
	mov	x0, x22
	bl	_efree
	subs	w20, w20, #1
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_read_mbulk_header
	tbnz	x0, #63, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, #2
	b.eq	LBB0_4
LBB0_10:
	cbz	x22, LBB0_12
LBB0_11:
	mov	x0, x22
	bl	_efree
LBB0_12:
	mov	w0, #-1
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UNSERIALIZE_VALS,4,2           ; @UNSERIALIZE_VALS
	.comm	_SCORE_DECODE_NONE,4,2          ; @SCORE_DECODE_NONE
.subsections_via_symbols
