	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cluster_check_response
_cluster_check_response:                ## @cluster_check_response
	.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	%r12
	pushq	%rbx
	movl	$4112, %eax                     ## imm = 0x1010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_CLUSTER_CLEAR_ERROR
	movq	%r12, %rdi
	callq	_CLUSTER_CLEAR_REPLY
	movq	16(%r12), %rdi
	movl	$1, %esi
	callq	_redis_check_eof
	movl	$-1, %r14d
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.1:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_php_stream_getc
	movl	%eax, (%r15)
	cmpl	%eax, %ebx
	je	LBB0_15
## %bb.2:
	movq	_TYPE_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.3:
	movq	16(%r12), %rax
	movl	(%rax), %edi
	leaq	-4144(%rbp), %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_php_stream_gets
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-4144(%rbp), %rdi
	callq	_IS_MOVED
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	leaq	-4144(%rbp), %rdi
	callq	_IS_ASK
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	incl	24(%r12)
	leaq	-4144(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_cluster_set_redirection
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setns	%cl
	leal	(%rcx,%rcx), %r14d
	decl	%r14d
	jmp	LBB0_15
LBB0_9:
	movq	16(%r12), %rdi
	movl	8(%r12), %esi
	leaq	-4144(%rbp), %rcx
	movl	$4, %edx
	callq	_redis_sock_gets
	testq	%rax, %rax
	js	LBB0_15
## %bb.10:
	movl	(%r15), %eax
	movq	_TYPE_LINE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.12:
	movq	-4144(%rbp), %rax
	jmp	LBB0_13
LBB0_4:
	movl	$-1, %r14d
	jmp	LBB0_15
LBB0_11:
	movl	8(%r12), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
LBB0_13:
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_CLUSTER_CLEAR_ERROR
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	addq	$4112, %rsp                     ## imm = 0x1010
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-4144(%rbp), %r14
	movq	%r14, %rdi
	callq	_strlen
	leaq	-2(%rax), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_cluster_set_err
	jmp	LBB0_14
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.comm	_TYPE_ERR,4,2                   ## @TYPE_ERR
	.comm	_TYPE_LINE,4,2                  ## @TYPE_LINE
	.no_dead_strip	_cluster_check_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cluster_check_response
_cluster_check_response:                ; @cluster_check_response
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -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	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_CLUSTER_CLEAR_ERROR
	mov	x0, x19
	bl	_CLUSTER_CLEAR_REPLY
	ldr	x0, [x19, #16]
	mov	w1, #1
	bl	_redis_check_eof
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.1:
Lloh5:
	adrp	x8, _EOF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_php_stream_getc
	str	w0, [x20]
	cmp	w21, w0
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_14
LBB0_3:
Lloh8:
	adrp	x8, _TYPE_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TYPE_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #4096
	bl	_php_stream_gets
	cbz	w0, LBB0_2
; %bb.5:
	add	x0, sp, #8
	bl	_IS_MOVED
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.6:
	add	x0, sp, #8
	bl	_IS_ASK
	cbz	x0, LBB0_16
LBB0_7:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_cluster_set_redirection
	cmp	x0, #0
	mov	w8, #-1
	cneg	w0, w8, ge
	b	LBB0_14
LBB0_8:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
	add	x3, sp, #8
	mov	w2, #4
	bl	_redis_sock_gets
	tbnz	x0, #63, LBB0_2
; %bb.9:
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _TYPE_LINE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TYPE_LINE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [sp, #8]
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19, #8]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
LBB0_12:
	str	x0, [x19]
	mov	x0, x19
	bl	_CLUSTER_CLEAR_ERROR
LBB0_13:
	mov	w0, #0
LBB0_14:
	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_17
; %bb.15:
	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	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	add	x0, sp, #8
	bl	_strlen
	sub	x2, x0, #2
	add	x1, sp, #8
	mov	x0, x19
	bl	_cluster_set_err
	b	LBB0_13
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.comm	_TYPE_ERR,4,2                   ; @TYPE_ERR
	.comm	_TYPE_LINE,4,2                  ; @TYPE_LINE
	.no_dead_strip	_cluster_check_response
.subsections_via_symbols
