	.file	"47668.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.globl	consumeHalfPages
	.type	consumeHalfPages, @function
consumeHalfPages:
.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, 2096
	mov	DWORD PTR -2084[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	sub	DWORD PTR -2084[rbp], 1
	cmp	DWORD PTR -2084[rbp], 0
	jle	.L2
	mov	eax, DWORD PTR -2084[rbp]
	mov	edi, eax
	call	consumeHalfPages
.L2:
	mov	DWORD PTR -2068[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -2068[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -2068[rbp]
	cdqe
	mov	BYTE PTR -2064[rbp+rax], dl
	add	DWORD PTR -2068[rbp], 1
.L3:
	mov	eax, DWORD PTR -2068[rbp]
	cmp	eax, 2047
	jbe	.L4
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	consumeHalfPages, .-consumeHalfPages
	.section	.rodata
.LC1:
	.string	"%p %p data 0\n"
	.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, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	lea	rax, -36[rbp]
	mov	QWORD PTR -16[rbp], rax
	call	getpagesize@PLT
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	and	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -24[rbp], rax
.L7:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 3
	mov	rsi, rax
	mov	rdi, rcx
	call	mprotect@PLT
	test	eax, eax
	je	.L8
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 8
	mov	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2560
	call	consumeHalfPages
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"47668.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	consumeHalfPages
	.syntax unified
	.arm
	.fpu softvfp
	.type	consumeHalfPages, %function
consumeHalfPages:
	@ args = 0, pretend = 0, frame = 2064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	str	r0, [fp, #-2064]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-2064]
	sub	r3, r3, #1
	str	r3, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	ble	.L2
	ldr	r0, [fp, #-2064]
	bl	consumeHalfPages
.L2:
	mov	r3, #0
	str	r3, [fp, #-2060]
	b	.L3
.L4:
	ldr	r3, [fp, #-2060]
	and	r1, r3, #255
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2060]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-2060]
	add	r3, r3, #1
	str	r3, [fp, #-2060]
.L3:
	ldr	r3, [fp, #-2060]
	cmp	r3, #2048
	bcc	.L4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L6+4
	bl	printf
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	.LC0
	.size	consumeHalfPages, .-consumeHalfPages
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%p %p data 0\012\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, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	sub	r3, fp, #24
	str	r3, [fp, #-12]
	bl	getpagesize
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	rsb	r2, r3, #0
	ldr	r3, [fp, #-12]
	and	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L9
.L10:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L9:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #3
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	mprotect
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #8
	sub	r3, r1, r3
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L12
	bl	printf
	mov	r0, #2560
	bl	consumeHalfPages
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
