	.file	"71330.c"
	.intel_syntax noprefix
	.text
	.globl	create
	.type	create, @function
create:
.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, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	DWORD PTR -140[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -136[rbp]
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -13[rbp], 0
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -120[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 47
	jne	.L4
	mov	rax, QWORD PTR -120[rbp]
	sub	rax, 1
	mov	BYTE PTR -112[rbp+rax], 0
.L4:
	lea	rax, -112[rbp]
	mov	QWORD PTR -128[rbp], rax
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -128[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L6
	mov	rax, QWORD PTR -128[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	je	.L7
	mov	edx, DWORD PTR -140[rbp]
	lea	rax, -112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mkdir@PLT
.L7:
	mov	rax, QWORD PTR -128[rbp]
	mov	BYTE PTR [rax], 47
.L6:
	add	QWORD PTR -128[rbp], 1
.L5:
	mov	rax, QWORD PTR -128[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L8
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	je	.L1
	mov	edx, DWORD PTR -140[rbp]
	lea	rax, -112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mkdir@PLT
	jmp	.L1
.L11:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create, .-create
	.section	.rodata
.LC0:
	.string	"Already exists"
.LC1:
	.string	"test"
.LC2:
	.string	"test/test%d"
.LC3:
	.string	"exercise"
.LC4:
	.string	"exercise/exer%d"
.LC5:
	.string	"program"
.LC6:
	.string	"program/prog%d"
	.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
	sub	rsp, 400
	mov	DWORD PTR -388[rbp], edi
	mov	QWORD PTR -400[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 29114459367897459
	mov	edx, 0
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	cmp	DWORD PTR -388[rbp], 1
	jle	.L13
	mov	rax, QWORD PTR -400[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L13:
	lea	rdx, -368[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L14
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rax, -224[rbp]
	mov	esi, 493
	mov	rdi, rax
	call	create
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	chdir@PLT
	mov	esi, 493
	lea	rdi, .LC1[rip]
	call	mkdir@PLT
	mov	DWORD PTR -372[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -372[rbp]
	lea	edx, 1[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -112[rbp]
	mov	esi, 493
	mov	rdi, rax
	call	create
	add	DWORD PTR -372[rbp], 1
.L15:
	cmp	DWORD PTR -372[rbp], 2
	jle	.L16
	mov	esi, 493
	lea	rdi, .LC3[rip]
	call	mkdir@PLT
	mov	DWORD PTR -372[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -372[rbp]
	lea	edx, 1[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -112[rbp]
	mov	esi, 493
	mov	rdi, rax
	call	create
	add	DWORD PTR -372[rbp], 1
.L17:
	cmp	DWORD PTR -372[rbp], 4
	jle	.L18
	mov	esi, 493
	lea	rdi, .LC5[rip]
	call	mkdir@PLT
	mov	DWORD PTR -372[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -372[rbp]
	lea	edx, 1[rax]
	lea	rax, -112[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -112[rbp]
	mov	esi, 493
	mov	rdi, rax
	call	create
	add	DWORD PTR -372[rbp], 1
.L19:
	cmp	DWORD PTR -372[rbp], 9
	jle	.L20
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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	"71330.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create
	.syntax unified
	.arm
	.fpu softvfp
	.type	create, %function
create:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #108
	mov	r2, #100
	ldr	r1, [fp, #-120]
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-9]
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-112]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-104]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L4
	ldr	r3, [fp, #-112]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-104]
.L4:
	sub	r3, fp, #108
	str	r3, [fp, #-116]
	b	.L5
.L8:
	ldr	r3, [fp, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L6
	ldr	r3, [fp, #-116]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #108
	mov	r1, #0
	mov	r0, r3
	bl	access
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #108
	ldr	r1, [fp, #-124]
	mov	r0, r3
	bl	mkdir
.L7:
	ldr	r3, [fp, #-116]
	mov	r2, #47
	strb	r2, [r3]
.L6:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L5:
	ldr	r3, [fp, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #108
	mov	r1, #0
	mov	r0, r3
	bl	access
	mov	r3, r0
	cmp	r3, #0
	beq	.L1
	sub	r3, fp, #108
	ldr	r1, [fp, #-124]
	mov	r0, r3
	bl	mkdir
	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	.LC0
	.size	create, .-create
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Already exists\000"
	.align	2
.LC3:
	.ascii	"test\000"
	.align	2
.LC4:
	.ascii	"test/test%d\000"
	.align	2
.LC5:
	.ascii	"exercise\000"
	.align	2
.LC6:
	.ascii	"exercise/exer%d\000"
	.align	2
.LC7:
	.ascii	"program\000"
	.align	2
.LC8:
	.ascii	"program/prog%d\000"
	.align	2
.LC1:
	.ascii	"sysProg\000"
	.space	92
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L25+4
	sub	r3, fp, #208
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #200
	mov	r2, #92
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-312]
	cmp	r3, #1
	ble	.L15
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L15:
	sub	r2, fp, #300
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L25+8
	bl	puts
	mov	r0, #1
	bl	exit
.L16:
	sub	r3, fp, #208
	ldr	r1, .L25+12
	mov	r0, r3
	bl	create
	sub	r3, fp, #208
	mov	r0, r3
	bl	chdir
	ldr	r1, .L25+12
	ldr	r0, .L25+16
	bl	mkdir
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L17
.L18:
	ldr	r3, [fp, #-304]
	add	r2, r3, #1
	sub	r3, fp, #108
	ldr	r1, .L25+20
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #108
	ldr	r1, .L25+12
	mov	r0, r3
	bl	create
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
.L17:
	ldr	r3, [fp, #-304]
	cmp	r3, #2
	ble	.L18
	ldr	r1, .L25+12
	ldr	r0, .L25+24
	bl	mkdir
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L19
.L20:
	ldr	r3, [fp, #-304]
	add	r2, r3, #1
	sub	r3, fp, #108
	ldr	r1, .L25+28
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #108
	ldr	r1, .L25+12
	mov	r0, r3
	bl	create
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
.L19:
	ldr	r3, [fp, #-304]
	cmp	r3, #4
	ble	.L20
	ldr	r1, .L25+12
	ldr	r0, .L25+32
	bl	mkdir
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L21
.L22:
	ldr	r3, [fp, #-304]
	add	r2, r3, #1
	sub	r3, fp, #108
	ldr	r1, .L25+36
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #108
	ldr	r1, .L25+12
	mov	r0, r3
	bl	create
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
.L21:
	ldr	r3, [fp, #-304]
	cmp	r3, #9
	ble	.L22
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC9
	.word	.LC1
	.word	.LC2
	.word	493
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
