	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisNetRead                   ## -- Begin function redisNetRead
	.p2align	4, 0x90
_redisNetRead:                          ## @redisNetRead
	.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
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.4:
	movq	_REDIS_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rbx)
	je	LBB0_13
## %bb.5:
	movq	_EINTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str.1(%rip), %rdx
	movq	_REDIS_ERR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_EINTR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_13
LBB0_8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_11
## %bb.9:
	movq	_REDIS_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdx
	movq	_REDIS_ERR_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
LBB0_12:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___redisSetError
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_REDIS_BLOCK,4,2                ## @REDIS_BLOCK
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.comm	_REDIS_ERR_TIMEOUT,4,2          ## @REDIS_ERR_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recv timeout"

	.comm	_REDIS_ERR_IO,4,2               ## @REDIS_ERR_IO
	.comm	_REDIS_ERR_EOF,4,2              ## @REDIS_ERR_EOF
L_.str.1:                               ## @.str.1
	.asciz	"Server closed the connection"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisNetRead                   ; -- Begin function redisNetRead
	.p2align	2
_redisNetRead:                          ; @redisNetRead
	.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	x19, x0
	ldr	w0, [x0, #4]
	mov	w3, #0
	bl	_recv
	cbz	w0, LBB0_5
; %bb.1:
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	w9, [x19]
Lloh6:
	adrp	x10, _REDIS_BLOCK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _REDIS_BLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh9:
	adrp	x10, _EINTR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _EINTR@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	w9, #0
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_12
LBB0_5:
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh14:
	adrp	x8, _REDIS_ERR_EOF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REDIS_ERR_EOF@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh16:
	adrp	x9, _EINTR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
LBB0_7:
Lloh19:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	ldr	w8, [x19]
Lloh22:
	adrp	x9, _REDIS_BLOCK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _REDIS_BLOCK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
Lloh27:
	adrp	x8, _REDIS_ERR_TIMEOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REDIS_ERR_TIMEOUT@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x2, #0
Lloh29:
	adrp	x8, _REDIS_ERR_IO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _REDIS_ERR_IO@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___redisSetError
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_REDIS_BLOCK,4,2                ; @REDIS_BLOCK
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.comm	_REDIS_ERR_TIMEOUT,4,2          ; @REDIS_ERR_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recv timeout"

	.comm	_REDIS_ERR_IO,4,2               ; @REDIS_ERR_IO
	.comm	_REDIS_ERR_EOF,4,2              ; @REDIS_ERR_EOF
l_.str.1:                               ; @.str.1
	.asciz	"Server closed the connection"

.subsections_via_symbols
