	.file	"303538.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"couldn't allocate more memory while recursing"
.LC1:
	.string	"a(%p)\n"
	.text
	.globl	a
	.type	a, @function
a:
.LFB6:
	.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	edi, 16384
	call	sbrk@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	sched_yield@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	a
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	a, .-a
	.section	.rodata
.LC2:
	.string	"Usage: %s mem_incr [totmem]\n"
	.align 8
.LC3:
	.string	"mem_incr is larger than totmem."
.LC4:
	.string	"totmem is too large."
	.align 8
.LC5:
	.string	"couldn't calloc %lu, pass %lu, %lu allocated: %s\n"
	.align 8
.LC6:
	.string	"calloc'ed (%lx) bytes at %p, tot %lu\n"
	.align 8
.LC7:
	.string	"alloc'ed %lu (%lx) bytes total\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 112
	mov	DWORD PTR -65636[rbp], edi
	mov	QWORD PTR -65648[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 68719476736
	mov	QWORD PTR -65584[rbp], rax
	mov	DWORD PTR -65620[rbp], 0
	cmp	DWORD PTR -65636[rbp], 1
	jle	.L4
	mov	rax, QWORD PTR -65648[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -65576[rbp], rax
	cmp	QWORD PTR -65576[rbp], 0
	jne	.L5
.L4:
	mov	rax, QWORD PTR -65648[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L19
.L5:
	cmp	DWORD PTR -65636[rbp], 3
	jne	.L7
	mov	rax, QWORD PTR -65648[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -65584[rbp], rax
	cmp	QWORD PTR -65584[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -65648[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L19
.L7:
	mov	rax, QWORD PTR -65576[rbp]
	cmp	rax, QWORD PTR -65584[rbp]
	jbe	.L8
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L19
.L8:
	movabs	rax, 17592186044416
	cmp	QWORD PTR -65584[rbp], rax
	jbe	.L9
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L19
.L9:
	call	getpagesize@PLT
	cdqe
	mov	QWORD PTR -65568[rbp], rax
	mov	QWORD PTR -65600[rbp], 0
	mov	rax, QWORD PTR -65600[rbp]
	mov	QWORD PTR -65592[rbp], rax
	jmp	.L10
.L18:
	mov	rax, QWORD PTR -65576[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -65560[rbp], rax
	cmp	QWORD PTR -65560[rbp], 0
	jne	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, QWORD PTR -65592[rbp]
	mov	rcx, QWORD PTR -65600[rbp]
	mov	rdx, QWORD PTR -65576[rbp]
	mov	r9, rsi
	mov	r8, rdi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L12
.L11:
	cmp	DWORD PTR -65620[rbp], 0
	je	.L13
	mov	rcx, QWORD PTR -65592[rbp]
	mov	rdx, QWORD PTR -65560[rbp]
	mov	rax, QWORD PTR -65576[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	rdx, QWORD PTR -65576[rbp]
	mov	rax, QWORD PTR -65568[rbp]
	add	rax, rdx
	sub	rax, 1
	mov	edx, 0
	div	QWORD PTR -65568[rbp]
	mov	QWORD PTR -65608[rbp], rax
	mov	rax, QWORD PTR -65568[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -65560[rbp]
	and	rax, rdx
	test	rax, rax
	je	.L14
	add	QWORD PTR -65608[rbp], 1
.L14:
	mov	rax, QWORD PTR -65568[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -65560[rbp]
	and	rax, rdx
	test	rax, rax
	je	.L15
	sub	QWORD PTR -65608[rbp], 1
.L15:
	mov	QWORD PTR -65616[rbp], 0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -65616[rbp]
	imul	rax, QWORD PTR -65568[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -65560[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -65616[rbp]
	imul	rax, QWORD PTR -65568[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -65560[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -65568[rbp]
	mov	rdx, rax
	mov	esi, 165
	mov	rdi, rcx
	call	memset@PLT
	call	sched_yield@PLT
	add	QWORD PTR -65616[rbp], 1
.L16:
	mov	rax, QWORD PTR -65616[rbp]
	cmp	rax, QWORD PTR -65608[rbp]
	jb	.L17
	add	QWORD PTR -65600[rbp], 1
	mov	rax, QWORD PTR -65576[rbp]
	add	QWORD PTR -65592[rbp], rax
.L10:
	mov	rax, QWORD PTR -65592[rbp]
	cmp	rax, QWORD PTR -65584[rbp]
	jb	.L18
.L12:
	mov	rdx, QWORD PTR -65592[rbp]
	mov	rax, QWORD PTR -65592[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"303538.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"couldn't allocate more memory while recursing\000"
	.align	2
.LC1:
	.ascii	"a(%p)\012\000"
	.text
	.align	2
	.global	a
	.syntax unified
	.arm
	.fpu softvfp
	.type	a, %function
a:
	@ 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	r0, #16384
	bl	sbrk
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L3
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r1, [fp, #-16]
	ldr	r0, .L3+4
	bl	printf
	bl	sched_yield
	ldr	r0, [fp, #-8]
	bl	a
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.size	a, .-a
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage: %s mem_incr [totmem]\012\000"
	.align	2
.LC3:
	.ascii	"mem_incr is larger than totmem.\000"
	.align	2
.LC4:
	.ascii	"totmem is too large.\000"
	.align	2
.LC5:
	.ascii	"couldn't calloc %lu, pass %lu, %lu allocated: %s\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"calloc'ed (%lx) bytes at %p, tot %lu\012\000"
	.global	__aeabi_uidiv
	.align	2
.LC7:
	.ascii	"alloc'ed %lu (%lx) bytes total\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 65600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #65536
	sub	sp, sp, #84
	sub	r3, fp, #65536
	sub	r3, r3, #20
	str	r0, [r3, #-60]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	str	r1, [r3, #-64]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	mov	r3, #16
	stm	r1, {r2-r3}
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	cmp	r3, #1
	ble	.L6
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-64]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #20
	mov	r6, r2
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [r6, #-36]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-36]
	cmp	r3, #0
	bne	.L7
.L6:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-64]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+4
	bl	printf
	mov	r3, #1
	b	.L21
.L7:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	cmp	r3, #3
	bne	.L9
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-64]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r2, r0
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L9
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-64]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+4
	bl	printf
	mov	r3, #1
	b	.L21
.L9:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-36]
	mov	r0, r3
	mov	r1, #0
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bcs	.L10
	ldr	r0, .L23+8
	bl	puts
	mov	r3, #1
	b	.L21
.L10:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	cmp	r3, #4096
	cmpeq	r2, #0
	bls	.L11
	ldr	r0, .L23+12
	bl	puts
	mov	r3, #1
	b	.L21
.L11:
	bl	getpagesize
	mov	r3, r0
	sub	r2, fp, #65536
	sub	r2, r2, #20
	str	r3, [r2, #-32]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	b	.L12
.L20:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r6, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r1, #1
	ldr	r0, [r3, #-36]
	bl	calloc
	mov	r3, r0
	str	r3, [r6, #-28]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L23+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	sub	r2, fp, #65536
	sub	r2, r2, #20
	mov	r0, r2
	sub	r2, fp, #65536
	sub	r2, r2, #20
	mov	r1, r2
	str	r3, [sp, #8]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r3, [r0, #-44]
	ldr	r2, [r1, #-36]
	ldr	r1, .L23+20
	mov	r0, r4
	bl	fprintf
	b	.L14
.L13:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r0, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [r0, #-28]
	ldr	r1, [r1, #-36]
	ldr	r0, .L23+24
	bl	printf
.L15:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r2, #-36]
	ldr	r3, [r3, #-32]
	add	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #65536
	sub	r2, r2, #20
	mov	r6, r2
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r1, [r2, #-32]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [r6, #-48]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-32]
	sub	r2, r3, #1
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-28]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	str	r3, [r2, #-48]
.L16:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-32]
	sub	r2, r3, #1
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-28]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-48]
	sub	r3, r3, #1
	str	r3, [r2, #-48]
.L17:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-52]
	b	.L18
.L19:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r3, [r3, #-52]
	ldr	r2, [r2, #-32]
	mul	r3, r2, r3
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r2, [r2, #-28]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r3, [r3, #-52]
	ldr	r2, [r2, #-32]
	mul	r3, r2, r3
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r2, [r2, #-28]
	add	r3, r2, r3
	sub	r2, fp, #65536
	sub	r2, r2, #20
	ldr	r2, [r2, #-32]
	mov	r1, #165
	mov	r0, r3
	bl	memset
	bl	sched_yield
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-52]
	add	r3, r3, #1
	str	r3, [r2, #-52]
.L18:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r2, [r2, #-52]
	ldr	r3, [r3, #-48]
	cmp	r2, r3
	bcc	.L19
	sub	r3, fp, #65536
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	str	r3, [r2, #-44]
	sub	r3, fp, #65536
	sub	r3, r3, #20
	ldr	r3, [r3, #-36]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #65536
	sub	r1, r1, #20
	sub	r1, r1, #16
	mov	ip, r1
	sub	r1, fp, #65536
	sub	r1, r1, #20
	sub	r1, r1, #16
	ldmdb	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	stmdb	ip, {r4-r5}
.L12:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmdb	r2, {r0-r1}
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L20
.L14:
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #20
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldmdb	r1, {r2-r3}
	ldr	r0, .L23+28
	bl	printf
	mov	r3, #0
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC8
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
