	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_gets                ## -- Begin function redis_sock_gets
	.p2align	4, 0x90
_redis_sock_gets:                       ## @redis_sock_gets
	.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
	movq	%rcx, %rbx
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%esi, %esi
	callq	_redis_check_eof
	movl	$-1, %r14d
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.1:
	movl	12(%r15), %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movq	%rbx, %rcx
	callq	_php_stream_get_line
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	(%rbx), %rax
	leaq	-2(%rax), %rcx
	movq	%rcx, (%rbx)
	movb	$0, -2(%r12,%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_2:
	movq	$0, -48(%rbp)
	movq	(%r15), %rbx
	movl	8(%r15), %edi
	callq	_ZSTR_VAL
	movl	%eax, %ecx
	testq	%rbx, %rbx
	js	LBB0_3
## %bb.4:
	movq	(%r15), %r8
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_spprintf
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_spprintf
LBB0_5:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_redis_sock_disconnect
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_REDIS_THROW_EXCEPTION
	movq	-48(%rbp), %rdi
	callq	_efree
LBB0_7:
	movl	%r14d, %eax
	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	"read error on connection to %s"

L_.str.1:                               ## @.str.1
	.asciz	"read error on connection to %s:%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redis_sock_gets                ; -- Begin function redis_sock_gets
	.p2align	2
_redis_sock_gets:                       ; @redis_sock_gets
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	w1, #0
	bl	_redis_check_eof
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.1:
	ldr	w0, [x19, #12]
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_php_stream_get_line
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	x8, [x21]
	sub	x8, x8, #2
	str	x8, [x21]
	strb	wzr, [x20, x8]
	b	LBB0_7
LBB0_3:
	str	xzr, [sp, #8]
	ldr	x20, [x19]
	ldr	w0, [x19, #8]
	bl	_ZSTR_VAL
	mov	x3, x0
	tbnz	x20, #63, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	add	x0, sp, #8
	mov	w1, #0
	bl	_spprintf
	mov	x0, x19
	mov	w1, #1
	bl	_redis_sock_disconnect
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_REDIS_THROW_EXCEPTION
	ldr	x0, [sp, #8]
	bl	_efree
	mov	w0, #-1
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read error on connection to %s"

l_.str.1:                               ; @.str.1
	.asciz	"read error on connection to %s:%d"

.subsections_via_symbols
