	.file	"extr_replication.c_replicationResurrectCachedMaster.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error resurrecting the cached master, impossible to add the readable handler: %s"
	.align 8
.LC1:
	.string	"Error resurrecting the cached master, impossible to add the writable handler: %s"
	.text
	.p2align 4
	.globl	replicationResurrectCachedMaster
	.type	replicationResurrectCachedMaster, @function
replicationResurrectCachedMaster:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rsi, QWORD PTR server[rip+24]
	mov	QWORD PTR server[rip+24], 0
	mov	QWORD PTR 8[rsi], rdi
	mov	QWORD PTR server[rip], rsi
	call	connSetPrivateData@PLT
	mov	rdi, QWORD PTR server[rip]
	mov	eax, DWORD PTR CLIENT_CLOSE_AFTER_REPLY[rip]
	or	eax, DWORD PTR CLIENT_CLOSE_ASAP[rip]
	not	eax
	and	DWORD PTR [rdi], eax
	mov	eax, DWORD PTR server[rip+20]
	mov	DWORD PTR 4[rdi], 1
	mov	DWORD PTR 16[rdi], eax
	mov	eax, DWORD PTR REPL_STATE_CONNECTED[rip]
	mov	QWORD PTR server[rip+8], 0
	mov	DWORD PTR server[rip+16], eax
	call	linkClient@PLT
	mov	rax, QWORD PTR server[rip]
	mov	esi, DWORD PTR readQueryFromClient[rip]
	mov	rdi, QWORD PTR 8[rax]
	call	connSetReadHandler@PLT
	test	rax, rax
	jne	.L14
.L2:
	mov	rdi, QWORD PTR server[rip]
	call	clientHasPendingReplies@PLT
	test	rax, rax
	jne	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR LL_WARNING[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	serverLog@PLT
	mov	rdi, QWORD PTR server[rip]
	call	freeClientAsync@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR server[rip]
	mov	esi, DWORD PTR sendReplyToClient[rip]
	mov	rdi, QWORD PTR 8[rax]
	call	connSetWriteHandler@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR LL_WARNING[rip]
	lea	rsi, .LC1[rip]
	mov	edx, eax
	call	serverLog@PLT
	mov	rdi, QWORD PTR server[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	freeClientAsync@PLT
	.cfi_endproc
.LFE0:
	.size	replicationResurrectCachedMaster, .-replicationResurrectCachedMaster
	.comm	server,32,32
	.comm	sendReplyToClient,4,4
	.comm	readQueryFromClient,4,4
	.comm	errno,4,4
	.comm	REPL_STATE_CONNECTED,4,4
	.comm	LL_WARNING,4,4
	.comm	CLIENT_CLOSE_ASAP,4,4
	.comm	CLIENT_CLOSE_AFTER_REPLY,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_replication.c_replicationResurrectCachedMaster.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error resurrecting the cached master, impossible to"
	.ascii	" add the readable handler: %s\000"
	.align	2
.LC1:
	.ascii	"Error resurrecting the cached master, impossible to"
	.ascii	" add the writable handler: %s\000"
	.text
	.align	2
	.global	replicationResurrectCachedMaster
	.syntax unified
	.arm
	.fpu softvfp
	.type	replicationResurrectCachedMaster, %function
replicationResurrectCachedMaster:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, #0
	ldr	r4, .L15
	ldr	r1, [r4, #16]
	str	r5, [r4, #16]
	str	r0, [r1, #8]
	str	r1, [r4]
	bl	connSetPrivateData
	mov	ip, #1
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	ldr	r0, [r4]
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r0]
	ldr	lr, .L15+12
	orr	r2, r2, r1
	ldr	r1, [r4, #12]
	bic	r3, r3, r2
	ldr	r2, [lr]
	str	r1, [r0, #12]
	stm	r0, {r3, ip}
	str	r2, [r4, #8]
	str	r5, [r4, #4]
	bl	linkClient
	ldr	r2, [r4]
	ldr	r3, .L15+16
	ldr	r0, [r2, #8]
	ldr	r1, [r3]
	bl	connSetReadHandler
	cmp	r0, r5
	bne	.L14
.L2:
	ldr	r0, [r4]
	bl	clientHasPendingReplies
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r2, .L15+20
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r0, [r3, #8]
	bl	connSetWriteHandler
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L15+24
	ldr	r2, .L15+28
	ldr	r0, [r3]
	ldr	r5, [r2]
	bl	strerror
	ldr	r1, .L15+32
	mov	r2, r0
	mov	r0, r5
	bl	serverLog
	ldr	r0, [r4]
	pop	{r4, r5, r6, lr}
	b	freeClientAsync
.L14:
	ldr	r3, .L15+24
	ldr	r2, .L15+28
	ldr	r0, [r3]
	ldr	r5, [r2]
	bl	strerror
	ldr	r1, .L15+36
	mov	r2, r0
	mov	r0, r5
	bl	serverLog
	ldr	r0, [r4]
	bl	freeClientAsync
	b	.L2
.L16:
	.align	2
.L15:
	.word	server
	.word	CLIENT_CLOSE_ASAP
	.word	CLIENT_CLOSE_AFTER_REPLY
	.word	REPL_STATE_CONNECTED
	.word	readQueryFromClient
	.word	sendReplyToClient
	.word	errno
	.word	LL_WARNING
	.word	.LC1
	.word	.LC0
	.size	replicationResurrectCachedMaster, .-replicationResurrectCachedMaster
	.comm	server,20,4
	.comm	sendReplyToClient,4,4
	.comm	readQueryFromClient,4,4
	.comm	errno,4,4
	.comm	REPL_STATE_CONNECTED,4,4
	.comm	LL_WARNING,4,4
	.comm	CLIENT_CLOSE_ASAP,4,4
	.comm	CLIENT_CLOSE_AFTER_REPLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
