	.file	"841067.c"
	.intel_syntax noprefix
	.text
	.globl	service_startv
	.type	service_startv, @function
service_startv:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	vsnprintf@PLT
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rsi, eax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	vsnprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -12[rbp], -1
	je	.L4
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	jne	.L4
	mov	eax, 1
	jmp	.L3
.L4:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	service_startv, .-service_startv
	.globl	service_start
	.type	service_start, @function
service_start:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L7
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L7:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	service_startv
	mov	DWORD PTR -212[rbp], eax
	mov	eax, DWORD PTR -212[rbp]
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	service_start, .-service_start
	.section	.rodata
.LC0:
	.string	"r"
	.text
	.globl	service_stop
	.type	service_stop, @function
service_stop:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L11
	mov	eax, 0
	jmp	.L20
.L11:
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jle	.L25
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 15
	mov	edi, eax
	call	kill@PLT
	cmp	eax, -1
	jne	.L18
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	sete	al
	movzx	eax, al
	jmp	.L20
.L18:
	mov	edi, 1
	call	sleep@PLT
.L17:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -60[rbp], edx
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	jmp	.L20
.L24:
	nop
.L14:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L20
.L25:
	nop
.L16:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, 0
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	service_stop, .-service_stop
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"841067.c"
	.text
	.align	2
	.global	service_startv
	.syntax unified
	.arm
	.fpu softvfp
	.type	service_startv, %function
service_startv:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, #0
	mov	r0, #0
	bl	vsnprintf
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-12]
	bl	vsnprintf
	ldr	r0, [fp, #-12]
	bl	system
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L4
	ldr	r3, [fp, #-8]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L4
	mov	r3, #1
	b	.L3
.L4:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	service_startv, .-service_startv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	service_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	service_start, %function
service_start:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	service_startv
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	service_start, .-service_start
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	service_stop
	.syntax unified
	.arm
	.fpu softvfp
	.type	service_stop, %function
service_stop:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L27+4
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	b	.L21
.L12:
	sub	r3, fp, #24
	ldr	r2, [fp, #-32]
	mov	r1, #16
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r0, [fp, #-32]
	bl	fclose
	sub	r3, fp, #24
	mov	r0, r3
	bl	atol
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L26
	b	.L18
.L20:
	mov	r1, #15
	ldr	r0, [fp, #-28]
	bl	kill
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L21
.L19:
	mov	r0, #1
	bl	sleep
.L18:
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	str	r2, [fp, #-44]
	cmp	r3, #0
	bne	.L20
	mov	r1, #9
	ldr	r0, [fp, #-28]
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L21
.L25:
	nop
.L15:
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r3, #0
	b	.L21
.L26:
	nop
.L17:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mov	r3, #0
.L21:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC2
	.word	.LC1
	.size	service_stop, .-service_stop
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
