	.file	"696838.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	gen_array_string
	.type	gen_array_string, @function
gen_array_string:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	QWORD PTR -4136[rbp], rdi
	mov	DWORD PTR -4140[rbp], esi
	mov	QWORD PTR -4152[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4152[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -4152[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 91
	mov	DWORD PTR -4116[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -4116[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4136[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	lea	rax, -4112[rbp]
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rcx, -4112[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	eax, DWORD PTR -4116[rbp]
	add	eax, 1
	cmp	DWORD PTR -4140[rbp], eax
	je	.L3
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -4152[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 44
.L3:
	add	DWORD PTR -4116[rbp], 1
.L2:
	mov	eax, DWORD PTR -4116[rbp]
	cmp	eax, DWORD PTR -4140[rbp]
	jl	.L4
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -4152[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 93
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gen_array_string, .-gen_array_string
	.section	.rodata
.LC1:
	.string	"substr_c(%s, %s) = %d %d\n"
.LC2:
	.string	"substr_s(%s, %s) = %d %d\n"
	.text
	.globl	substr_test
	.type	substr_test, @function
substr_test:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	substr_c@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L7
	mov	DWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
.L7:
	mov	esi, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	substr_s@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L8
	mov	DWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
.L8:
	mov	esi, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	substr_test, .-substr_test
	.section	.rodata
.LC3:
	.string	"matches_c(%s, %s) = %d\n"
.LC4:
	.string	"matches_s(%s, %s) = %d\n"
	.text
	.globl	matches_test
	.type	matches_test, @function
matches_test:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	matches_c@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	matches_s@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	matches_test, .-matches_test
	.section	.rodata
	.align 8
.LC5:
	.string	"merge_c(%s, 0, %d, aux[]) = %s\n"
	.align 8
.LC6:
	.string	"merge_s(%s, 0, %d, aux[]) = %s\n"
	.text
	.globl	merge_test
	.type	merge_test, @function
merge_test:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -40960[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 48
	mov	QWORD PTR -41000[rbp], rdi
	mov	DWORD PTR -41004[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40980[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -40980[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -41000[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -40980[rbp]
	cdqe
	mov	DWORD PTR -40976[rbp+rax*4], edx
	add	DWORD PTR -40980[rbp], 1
.L11:
	mov	eax, DWORD PTR -40980[rbp]
	cmp	eax, DWORD PTR -41004[rbp]
	jl	.L12
	lea	rdx, -8208[rbp]
	mov	ecx, DWORD PTR -41004[rbp]
	lea	rax, -40976[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gen_array_string
	mov	eax, DWORD PTR -41004[rbp]
	lea	esi, -1[rax]
	lea	rdx, -24592[rbp]
	lea	rax, -40976[rbp]
	mov	rcx, rdx
	mov	edx, esi
	mov	esi, 0
	mov	rdi, rax
	call	merge_c@PLT
	lea	rdx, -4112[rbp]
	mov	ecx, DWORD PTR -41004[rbp]
	lea	rax, -40976[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gen_array_string
	lea	rcx, -4112[rbp]
	mov	edx, DWORD PTR -41004[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -40980[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -40980[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -41000[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -40980[rbp]
	cdqe
	mov	DWORD PTR -40976[rbp+rax*4], edx
	add	DWORD PTR -40980[rbp], 1
.L13:
	mov	eax, DWORD PTR -40980[rbp]
	cmp	eax, DWORD PTR -41004[rbp]
	jl	.L14
	lea	rdx, -8208[rbp]
	mov	ecx, DWORD PTR -41004[rbp]
	lea	rax, -40976[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gen_array_string
	mov	eax, DWORD PTR -41004[rbp]
	lea	esi, -1[rax]
	lea	rdx, -24592[rbp]
	lea	rax, -40976[rbp]
	mov	rcx, rdx
	mov	edx, esi
	mov	esi, 0
	mov	rdi, rax
	call	merge_s@PLT
	lea	rdx, -4112[rbp]
	mov	ecx, DWORD PTR -41004[rbp]
	lea	rax, -40976[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gen_array_string
	lea	rcx, -4112[rbp]
	mov	edx, DWORD PTR -41004[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	merge_test, .-merge_test
	.section	.rodata
	.align 8
.LC7:
	.string	"merge_sort_c(%s, 0, %d, aux[]) = %s\n"
	.align 8
.LC8:
	.string	"merge_sort_s(%s, 0, %d, aux[]) = %s\n"
	.text
	.globl	merge_sort_test
	.type	merge_sort_test, @function
merge_sort_test:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -40960[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 48
	mov	QWORD PTR -41000[rbp], rdi
	mov	DWORD PTR -41004[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40980[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -40980[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -41000[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -40980[rbp]
	cdqe
	mov	DWORD PTR -40976[rbp+rax*4], edx
	add	DWORD PTR -40980[rbp], 1
.L17:
	mov	eax, DWORD PTR -40980[rbp]
	cmp	eax, DWORD PTR -41004[rbp]
	jl	.L18
	lea	rdx, -8208[rbp]
	mov	ecx, DWORD PTR -41004[rbp]
	lea	rax, -40976[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gen_array_string
	mov	eax, DWORD PTR -41004[rbp]
	lea	esi, -1[rax]
	lea	rdx, -24592[rbp]
	lea	rax, -40976[rbp]
	mov	rcx, rdx
	mov	edx, esi
	mov	esi, 0
	mov	rdi, rax
	call	merge_sort_c@PLT
	lea	rdx, -4112[rbp]
	mov	ecx, DWORD PTR -41004[rbp]
	lea	rax, -40976[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gen_array_string
	lea	rcx, -4112[rbp]
	mov	edx, DWORD PTR -41004[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -40980[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -40980[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -41000[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -40980[rbp]
	cdqe
	mov	DWORD PTR -40976[rbp+rax*4], edx
	add	DWORD PTR -40980[rbp], 1
.L19:
	mov	eax, DWORD PTR -40980[rbp]
	cmp	eax, DWORD PTR -41004[rbp]
	jl	.L20
	lea	rdx, -8208[rbp]
	mov	ecx, DWORD PTR -41004[rbp]
	lea	rax, -40976[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gen_array_string
	mov	eax, DWORD PTR -41004[rbp]
	lea	esi, -1[rax]
	lea	rdx, -24592[rbp]
	lea	rax, -40976[rbp]
	mov	rcx, rdx
	mov	edx, esi
	mov	esi, 0
	mov	rdi, rax
	call	merge_sort_s@PLT
	lea	rdx, -4112[rbp]
	mov	ecx, DWORD PTR -41004[rbp]
	lea	rax, -40976[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	gen_array_string
	lea	rcx, -4112[rbp]
	mov	edx, DWORD PTR -41004[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	merge_sort_test, .-merge_sort_test
	.globl	args_get_array
	.type	args_get_array, @function
args_get_array:
.LFB11:
	.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -56[rbp]
	mov	DWORD PTR [rdx], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 3
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -20[rbp], 1
.L23:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L24
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	args_get_array, .-args_get_array
	.section	.rodata
	.align 8
.LC9:
	.string	"usage: project03 <prog> [<arg1> ...]"
.LC10:
	.string	"substr"
.LC11:
	.string	"matches"
.LC12:
	.string	"merge"
.LC13:
	.string	"merge_sort"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL2:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL2
	sub	rsp, 48
	mov	DWORD PTR -16420[rbp], edi
	mov	QWORD PTR -16432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -16420[rbp], 1
	jne	.L26
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L26:
	mov	rax, QWORD PTR -16432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC10[rip]
	mov	ecx, 7
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	jne	.L27
	mov	rax, QWORD PTR -16432[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16432[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	substr_test
	jmp	.L28
.L27:
	mov	rax, QWORD PTR -16432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC11[rip]
	mov	ecx, 8
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -16432[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16432[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	matches_test
	jmp	.L28
.L29:
	mov	rax, QWORD PTR -16432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC12[rip]
	mov	ecx, 6
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	jne	.L30
	lea	rdx, -16404[rbp]
	lea	rcx, -16400[rbp]
	mov	rax, QWORD PTR -16432[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	args_get_array
	mov	edx, DWORD PTR -16404[rbp]
	lea	rax, -16400[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	merge_test
	jmp	.L28
.L30:
	mov	rax, QWORD PTR -16432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC13[rip]
	mov	ecx, 11
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	jne	.L28
	lea	rdx, -16404[rbp]
	lea	rcx, -16400[rbp]
	mov	rax, QWORD PTR -16432[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	args_get_array
	mov	edx, DWORD PTR -16404[rbp]
	lea	rax, -16400[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	merge_sort_test
.L28:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"696838.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	",\000"
	.align	2
.LC3:
	.ascii	"]\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gen_array_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen_array_string, %function
gen_array_string:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #24
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r2, [r3, #-20]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r0, [r3, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	add	r3, r3, r2
	ldr	r2, .L6+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	b	.L2
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r0, fp, #4096
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r2, .L6+8
	mov	r1, #4096
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-20]
	bl	strncat
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-16]
	cmp	r2, r3
	beq	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r0, [r3, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	add	r3, r3, r2
	ldr	r2, .L6+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-8]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	blt	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r0, [r3, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	add	r3, r3, r2
	ldr	r2, .L6+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	gen_array_string, .-gen_array_string
	.section	.rodata
	.align	2
.LC5:
	.ascii	"substr_c(%s, %s) = %d %d\012\000"
	.align	2
.LC6:
	.ascii	"substr_s(%s, %s) = %d %d\012\000"
	.text
	.align	2
	.global	substr_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	substr_test, %function
substr_test:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	substr_c
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L9
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, .L11
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	substr_s
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
.L10:
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, .L11+4
	bl	printf
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC5
	.word	.LC6
	.size	substr_test, .-substr_test
	.section	.rodata
	.align	2
.LC7:
	.ascii	"matches_c(%s, %s) = %d\012\000"
	.align	2
.LC8:
	.ascii	"matches_s(%s, %s) = %d\012\000"
	.text
	.align	2
	.global	matches_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	matches_test, %function
matches_test:
	@ 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	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	matches_c
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L14
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	matches_s
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L14+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	.LC8
	.size	matches_test, .-matches_test
	.section	.rodata
	.align	2
.LC9:
	.ascii	"merge_c(%s, 0, %d, aux[]) = %s\012\000"
	.align	2
.LC10:
	.ascii	"merge_s(%s, 0, %d, aux[]) = %s\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	merge_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_test, %function
merge_test:
	@ args = 0, pretend = 0, frame = 40976
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40960
	sub	sp, sp, #16
	sub	r3, fp, #40960
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	str	r1, [r3, #-16]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	b	.L17
.L18:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	sub	r2, fp, #40960
	sub	r2, r2, #4
	ldr	r2, [r2, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L17:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r2, #-8]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	blt	.L18
	sub	r2, fp, #8192
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [r1, #-16]
	mov	r0, r3
	bl	gen_array_string
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	sub	r2, r3, #1
	sub	r3, fp, #24576
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r0, fp, #40960
	sub	r0, r0, #4
	sub	r0, r0, #4
	mov	r1, #0
	bl	merge_c
	sub	r2, fp, #4096
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [r1, #-16]
	mov	r0, r3
	bl	gen_array_string
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #40960
	sub	r2, r2, #4
	sub	r1, fp, #8192
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r2, [r2, #-16]
	ldr	r0, .L22+4
	bl	printf
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	b	.L19
.L20:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	sub	r2, fp, #40960
	sub	r2, r2, #4
	ldr	r2, [r2, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L19:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r2, #-8]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	blt	.L20
	sub	r2, fp, #8192
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [r1, #-16]
	mov	r0, r3
	bl	gen_array_string
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	sub	r2, r3, #1
	sub	r3, fp, #24576
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r0, fp, #40960
	sub	r0, r0, #4
	sub	r0, r0, #4
	mov	r1, #0
	bl	merge_s
	sub	r2, fp, #4096
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [r1, #-16]
	mov	r0, r3
	bl	gen_array_string
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #40960
	sub	r2, r2, #4
	sub	r1, fp, #8192
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r2, [r2, #-16]
	ldr	r0, .L22+8
	bl	printf
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC11
	.word	.LC9
	.word	.LC10
	.size	merge_test, .-merge_test
	.section	.rodata
	.align	2
.LC12:
	.ascii	"merge_sort_c(%s, 0, %d, aux[]) = %s\012\000"
	.align	2
.LC13:
	.ascii	"merge_sort_s(%s, 0, %d, aux[]) = %s\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	merge_sort_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_sort_test, %function
merge_sort_test:
	@ args = 0, pretend = 0, frame = 40976
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40960
	sub	sp, sp, #16
	sub	r3, fp, #40960
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	str	r1, [r3, #-16]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	b	.L25
.L26:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	sub	r2, fp, #40960
	sub	r2, r2, #4
	ldr	r2, [r2, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L25:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r2, #-8]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	blt	.L26
	sub	r2, fp, #8192
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [r1, #-16]
	mov	r0, r3
	bl	gen_array_string
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	sub	r2, r3, #1
	sub	r3, fp, #24576
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r0, fp, #40960
	sub	r0, r0, #4
	sub	r0, r0, #4
	mov	r1, #0
	bl	merge_sort_c
	sub	r2, fp, #4096
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [r1, #-16]
	mov	r0, r3
	bl	gen_array_string
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #40960
	sub	r2, r2, #4
	sub	r1, fp, #8192
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r2, [r2, #-16]
	ldr	r0, .L30+4
	bl	printf
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	b	.L27
.L28:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	sub	r2, fp, #40960
	sub	r2, r2, #4
	ldr	r2, [r2, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #1
	str	r3, [r2, #-8]
.L27:
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r2, [r2, #-8]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	blt	.L28
	sub	r2, fp, #8192
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [r1, #-16]
	mov	r0, r3
	bl	gen_array_string
	sub	r3, fp, #40960
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	sub	r2, r3, #1
	sub	r3, fp, #24576
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r0, fp, #40960
	sub	r0, r0, #4
	sub	r0, r0, #4
	mov	r1, #0
	bl	merge_sort_s
	sub	r2, fp, #4096
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #40960
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #40960
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [r1, #-16]
	mov	r0, r3
	bl	gen_array_string
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #40960
	sub	r2, r2, #4
	sub	r1, fp, #8192
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r2, [r2, #-16]
	ldr	r0, .L30+8
	bl	printf
	nop
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC14
	.word	.LC12
	.word	.LC13
	.size	merge_sort_test, .-merge_sort_test
	.align	2
	.global	args_get_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	args_get_array, %function
args_get_array:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L33
.L34:
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r0, r1
	bl	atoi
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L33:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L34
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	args_get_array, .-args_get_array
	.section	.rodata
	.align	2
.LC15:
	.ascii	"usage: project03 <prog> [<arg1> ...]\000"
	.align	2
.LC16:
	.ascii	"substr\000"
	.align	2
.LC17:
	.ascii	"matches\000"
	.align	2
.LC18:
	.ascii	"merge\000"
	.align	2
.LC19:
	.ascii	"merge_sort\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16400
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16384
	sub	sp, sp, #16
	sub	r3, fp, #16384
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	str	r1, [r3, #-16]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	cmp	r3, #1
	bne	.L36
	ldr	r0, .L43+4
	bl	puts
	mvn	r0, #0
	bl	exit
.L36:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L43+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	substr_test
	b	.L38
.L37:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L43+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	matches_test
	b	.L38
.L39:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L43+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	sub	r2, fp, #16384
	sub	r2, r2, #4
	sub	r2, r2, #8
	sub	r3, fp, #16384
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r1, fp, #16384
	sub	r1, r1, #4
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	args_get_array
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r2, [r3, #-8]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	merge_test
	b	.L38
.L40:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L43+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	sub	r2, fp, #16384
	sub	r2, r2, #4
	sub	r2, r2, #8
	sub	r3, fp, #16384
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r1, fp, #16384
	sub	r1, r1, #4
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	args_get_array
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r2, [r3, #-8]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	merge_sort_test
.L38:
	mov	r3, #0
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC20
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
