	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redisSSLRead
_redisSSLRead:                          ## @redisSSLRead
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_SSL_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jg	LBB0_9
## %bb.1:
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_SSL_get_error
	movq	_REDIS_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_6
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EINTR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.5:
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rcx, %rax
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rax
	movq	_REDIS_ERR_EOF@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_maybeCheckWant
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_7:
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	___redisSetError
	movl	$-1, %eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_ERR_EOF,4,2              ## @REDIS_ERR_EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Server closed the connection"

	.comm	_REDIS_BLOCK,4,2                ## @REDIS_BLOCK
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"Resource temporarily unavailable"

	.comm	_REDIS_ERR_IO,4,2               ## @REDIS_ERR_IO
	.no_dead_strip	_redisSSLRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redisSSLRead
_redisSSLRead:                          ; @redisSSLRead
	.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	x20, [x0, #8]
	ldr	w0, [x20]
	bl	_SSL_read
	mov	x1, x0
	cmp	w0, #0
	b.gt	LBB0_11
; %bb.1:
	cbz	w1, LBB0_5
; %bb.2:
	ldr	w0, [x20]
	bl	_SSL_get_error
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _REDIS_BLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REDIS_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _EINTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.4:
Lloh9:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, l_.str.1@PAGE
Lloh13:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x2, x10, xzr, eq
	b	LBB0_9
LBB0_5:
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
Lloh16:
	adrp	x8, _REDIS_ERR_EOF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REDIS_ERR_EOF@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	mov	x1, x0
	mov	x0, x20
	bl	_maybeCheckWant
	cbz	x0, LBB0_8
LBB0_7:
	mov	w1, #0
	b	LBB0_11
LBB0_8:
	mov	x2, #0
LBB0_9:
Lloh18:
	adrp	x8, _REDIS_ERR_IO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REDIS_ERR_IO@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___redisSetError
	mov	w1, #-1
LBB0_11:
	mov	x0, x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_ERR_EOF,4,2              ; @REDIS_ERR_EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Server closed the connection"

	.comm	_REDIS_BLOCK,4,2                ; @REDIS_BLOCK
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"Resource temporarily unavailable"

	.comm	_REDIS_ERR_IO,4,2               ; @REDIS_ERR_IO
	.no_dead_strip	_redisSSLRead
.subsections_via_symbols
