	.file	"73576089.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Recursling #%d...  stack rlimit soft limit: %d hard limit: %d\n"
	.text
	.globl	fiddleStack
	.type	fiddleStack, @function
fiddleStack:
.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	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	je	.L6
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	getrlimit@PLT
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	mov	edi, edx
	call	fiddleStack
	jmp	.L1
.L6:
	nop
.L1:
	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	fiddleStack, .-fiddleStack
	.section	.rodata
	.align 8
.LC1:
	.string	"Resource %d: softlim: %u hardlim: %u\n"
.LC2:
	.string	"Error: %s\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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -300[rbp], 0
	jmp	.L8
.L9:
	lea	rdx, -272[rbp]
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	mov	eax, DWORD PTR -300[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	getrlimit@PLT
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 264
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 272
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -300[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -300[rbp], 1
.L8:
	cmp	DWORD PTR -300[rbp], 15
	jle	.L9
	mov	QWORD PTR -288[rbp], 10
	mov	QWORD PTR -280[rbp], 20
	lea	rax, -288[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	setrlimit@PLT
	mov	esi, 100
	mov	edi, 0
	call	fiddleStack
	lea	rax, -288[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	setrlimit@PLT
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -300[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	edi, 1000000
	call	malloc@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"73576089.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Recursling #%d...  stack rlimit soft limit: %d hard"
	.ascii	" limit: %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fiddleStack
	.syntax unified
	.arm
	.fpu softvfp
	.type	fiddleStack, %function
fiddleStack:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L6
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #3
	bl	getrlimit
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	ldr	r0, .L7+4
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	fiddleStack
	b	.L1
.L6:
	nop
.L1:
	ldr	r3, .L7
	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}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC0
	.size	fiddleStack, .-fiddleStack
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Resource %d: softlim: %u hardlim: %u\012\000"
	.align	2
.LC3:
	.ascii	"Error: %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L10
.L11:
	sub	r2, fp, #136
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	getrlimit
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-128]
	ldr	r1, [fp, #-152]
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L10:
	ldr	r3, [fp, #-152]
	cmp	r3, #15
	ble	.L11
	mov	r3, #10
	str	r3, [fp, #-144]
	mov	r3, #20
	str	r3, [fp, #-140]
	sub	r3, fp, #144
	mov	r1, r3
	mov	r0, #3
	bl	setrlimit
	mov	r1, #100
	mov	r0, #0
	bl	fiddleStack
	sub	r3, fp, #144
	mov	r1, r3
	mov	r0, #2
	bl	setrlimit
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r0, [fp, #-152]
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
.L12:
	ldr	r0, .L15+12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-148]
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.word	1000000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
