	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_read_reply_type          ## -- Begin function redis_read_reply_type
	.p2align	4, 0x90
_redis_read_reply_type:                 ## @redis_read_reply_type
	.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	%rbx
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%esi, %esi
	callq	_redis_check_eof
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_php_stream_getc
	movq	%rax, (%r15)
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_REDIS_THROW_EXCEPTION
LBB0_4:
	movl	$-1, %r15d
	jmp	LBB0_10
LBB0_1:
	movq	_EOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	$-1, %r15d
	jmp	LBB0_10
LBB0_5:
	movq	_TYPE_INT@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	_TYPE_BULK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_TYPE_MULTIBULK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_8:
	movl	(%rbx), %edi
	leaq	-288(%rbp), %rsi
	movl	$255, %edx
	callq	_php_stream_gets
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	leaq	-288(%rbp), %rdi
	callq	_atol
	movq	%rax, (%r14)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r15d, %eax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,8,3                        ## @EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket error on read socket"

	.comm	_TYPE_INT,8,3                   ## @TYPE_INT
	.comm	_TYPE_BULK,8,3                  ## @TYPE_BULK
	.comm	_TYPE_MULTIBULK,8,3             ## @TYPE_MULTIBULK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_read_reply_type          ; -- Begin function redis_read_reply_type
	.p2align	2
_redis_read_reply_type:                 ; @redis_read_reply_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w1, #0
	bl	_redis_check_eof
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w0, [x20]
	bl	_php_stream_getc
	str	x0, [x21]
Lloh3:
	adrp	x8, _EOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_REDIS_THROW_EXCEPTION
LBB0_3:
	mov	w0, #-1
	b	LBB0_9
LBB0_4:
Lloh8:
	adrp	x8, _EOF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _TYPE_INT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TYPE_INT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _TYPE_BULK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TYPE_BULK@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _TYPE_MULTIBULK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _TYPE_MULTIBULK@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	b.ne	LBB0_8
; %bb.6:
	ldr	w0, [x20]
	add	x1, sp, #9
	mov	w2, #255
	bl	_php_stream_gets
	cbz	x0, LBB0_3
; %bb.7:
	add	x0, sp, #9
	bl	_atol
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,8,3                        ; @EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket error on read socket"

	.comm	_TYPE_INT,8,3                   ; @TYPE_INT
	.comm	_TYPE_BULK,8,3                  ; @TYPE_BULK
	.comm	_TYPE_MULTIBULK,8,3             ; @TYPE_MULTIBULK
.subsections_via_symbols
