	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisReconnect                 ## -- Begin function redisReconnect
	.p2align	4, 0x90
_redisReconnect:                        ## @redisReconnect
	.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, %rbx
	movq	$0, 48(%rdi)
	movl	44(%rdi), %r14d
	movl	%r14d, %edi
	callq	_strlen
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_2
## %bb.1:
	callq	_close
LBB0_2:
	movl	40(%rbx), %edi
	callq	_sdsfree
	movl	36(%rbx), %edi
	callq	_redisReaderFree
	xorl	%eax, %eax
	callq	_sdsempty
	movl	%eax, 40(%rbx)
	xorl	%eax, %eax
	callq	_redisReaderCreate
	movl	%eax, 36(%rbx)
	movq	8(%rbx), %rax
	movq	_REDIS_CONN_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movl	32(%rbx), %esi
	movl	28(%rbx), %edx
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_redisContextConnectBindTcp     ## TAILCALL
LBB0_3:
	movq	_REDIS_CONN_UNIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_redisContextConnectUnix        ## TAILCALL
LBB0_4:
	movq	_REDIS_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	___redisSetError
	movq	_REDIS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_CONN_TCP,8,3             ## @REDIS_CONN_TCP
	.comm	_REDIS_CONN_UNIX,8,3            ## @REDIS_CONN_UNIX
	.comm	_REDIS_ERR_OTHER,4,2            ## @REDIS_ERR_OTHER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough information to reconnect"

	.comm	_REDIS_ERR,4,2                  ## @REDIS_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redisReconnect                 ; -- Begin function redisReconnect
	.p2align	2
_redisReconnect:                        ; @redisReconnect
	.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
	str	xzr, [x0, #48]
	ldr	w20, [x0, #44]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19]
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	bl	_close
LBB0_2:
	ldr	w0, [x19, #40]
	bl	_sdsfree
	ldr	w0, [x19, #36]
	bl	_redisReaderFree
	bl	_sdsempty
	str	w0, [x19, #40]
	bl	_redisReaderCreate
	str	w0, [x19, #36]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _REDIS_CONN_TCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REDIS_CONN_TCP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	w2, w1, [x19, #28]
	ldr	w3, [x19, #16]
	ldr	w4, [x19, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_redisContextConnectBindTcp
LBB0_4:
Lloh3:
	adrp	x9, _REDIS_CONN_UNIX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REDIS_CONN_UNIX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldp	w2, w1, [x19, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_redisContextConnectUnix
LBB0_6:
Lloh6:
	adrp	x8, _REDIS_ERR_OTHER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REDIS_ERR_OTHER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	___redisSetError
Lloh11:
	adrp	x8, _REDIS_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REDIS_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_CONN_TCP,8,3             ; @REDIS_CONN_TCP
	.comm	_REDIS_CONN_UNIX,8,3            ; @REDIS_CONN_UNIX
	.comm	_REDIS_ERR_OTHER,4,2            ; @REDIS_ERR_OTHER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough information to reconnect"

	.comm	_REDIS_ERR,4,2                  ; @REDIS_ERR
.subsections_via_symbols
