	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_blocking_io_errors
_test_blocking_io_errors:               ## @test_blocking_io_errors
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_connect
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_redisCommand
	movq	%rax, %r13
	movl	(%rax), %edi
	leaq	L_.str(%rip), %r15
	movq	%r15, %rsi
	callq	_strstr
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	incq	%rdi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_freeReplyObject
	leaq	L_.str.2(%rip), %rdi
	callq	_test
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_redisCommand
	movq	%rax, %rbx
	cmpl	$2, %r14d
	jg	LBB0_3
## %bb.1:
	jne	LBB0_6
## %bb.2:
	testl	%r15d, %r15d
	jle	LBB0_6
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcasecmp
	xorl	%edi, %edi
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_redisGetReply
	movq	_REDIS_ERR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
LBB0_5:
	callq	_test_cond
	movq	%rbx, %rdi
	callq	_freeReplyObject
	jmp	LBB0_7
LBB0_6:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_test_cond
LBB0_7:
	movq	(%r12), %rax
	movq	_REDIS_ERR_EOF@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	movl	$0, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	8(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
LBB0_9:
	callq	_assert
	movq	%r12, %rdi
	callq	_redisFree
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_connect
	movq	%rax, %rbx
	leaq	L_.str.6(%rip), %rdi
	callq	_test
	movabsq	$4294967296000, %rsi            ## imm = 0x3E800000000
	movq	%rbx, %rdi
	callq	_redisSetTimeout
	movq	_REDIS_OK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_redisGetReply
	movq	_REDIS_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	movq	(%rbx), %rax
	movq	_REDIS_ERR_IO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	sete	%r15b
LBB0_12:
	movl	%r15d, %edi
	callq	_test_cond
	movq	%rbx, %rdi
	callq	_redisFree
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"redis_version:"

L_.str.1:                               ## @.str.1
	.asciz	"INFO"

L_.str.2:                               ## @.str.2
	.asciz	"Returns I/O error when the connection is lost: "

L_.str.3:                               ## @.str.3
	.asciz	"QUIT"

L_.str.4:                               ## @.str.4
	.asciz	"OK"

	.comm	_REDIS_ERR,8,3                  ## @REDIS_ERR
	.comm	_REDIS_ERR_EOF,8,3              ## @REDIS_ERR_EOF
L_.str.5:                               ## @.str.5
	.asciz	"Server closed the connection"

L_.str.6:                               ## @.str.6
	.asciz	"Returns I/O error on socket timeout: "

	.comm	_REDIS_OK,8,3                   ## @REDIS_OK
	.comm	_REDIS_ERR_IO,8,3               ## @REDIS_ERR_IO
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.no_dead_strip	_test_blocking_io_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_blocking_io_errors
_test_blocking_io_errors:               ; @test_blocking_io_errors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	and	x19, x0, #0xffffffff
	mov	x0, x19
	bl	_connect
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_redisCommand
	mov	x21, x0
	ldr	w0, [x0]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	mov	x1, x22
	bl	_strstr
	mov	x23, x0
	mov	x0, x22
	bl	_strlen
	add	x0, x23, w0, sxtw
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	mov	x23, x0
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	mov	x22, x0
	mov	x0, x21
	bl	_freeReplyObject
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_test
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_redisCommand
	mov	x21, x0
Lloh8:
	adrp	x24, _REDIS_ERR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _REDIS_ERR@GOTPAGEOFF]
	cmp	w23, #2
	b.gt	LBB0_3
; %bb.1:
	ccmp	w22, #1, #8, eq
	b.ge	LBB0_3
; %bb.2:
	cmp	x21, #0
	cset	w0, eq
	bl	_test_cond
	b	LBB0_7
LBB0_3:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_redisGetReply
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, eq
LBB0_6:
	bl	_test_cond
	mov	x0, x21
	bl	_freeReplyObject
LBB0_7:
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _REDIS_ERR_EOF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REDIS_ERR_EOF@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x20, #8]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	bl	_assert
	mov	x0, x20
	bl	_redisFree
	mov	x0, x19
	bl	_connect
	mov	x19, x0
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_test
	mov	x0, x19
	mov	x1, #4294967296000
	bl	_redisSetTimeout
Lloh19:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	add	x1, sp, #8
	mov	x0, x19
	bl	_redisGetReply
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _REDIS_ERR_IO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _REDIS_ERR_IO@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	bl	_test_cond
	mov	x0, x19
	bl	_redisFree
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redis_version:"

l_.str.1:                               ; @.str.1
	.asciz	"INFO"

l_.str.2:                               ; @.str.2
	.asciz	"Returns I/O error when the connection is lost: "

l_.str.3:                               ; @.str.3
	.asciz	"QUIT"

l_.str.4:                               ; @.str.4
	.asciz	"OK"

	.comm	_REDIS_ERR,8,3                  ; @REDIS_ERR
	.comm	_REDIS_ERR_EOF,8,3              ; @REDIS_ERR_EOF
l_.str.5:                               ; @.str.5
	.asciz	"Server closed the connection"

l_.str.6:                               ; @.str.6
	.asciz	"Returns I/O error on socket timeout: "

	.comm	_REDIS_OK,8,3                   ; @REDIS_OK
	.comm	_REDIS_ERR_IO,8,3               ; @REDIS_ERR_IO
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.no_dead_strip	_test_blocking_io_errors
.subsections_via_symbols
