	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_read                ## -- Begin function redis_sock_read
	.p2align	4, 0x90
_redis_sock_read:                       ## @redis_sock_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	%r14
	pushq	%rbx
	movl	$4128, %eax                     ## imm = 0x1020
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$0, (%rsi)
	leaq	-4128(%rbp), %rsi
	leaq	-4136(%rbp), %rcx
	movl	$4095, %edx                     ## imm = 0xFFF
	callq	_redis_sock_gets
	testq	%rax, %rax
	js	LBB0_11
## %bb.1:
	movsbl	-4128(%rbp), %eax
	movl	%eax, %ecx
	addl	$-36, %ecx
	cmpl	$22, %ecx
	ja	LBB0_9
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	leaq	-4127(%rbp), %rdi
	callq	_atoi
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_redis_sock_read_bulk_reply
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_5:
	leaq	-4127(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_11
LBB0_6:
	movq	-4136(%rbp), %rsi
	cmpq	$1, %rsi
	jbe	LBB0_8
## %bb.7:
	movl	%esi, (%r14)
	leaq	-4128(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_estrndup
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_8:
	movb	-4128(%rbp), %al
LBB0_9:
	movq	_redis_exception_ce@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movsbl	%al, %ecx
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_zend_throw_exception_ex
	jmp	LBB0_12
LBB0_10:
	leaq	-4127(%rbp), %rsi
	movq	-4136(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_redis_sock_set_err
	movq	%rbx, %rdi
	callq	_redis_error_throw
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	addq	$4128, %rsp                     ## imm = 0x1020
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-1"

	.comm	_redis_exception_ce,4,2         ## @redis_exception_ce
L_.str.1:                               ## @.str.1
	.asciz	"protocol error, got '%c' as reply type byte\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_read                ; -- Begin function redis_sock_read
	.p2align	2
_redis_sock_read:                       ; @redis_sock_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	wzr, [x1]
	add	x1, sp, #8
	mov	x3, sp
	mov	w2, #4095
	bl	_redis_sock_gets
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldrsb	w9, [sp, #8]
	and	w8, w9, #0xff
	sub	w9, w9, #36
	cmp	w9, #22
	b.hi	LBB0_8
; %bb.2:
Lloh5:
	adrp	x10, lJTI0_0@PAGE
Lloh6:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	add	x8, sp, #8
	add	x0, x8, #1
	bl	_atoi
	mov	x1, x0
	str	w0, [x19]
	mov	x0, x20
	bl	_redis_sock_read_bulk_reply
	b	LBB0_11
LBB0_4:
	add	x8, sp, #8
	add	x0, x8, #1
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_10
LBB0_5:
	ldr	x1, [sp]
	cmp	x1, #1
	b.ls	LBB0_7
; %bb.6:
	str	w1, [x19]
	add	x0, sp, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_estrndup
	b	LBB0_11
LBB0_7:
	ldrb	w8, [sp, #8]
LBB0_8:
Lloh9:
	adrp	x9, _redis_exception_ce@GOTPAGE
Lloh10:
	ldr	x9, [x9, _redis_exception_ce@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	sxtb	w3, w8
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_zend_throw_exception_ex
	b	LBB0_10
LBB0_9:
	add	x8, sp, #8
	add	x1, x8, #1
	ldr	x2, [sp]
	mov	x0, x20
	bl	_redis_sock_set_err
	mov	x0, x20
	bl	_redis_error_throw
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-1"

	.comm	_redis_exception_ce,4,2         ; @redis_exception_ce
l_.str.1:                               ; @.str.1
	.asciz	"protocol error, got '%c' as reply type byte\n"

.subsections_via_symbols
