	.file	"275184.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/275184.c"
	.align 8
.LC1:
	.string	"RLIM_INFINITY == rlim.rlim_max || size <= rlim.rlim_max"
.LC2:
	.string	"pid != -1"
.LC3:
	.string	"execvp: "
.LC4:
	.string	"0 && \"exec\""
.LC5:
	.string	"waitpid"
	.text
	.globl	change_stack_size
	.type	change_stack_size, @function
change_stack_size:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	getrlimit@PLT
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, -1
	je	.L2
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -72[rbp], rax
	jbe	.L2
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 21
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR -48[rbp]
	cmp	QWORD PTR -72[rbp], rax
	jbe	.L11
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	setrlimit@PLT
	call	fork@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], -1
	jne	.L5
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 31
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L5:
	cmp	DWORD PTR -56[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC3[rip]
	call	perror@PLT
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 35
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L6:
	lea	rcx, -60[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -60[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -60[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	edi, eax
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -60[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L1
	mov	eax, DWORD PTR -60[rbp]
	and	eax, 127
	mov	ebx, eax
	call	getpid@PLT
	mov	esi, ebx
	mov	edi, eax
	call	kill@PLT
	jmp	.L1
.L11:
	nop
.L1:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	change_stack_size, .-change_stack_size
	.globl	factorial
	.type	factorial, @function
factorial:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L13
	mov	edx, 1
	jmp	.L14
.L13:
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 5675921253449092805
	mov	rax, rcx
	mul	rdx
	mov	rbx, rdx
	shr	rbx, 2
	mov	rax, rbx
	add	rax, rax
	add	rax, rbx
	sal	rax, 2
	add	rax, rbx
	sub	rcx, rax
	mov	rbx, rcx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	mov	rdi, rax
	call	factorial
	mov	rcx, rbx
	imul	rcx, rax
	movabs	rdx, 5675921253449092805
	mov	rax, rcx
	mul	rdx
	shr	rdx, 2
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sub	rcx, rax
	mov	rdx, rcx
.L14:
	mov	rax, rdx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	factorial, .-factorial
	.section	.rodata
.LC6:
	.string	"argc == 2"
.LC7:
	.string	"factorial(%lu) %% 13 == %lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 61
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L16:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoull@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 15625
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	change_stack_size
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	factorial
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 18
__PRETTY_FUNCTION__.1:
	.string	"change_stack_size"
	.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	"275184.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/275184.c\000"
	.align	2
.LC1:
	.ascii	"RLIM_INFINITY == rlim.rlim_max || size <= rlim.rlim"
	.ascii	"_max\000"
	.align	2
.LC2:
	.ascii	"pid != -1\000"
	.align	2
.LC3:
	.ascii	"execvp: \000"
	.align	2
.LC4:
	.ascii	"0 && \"exec\"\000"
	.align	2
.LC5:
	.ascii	"waitpid\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	change_stack_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_stack_size, %function
change_stack_size:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-40]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #3
	bl	getrlimit
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L2
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L2
	ldr	r3, .L12+4
	mov	r2, #21
	ldr	r1, .L12+8
	ldr	r0, .L12+12
	bl	__assert_fail
.L2:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L11
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #3
	bl	setrlimit
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L12+4
	mov	r2, #31
	ldr	r1, .L12+8
	ldr	r0, .L12+16
	bl	__assert_fail
.L5:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	execvp
	ldr	r0, .L12+20
	bl	perror
	ldr	r3, .L12+4
	mov	r2, #35
	ldr	r1, .L12+8
	ldr	r0, .L12+24
	bl	__assert_fail
.L6:
	sub	r3, fp, #28
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	waitpid
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L12+28
	bl	perror
	mvn	r0, #0
	bl	exit
.L7:
	ldr	r3, [fp, #-28]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-28]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r0, r3
	bl	exit
.L8:
	ldr	r3, [fp, #-28]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L1
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-28]
	and	r3, r3, #127
	mov	r1, r3
	mov	r0, r2
	bl	kill
	b	.L1
.L11:
	nop
.L1:
	ldr	r3, .L12
	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}
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	__PRETTY_FUNCTION__.6297
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	change_stack_size, .-change_stack_size
	.global	__aeabi_uldivmod
	.align	2
	.global	factorial
	.syntax unified
	.arm
	.fpu softvfp
	.type	factorial, %function
factorial:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L15
	mov	r2, #1
	mov	r3, #0
	b	.L16
.L15:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, #13
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	subs	r6, r2, #1
	sbc	r7, r3, #0
	mov	r0, r6
	mov	r1, r7
	bl	factorial
	mov	r2, r0
	mov	r3, r1
	mul	r0, r2, r5
	mul	r1, r4, r3
	add	ip, r0, r1
	umull	r0, r1, r4, r2
	add	r3, ip, r1
	mov	r1, r3
	mov	r2, #13
	mov	r3, #0
	bl	__aeabi_uldivmod
.L16:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	factorial, .-factorial
	.section	.rodata
	.align	2
.LC7:
	.ascii	"argc == 2\000"
	.align	2
.LC8:
	.ascii	"factorial(%llu) %% 13 == %llu\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L18
	ldr	r3, .L20
	mov	r2, #61
	ldr	r1, .L20+4
	ldr	r0, .L20+8
	bl	__assert_fail
.L18:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoull
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+12
	mov	r1, #0
	adds	r4, r2, r0
	adc	r5, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r5, #6
	orr	r1, r1, r4, lsr #26
	lsl	r0, r4, #6
	ldr	r2, [fp, #-28]
	bl	change_stack_size
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	factorial
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+16
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L21:
	.align	2
.L20:
	.word	__PRETTY_FUNCTION__.6308
	.word	.LC0
	.word	.LC7
	.word	15625
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6297, %object
	.size	__PRETTY_FUNCTION__.6297, 18
__PRETTY_FUNCTION__.6297:
	.ascii	"change_stack_size\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6308, %object
	.size	__PRETTY_FUNCTION__.6308, 5
__PRETTY_FUNCTION__.6308:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
