	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_read_bulk_reply     ## -- Begin function redis_sock_read_bulk_reply
	.p2align	4, 0x90
_redis_sock_read_bulk_reply:            ## @redis_sock_read_bulk_reply
	.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
	cmpl	$-1, %esi
	je	LBB0_8
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_redis_check_eof
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.2:
	leal	2(%rbx), %r13d
	movl	%r13d, %edi
	callq	_emalloc
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$-1, %ebx
	jl	LBB0_9
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	%ebx, %r14d
	cmpl	%r14d, %r13d
	jle	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movslq	%r14d, %rax
	leaq	(%r15,%rax), %rsi
	movl	%r13d, %edx
	subl	%eax, %edx
	callq	_php_stream_read
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edi
	callq	_php_stream_eof
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_REDIS_THROW_EXCEPTION
	movq	%r15, %rdi
	callq	_efree
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_9:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movb	$0, (%r15,%rax)
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket error on read socket"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_read_bulk_reply     ; -- Begin function redis_sock_read_bulk_reply
	.p2align	2
_redis_sock_read_bulk_reply:            ; @redis_sock_read_bulk_reply
	.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
	cmn	w1, #1
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	mov	w1, #0
	bl	_redis_check_eof
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	add	w22, w19, #2
	mov	x0, x22
	bl	_emalloc
	mov	x20, x0
	cmn	w19, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w24, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, w23
	cmp	w22, w24
	b.le	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	add	x1, x20, w24, sxtw
	sub	w2, w22, w24
	bl	_php_stream_read
	mov	x23, x0
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_php_stream_eof
	cbz	x0, LBB0_4
; %bb.7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_REDIS_THROW_EXCEPTION
	mov	x0, x20
	bl	_efree
LBB0_8:
	mov	x20, #0
	b	LBB0_10
LBB0_9:
	strb	wzr, [x20, w19, sxtw]
LBB0_10:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket error on read socket"

.subsections_via_symbols
