	.file	"extr_rdb.c_bgsaveCommand.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"schedule"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Background save already in progress"
	.section	.rodata.str1.1
.LC2:
	.string	"Background saving scheduled"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Another child process is active (AOF?): can't BGSAVE right now. Use BGSAVE SCHEDULE in order to schedule a BGSAVE whenever possible."
	.section	.rodata.str1.1
.LC4:
	.string	"Background saving started"
	.text
	.p2align 4
	.globl	bgsaveCommand
	.type	bgsaveCommand, @function
bgsaveCommand:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	cmp	eax, 1
	jle	.L12
	cmp	eax, 2
	jne	.L5
	mov	rax, QWORD PTR 8[rdi]
	lea	rsi, .LC0[rip]
	mov	ebx, 1
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax]
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L5
.L2:
	lea	rdi, 4[rsp]
	call	rdbPopulateSaveInfo@PLT
	cmp	DWORD PTR server[rip], -1
	mov	r12, rax
	je	.L6
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	addReplyError@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR shared[rip+4]
	mov	rdi, rbp
	call	addReply@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L12:
	.cfi_restore_state
	xor	ebx, ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	call	hasActiveChildProcess@PLT
	test	rax, rax
	je	.L8
	test	ebx, ebx
	je	.L9
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	mov	DWORD PTR server[rip+4], 1
	call	addReplyStatus@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	addReplyError@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR server[rip+8]
	mov	rsi, r12
	call	rdbSaveBackground@PLT
	cmp	rax, QWORD PTR C_OK[rip]
	je	.L16
	mov	esi, DWORD PTR shared[rip]
	mov	rdi, rbp
	call	addReply@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	addReplyStatus@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bgsaveCommand, .-bgsaveCommand
	.comm	shared,8,8
	.comm	server,12,8
	.comm	C_OK,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_rdb.c_bgsaveCommand.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"schedule\000"
	.align	2
.LC1:
	.ascii	"Background save already in progress\000"
	.align	2
.LC2:
	.ascii	"Background saving scheduled\000"
	.align	2
.LC3:
	.ascii	"Another child process is active (AOF?): can't BGSAV"
	.ascii	"E right now. Use BGSAVE SCHEDULE in order to schedu"
	.ascii	"le a BGSAVE whenever possible.\000"
	.align	2
.LC4:
	.ascii	"Background saving started\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bgsaveCommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgsaveCommand, %function
bgsaveCommand:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	ldr	r2, .L17
	sub	sp, sp, #12
	cmp	r3, #1
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ble	.L12
	cmp	r3, #2
	bne	.L5
	ldr	r3, [r0, #4]
	ldr	r1, .L17+4
	ldr	r3, [r3, #4]
	ldr	r0, [r3]
	bl	strcasecmp
	cmp	r0, #0
	moveq	r7, #1
	bne	.L5
.L2:
	mov	r0, sp
	bl	rdbPopulateSaveInfo
	ldr	r6, .L17+8
	mov	r5, r0
	ldr	r3, [r6]
	cmn	r3, #1
	beq	.L6
	mov	r0, r4
	ldr	r1, .L17+12
	bl	addReplyError
	b	.L1
.L5:
	ldr	r3, .L17+16
	mov	r0, r4
	ldr	r1, [r3, #4]
	bl	addReply
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	mov	r7, #0
	b	.L2
.L6:
	bl	hasActiveChildProcess
	cmp	r0, #0
	beq	.L8
	cmp	r7, #0
	beq	.L9
	mov	r3, #1
	mov	r0, r4
	ldr	r1, .L17+20
	str	r3, [r6, #4]
	bl	addReplyStatus
	b	.L1
.L9:
	mov	r0, r4
	ldr	r1, .L17+24
	bl	addReplyError
	b	.L1
.L8:
	mov	r1, r5
	ldr	r0, [r6, #8]
	bl	rdbSaveBackground
	ldr	r3, .L17+28
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L16
	ldr	r3, .L17+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	addReply
	b	.L1
.L16:
	mov	r0, r4
	ldr	r1, .L17+32
	bl	addReplyStatus
	b	.L1
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	.LC0
	.word	server
	.word	.LC1
	.word	shared
	.word	.LC2
	.word	.LC3
	.word	C_OK
	.word	.LC4
	.size	bgsaveCommand, .-bgsaveCommand
	.comm	shared,8,4
	.comm	server,12,4
	.comm	C_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
