	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_read_stream_messages_multi ## -- Begin function redis_read_stream_messages_multi
	.p2align	4, 0x90
_redis_read_stream_messages_multi:      ## @redis_read_stream_messages_multi
	.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
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_14
## %bb.1:
	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
	movl	$-1, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_redis_sock_read
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%r15, %rdi
	leaq	-52(%rbp), %rsi
	callq	_read_mbulk_header
	testq	%rax, %rax
	js	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_array_init
	movl	-52(%rbp), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_redis_read_stream_messages
	testq	%rax, %rax
	js	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rcx
	callq	_add_assoc_zval_ex
	movq	%rbx, %rdi
	callq	_efree
	decl	%r12d
	je	LBB0_14
## %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_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_efree
LBB0_12:
	movl	$-1, %r14d
	jmp	LBB0_15
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, %rdi
	callq	_efree
	leaq	-56(%rbp), %rdi
	callq	_zval_dtor
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_read_stream_messages_multi ; -- Begin function redis_read_stream_messages_multi
	.p2align	2
_redis_read_stream_messages_multi:      ; @redis_read_stream_messages_multi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cmp	w1, #1
	b.lt	LBB0_11
; %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_8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_redis_sock_read
	cbz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	add	x1, sp, #4
	mov	x0, x21
	bl	_read_mbulk_header
	tbnz	x0, #63, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #12
	bl	_array_init
	ldr	w1, [sp, #4]
	add	x2, sp, #12
	mov	x0, x21
	bl	_redis_read_stream_messages
	tbnz	x0, #63, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	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_11
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_read_mbulk_header
	tbz	x0, #63, LBB0_2
LBB0_8:
	cbz	x22, LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_efree
LBB0_10:
	mov	w0, #-1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #64
	ret
LBB0_13:
	mov	x0, x22
	bl	_efree
	add	x0, sp, #12
	bl	_zval_dtor
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
