	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisBufferRead                ## -- Begin function redisBufferRead
	.p2align	4, 0x90
_redisBufferRead:                       ## @redisBufferRead
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	movl	$16392, %eax                    ## imm = 0x4008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	cmpq	$0, 24(%rdi)
	jne	LBB0_14
## %bb.2:
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	leaq	-16400(%rbp), %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_REDIS_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_10
LBB0_6:
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.7:
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_8:
	movq	_REDIS_ERR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_12
LBB0_9:
	movq	8(%rbx), %rdi
	leaq	-16400(%rbp), %rsi
	movl	%eax, %edx
	callq	_redisReaderFeed
	movq	_REDIS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_10:
	movq	_REDIS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	movq	(%rax), %rdx
LBB0_12:
	movq	%rbx, %rdi
LBB0_13:
	callq	___redisSetError
LBB0_14:
	movq	_REDIS_ERR@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$16392, %rsp                    ## imm = 0x4008
	popq	%rbx
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_REDIS_BLOCK,4,2                ## @REDIS_BLOCK
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_REDIS_ERR_IO,4,2               ## @REDIS_ERR_IO
	.comm	_REDIS_ERR_EOF,4,2              ## @REDIS_ERR_EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Server closed the connection"

	.comm	_REDIS_OK,8,3                   ## @REDIS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisBufferRead                ; -- Begin function redisBufferRead
	.p2align	2
_redisBufferRead:                       ; @redisBufferRead
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w9, #16400
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #16]
	add	x1, sp, #8
	mov	w2, #16384
	bl	_read
	cbz	w0, LBB0_5
; %bb.2:
	mov	x2, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	ldr	w9, [x19]
Lloh11:
	adrp	x10, _REDIS_BLOCK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _REDIS_BLOCK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh14:
	adrp	x10, _EINTR@GOTPAGE
Lloh15:
	ldr	x10, [x10, _EINTR@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	w9, #0
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_10
	b	LBB0_11
LBB0_5:
Lloh17:
	adrp	x8, _REDIS_ERR_EOF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REDIS_ERR_EOF@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	bl	_redisReaderFeed
Lloh22:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	ldr	x2, [x8]
LBB0_8:
	mov	x0, x19
	b	LBB0_12
LBB0_9:
Lloh25:
	adrp	x9, _EINTR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
Lloh28:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh30:
	adrp	x8, _REDIS_ERR_IO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _REDIS_ERR_IO@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
LBB0_12:
	bl	___redisSetError
LBB0_13:
Lloh33:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldur	x8, [x29, #-24]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_REDIS_BLOCK,4,2                ; @REDIS_BLOCK
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_REDIS_ERR_IO,4,2               ; @REDIS_ERR_IO
	.comm	_REDIS_ERR_EOF,4,2              ; @REDIS_ERR_EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Server closed the connection"

	.comm	_REDIS_OK,8,3                   ; @REDIS_OK
.subsections_via_symbols
