	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redisContextWaitReady
_redisContextWaitReady:                 ## @redisContextWaitReady
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -28(%rbp)
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_errno@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rsi, %rdx
	leaq	-32(%rbp), %rdi
	movl	$1, %esi
	callq	_poll
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	jmp	LBB0_7
LBB0_5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_6:
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_7:
	callq	___redisSetErrorFromErrno
	movq	%rbx, %rdi
	callq	_redisContextCloseFd
LBB0_8:
	movq	_REDIS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_redisCheckSocketError
	movq	_REDIS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_REDIS_ERR_IO,4,2               ## @REDIS_ERR_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"poll(2)"

	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.comm	_REDIS_OK,8,3                   ## @REDIS_OK
	.no_dead_strip	_redisContextWaitReady
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redisContextWaitReady
_redisContextWaitReady:                 ; @redisContextWaitReady
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _POLLOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POLLOUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x20, _errno@GOTPAGE
Lloh7:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	stp	w9, w8, [sp]
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x2, x1
	mov	x0, sp
	mov	w1, #1
	bl	_poll
	cbz	w0, LBB0_4
; %bb.2:
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.3:
Lloh11:
	adrp	x8, _REDIS_ERR_IO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REDIS_ERR_IO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_5:
Lloh19:
	adrp	x8, _REDIS_ERR_IO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REDIS_ERR_IO@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
LBB0_6:
	bl	___redisSetErrorFromErrno
	mov	x0, x19
	bl	_redisContextCloseFd
LBB0_7:
Lloh22:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
LBB0_8:
	ldr	x8, [sp, #8]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	mov	x0, x19
	bl	_redisCheckSocketError
Lloh28:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_REDIS_ERR_IO,4,2               ; @REDIS_ERR_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"poll(2)"

	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.comm	_REDIS_OK,8,3                   ; @REDIS_OK
	.no_dead_strip	_redisContextWaitReady
.subsections_via_symbols
