	.file	"368507.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Real UID: %d\n"
.LC1:
	.string	"Effective UID: %d\n"
.LC2:
	.string	"Acess Permission Changed"
.LC3:
	.string	"Wrong Command"
	.align 8
.LC4:
	.string	"Usage: ./setacl <path-to-file> <username> <access-code>"
	.text
	.globl	main
	.type	main, @function
main:
.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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 6874019636378694447
	movabs	rdx, 8027718461446777971
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], rdx
	movabs	rax, 8243112759041942893
	mov	QWORD PTR -240[rbp], rax
	mov	DWORD PTR -232[rbp], 7630703
	mov	DWORD PTR -332[rbp], 0
	call	getuid@PLT
	mov	DWORD PTR -328[rbp], eax
	call	geteuid@PLT
	mov	DWORD PTR -324[rbp], eax
	mov	eax, DWORD PTR -328[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -324[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -328[rbp]
	cmp	eax, DWORD PTR -324[rbp]
	jne	.L2
	mov	DWORD PTR -332[rbp], 1
.L2:
	cmp	DWORD PTR -340[rbp], 4
	jne	.L3
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	cmp	DWORD PTR -332[rbp], 1
	jne	.L4
	movzx	eax, BYTE PTR -224[rbp]
	cmp	al, 47
	jne	.L5
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	checkUser
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	checkAccess
	mov	rdx, QWORD PTR -272[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	checkOwner
	mov	rdx, QWORD PTR -264[rbp]
	mov	rcx, QWORD PTR -272[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	editACL
	jmp	.L6
.L5:
	lea	rdx, -256[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -112[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	lea	rdx, -224[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	checkUser
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	checkAccess
	mov	rdx, QWORD PTR -288[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	checkOwner
	mov	rdx, QWORD PTR -280[rbp]
	mov	rcx, QWORD PTR -288[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	editACL
	jmp	.L6
.L4:
	movzx	eax, BYTE PTR -224[rbp]
	cmp	al, 47
	jne	.L7
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -304[rbp], rax
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	checkUser
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -296[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	checkAccess
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	checkACLPermission
	mov	rdx, QWORD PTR -304[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	checkOwner
	mov	eax, DWORD PTR -328[rbp]
	mov	edi, eax
	call	undoSetUid
	call	printUid
	mov	rdx, QWORD PTR -296[rbp]
	mov	rcx, QWORD PTR -304[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	editACL
	jmp	.L6
.L7:
	lea	rdx, -256[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -112[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	lea	rdx, -224[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -320[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	checkUser
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -312[rbp], rax
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	checkAccess
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	checkACLPermission
	mov	rdx, QWORD PTR -320[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	checkOwner
	mov	eax, DWORD PTR -328[rbp]
	mov	edi, eax
	call	undoSetUid
	call	printUid
	mov	rdx, QWORD PTR -312[rbp]
	mov	rcx, QWORD PTR -320[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	editACL
.L6:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L10
.L3:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L10:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"Count't set the Effective UID"
	.text
	.globl	undoSetUid
	.type	undoSetUid, @function
undoSetUid:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	seteuid@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L13
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	exit@PLT
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	undoSetUid, .-undoSetUid
	.section	.rodata
.LC6:
	.string	"Effective UID Changed: %d\n"
	.text
	.globl	printUid
	.type	printUid, @function
printUid:
.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, 16
	call	getuid@PLT
	mov	DWORD PTR -8[rbp], eax
	call	geteuid@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printUid, .-printUid
	.section	.rodata
.LC7:
	.string	"rwx"
.LC8:
	.string	"0"
	.align 8
.LC9:
	.string	"Please give write access codes"
	.text
	.globl	checkAccess
	.type	checkAccess, @function
checkAccess:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L19
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L20
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	nop
	jmp	.L15
.L20:
	nop
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	checkAccess, .-checkAccess
	.section	.rodata
.LC10:
	.string	"r"
.LC11:
	.string	"/simple_slash/home/users.txt"
.LC12:
	.string	"Cannot Open Users File"
.LC13:
	.string	"No such User Exists."
	.text
	.globl	checkUser
	.type	checkUser, @function
checkUser:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 560
	mov	QWORD PTR -552[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L22
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	DWORD PTR -540[rbp], 0
	jmp	.L23
.L25:
	mov	rdx, QWORD PTR -552[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L23
	add	DWORD PTR -540[rbp], 1
	jmp	.L24
.L23:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L25
.L24:
	cmp	DWORD PTR -540[rbp], 0
	jne	.L26
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	checkUser, .-checkUser
	.section	.rodata
.LC14:
	.string	"Cannot Open"
.LC15:
	.string	"USER"
.LC16:
	.string	"Error getting logged in User"
.LC17:
	.string	"::\n"
	.align 8
.LC18:
	.string	"Access Denied, Permission Not Granted"
	.text
	.globl	checkACLPermission
	.type	checkACLPermission, @function
checkACLPermission:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -568[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L29
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	lea	rdi, .LC15[rip]
	call	getenv@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L30
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	DWORD PTR -548[rbp], 0
	jmp	.L31
.L35:
	lea	rax, -528[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L38
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L31
	lea	rax, -528[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L39
	add	DWORD PTR -548[rbp], 1
	jmp	.L39
.L31:
	mov	rdx, QWORD PTR -544[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L35
	jmp	.L33
.L38:
	nop
	jmp	.L33
.L39:
	nop
.L33:
	cmp	DWORD PTR -548[rbp], 0
	jne	.L36
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	checkACLPermission, .-checkACLPermission
	.section	.rodata
.LC19:
	.string	"Failed to open file"
	.text
	.globl	showPermission
	.type	showPermission, @function
showPermission:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 3152
	mov	QWORD PTR -3144[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -3120[rbp], 0
	mov	QWORD PTR -3112[rbp], 0
	mov	QWORD PTR -3104[rbp], 0
	mov	QWORD PTR -3096[rbp], 0
	mov	QWORD PTR -3088[rbp], 0
	mov	QWORD PTR -3080[rbp], 0
	mov	QWORD PTR -3072[rbp], 0
	mov	QWORD PTR -3064[rbp], 0
	mov	QWORD PTR -3056[rbp], 0
	mov	QWORD PTR -3048[rbp], 0
	mov	QWORD PTR -3040[rbp], 0
	mov	QWORD PTR -3032[rbp], 0
	mov	DWORD PTR -3024[rbp], 0
	mov	rax, QWORD PTR -3144[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -3128[rbp], rax
	cmp	QWORD PTR -3128[rbp], 0
	jne	.L41
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L41:
	mov	QWORD PTR -3008[rbp], 0
	mov	QWORD PTR -3000[rbp], 0
	lea	rdx, -2992[rbp]
	mov	eax, 0
	mov	ecx, 373
	mov	rdi, rdx
	rep stosq
	jmp	.L42
.L43:
	lea	rdx, -3120[rbp]
	lea	rax, -3008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L42:
	mov	rdx, QWORD PTR -3128[rbp]
	lea	rax, -3120[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L43
	lea	rax, -3008[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -3128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	showPermission, .-showPermission
	.section	.rodata
.LC20:
	.string	"error opening file"
	.align 8
.LC21:
	.string	"Cannot change file's owner Permissions"
	.text
	.globl	checkOwner
	.type	checkOwner, @function
checkOwner:
.LFB13:
	.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	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L46
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L46:
	mov	rdx, QWORD PTR -120[rbp]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	mov	rdx, QWORD PTR -144[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L49
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L49:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	checkOwner, .-checkOwner
	.section	.rodata
.LC22:
	.string	"r+"
.LC23:
	.string	"Error opening file"
.LC24:
	.string	"w"
.LC25:
	.string	"copy.c"
	.align 8
.LC26:
	.string	"Error creating new file to write"
	.text
	.globl	editACL
	.type	editACL, @function
editACL:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 272
	mov	QWORD PTR -248[rbp], rdi
	mov	QWORD PTR -256[rbp], rsi
	mov	QWORD PTR -264[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	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
	mov	rax, QWORD PTR -248[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -240[rbp], rax
	cmp	QWORD PTR -240[rbp], 0
	jne	.L51
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	lea	rsi, .LC24[rip]
	lea	rdi, .LC25[rip]
	call	fopen@PLT
	mov	QWORD PTR -232[rbp], rax
	cmp	QWORD PTR -232[rbp], 0
	jne	.L53
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L59:
	lea	rax, -224[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L54
	mov	rdx, QWORD PTR -232[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L55
.L56:
	mov	rdx, QWORD PTR -232[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L55:
	mov	rdx, QWORD PTR -240[rbp]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L56
	jmp	.L57
.L54:
	mov	rdx, QWORD PTR -256[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L58
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rax, -112[rbp]
	mov	DWORD PTR [rax], 1919251317
	mov	WORD PTR 4[rax], 32
	mov	rdx, QWORD PTR -256[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -112[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
	mov	rdx, QWORD PTR -264[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -112[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 10
	mov	rdx, QWORD PTR -232[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L53
.L58:
	mov	rdx, QWORD PTR -232[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L53:
	mov	rdx, QWORD PTR -240[rbp]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L59
.L57:
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	remove@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	call	rename@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	editACL, .-editACL
	.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	"368507.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Real UID: %d\012\000"
	.align	2
.LC2:
	.ascii	"Effective UID: %d\012\000"
	.align	2
.LC3:
	.ascii	"/\000"
	.align	2
.LC4:
	.ascii	"Acess Permission Changed\000"
	.align	2
.LC5:
	.ascii	"Wrong Command\000"
	.align	2
.LC6:
	.ascii	"Usage: ./setacl <path-to-file> <username> <access-c"
	.ascii	"ode>\000"
	.align	2
.LC0:
	.ascii	"/simple_slash/home/fakeroot\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	sub	ip, fp, #236
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-280]
	bl	getuid
	mov	r3, r0
	str	r3, [fp, #-276]
	bl	geteuid
	mov	r3, r0
	str	r3, [fp, #-272]
	ldr	r1, [fp, #-276]
	ldr	r0, .L11+8
	bl	printf
	ldr	r1, [fp, #-272]
	ldr	r0, .L11+12
	bl	printf
	ldr	r2, [fp, #-276]
	ldr	r3, [fp, #-272]
	cmp	r2, r3
	bne	.L2
	mov	r3, #1
	str	r3, [fp, #-280]
.L2:
	ldr	r3, [fp, #-288]
	cmp	r3, #4
	bne	.L3
	ldr	r3, [fp, #-292]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-280]
	cmp	r3, #1
	bne	.L4
	ldrb	r3, [fp, #-208]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L5
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-244]
	ldr	r0, [fp, #-244]
	bl	checkUser
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-240]
	ldr	r0, [fp, #-240]
	bl	checkAccess
	sub	r3, fp, #208
	ldr	r1, [fp, #-244]
	mov	r0, r3
	bl	checkOwner
	sub	r3, fp, #208
	ldr	r2, [fp, #-240]
	ldr	r1, [fp, #-244]
	mov	r0, r3
	bl	editACL
	b	.L6
.L5:
	sub	r2, fp, #236
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #108
	add	r3, r3, r2
	ldr	r2, .L11+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #208
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-252]
	ldr	r0, [fp, #-252]
	bl	checkUser
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-248]
	ldr	r0, [fp, #-248]
	bl	checkAccess
	sub	r3, fp, #208
	ldr	r1, [fp, #-252]
	mov	r0, r3
	bl	checkOwner
	sub	r3, fp, #108
	ldr	r2, [fp, #-248]
	ldr	r1, [fp, #-252]
	mov	r0, r3
	bl	editACL
	b	.L6
.L4:
	ldrb	r3, [fp, #-208]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L7
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-260]
	ldr	r0, [fp, #-260]
	bl	checkUser
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-256]
	ldr	r0, [fp, #-256]
	bl	checkAccess
	sub	r3, fp, #208
	mov	r0, r3
	bl	checkACLPermission
	sub	r3, fp, #208
	ldr	r1, [fp, #-260]
	mov	r0, r3
	bl	checkOwner
	ldr	r0, [fp, #-276]
	bl	undoSetUid
	bl	printUid
	sub	r3, fp, #208
	ldr	r2, [fp, #-256]
	ldr	r1, [fp, #-260]
	mov	r0, r3
	bl	editACL
	b	.L6
.L7:
	sub	r2, fp, #236
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #108
	add	r3, r3, r2
	ldr	r2, .L11+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #208
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-268]
	ldr	r0, [fp, #-268]
	bl	checkUser
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-264]
	ldr	r0, [fp, #-264]
	bl	checkAccess
	sub	r3, fp, #108
	mov	r0, r3
	bl	checkACLPermission
	sub	r3, fp, #108
	ldr	r1, [fp, #-268]
	mov	r0, r3
	bl	checkOwner
	ldr	r0, [fp, #-276]
	bl	undoSetUid
	bl	printUid
	sub	r3, fp, #108
	ldr	r2, [fp, #-264]
	ldr	r1, [fp, #-268]
	mov	r0, r3
	bl	editACL
.L6:
	ldr	r0, .L11+20
	bl	puts
	b	.L10
.L3:
	ldr	r0, .L11+24
	bl	puts
	ldr	r0, .L11+28
	bl	puts
.L10:
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Count't set the Effective UID\000"
	.text
	.align	2
	.global	undoSetUid
	.syntax unified
	.arm
	.fpu softvfp
	.type	undoSetUid, %function
undoSetUid:
	@ 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]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	seteuid
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L16
	bl	puts
	ldr	r0, [fp, #-8]
	bl	exit
.L15:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC8
	.size	undoSetUid, .-undoSetUid
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Effective UID Changed: %d\012\000"
	.text
	.align	2
	.global	printUid
	.syntax unified
	.arm
	.fpu softvfp
	.type	printUid, %function
printUid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	getuid
	mov	r3, r0
	str	r3, [fp, #-12]
	bl	geteuid
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L19
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC9
	.size	printUid, .-printUid
	.section	.rodata
	.align	2
.LC10:
	.ascii	"rwx\000"
	.align	2
.LC11:
	.ascii	"0\000"
	.align	2
.LC12:
	.ascii	"Please give write access codes\000"
	.text
	.align	2
	.global	checkAccess
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkAccess, %function
checkAccess:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, .L27
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r1, .L27+4
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L27+8
	bl	puts
	mov	r0, #1
	bl	exit
.L25:
	nop
	b	.L21
.L26:
	nop
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	checkAccess, .-checkAccess
	.section	.rodata
	.align	2
.LC13:
	.ascii	"r\000"
	.align	2
.LC14:
	.ascii	"/simple_slash/home/users.txt\000"
	.align	2
.LC15:
	.ascii	"Cannot Open Users File\000"
	.align	2
.LC16:
	.ascii	"No such User Exists.\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	checkUser
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkUser, %function
checkUser:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L36+4
	ldr	r0, .L36+8
	bl	fopen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L36+12
	bl	puts
	mov	r0, #1
	bl	exit
.L30:
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L31
.L33:
	sub	r3, fp, #520
	ldr	r1, [fp, #-536]
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
	b	.L32
.L31:
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
.L32:
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L36+16
	bl	puts
	mov	r0, #1
	bl	exit
.L34:
	ldr	r0, [fp, #-524]
	bl	fclose
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC17
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	checkUser, .-checkUser
	.section	.rodata
	.align	2
.LC18:
	.ascii	"Cannot Open\000"
	.align	2
.LC19:
	.ascii	"USER\000"
	.align	2
.LC20:
	.ascii	"Error getting logged in User\000"
	.align	2
.LC21:
	.ascii	"::\012\000"
	.align	2
.LC22:
	.ascii	"Access Denied, Permission Not Granted\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	checkACLPermission
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkACLPermission, %function
checkACLPermission:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L50+4
	ldr	r0, [fp, #-536]
	bl	fopen
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bne	.L39
	ldr	r0, .L50+8
	bl	puts
	mov	r0, #1
	bl	exit
.L39:
	ldr	r0, .L50+12
	bl	getenv
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L40
	ldr	r0, .L50+16
	bl	puts
	mov	r0, #1
	bl	exit
.L40:
	mov	r3, #0
	str	r3, [fp, #-532]
	b	.L41
.L45:
	sub	r3, fp, #520
	ldr	r1, .L50+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	sub	r3, fp, #520
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #520
	ldr	r1, .L50+24
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
	b	.L49
.L41:
	sub	r3, fp, #520
	ldr	r2, [fp, #-528]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	b	.L43
.L48:
	nop
	b	.L43
.L49:
	nop
.L43:
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bne	.L46
	ldr	r0, .L50+28
	bl	puts
	mov	r0, #1
	bl	exit
.L46:
	ldr	r0, [fp, #-528]
	bl	fclose
	nop
	ldr	r3, .L50
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC23
	.word	.LC13
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC10
	.word	.LC22
	.size	checkACLPermission, .-checkACLPermission
	.section	.rodata
	.align	2
.LC24:
	.ascii	"Failed to open file\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	showPermission
	.syntax unified
	.arm
	.fpu softvfp
	.type	showPermission, %function
showPermission:
	@ args = 0, pretend = 0, frame = 3120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3120
	str	r0, [fp, #-3120]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-3108]
	sub	r3, fp, #3088
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L57+4
	ldr	r0, [fp, #-3120]
	bl	fopen
	str	r0, [fp, #-3112]
	ldr	r3, [fp, #-3112]
	cmp	r3, #0
	bne	.L53
	ldr	r0, .L57+8
	bl	puts
	mov	r0, #1
	bl	exit
.L53:
	mov	r3, #0
	str	r3, [fp, #-3008]
	sub	r3, fp, #2992
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, .L57+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L54
.L55:
	sub	r2, fp, #3104
	sub	r2, r2, #4
	sub	r3, fp, #2992
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	strcat
.L54:
	sub	r3, fp, #3104
	sub	r3, r3, #4
	ldr	r2, [fp, #-3112]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	sub	r3, fp, #2992
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	puts
	ldr	r0, [fp, #-3112]
	bl	fclose
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC25
	.word	.LC13
	.word	.LC24
	.word	2996
	.size	showPermission, .-showPermission
	.section	.rodata
	.align	2
.LC26:
	.ascii	"error opening file\000"
	.align	2
.LC27:
	.ascii	"Cannot change file's owner Permissions\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	checkOwner
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkOwner, %function
checkOwner:
	@ 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, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L64+4
	ldr	r0, [fp, #-120]
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L60
	ldr	r0, .L64+8
	bl	puts
	mov	r0, #1
	bl	exit
.L60:
	sub	r3, fp, #108
	ldr	r2, [fp, #-112]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #108
	ldr	r1, [fp, #-124]
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	ldr	r0, .L64+12
	bl	puts
	mov	r0, #1
	bl	exit
.L63:
	nop
	ldr	r3, .L64
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC28
	.word	.LC13
	.word	.LC26
	.word	.LC27
	.size	checkOwner, .-checkOwner
	.section	.rodata
	.align	2
.LC29:
	.ascii	"r+\000"
	.align	2
.LC30:
	.ascii	"Error opening file\000"
	.align	2
.LC31:
	.ascii	"w\000"
	.align	2
.LC32:
	.ascii	"copy.c\000"
	.align	2
.LC33:
	.ascii	"Error creating new file to write\000"
	.align	2
.LC34:
	.ascii	"user \000"
	.align	2
.LC35:
	.ascii	" \000"
	.align	2
.LC36:
	.ascii	"\012\000"
	.align	2
.LC37:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	editACL
	.syntax unified
	.arm
	.fpu softvfp
	.type	editACL, %function
editACL:
	@ args = 0, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #232
	str	r0, [fp, #-224]
	str	r1, [fp, #-228]
	str	r2, [fp, #-232]
	ldr	r3, .L77
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L77+4
	ldr	r0, [fp, #-224]
	bl	fopen
	str	r0, [fp, #-216]
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	bne	.L67
	ldr	r0, .L77+8
	bl	puts
	mov	r0, #1
	bl	exit
.L67:
	ldr	r1, .L77+12
	ldr	r0, .L77+16
	bl	fopen
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmp	r3, #0
	bne	.L69
	ldr	r0, .L77+20
	bl	puts
	mov	r0, #1
	bl	exit
.L75:
	sub	r3, fp, #208
	ldr	r1, .L77+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	sub	r3, fp, #208
	ldr	r1, [fp, #-212]
	mov	r0, r3
	bl	fputs
	b	.L71
.L72:
	sub	r3, fp, #208
	ldr	r1, [fp, #-212]
	mov	r0, r3
	bl	fputs
.L71:
	sub	r3, fp, #208
	ldr	r2, [fp, #-216]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	b	.L73
.L70:
	sub	r3, fp, #208
	ldr	r1, [fp, #-228]
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L74
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #108
	ldr	r2, .L77+28
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	sub	r3, fp, #108
	ldr	r1, [fp, #-228]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #108
	add	r3, r3, r2
	ldr	r2, .L77+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #108
	ldr	r1, [fp, #-232]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #108
	add	r3, r3, r2
	ldr	r2, .L77+36
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #108
	ldr	r1, [fp, #-212]
	mov	r0, r3
	bl	fputs
	b	.L69
.L74:
	sub	r3, fp, #208
	ldr	r1, [fp, #-212]
	mov	r0, r3
	bl	fputs
.L69:
	sub	r3, fp, #208
	ldr	r2, [fp, #-216]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
.L73:
	ldr	r0, [fp, #-224]
	bl	remove
	ldr	r1, [fp, #-224]
	ldr	r0, .L77+16
	bl	rename
	ldr	r0, [fp, #-212]
	bl	fclose
	ldr	r0, [fp, #-216]
	bl	fclose
	nop
	ldr	r3, .L77
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L76
	bl	__stack_chk_fail
.L76:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC37
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC21
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.size	editACL, .-editACL
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
