	.file	"6297.c"
	.intel_syntax noprefix
	.text
	.globl	fp
	.bss
	.align 8
	.type	fp, @object
	.size	fp, 8
fp:
	.zero	8
	.local	SESSION_TRACKER
	.comm	SESSION_TRACKER,4,4
	.section	.rodata
.LC0:
	.string	"%s "
	.text
	.globl	print_time
	.type	print_time, @function
print_time:
.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, 40
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rbx, rax
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rbx
	lea	rdx, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_time, .-print_time
	.section	.rodata
.LC1:
	.string	"a+"
.LC2:
	.string	"log.txt"
.LC3:
	.string	"w"
.LC4:
	.string	"%d"
.LC5:
	.string	" [%s][line: %d] "
	.text
	.globl	log_print
	.type	log_print, @function
log_print:
.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, 272
	mov	QWORD PTR -248[rbp], rdi
	mov	DWORD PTR -252[rbp], esi
	mov	QWORD PTR -264[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L5
	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
.L5:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR SESSION_TRACKER[rip]
	test	eax, eax
	jle	.L6
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	jmp	.L7
.L6:
	lea	rsi, .LC3[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
.L7:
	mov	eax, 0
	call	print_time
	mov	rdx, rax
	mov	rax, QWORD PTR fp[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -208[rbp], 24
	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
	mov	rax, QWORD PTR -264[rbp]
	mov	QWORD PTR -224[rbp], rax
	jmp	.L8
.L17:
	mov	rax, QWORD PTR -224[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 37
	je	.L9
	mov	rdx, QWORD PTR fp[rip]
	mov	rax, QWORD PTR -224[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	jmp	.L10
.L9:
	add	QWORD PTR -224[rbp], 1
	mov	rax, QWORD PTR -224[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 100
	je	.L11
	cmp	eax, 115
	jne	.L12
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L13
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L14:
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -216[rbp], rax
	mov	rdx, QWORD PTR fp[rip]
	mov	rax, QWORD PTR -216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L15
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L16:
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -228[rbp], eax
	mov	rax, QWORD PTR fp[rip]
	mov	edx, DWORD PTR -228[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L10
.L12:
	mov	rdx, QWORD PTR fp[rip]
	mov	rax, QWORD PTR -224[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L10:
	add	QWORD PTR -224[rbp], 1
.L8:
	mov	rax, QWORD PTR -224[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L17
	mov	rax, QWORD PTR fp[rip]
	mov	ecx, DWORD PTR -252[rbp]
	mov	rdx, QWORD PTR -248[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	eax, DWORD PTR SESSION_TRACKER[rip]
	add	eax, 1
	mov	DWORD PTR SESSION_TRACKER[rip], eax
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	log_print, .-log_print
	.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	"6297.c"
	.text
	.comm	fp,4,4
	.local	SESSION_TRACKER
	.comm	SESSION_TRACKER,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s \000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_time, %function
print_time:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r0, r3
	bl	time
	sub	r3, fp, #24
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	sub	r3, fp, #24
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	ldr	r2, .L4+4
	mov	r1, r4
	ldr	r0, [fp, #-20]
	bl	snprintf
	ldr	r3, [fp, #-20]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC1
	.word	.LC0
	.size	print_time, .-print_time
	.section	.rodata
	.align	2
.LC2:
	.ascii	"a+\000"
	.align	2
.LC3:
	.ascii	"log.txt\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	" [%s][line: %d] \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	log_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	log_print, %function
log_print:
	@ args = 4, pretend = 8, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r2, r3}
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-48]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L7
	ldr	r1, .L16+8
	ldr	r0, .L16+12
	bl	fopen
	mov	r3, r0
	ldr	r2, .L16+16
	str	r3, [r2]
	b	.L8
.L7:
	ldr	r1, .L16+20
	ldr	r0, .L16+12
	bl	fopen
	mov	r3, r0
	ldr	r2, .L16+16
	str	r3, [r2]
.L8:
	ldr	r3, .L16+16
	ldr	r4, [r3]
	bl	print_time
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L16+24
	mov	r0, r4
	bl	fprintf
	add	r3, fp, #8
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-28]
	b	.L9
.L14:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #37
	beq	.L10
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	fputc
	b	.L11
.L10:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #100
	beq	.L12
	cmp	r3, #115
	bne	.L13
	ldr	r3, [fp, #-32]
	add	r2, r3, #4
	str	r2, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	fputs
	b	.L11
.L12:
	ldr	r3, [fp, #-32]
	add	r2, r3, #4
	str	r2, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, .L16+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L16+28
	mov	r0, r3
	bl	fprintf
	b	.L11
.L13:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	fputc
.L11:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L9:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L16+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	ldr	r1, .L16+32
	bl	fprintf
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L16+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+4
	str	r3, [r2]
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #8
	bx	lr
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	SESSION_TRACKER
	.word	.LC2
	.word	.LC3
	.word	fp
	.word	.LC4
	.word	.LC0
	.word	.LC5
	.word	.LC6
	.size	log_print, .-log_print
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
