	.file	"165765384.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	__gName, @object
	.size	__gName, 4
__gName:
	.long	8
	.section	.rodata
.LC0:
	.string	"const p=%p\n"
.LC1:
	.string	"open  p=%p\n"
	.section	.data.rel,"aw"
	.align 32
	.type	memInfoList, @object
	.size	memInfoList, 96
memInfoList:
	.quad	.LC0
	.quad	__gName
	.quad	.LC1
	.quad	open
	.zero	64
	.text
	.globl	compare_mem_info_t
	.type	compare_mem_info_t, @function
compare_mem_info_t:
.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]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jnb	.L4
	mov	eax, -1
	jmp	.L3
.L4:
	mov	eax, 1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_mem_info_t, .-compare_mem_info_t
	.globl	set_mem_info_t
	.type	set_mem_info_t, @function
set_mem_info_t:
.LFB7:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_mem_info_t, .-set_mem_info_t
	.section	.rodata
.LC2:
	.string	"  const  p=%p\n"
.LC3:
	.string	"  fun    p=%p\n"
.LC4:
	.string	"  mem    p=%p\n"
.LC5:
	.string	"  open   p=%p\n"
.LC6:
	.string	"  stack x0=%p\n"
.LC7:
	.string	"  stack x1=%p\n"
	.align 8
.LC8:
	.string	"the memory layout sorted by p address is below"
	.align 8
.LC9:
	.string	"RLIMIT_STACK soft=%zu, hard=%zu, rlim_infinity=%zu, sizeof=%zu\n"
	.align 8
.LC10:
	.string	"sizeof(int)=%zu sizeof(long)=%zu, sizoef(long long)=%zu\n"
	.text
	.globl	fun
	.type	fun, @function
fun:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 99
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	lea	rax, memInfoList[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, __gName[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	set_mem_info_t
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 16
	lea	rdx, fun[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	set_mem_info_t
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 32[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	rdi, rcx
	call	set_mem_info_t
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 48[rax]
	mov	rax, QWORD PTR open@GOTPCREL[rip]
	mov	rdx, rax
	lea	rsi, .LC5[rip]
	mov	rdi, rcx
	call	set_mem_info_t
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 64[rax]
	lea	rax, -56[rbp]
	mov	rdx, rax
	lea	rsi, .LC6[rip]
	mov	rdi, rcx
	call	set_mem_info_t
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 80[rax]
	lea	rax, -52[rbp]
	mov	rdx, rax
	lea	rsi, .LC7[rip]
	mov	rdi, rcx
	call	set_mem_info_t
	lea	rcx, compare_mem_info_t[rip]
	mov	edx, 16
	mov	esi, 6
	lea	rdi, memInfoList[rip]
	call	qsort@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	DWORD PTR -56[rbp], eax
.L8:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 5
	jbe	.L9
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	getrlimit@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8d, 8
	mov	rcx, -1
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, 8
	mov	edx, 8
	mov	esi, 4
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fun, .-fun
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	fun
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"165765384.c"
	.text
	.data
	.align	2
	.type	__gName, %object
	.size	__gName, 4
__gName:
	.word	8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"const p=%p\012\000"
	.align	2
.LC1:
	.ascii	"open  p=%p\012\000"
	.data
	.align	2
	.type	memInfoList, %object
	.size	memInfoList, 48
memInfoList:
	.word	.LC0
	.word	__gName
	.word	.LC1
	.word	open
	.space	32
	.text
	.align	2
	.global	compare_mem_info_t
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_mem_info_t, %function
compare_mem_info_t:
	@ 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]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bcs	.L4
	mvn	r3, #0
	b	.L3
.L4:
	mov	r3, #1
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compare_mem_info_t, .-compare_mem_info_t
	.align	2
	.global	set_mem_info_t
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_mem_info_t, %function
set_mem_info_t:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_mem_info_t, .-set_mem_info_t
	.section	.rodata
	.align	2
.LC2:
	.ascii	"  const  p=%p\012\000"
	.align	2
.LC3:
	.ascii	"  fun    p=%p\012\000"
	.align	2
.LC4:
	.ascii	"  mem    p=%p\012\000"
	.align	2
.LC5:
	.ascii	"  open   p=%p\012\000"
	.align	2
.LC6:
	.ascii	"  stack x0=%p\012\000"
	.align	2
.LC7:
	.ascii	"  stack x1=%p\012\000"
	.align	2
.LC8:
	.ascii	"the memory layout sorted by p address is below\000"
	.align	2
.LC9:
	.ascii	"RLIMIT_STACK soft=%zu, hard=%zu, rlim_infinity=%zu,"
	.ascii	" sizeof=%zu\012\000"
	.align	2
.LC10:
	.ascii	"sizeof(int)=%zu sizeof(long)=%zu, sizoef(long long)"
	.ascii	"=%zu\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fun
	.syntax unified
	.arm
	.fpu softvfp
	.type	fun, %function
fun:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #99
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, .L11+4
	str	r3, [fp, #-20]
	ldr	r2, .L11+8
	ldr	r1, .L11+12
	ldr	r0, [fp, #-20]
	bl	set_mem_info_t
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r2, .L11+16
	ldr	r1, .L11+20
	mov	r0, r3
	bl	set_mem_info_t
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	ldr	r2, [fp, #-24]
	ldr	r1, .L11+24
	mov	r0, r3
	bl	set_mem_info_t
	ldr	r3, [fp, #-20]
	add	r3, r3, #24
	ldr	r2, .L11+28
	ldr	r1, .L11+32
	mov	r0, r3
	bl	set_mem_info_t
	ldr	r3, [fp, #-20]
	add	r3, r3, #32
	sub	r2, fp, #32
	ldr	r1, .L11+36
	mov	r0, r3
	bl	set_mem_info_t
	ldr	r3, [fp, #-20]
	add	r3, r3, #40
	sub	r2, fp, #28
	ldr	r1, .L11+40
	mov	r0, r3
	bl	set_mem_info_t
	ldr	r3, .L11+44
	mov	r2, #8
	mov	r1, #6
	ldr	r0, .L11+4
	bl	qsort
	ldr	r0, .L11+48
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L8
.L9:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L8:
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	bls	.L9
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #3
	bl	getrlimit
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r3, #4
	str	r3, [sp]
	mvn	r3, #0
	ldr	r0, .L11+52
	bl	printf
	mov	r3, #8
	mov	r2, #4
	mov	r1, #4
	ldr	r0, .L11+56
	bl	printf
	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	.LC11
	.word	memInfoList
	.word	__gName
	.word	.LC2
	.word	fun
	.word	.LC3
	.word	.LC4
	.word	open
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	compare_mem_info_t
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	fun, .-fun
	.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
	bl	fun
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
