	.file	"145011.c"
	.intel_syntax noprefix
	.text
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB0:
	.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
	cmp	QWORD PTR -24[rbp], 0
	je	.L7
	cmp	DWORD PTR -28[rbp], 0
	js	.L8
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -12[rbp], 1
	sub	DWORD PTR -8[rbp], 1
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L6
	jmp	.L1
.L7:
	nop
	jmp	.L1
.L8:
	nop
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	reverse, .-reverse
	.section	.rodata
.LC0:
	.string	"the_stack_data/145011.c"
	.align 8
.LC1:
	.string	"memcmp(array_test_2, array_expect_2, sizeof(array_test_2)) == 0"
	.align 8
.LC2:
	.string	"memcmp(array_test_3, array_expect_3, sizeof(array_test_3)) == 0"
	.align 8
.LC3:
	.string	"memcmp(array_test_5, array_expect_5, sizeof(array_test_5)) == 0"
	.align 8
.LC4:
	.string	"memcmp(array_test_6, array_expect_6, sizeof(array_test_6)) == 0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -224[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	reverse
	mov	DWORD PTR -216[rbp], 1
	mov	DWORD PTR -212[rbp], 4
	mov	DWORD PTR -208[rbp], 5
	mov	DWORD PTR -204[rbp], 5
	mov	DWORD PTR -200[rbp], 4
	mov	DWORD PTR -196[rbp], 1
	lea	rax, -216[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	reverse
	lea	rcx, -204[rbp]
	lea	rax, -216[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 74
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L10:
	mov	DWORD PTR -192[rbp], 1
	mov	DWORD PTR -188[rbp], 4
	mov	DWORD PTR -184[rbp], 5
	mov	DWORD PTR -180[rbp], 9
	mov	DWORD PTR -176[rbp], 2
	mov	DWORD PTR -172[rbp], 4
	mov	DWORD PTR -160[rbp], 4
	mov	DWORD PTR -156[rbp], 2
	mov	DWORD PTR -152[rbp], 9
	mov	DWORD PTR -148[rbp], 5
	mov	DWORD PTR -144[rbp], 4
	mov	DWORD PTR -140[rbp], 1
	lea	rax, -192[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	reverse
	lea	rcx, -160[rbp]
	lea	rax, -192[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 83
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L11:
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	rax, QWORD PTR -240[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	reverse
	mov	DWORD PTR -128[rbp], 1
	mov	DWORD PTR -124[rbp], 4
	mov	DWORD PTR -120[rbp], 5
	mov	DWORD PTR -116[rbp], 9
	mov	DWORD PTR -112[rbp], 2
	mov	DWORD PTR -108[rbp], 4
	mov	DWORD PTR -96[rbp], 1
	mov	DWORD PTR -92[rbp], 4
	mov	DWORD PTR -88[rbp], 5
	mov	DWORD PTR -84[rbp], 9
	mov	DWORD PTR -80[rbp], 2
	mov	DWORD PTR -76[rbp], 4
	lea	rax, -128[rbp]
	mov	esi, -6
	mov	rdi, rax
	call	reverse
	lea	rcx, -96[rbp]
	lea	rax, -128[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 101
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L12:
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 4
	mov	DWORD PTR -56[rbp], 5
	mov	DWORD PTR -52[rbp], 9
	mov	DWORD PTR -48[rbp], 2
	mov	DWORD PTR -44[rbp], 4
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -28[rbp], 4
	mov	DWORD PTR -24[rbp], 5
	mov	DWORD PTR -20[rbp], 9
	mov	DWORD PTR -16[rbp], 2
	mov	DWORD PTR -12[rbp], 4
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	reverse
	lea	rcx, -32[rbp]
	lea	rax, -64[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 110
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L13:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"145011.c"
	.text
	.align	2
	.global	reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse, %function
reverse:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L5
.L6:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L6
	b	.L1
.L7:
	nop
	b	.L1
.L8:
	nop
.L1:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	reverse, .-reverse
	.section	.rodata
	.align	2
.LC4:
	.ascii	"the_stack_data/145011.c\000"
	.align	2
.LC5:
	.ascii	"memcmp(array_test_2, array_expect_2, sizeof(array_t"
	.ascii	"est_2)) == 0\000"
	.align	2
.LC6:
	.ascii	"memcmp(array_test_3, array_expect_3, sizeof(array_t"
	.ascii	"est_3)) == 0\000"
	.align	2
.LC7:
	.ascii	"memcmp(array_test_5, array_expect_5, sizeof(array_t"
	.ascii	"est_5)) == 0\000"
	.align	2
.LC8:
	.ascii	"memcmp(array_test_6, array_expect_6, sizeof(array_t"
	.ascii	"est_6)) == 0\000"
	.align	2
.LC0:
	.word	1
	.word	4
	.word	5
	.align	2
.LC1:
	.word	5
	.word	4
	.word	1
	.align	2
.LC2:
	.word	1
	.word	4
	.word	5
	.word	9
	.word	2
	.word	4
	.align	2
.LC3:
	.word	4
	.word	2
	.word	9
	.word	5
	.word	4
	.word	1
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #184
	mov	r1, #0
	mov	r0, r3
	bl	reverse
	ldr	r2, .L16+4
	sub	r3, fp, #176
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	ldr	r2, .L16+8
	sub	r3, fp, #164
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #176
	mov	r1, #3
	mov	r0, r3
	bl	reverse
	sub	r1, fp, #164
	sub	r3, fp, #176
	mov	r2, #12
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L16+12
	mov	r2, #74
	ldr	r1, .L16+16
	ldr	r0, .L16+20
	bl	__assert_fail
.L10:
	ldr	r3, .L16+24
	sub	ip, fp, #152
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, .L16+28
	sub	ip, fp, #128
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #152
	mov	r1, #6
	mov	r0, r3
	bl	reverse
	sub	r1, fp, #128
	sub	r3, fp, #152
	mov	r2, #24
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L16+12
	mov	r2, #83
	ldr	r1, .L16+16
	ldr	r0, .L16+32
	bl	__assert_fail
.L11:
	mov	r3, #0
	str	r3, [fp, #-192]
	mov	r3, #0
	str	r3, [fp, #-188]
	mov	r1, #1
	ldr	r0, [fp, #-192]
	bl	reverse
	ldr	r3, .L16+24
	sub	ip, fp, #104
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, .L16+24
	sub	ip, fp, #80
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #104
	mvn	r1, #5
	mov	r0, r3
	bl	reverse
	sub	r1, fp, #80
	sub	r3, fp, #104
	mov	r2, #24
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L16+12
	mov	r2, #101
	ldr	r1, .L16+16
	ldr	r0, .L16+36
	bl	__assert_fail
.L12:
	ldr	r3, .L16+24
	sub	ip, fp, #56
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, .L16+24
	sub	ip, fp, #32
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #56
	mov	r1, #0
	mov	r0, r3
	bl	reverse
	sub	r1, fp, #32
	sub	r3, fp, #56
	mov	r2, #24
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L16+12
	mov	r2, #110
	ldr	r1, .L16+16
	ldr	r0, .L16+40
	bl	__assert_fail
.L13:
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	__PRETTY_FUNCTION__.4806
	.word	.LC4
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4806, %object
	.size	__PRETTY_FUNCTION__.4806, 5
__PRETTY_FUNCTION__.4806:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
