	.file	"215767963.c"
	.intel_syntax noprefix
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB6:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d\t"
.LC1:
	.string	""
	.text
	.globl	print_list
	.type	print_list, @function
print_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, 16
	mov	DWORD PTR -4[rbp], 1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR 4020[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_list, .-print_list
	.globl	init_list
	.type	init_list, @function
init_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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 50
	mov	DWORD PTR -44[rbp], 10
	mov	DWORD PTR -40[rbp], 90
	mov	DWORD PTR -36[rbp], 30
	mov	DWORD PTR -32[rbp], 70
	mov	DWORD PTR -28[rbp], 40
	mov	DWORD PTR -24[rbp], 80
	mov	DWORD PTR -20[rbp], 60
	mov	DWORD PTR -16[rbp], 20
	mov	DWORD PTR -12[rbp], 5
	mov	DWORD PTR -52[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	ecx, DWORD PTR -48[rbp+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -52[rbp], 1
.L6:
	cmp	DWORD PTR -52[rbp], 9
	jle	.L7
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 4004[rax], 10
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init_list, .-init_list
	.globl	bubble_sort
	.type	bubble_sort, @function
bubble_sort:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 1
	jmp	.L10
.L14:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	ecx, eax
	jle	.L12
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
.L12:
	add	DWORD PTR -4[rbp], 1
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4004[rax]
	sub	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L13
	add	DWORD PTR -8[rbp], 1
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4004[rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L14
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	bubble_sort, .-bubble_sort
	.globl	bubble_sort_optimize
	.type	bubble_sort_optimize, @function
bubble_sort_optimize:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -12[rbp], 1
	jmp	.L16
.L21:
	mov	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -8[rbp], 1
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	ecx, eax
	jle	.L18
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
.L18:
	add	DWORD PTR -8[rbp], 1
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4004[rax]
	sub	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L19
	add	DWORD PTR -12[rbp], 1
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4004[rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L22
	cmp	DWORD PTR -4[rbp], 0
	je	.L21
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	bubble_sort_optimize, .-bubble_sort_optimize
	.globl	bubble_sort_ultimate
	.type	bubble_sort_ultimate, @function
bubble_sort_ultimate:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L24
.L28:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L25
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	ecx, eax
	jle	.L26
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
.L26:
	add	DWORD PTR -8[rbp], 1
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4004[rax]
	sub	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L27
	add	DWORD PTR -12[rbp], 1
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4004[rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L28
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	bubble_sort_ultimate, .-bubble_sort_ultimate
	.section	.rodata
.LC2:
	.string	"\345\210\235\345\247\213\345\214\226list"
.LC3:
	.string	"after bubble sort:"
.LC4:
	.string	"after bubble_sort_optimize:"
.LC5:
	.string	"after bubble_sort_ultimate:"
	.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
	sub	rsp, 4032
	mov	DWORD PTR -4020[rbp], edi
	mov	QWORD PTR -4032[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -4016[rbp]
	mov	rdi, rax
	call	init_list
	sub	rsp, 8
	sub	rsp, 4008
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -4016[rbp]
	mov	edx, 501
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	call	print_list
	add	rsp, 4016
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -4016[rbp]
	mov	rdi, rax
	call	bubble_sort
	sub	rsp, 8
	sub	rsp, 4008
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -4016[rbp]
	mov	edx, 501
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	call	print_list
	add	rsp, 4016
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -4016[rbp]
	mov	rdi, rax
	call	init_list
	sub	rsp, 8
	sub	rsp, 4008
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -4016[rbp]
	mov	edx, 501
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	call	print_list
	add	rsp, 4016
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -4016[rbp]
	mov	rdi, rax
	call	bubble_sort_optimize
	sub	rsp, 8
	sub	rsp, 4008
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -4016[rbp]
	mov	edx, 501
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	call	print_list
	add	rsp, 4016
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -4016[rbp]
	mov	rdi, rax
	call	init_list
	sub	rsp, 8
	sub	rsp, 4008
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -4016[rbp]
	mov	edx, 501
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	call	print_list
	add	rsp, 4016
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -4016[rbp]
	mov	rdi, rax
	call	bubble_sort_ultimate
	sub	rsp, 8
	sub	rsp, 4008
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -4016[rbp]
	mov	edx, 501
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	call	print_list
	add	rsp, 4016
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	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	"215767963.c"
	.text
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\011\000"
	.align	2
.LC2:
	.ascii	"\000"
	.text
	.align	2
	.global	print_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_list, %function
print_list:
	@ args = 4008, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L5
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #4008]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L4
	ldr	r0, .L5+4
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	.LC2
	.size	print_list, .-print_list
	.section	.rodata
	.align	2
.LC0:
	.word	50
	.word	10
	.word	90
	.word	30
	.word	70
	.word	40
	.word	80
	.word	60
	.word	20
	.word	5
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_list, %function
init_list:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	sub	ip, fp, #48
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L8
.L9:
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-44]
	ldr	r3, [fp, #-56]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L8:
	ldr	r3, [fp, #-52]
	cmp	r3, #9
	ble	.L9
	ldr	r3, [fp, #-56]
	mov	r2, #10
	str	r2, [r3, #4004]
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC0
	.size	init_list, .-init_list
	.align	2
	.global	bubble_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	bubble_sort, %function
bubble_sort:
	@ 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	r3, #1
	str	r3, [fp, #-12]
	b	.L14
.L18:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L15
.L17:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, r3
	ble	.L16
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	swap
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4004]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L17
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4004]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L18
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	bubble_sort, .-bubble_sort
	.align	2
	.global	bubble_sort_optimize
	.syntax unified
	.arm
	.fpu softvfp
	.type	bubble_sort_optimize, %function
bubble_sort_optimize:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L20
.L25:
	mov	r3, #1
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L21
.L23:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, r3
	ble	.L22
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	swap
.L22:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4004]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4004]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L26
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L25
.L26:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	bubble_sort_optimize, .-bubble_sort_optimize
	.align	2
	.global	bubble_sort_ultimate
	.syntax unified
	.arm
	.fpu softvfp
	.type	bubble_sort_ultimate, %function
bubble_sort_ultimate:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	b	.L28
.L32:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L29
.L31:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, r3
	ble	.L30
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	swap
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L29:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4004]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L31
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4004]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L32
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	bubble_sort_ultimate, .-bubble_sort_ultimate
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\345\210\235\345\247\213\345\214\226list\000"
	.align	2
.LC5:
	.ascii	"after bubble sort:\000"
	.align	2
.LC6:
	.ascii	"after bubble_sort_optimize:\000"
	.align	2
.LC7:
	.ascii	"after bubble_sort_ultimate:\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8000
	sub	sp, sp, #16
	str	r0, [fp, #-4024]
	str	r1, [fp, #-4028]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L36+4
	bl	puts
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	init_list
	mov	r0, sp
	sub	r3, fp, #3984
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L36+8
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2, r3}
	bl	print_list
	ldr	r0, .L36+12
	bl	puts
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	bubble_sort
	mov	r0, sp
	sub	r3, fp, #3984
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L36+8
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2, r3}
	bl	print_list
	ldr	r0, .L36+4
	bl	puts
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	init_list
	mov	r0, sp
	sub	r3, fp, #3984
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L36+8
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2, r3}
	bl	print_list
	ldr	r0, .L36+16
	bl	puts
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	bubble_sort_optimize
	mov	r0, sp
	sub	r3, fp, #3984
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L36+8
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2, r3}
	bl	print_list
	ldr	r0, .L36+4
	bl	puts
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	init_list
	mov	r0, sp
	sub	r3, fp, #3984
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L36+8
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2, r3}
	bl	print_list
	ldr	r0, .L36+20
	bl	puts
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	bubble_sort_ultimate
	mov	r0, sp
	sub	r3, fp, #3984
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L36+8
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2, r3}
	bl	print_list
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC8
	.word	.LC4
	.word	3992
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
