	.file	"703871.c"
	.intel_syntax noprefix
	.text
	.globl	create_singly_linked_list_node
	.type	create_singly_linked_list_node, @function
create_singly_linked_list_node:
.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	DWORD PTR -20[rbp], edi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create_singly_linked_list_node, .-create_singly_linked_list_node
	.globl	insert_node_into_singly_linked_list
	.type	insert_node_into_singly_linked_list, @function
insert_node_into_singly_linked_list:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	create_singly_linked_list_node
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insert_node_into_singly_linked_list, .-insert_node_into_singly_linked_list
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	print_singly_linked_list
	.type	print_singly_linked_list, @function
print_singly_linked_list:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L7
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L7:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_singly_linked_list, .-print_singly_linked_list
	.globl	free_singly_linked_list
	.type	free_singly_linked_list, @function
free_singly_linked_list:
.LFB9:
	.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
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L10:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	free_singly_linked_list, .-free_singly_linked_list
	.globl	findMergeNode
	.type	findMergeNode, @function
findMergeNode:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L13
.L17:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
.L13:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L17
	mov	eax, 0
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	findMergeNode, .-findMergeNode
	.section	.rodata
.LC1:
	.string	"OUTPUT_PATH"
.LC2:
	.string	"w"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	eax, 0
	call	readline
	mov	QWORD PTR -56[rbp], rax
	lea	rcx, -136[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	rax, QWORD PTR -136[rbp]
	cmp	QWORD PTR -56[rbp], rax
	je	.L19
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L20
.L19:
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	DWORD PTR -184[rbp], 0
	jmp	.L21
.L42:
	mov	eax, 0
	call	readline
	mov	QWORD PTR -48[rbp], rax
	lea	rcx, -128[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -160[rbp], eax
	mov	rax, QWORD PTR -128[rbp]
	cmp	QWORD PTR -48[rbp], rax
	je	.L22
	mov	rax, QWORD PTR -128[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L23
.L22:
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	eax, 0
	call	readline
	mov	QWORD PTR -40[rbp], rax
	lea	rcx, -112[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -156[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	cmp	QWORD PTR -40[rbp], rax
	je	.L24
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L25
.L24:
	mov	edi, 1
	call	exit@PLT
.L25:
	mov	DWORD PTR -180[rbp], 0
	jmp	.L26
.L29:
	mov	eax, 0
	call	readline
	mov	QWORD PTR -16[rbp], rax
	lea	rcx, -88[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -140[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	cmp	QWORD PTR -16[rbp], rax
	je	.L27
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L28
.L27:
	mov	edi, 1
	call	exit@PLT
.L28:
	mov	edx, DWORD PTR -140[rbp]
	lea	rax, -120[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	insert_node_into_singly_linked_list
	add	DWORD PTR -180[rbp], 1
.L26:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L29
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	eax, 0
	call	readline
	mov	QWORD PTR -32[rbp], rax
	lea	rcx, -96[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -152[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	cmp	QWORD PTR -32[rbp], rax
	je	.L30
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L31
.L30:
	mov	edi, 1
	call	exit@PLT
.L31:
	mov	DWORD PTR -176[rbp], 0
	jmp	.L32
.L35:
	mov	eax, 0
	call	readline
	mov	QWORD PTR -24[rbp], rax
	lea	rcx, -88[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -144[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	cmp	QWORD PTR -24[rbp], rax
	je	.L33
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L34
.L33:
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -104[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	insert_node_into_singly_linked_list
	add	DWORD PTR -176[rbp], 1
.L32:
	mov	eax, DWORD PTR -176[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L35
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -172[rbp], 0
	jmp	.L36
.L38:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -160[rbp]
	jge	.L37
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -80[rbp], rax
.L37:
	add	DWORD PTR -172[rbp], 1
.L36:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L38
	mov	DWORD PTR -168[rbp], 0
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -152[rbp]
	sub	eax, 1
	cmp	DWORD PTR -168[rbp], eax
	je	.L40
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -72[rbp], rax
.L40:
	add	DWORD PTR -168[rbp], 1
.L39:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L41
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	findMergeNode
	mov	DWORD PTR -148[rbp], eax
	mov	edx, DWORD PTR -148[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -184[rbp], 1
.L21:
	mov	eax, DWORD PTR -184[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jl	.L42
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.globl	readline
	.type	readline, @function
readline:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -48[rbp], 1024
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
.L49:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, eax
	mov	eax, ecx
	sub	eax, esi
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L52
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 1
	cmp	QWORD PTR -40[rbp], rax
	jb	.L47
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L47
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rax
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L53
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -48[rbp], rax
	jmp	.L49
.L52:
	nop
	jmp	.L47
.L53:
	nop
.L47:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L50
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L50:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	readline, .-readline
	.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	"703871.c"
	.text
	.align	2
	.global	create_singly_linked_list_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_singly_linked_list_node, %function
create_singly_linked_list_node:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	create_singly_linked_list_node, .-create_singly_linked_list_node
	.align	2
	.global	insert_node_into_singly_linked_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_node_into_singly_linked_list, %function
insert_node_into_singly_linked_list:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	create_singly_linked_list_node
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L5
.L4:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L5:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	insert_node_into_singly_linked_list, .-insert_node_into_singly_linked_list
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.text
	.align	2
	.global	print_singly_linked_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_singly_linked_list, %function
print_singly_linked_list:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L9
	ldr	r0, [fp, #-16]
	bl	fprintf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L7
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	fputs
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	print_singly_linked_list, .-print_singly_linked_list
	.align	2
	.global	free_singly_linked_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_singly_linked_list, %function
free_singly_linked_list:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	b	.L12
.L13:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	free
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L13
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_singly_linked_list, .-free_singly_linked_list
	.align	2
	.global	findMergeNode
	.syntax unified
	.arm
	.fpu softvfp
	.type	findMergeNode, %function
findMergeNode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L15
.L19:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L16
.L18:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	b	.L17
.L16:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
.L17:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	findMergeNode, .-findMergeNode
	.section	.rodata
	.align	2
.LC1:
	.ascii	"OUTPUT_PATH\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L47+4
	bl	getenv
	mov	r3, r0
	ldr	r1, .L47+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-64]
	bl	readline
	str	r0, [fp, #-60]
	sub	r3, fp, #120
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	strtol
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	beq	.L21
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L22
.L21:
	mov	r0, #1
	bl	exit
.L22:
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L23
.L44:
	bl	readline
	str	r0, [fp, #-52]
	sub	r3, fp, #116
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	strtol
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	beq	.L24
	ldr	r3, [fp, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L25
.L24:
	mov	r0, #1
	bl	exit
.L25:
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-112]
	mov	r2, #0
	str	r2, [r3, #4]
	bl	readline
	str	r0, [fp, #-44]
	sub	r3, fp, #108
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	strtol
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	beq	.L26
	ldr	r3, [fp, #-108]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L27
.L26:
	mov	r0, #1
	bl	exit
.L27:
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L28
.L31:
	bl	readline
	str	r0, [fp, #-16]
	sub	r3, fp, #96
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strtol
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L29
	ldr	r3, [fp, #-96]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L30
.L29:
	mov	r0, #1
	bl	exit
.L30:
	sub	r3, fp, #112
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	insert_node_into_singly_linked_list
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L28:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L31
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	mov	r2, #0
	str	r2, [r3, #4]
	bl	readline
	str	r0, [fp, #-36]
	sub	r3, fp, #100
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	strtol
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	beq	.L32
	ldr	r3, [fp, #-100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L33
.L32:
	mov	r0, #1
	bl	exit
.L33:
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L34
.L37:
	bl	readline
	str	r0, [fp, #-24]
	sub	r3, fp, #96
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strtol
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L35
	ldr	r3, [fp, #-96]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L36
.L35:
	mov	r0, #1
	bl	exit
.L36:
	sub	r3, fp, #104
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	insert_node_into_singly_linked_list
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L34:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L37
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L38
.L40:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bge	.L39
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-80]
.L39:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L38:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L40
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L41
.L43:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	beq	.L42
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-76]
.L42:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L41:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L43
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-80]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-112]
	ldr	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	findMergeNode
	str	r0, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r1, .L47+12
	ldr	r0, [fp, #-64]
	bl	fprintf
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L23:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L44
	ldr	r0, [fp, #-64]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.align	2
	.global	readline
	.syntax unified
	.arm
	.fpu softvfp
	.type	readline, %function
readline:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, #1024
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
.L53:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r3, .L58
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	fgets
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L56
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L51
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L51
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	realloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-28]
	b	.L53
.L56:
	nop
	b	.L51
.L57:
	nop
.L51:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L54
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L54:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	realloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	stdin
	.size	readline, .-readline
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
