	.file	"891319.c"
	.intel_syntax noprefix
	.text
	.globl	e_loop_cmd_file
	.section	.rodata
	.align 8
.LC0:
	.string	"/data/local/hs2/To_Phone/tag_file"
	.section	.data.rel.local,"aw"
	.align 8
	.type	e_loop_cmd_file, @object
	.size	e_loop_cmd_file, 8
e_loop_cmd_file:
	.quad	.LC0
	.globl	e_loop_log_file
	.section	.rodata
	.align 8
.LC1:
	.string	"/data/local/hs2/To_Phone/Logs/e_loop.log"
	.section	.data.rel.local
	.align 8
	.type	e_loop_log_file, @object
	.size	e_loop_log_file, 8
e_loop_log_file:
	.quad	.LC1
	.local	log_file
	.comm	log_file,8,8
	.local	tag_file
	.comm	tag_file,8,8
	.section	.rodata
.LC2:
	.string	"l:t:"
	.align 8
.LC3:
	.string	"usage: e_loop [-l<log_filename>] [-t<tag_filename>]"
.LC4:
	.string	"rb"
.LC5:
	.string	"%s > %s"
.LC6:
	.string	"a"
.LC7:
	.string	"\nELOOP_CMD : %s\n"
.LC8:
	.string	"\nELOOP_CMD_STATUS : %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR e_loop_log_file[rip]
	mov	QWORD PTR log_file[rip], rax
	mov	rax, QWORD PTR e_loop_cmd_file[rip]
	mov	QWORD PTR tag_file[rip], rax
.L8:
	mov	rcx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -84[rbp]
	lea	rdx, .LC2[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jns	.L2
	jmp	.L3
.L2:
	cmp	DWORD PTR -68[rbp], 108
	je	.L4
	cmp	DWORD PTR -68[rbp], 116
	je	.L5
	jmp	.L26
.L4:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR log_file[rip], rax
	jmp	.L7
.L5:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR tag_file[rip], rax
	jmp	.L7
.L26:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	jmp	.L8
.L3:
	jmp	.L9
.L10:
	mov	edi, 1
	call	sleep@PLT
.L9:
	mov	rax, QWORD PTR tag_file[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L10
	mov	QWORD PTR -56[rbp], 80
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	js	.L11
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jns	.L12
.L11:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -1
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jns	.L14
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -1
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -1
	jmp	.L13
.L15:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	QWORD PTR -56[rbp], rax
	je	.L16
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L13
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR log_file[rip]
	test	rax, rax
	je	.L17
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR log_file[rip]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 7
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L13
.L18:
	mov	rcx, QWORD PTR log_file[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	js	.L19
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	cmp	QWORD PTR -56[rbp], rax
	ja	.L20
.L19:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L13
.L20:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -48[rbp], 0
	jmp	.L21
.L17:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -64[rbp], rax
.L21:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L22
	mov	eax, DWORD PTR -72[rbp]
	sar	eax, 8
	and	eax, 255
	mov	DWORD PTR -72[rbp], eax
.L22:
	mov	rax, QWORD PTR log_file[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L13
.L23:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jg	.L24
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L13
.L24:
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jg	.L25
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L13
.L25:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR tag_file[rip]
	mov	rdi, rax
	call	unlink@PLT
	jmp	.L9
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"891319.c"
	.text
	.global	e_loop_cmd_file
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/data/local/hs2/To_Phone/tag_file\000"
	.data
	.align	2
	.type	e_loop_cmd_file, %object
	.size	e_loop_cmd_file, 4
e_loop_cmd_file:
	.word	.LC0
	.global	e_loop_log_file
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/data/local/hs2/To_Phone/Logs/e_loop.log\000"
	.data
	.align	2
	.type	e_loop_log_file, %object
	.size	e_loop_log_file, 4
e_loop_log_file:
	.word	.LC1
	.local	log_file
	.comm	log_file,4,4
	.local	tag_file
	.comm	tag_file,4,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"l:t:\000"
	.align	2
.LC3:
	.ascii	"usage: e_loop [-l<log_filename>] [-t<tag_filename>]"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"rb\000"
	.align	2
.LC5:
	.ascii	"%s > %s\000"
	.align	2
.LC6:
	.ascii	"a\000"
	.align	2
.LC7:
	.ascii	"\012ELOOP_CMD : %s\012\000"
	.align	2
.LC8:
	.ascii	"\012ELOOP_CMD_STATUS : %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L27
	ldr	r3, [r3]
	ldr	r2, .L27+4
	str	r3, [r2]
	ldr	r3, .L27+8
	ldr	r3, [r3]
	ldr	r2, .L27+12
	str	r3, [r2]
.L8:
	ldr	r2, .L27+16
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	getopt
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L2
	b	.L3
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #108
	beq	.L4
	ldr	r3, [fp, #-24]
	cmp	r3, #116
	beq	.L5
	b	.L26
.L4:
	ldr	r3, .L27+20
	ldr	r3, [r3]
	ldr	r2, .L27+4
	str	r3, [r2]
	b	.L7
.L5:
	ldr	r3, .L27+20
	ldr	r3, [r3]
	ldr	r2, .L27+12
	str	r3, [r2]
	b	.L7
.L26:
	ldr	r0, .L27+24
	bl	puts
	mov	r0, #0
	bl	exit
.L7:
	b	.L8
.L3:
	b	.L9
.L10:
	mov	r0, #1
	bl	sleep
.L9:
	ldr	r3, .L27+12
	ldr	r3, [r3]
	ldr	r1, .L27+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L10
	mov	r3, #80
	str	r3, [fp, #-36]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	blt	.L11
	ldr	r0, [fp, #-20]
	bl	ftell
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L12
.L11:
	ldr	r0, [fp, #-20]
	bl	fclose
	mvn	r3, #0
	b	.L13
.L12:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-36]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	ldr	r0, [fp, #-20]
	bl	fclose
	mvn	r3, #0
	b	.L13
.L14:
	ldr	r0, [fp, #-36]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L15
	ldr	r0, [fp, #-20]
	bl	fclose
	mvn	r3, #0
	b	.L13
.L15:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	beq	.L16
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-32]
	bl	free
	mvn	r3, #0
	b	.L13
.L16:
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L27+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r4, r0
	ldr	r3, .L27+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #7
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L18
	ldr	r0, [fp, #-32]
	bl	free
	mvn	r3, #0
	b	.L13
.L18:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, .L27+32
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-44]
	bl	snprintf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	blt	.L19
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bhi	.L20
.L19:
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-44]
	bl	free
	mvn	r3, #0
	b	.L13
.L20:
	ldr	r0, [fp, #-32]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L21
.L17:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-44]
.L21:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-44]
	bl	system
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-40]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-40]
.L22:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r1, .L27+36
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L23
	ldr	r0, [fp, #-44]
	bl	free
	mvn	r3, #0
	b	.L13
.L23:
	ldr	r2, [fp, #-44]
	ldr	r1, .L27+40
	ldr	r0, [fp, #-28]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L24
	ldr	r0, [fp, #-28]
	bl	fclose
	ldr	r0, [fp, #-44]
	bl	free
	mvn	r3, #0
	b	.L13
.L24:
	ldr	r2, [fp, #-40]
	ldr	r1, .L27+44
	ldr	r0, [fp, #-28]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L25
	ldr	r0, [fp, #-28]
	bl	fclose
	ldr	r0, [fp, #-44]
	bl	free
	mvn	r3, #0
	b	.L13
.L25:
	ldr	r0, [fp, #-44]
	bl	free
	ldr	r0, [fp, #-28]
	bl	fclose
	ldr	r3, .L27+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	unlink
	b	.L9
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	e_loop_log_file
	.word	log_file
	.word	e_loop_cmd_file
	.word	tag_file
	.word	.LC2
	.word	optarg
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
