	.file	"994087.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"getpagesize(): %d\n"
.LC1:
	.string	"sysconf(_SC_PAGESIZE): %ld\n"
.LC2:
	.string	"the_stack_data/994087.c"
.LC3:
	.string	"getpagesize() == 65536"
	.align 8
.LC4:
	.string	"sysconf(_SC_PAGESIZE) == 65536"
.LC5:
	.string	"map != MAP_FAILED"
.LC6:
	.string	"((int)map) % 65536 == 0"
.LC7:
	.string	"munmap(map, 5000) == 0"
.LC8:
	.string	"map[i] == i"
.LC9:
	.string	"munmap(map, NUM_BYTES) == 0"
.LC10:
	.string	"hello,world"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	call	getpagesize@PLT
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 30
	call	sysconf@PLT
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	getpagesize@PLT
	cmp	eax, 65536
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 17
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L2:
	mov	edi, 30
	call	sysconf@PLT
	cmp	rax, 65536
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 18
	lea	rsi, .LC2[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L3:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L4
.L8:
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 33
	mov	edx, 3
	mov	esi, 5000
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 23
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, ax
	test	eax, eax
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 24
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 5000
	mov	rdi, rax
	call	munmap@PLT
	test	eax, eax
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 25
	lea	rsi, .LC2[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L7:
	add	DWORD PTR -32[rbp], 1
.L4:
	cmp	DWORD PTR -32[rbp], 9
	jle	.L8
	mov	DWORD PTR -24[rbp], 8388608
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	shr	rax, 2
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 33
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 33
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L9:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -28[rbp], 1
.L10:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L11
	mov	DWORD PTR -28[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 42
	lea	rsi, .LC2[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L13:
	add	DWORD PTR -28[rbp], 1
.L12:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L14
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	test	eax, eax
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 45
	lea	rsi, .LC2[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L15:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"994087.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"getpagesize(): %d\012\000"
	.align	2
.LC1:
	.ascii	"sysconf(_SC_PAGESIZE): %ld\012\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/994087.c\000"
	.align	2
.LC3:
	.ascii	"getpagesize() == 65536\000"
	.align	2
.LC4:
	.ascii	"sysconf(_SC_PAGESIZE) == 65536\000"
	.align	2
.LC5:
	.ascii	"map != MAP_FAILED\000"
	.align	2
.LC6:
	.ascii	"((int)map) % 65536 == 0\000"
	.align	2
.LC7:
	.ascii	"munmap(map, 5000) == 0\000"
	.align	2
.LC8:
	.ascii	"map[i] == i\000"
	.align	2
.LC9:
	.ascii	"munmap(map, NUM_BYTES) == 0\000"
	.align	2
.LC10:
	.ascii	"hello,world\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	bl	getpagesize
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17
	bl	printf
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	bl	getpagesize
	mov	r3, r0
	cmp	r3, #65536
	beq	.L2
	ldr	r3, .L17+8
	mov	r2, #17
	ldr	r1, .L17+12
	ldr	r0, .L17+16
	bl	__assert_fail
.L2:
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	cmp	r3, #65536
	beq	.L3
	ldr	r3, .L17+8
	mov	r2, #18
	ldr	r1, .L17+12
	ldr	r0, .L17+20
	bl	__assert_fail
.L3:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L4
.L8:
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #33
	mov	r2, #3
	ldr	r1, .L17+24
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L17+8
	mov	r2, #23
	ldr	r1, .L17+12
	ldr	r0, .L17+28
	bl	__assert_fail
.L5:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L17+8
	mov	r2, #24
	ldr	r1, .L17+12
	ldr	r0, .L17+32
	bl	__assert_fail
.L6:
	ldr	r1, .L17+24
	ldr	r0, [fp, #-8]
	bl	munmap
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L17+8
	mov	r2, #25
	ldr	r1, .L17+12
	ldr	r0, .L17+36
	bl	__assert_fail
.L7:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L4:
	ldr	r3, [fp, #-28]
	cmp	r3, #9
	ble	.L8
	mov	r3, #8388608
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #33
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L9
	ldr	r3, .L17+8
	mov	r2, #33
	ldr	r1, .L17+12
	ldr	r0, .L17+28
	bl	__assert_fail
.L9:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L10
.L11:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L11
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L12
.L14:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L13
	ldr	r3, .L17+8
	mov	r2, #42
	ldr	r1, .L17+12
	ldr	r0, .L17+40
	bl	__assert_fail
.L13:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L12:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	munmap
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L17+8
	mov	r2, #45
	ldr	r1, .L17+12
	ldr	r0, .L17+44
	bl	__assert_fail
.L15:
	ldr	r0, .L17+48
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	__PRETTY_FUNCTION__.5272
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	5000
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5272, %object
	.size	__PRETTY_FUNCTION__.5272, 5
__PRETTY_FUNCTION__.5272:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
