	.file	"extr_sentinel.c_sentinelFailoverReconfNextSlave.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%@"
.LC1:
	.string	"-slave-reconf-sent-timeout"
.LC2:
	.string	"+slave-reconf-sent"
	.text
	.p2align 4
	.globl	sentinelFailoverReconfNextSlave
	.type	sentinelFailoverReconfNextSlave, @function
sentinelFailoverReconfNextSlave:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR 32[rdi]
	xor	ebx, ebx
	call	dictGetIterator@PLT
	mov	r12, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	call	dictGetVal@PLT
	mov	r8, rax
	mov	eax, DWORD PTR SRI_RECONF_SENT[rip]
	or	eax, DWORD PTR SRI_RECONF_INPROG[rip]
	and	eax, DWORD PTR [r8]
	cmp	eax, 1
	sbb	ebx, -1
.L2:
	mov	rdi, r12
	call	dictNext@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L4
	mov	rdi, r12
	lea	r14, .LC0[rip]
	call	dictReleaseIterator@PLT
	mov	edi, DWORD PTR 32[rbp]
	call	dictGetIterator@PLT
	mov	r13, rax
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	ebx, DWORD PTR 4[rbp]
	jge	.L12
.L10:
	mov	rdi, r13
	call	dictNext@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L12
	call	dictGetVal@PLT
	mov	edx, DWORD PTR [rax]
	mov	r12, rax
	mov	eax, DWORD PTR SRI_PROMOTED[rip]
	or	eax, DWORD PTR SRI_RECONF_DONE[rip]
	test	eax, edx
	jne	.L6
	mov	eax, DWORD PTR SRI_RECONF_SENT[rip]
	test	edx, eax
	jne	.L21
.L7:
	or	eax, DWORD PTR SRI_RECONF_INPROG[rip]
	test	eax, edx
	jne	.L6
	mov	rax, QWORD PTR 24[r12]
	cmp	QWORD PTR [rax], 0
	jne	.L6
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, r12
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	call	sentinelSendSlaveOf@PLT
	cmp	DWORD PTR C_OK[rip], eax
	jne	.L6
	mov	eax, DWORD PTR SRI_RECONF_SENT[rip]
	or	DWORD PTR [r12], eax
	xor	eax, eax
	add	ebx, 1
	call	mstime@PLT
	mov	edi, DWORD PTR LL_NOTICE[rip]
	mov	rcx, r14
	mov	rdx, r12
	mov	QWORD PTR 8[r12], rax
	lea	rsi, .LC2[rip]
	call	sentinelEvent@PLT
	cmp	ebx, DWORD PTR 4[rbp]
	jl	.L10
.L12:
	mov	rdi, r13
	call	dictReleaseIterator@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	sentinelFailoverDetectEnd@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	xor	eax, eax
	call	mstime@PLT
	sub	rax, QWORD PTR 8[r12]
	cmp	rax, QWORD PTR SENTINEL_SLAVE_RECONF_TIMEOUT[rip]
	jg	.L8
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR SRI_RECONF_SENT[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR LL_NOTICE[rip]
	mov	rdx, r12
	mov	rcx, r14
	lea	rsi, .LC1[rip]
	call	sentinelEvent@PLT
	mov	eax, DWORD PTR SRI_RECONF_SENT[rip]
	mov	edx, eax
	not	edx
	and	edx, DWORD PTR [r12]
	or	edx, DWORD PTR SRI_RECONF_DONE[rip]
	mov	DWORD PTR [r12], edx
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	sentinelFailoverReconfNextSlave, .-sentinelFailoverReconfNextSlave
	.comm	SRI_RECONF_SENT,4,4
	.comm	SRI_RECONF_INPROG,4,4
	.comm	SRI_RECONF_DONE,4,4
	.comm	SRI_PROMOTED,4,4
	.comm	SENTINEL_SLAVE_RECONF_TIMEOUT,8,8
	.comm	LL_NOTICE,4,4
	.comm	C_OK,4,4
	.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_sentinelFailoverReconfNextSlave.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%@\000"
	.align	2
.LC1:
	.ascii	"-slave-reconf-sent-timeout\000"
	.align	2
.LC2:
	.ascii	"+slave-reconf-sent\000"
	.text
	.align	2
	.global	sentinelFailoverReconfNextSlave
	.syntax unified
	.arm
	.fpu softvfp
	.type	sentinelFailoverReconfNextSlave, %function
sentinelFailoverReconfNextSlave:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r0, [r0, #20]
	bl	dictGetIterator
	mov	r5, #0
	mov	r4, r0
	ldr	r8, .L23
	ldr	r7, .L23+4
	b	.L2
.L4:
	bl	dictGetVal
	ldr	r3, [r8]
	ldr	r1, [r7]
	ldr	r2, [r0]
	orr	r3, r3, r1
	tst	r3, r2
	addne	r5, r5, #1
.L2:
	mov	r0, r4
	bl	dictNext
	cmp	r0, #0
	bne	.L4
	mov	r0, r4
	bl	dictReleaseIterator
	ldr	r0, [r6, #20]
	bl	dictGetIterator
	mov	r7, r0
	ldr	r9, .L23+8
	ldr	r8, .L23+12
	ldr	r10, .L23
	ldr	fp, .L23+16
.L6:
	ldr	r3, [r6, #4]
	cmp	r5, r3
	bge	.L12
.L10:
	mov	r0, r7
	bl	dictNext
	cmp	r0, #0
	beq	.L12
	bl	dictGetVal
	ldr	r3, [r9]
	ldr	r1, [r8]
	ldr	r2, [r0]
	orr	r3, r3, r1
	tst	r3, r2
	mov	r4, r0
	bne	.L6
	ldr	r3, [r10]
	tst	r2, r3
	bne	.L22
.L7:
	ldr	r1, .L23+4
	ldr	r1, [r1]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L6
	ldr	r3, [r4, #16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [r6, #12]
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	bl	sentinelSendSlaveOf
	ldr	r3, .L23+20
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L6
	ldr	r2, [r10]
	ldr	r3, [r4]
	add	r5, r5, #1
	orr	r3, r3, r2
	str	r3, [r4]
	bl	mstime
	str	r0, [r4, #8]
	ldr	r0, .L23+24
	ldr	r3, .L23+28
	mov	r2, r4
	ldr	r1, .L23+32
	ldr	r0, [r0]
	bl	sentinelEvent
	ldr	r3, [r6, #4]
	cmp	r5, r3
	blt	.L10
.L12:
	mov	r0, r7
	bl	dictReleaseIterator
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	sentinelFailoverDetectEnd
.L22:
	bl	mstime
	ldr	r2, [r4, #8]
	ldr	r3, [fp]
	sub	r0, r0, r2
	cmp	r0, r3
	ldrle	r2, [r4]
	ldrle	r3, [r10]
	ble	.L7
.L8:
	ldr	r0, .L23+24
	mov	r2, r4
	ldr	r3, .L23+28
	ldr	r1, .L23+36
	ldr	r0, [r0]
	bl	sentinelEvent
	ldr	r3, [r10]
	ldr	r2, [r4]
	ldr	r1, [r8]
	bic	r2, r2, r3
	orr	r2, r2, r1
	str	r2, [r4]
	b	.L7
.L24:
	.align	2
.L23:
	.word	SRI_RECONF_SENT
	.word	SRI_RECONF_INPROG
	.word	SRI_PROMOTED
	.word	SRI_RECONF_DONE
	.word	SENTINEL_SLAVE_RECONF_TIMEOUT
	.word	C_OK
	.word	LL_NOTICE
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	sentinelFailoverReconfNextSlave, .-sentinelFailoverReconfNextSlave
	.comm	SRI_RECONF_SENT,4,4
	.comm	SRI_RECONF_INPROG,4,4
	.comm	SRI_RECONF_DONE,4,4
	.comm	SRI_PROMOTED,4,4
	.comm	SENTINEL_SLAVE_RECONF_TIMEOUT,4,4
	.comm	LL_NOTICE,4,4
	.comm	C_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
