	.file	"325780.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	swap, .-swap
	.globl	findIndex
	.type	findIndex, @function
findIndex:
.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	eax, esi
	mov	BYTE PTR -28[rbp], al
	cmp	BYTE PTR -28[rbp], 1
	jne	.L3
	mov	eax, 0
	jmp	.L4
.L3:
	movzx	eax, BYTE PTR -28[rbp]
	sub	eax, 1
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	findIndex
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	movzx	ecx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jge	.L5
	movzx	eax, BYTE PTR -28[rbp]
	sub	eax, 1
	mov	BYTE PTR -1[rbp], al
.L5:
	movzx	eax, BYTE PTR -1[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	findIndex, .-findIndex
	.globl	selectionSort
	.type	selectionSort, @function
selectionSort:
.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	eax, esi
	mov	BYTE PTR -28[rbp], al
	cmp	BYTE PTR -28[rbp], 1
	jbe	.L10
	movzx	edx, BYTE PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	findIndex
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 0
	je	.L9
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
.L9:
	movzx	eax, BYTE PTR -28[rbp]
	sub	eax, 1
	movzx	eax, al
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 1
	mov	esi, eax
	mov	rdi, rdx
	call	selectionSort
	jmp	.L6
.L10:
	nop
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	selectionSort, .-selectionSort
	.section	.rodata
.LC0:
	.string	"the_stack_data/325780.c"
.LC1:
	.string	"arr[i] <= arr[i + 1]"
	.text
	.type	test, @function
test:
.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, 16
	mov	BYTE PTR -9[rbp], 10
	movzx	eax, BYTE PTR -9[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	BYTE PTR -11[rbp], 0
	jmp	.L12
.L13:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	movzx	ecx, BYTE PTR -11[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -11[rbp]
	add	eax, 1
	mov	BYTE PTR -11[rbp], al
.L12:
	movzx	eax, BYTE PTR -11[rbp]
	cmp	al, BYTE PTR -9[rbp]
	jb	.L13
	movzx	edx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	selectionSort
	mov	BYTE PTR -10[rbp], 0
	jmp	.L14
.L16:
	movzx	edx, BYTE PTR -10[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	movzx	eax, BYTE PTR -10[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jle	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 92
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L15:
	add	BYTE PTR -10[rbp], 1
.L14:
	movzx	eax, BYTE PTR -10[rbp]
	movzx	edx, BYTE PTR -9[rbp]
	sub	edx, 1
	cmp	eax, edx
	jl	.L16
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	test, .-test
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	test
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"test"
	.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	"325780.c"
	.text
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ 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, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-20]
	ldrsb	r2, [r3]
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.align	2
	.global	findIndex
	.syntax unified
	.arm
	.fpu softvfp
	.type	findIndex, %function
findIndex:
	@ 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, r1
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L3
	mov	r3, #0
	b	.L4
.L3:
	ldrb	r3, [fp, #-17]
	sub	r3, r3, #1
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	findIndex
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrsb	r2, [r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrsb	r3, [r3]
	cmp	r2, r3
	bge	.L5
	ldrb	r3, [fp, #-17]
	sub	r3, r3, #1
	strb	r3, [fp, #-5]
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	findIndex, .-findIndex
	.align	2
	.global	selectionSort
	.syntax unified
	.arm
	.fpu softvfp
	.type	selectionSort, %function
selectionSort:
	@ 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, r1
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L10
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	findIndex
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	swap
.L9:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldrb	r3, [fp, #-17]
	sub	r3, r3, #1
	and	r3, r3, #255
	mov	r1, r3
	mov	r0, r2
	bl	selectionSort
	b	.L6
.L10:
	nop
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	selectionSort, .-selectionSort
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/325780.c\000"
	.align	2
.LC1:
	.ascii	"arr[i] <= arr[i + 1]\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #10
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-11]
	b	.L12
.L13:
	bl	rand
	mov	r1, r0
	ldr	r3, .L17
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	lsl	r2, r2, #24
	asr	r2, r2, #24
	strb	r2, [r3]
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-11]
.L12:
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L13
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	selectionSort
	mov	r3, #0
	strb	r3, [fp, #-10]
	b	.L14
.L16:
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrsb	r2, [r3]
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	add	r3, r3, #1
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldrsb	r3, [r3]
	cmp	r2, r3
	ble	.L15
	ldr	r3, .L17+4
	mov	r2, #92
	ldr	r1, .L17+8
	ldr	r0, .L17+12
	bl	__assert_fail
.L15:
	ldrb	r3, [fp, #-10]
	add	r3, r3, #1
	strb	r3, [fp, #-10]
.L14:
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	sub	r3, r3, #1
	cmp	r2, r3
	blt	.L16
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	1374389535
	.word	__PRETTY_FUNCTION__.5321
	.word	.LC0
	.word	.LC1
	.size	test, .-test
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	test
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5321, %object
	.size	__PRETTY_FUNCTION__.5321, 5
__PRETTY_FUNCTION__.5321:
	.ascii	"test\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
