	.file	"extr_sentinel.c_sentinelReconnectInstance.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%@ #Failed to initialize TLS"
.LC1:
	.string	"-cmd-link-reconnection"
.LC2:
	.string	"%@ #%s"
.LC3:
	.string	"cmd"
.LC4:
	.string	"-pubsub-link-reconnection"
.LC5:
	.string	"pubsub"
.LC6:
	.string	"SUBSCRIBE"
.LC7:
	.string	"%s %s"
	.text
	.p2align 4
	.globl	sentinelReconnectInstance
	.type	sentinelReconnectInstance, @function
sentinelReconnectInstance:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR 16[rdi]
	cmp	QWORD PTR 0[rbp], 0
	je	.L1
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, rdi
	cmp	QWORD PTR [rax], 0
	jne	.L23
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	xor	eax, eax
	call	mstime@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rcx, rax
	sub	rcx, QWORD PTR 8[rdx]
	cmp	rcx, QWORD PTR SENTINEL_PING_PERIOD[rip]
	jl	.L1
	cmp	QWORD PTR 24[rbp], 0
	mov	QWORD PTR 8[rdx], rax
	je	.L24
	mov	edx, DWORD PTR [rbx]
	mov	eax, DWORD PTR SRI_SLAVE[rip]
	or	eax, DWORD PTR SRI_MASTER[rip]
	test	eax, edx
	je	.L17
.L16:
	cmp	QWORD PTR 16[rbp], 0
	je	.L25
.L14:
	cmp	QWORD PTR 24[rbp], 0
	je	.L1
	mov	edx, DWORD PTR [rbx]
.L17:
	test	DWORD PTR SRI_SENTINEL[rip], edx
	jne	.L15
	cmp	QWORD PTR 16[rbp], 0
	je	.L1
.L15:
	mov	QWORD PTR 0[rbp], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR NET_FIRST_BIND_ADDR[rip]
	mov	edi, DWORD PTR 8[rax]
	mov	rsi, QWORD PTR [rax]
	call	redisAsyncConnectBind@PLT
	cmp	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rbp], rax
	jne	.L6
	cmp	QWORD PTR server[rip+8], 0
	jne	.L26
.L7:
	mov	QWORD PTR 48[rbp], 0
	xor	eax, eax
	call	mstime@PLT
	mov	rsi, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR server[rip]
	mov	QWORD PTR 40[rbp], rax
	mov	QWORD PTR [rsi], rbp
	call	redisAeAttach@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	esi, DWORD PTR sentinelLinkEstablishedCallback[rip]
	call	redisAsyncSetConnectCallback@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	esi, DWORD PTR sentinelDisconnectCallback[rip]
	call	redisAsyncSetDisconnectCallback@PLT
	mov	rsi, QWORD PTR 24[rbp]
	mov	rdi, rbx
	call	sentinelSendAuthIfNeeded@PLT
	mov	rsi, QWORD PTR 24[rbp]
	mov	rdi, rbx
	lea	rdx, .LC3[rip]
	call	sentinelSetClientName@PLT
	mov	rdi, rbx
	call	sentinelSendPing@PLT
.L9:
	mov	eax, DWORD PTR SRI_MASTER[rip]
	or	eax, DWORD PTR SRI_SLAVE[rip]
	test	DWORD PTR [rbx], eax
	jne	.L16
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR NET_FIRST_BIND_ADDR[rip]
	mov	edi, DWORD PTR 8[rax]
	mov	rsi, QWORD PTR [rax]
	call	redisAsyncConnectBind@PLT
	cmp	QWORD PTR 16[rax], 0
	mov	QWORD PTR 16[rbp], rax
	jne	.L11
	cmp	QWORD PTR server[rip+8], 0
	jne	.L27
.L12:
	xor	eax, eax
	call	mstime@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR server[rip]
	mov	QWORD PTR 32[rbp], rax
	mov	QWORD PTR [rsi], rbp
	call	redisAeAttach@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR sentinelLinkEstablishedCallback[rip]
	call	redisAsyncSetConnectCallback@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR sentinelDisconnectCallback[rip]
	call	redisAsyncSetDisconnectCallback@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, rbx
	call	sentinelSendAuthIfNeeded@PLT
	mov	rsi, QWORD PTR 16[rbp]
	lea	rdx, .LC5[rip]
	mov	rdi, rbx
	call	sentinelSetClientName@PLT
	mov	r12d, DWORD PTR SENTINEL_HELLO_CHANNEL[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rbx
	call	sentinelInstanceMapCommand@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR sentinelReceiveHelloMessages[rip]
	mov	rdx, rbx
	mov	r8d, eax
	mov	r9d, r12d
	lea	rcx, .LC7[rip]
	call	redisAsyncCommand@PLT
	cmp	DWORD PTR C_OK[rip], eax
	je	.L14
	mov	rsi, QWORD PTR 16[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	instanceLinkCloseConnection@PLT
.L26:
	.cfi_restore_state
	mov	rdi, rax
	call	instanceLinkNegotiateTLS@PLT
	cmp	rax, QWORD PTR C_ERR[rip]
	je	.L28
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR 16[rax], 0
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, DWORD PTR 8[rax]
	mov	edi, DWORD PTR LL_DEBUG[rip]
	mov	rdx, rbx
	xor	eax, eax
	lea	rcx, .LC2[rip]
	lea	rsi, .LC1[rip]
	call	sentinelEvent@PLT
	mov	rsi, QWORD PTR 24[rbp]
	mov	rdi, rbp
	call	instanceLinkCloseConnection@PLT
	jmp	.L9
.L27:
	mov	rdi, rax
	call	instanceLinkNegotiateTLS@PLT
	cmp	rax, QWORD PTR C_ERR[rip]
	je	.L29
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 16[rax], 0
	je	.L12
.L11:
	mov	r8d, DWORD PTR 8[rax]
	mov	edi, DWORD PTR LL_DEBUG[rip]
	mov	rdx, rbx
	xor	eax, eax
	lea	rcx, .LC2[rip]
	lea	rsi, .LC4[rip]
	call	sentinelEvent@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, rbp
	call	instanceLinkCloseConnection@PLT
	jmp	.L14
.L28:
	mov	edi, DWORD PTR LL_DEBUG[rip]
	lea	rcx, .LC0[rip]
	mov	rdx, rbx
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	sentinelEvent@PLT
	mov	rsi, QWORD PTR 24[rbp]
	mov	rdi, rbp
	call	instanceLinkCloseConnection@PLT
	jmp	.L9
.L29:
	mov	edi, DWORD PTR LL_DEBUG[rip]
	lea	rcx, .LC0[rip]
	mov	rdx, rbx
	xor	eax, eax
	lea	rsi, .LC4[rip]
	call	sentinelEvent@PLT
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	sentinelReconnectInstance, .-sentinelReconnectInstance
	.comm	server,16,16
	.comm	sentinelReceiveHelloMessages,4,4
	.comm	sentinelLinkEstablishedCallback,4,4
	.comm	sentinelDisconnectCallback,4,4
	.comm	SRI_SLAVE,4,4
	.comm	SRI_SENTINEL,4,4
	.comm	SRI_MASTER,4,4
	.comm	SENTINEL_PING_PERIOD,8,8
	.comm	SENTINEL_HELLO_CHANNEL,4,4
	.comm	NET_FIRST_BIND_ADDR,4,4
	.comm	LL_DEBUG,4,4
	.comm	C_OK,4,4
	.comm	C_ERR,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sentinel.c_sentinelReconnectInstance.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%@ #Failed to initialize TLS\000"
	.align	2
.LC1:
	.ascii	"-cmd-link-reconnection\000"
	.align	2
.LC2:
	.ascii	"%@ #%s\000"
	.align	2
.LC3:
	.ascii	"cmd\000"
	.align	2
.LC4:
	.ascii	"-pubsub-link-reconnection\000"
	.align	2
.LC5:
	.ascii	"pubsub\000"
	.align	2
.LC6:
	.ascii	"SUBSCRIBE\000"
	.align	2
.LC7:
	.ascii	"%s %s\000"
	.text
	.align	2
	.global	sentinelReconnectInstance
	.syntax unified
	.arm
	.fpu softvfp
	.type	sentinelReconnectInstance, %function
sentinelReconnectInstance:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r5, [r0, #8]
	sub	sp, sp, #12
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L1
	ldr	r3, [r0, #4]
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L44
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L44:
	bl	mstime
	ldr	r2, [r4, #8]
	ldr	r1, .L51
	ldr	r3, [r2, #4]
	ldr	r1, [r1]
	sub	r3, r0, r3
	cmp	r3, r1
	blt	.L1
	ldr	r3, [r5, #12]
	str	r0, [r2, #4]
	cmp	r3, #0
	beq	.L45
	ldr	r2, .L51+4
	ldr	r3, .L51+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L17
.L16:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L46
.L14:
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L1
	ldr	r2, [r4]
.L17:
	ldr	r3, .L51+12
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L15
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L1
.L15:
	mov	r3, #0
	str	r3, [r5]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L45:
	ldr	r3, [r4, #4]
	ldr	r2, .L51+16
	ldr	r1, [r3]
	ldr	r0, [r3, #4]
	ldr	r2, [r2]
	bl	redisAsyncConnectBind
	ldr	r2, [r0, #8]
	mov	r3, r0
	cmp	r2, #0
	str	r0, [r5, #12]
	bne	.L6
	ldr	r6, .L51+20
	ldr	r3, [r6, #4]
	cmp	r3, #0
	bne	.L47
.L7:
	mov	r3, #0
	str	r3, [r5, #24]
	bl	mstime
	ldr	r1, [r5, #12]
	str	r0, [r5, #20]
	ldr	r0, [r6]
	str	r5, [r1]
	bl	redisAeAttach
	ldr	r3, .L51+24
	ldr	r0, [r5, #12]
	ldr	r1, [r3]
	bl	redisAsyncSetConnectCallback
	ldr	r3, .L51+28
	ldr	r0, [r5, #12]
	ldr	r1, [r3]
	bl	redisAsyncSetDisconnectCallback
	ldr	r1, [r5, #12]
	mov	r0, r4
	bl	sentinelSendAuthIfNeeded
	mov	r0, r4
	ldr	r2, .L51+32
	ldr	r1, [r5, #12]
	bl	sentinelSetClientName
	mov	r0, r4
	bl	sentinelSendPing
.L9:
	ldr	r2, .L51+8
	ldr	r3, .L51+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L16
	b	.L14
.L46:
	ldr	r3, [r4, #4]
	ldr	r2, .L51+16
	ldr	r1, [r3]
	ldr	r0, [r3, #4]
	ldr	r2, [r2]
	bl	redisAsyncConnectBind
	ldr	r2, [r0, #8]
	mov	r3, r0
	cmp	r2, #0
	str	r0, [r5, #8]
	bne	.L11
	ldr	r6, .L51+20
	ldr	r3, [r6, #4]
	cmp	r3, #0
	bne	.L48
.L12:
	bl	mstime
	ldr	r1, [r5, #8]
	str	r0, [r5, #16]
	ldr	r0, [r6]
	str	r5, [r1]
	bl	redisAeAttach
	ldr	r3, .L51+24
	ldr	r0, [r5, #8]
	ldr	r1, [r3]
	bl	redisAsyncSetConnectCallback
	ldr	r3, .L51+28
	ldr	r0, [r5, #8]
	ldr	r1, [r3]
	bl	redisAsyncSetDisconnectCallback
	ldr	r1, [r5, #8]
	mov	r0, r4
	bl	sentinelSendAuthIfNeeded
	ldr	r2, .L51+36
	ldr	r1, [r5, #8]
	mov	r0, r4
	bl	sentinelSetClientName
	ldr	r3, .L51+40
	ldr	r1, .L51+44
	mov	r0, r4
	ldr	r7, [r3]
	ldr	r6, [r5, #8]
	bl	sentinelInstanceMapCommand
	ldr	r3, .L51+48
	mov	r1, r7
	ldr	r3, [r3]
	mov	r2, r4
	str	r0, [sp]
	str	r3, [sp, #4]
	mov	r0, r6
	ldr	r3, .L51+52
	bl	redisAsyncCommand
	ldr	r3, .L51+56
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L14
	mov	r0, r5
	ldr	r1, [r5, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	instanceLinkCloseConnection
.L47:
	bl	instanceLinkNegotiateTLS
	ldr	r3, .L51+60
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L49
	ldr	r3, [r5, #12]
	ldr	r2, [r3, #8]
	cmp	r2, #0
	beq	.L7
.L6:
	ldr	r2, [r3, #4]
	ldr	r3, .L51+64
	str	r2, [sp]
	ldr	r0, [r3]
	mov	r2, r4
	ldr	r3, .L51+68
	ldr	r1, .L51+72
	bl	sentinelEvent
	mov	r0, r5
	ldr	r1, [r5, #12]
	bl	instanceLinkCloseConnection
	b	.L9
.L48:
	bl	instanceLinkNegotiateTLS
	ldr	r3, .L51+60
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L50
	ldr	r3, [r5, #8]
	ldr	r2, [r3, #8]
	cmp	r2, #0
	beq	.L12
.L11:
	ldr	r2, [r3, #4]
	ldr	r3, .L51+64
	str	r2, [sp]
	ldr	r0, [r3]
	mov	r2, r4
	ldr	r3, .L51+68
	ldr	r1, .L51+76
	bl	sentinelEvent
	mov	r0, r5
	ldr	r1, [r5, #8]
	bl	instanceLinkCloseConnection
	b	.L14
.L49:
	ldr	r2, .L51+64
	ldr	r3, .L51+80
	ldr	r0, [r2]
	ldr	r1, .L51+72
	mov	r2, r4
	bl	sentinelEvent
	mov	r0, r5
	ldr	r1, [r5, #12]
	bl	instanceLinkCloseConnection
	b	.L9
.L50:
	ldr	r2, .L51+64
	ldr	r3, .L51+80
	ldr	r0, [r2]
	ldr	r1, .L51+76
	mov	r2, r4
	bl	sentinelEvent
	b	.L14
.L52:
	.align	2
.L51:
	.word	SENTINEL_PING_PERIOD
	.word	SRI_MASTER
	.word	SRI_SLAVE
	.word	SRI_SENTINEL
	.word	NET_FIRST_BIND_ADDR
	.word	server
	.word	sentinelLinkEstablishedCallback
	.word	sentinelDisconnectCallback
	.word	.LC3
	.word	.LC5
	.word	sentinelReceiveHelloMessages
	.word	.LC6
	.word	SENTINEL_HELLO_CHANNEL
	.word	.LC7
	.word	C_OK
	.word	C_ERR
	.word	LL_DEBUG
	.word	.LC2
	.word	.LC1
	.word	.LC4
	.word	.LC0
	.size	sentinelReconnectInstance, .-sentinelReconnectInstance
	.comm	server,8,4
	.comm	sentinelReceiveHelloMessages,4,4
	.comm	sentinelLinkEstablishedCallback,4,4
	.comm	sentinelDisconnectCallback,4,4
	.comm	SRI_SLAVE,4,4
	.comm	SRI_SENTINEL,4,4
	.comm	SRI_MASTER,4,4
	.comm	SENTINEL_PING_PERIOD,4,4
	.comm	SENTINEL_HELLO_CHANNEL,4,4
	.comm	NET_FIRST_BIND_ADDR,4,4
	.comm	LL_DEBUG,4,4
	.comm	C_OK,4,4
	.comm	C_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
