	.file	"57949962.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c%c%c"
	.text
	.globl	printFullPerms
	.type	printFullPerms, @function
printFullPerms:
.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 6
	and	eax, 7
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 2048
	test	eax, eax
	je	.L3
	mov	eax, 115
	jmp	.L5
.L3:
	mov	eax, 120
	jmp	.L5
.L2:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 2048
	test	eax, eax
	je	.L6
	mov	eax, 83
	jmp	.L5
.L6:
	mov	eax, 45
.L5:
	mov	edx, DWORD PTR -4[rbp]
	and	edx, 2
	test	edx, edx
	je	.L8
	mov	edi, 119
	jmp	.L9
.L8:
	mov	edi, 45
.L9:
	mov	edx, DWORD PTR -4[rbp]
	and	edx, 4
	test	edx, edx
	je	.L10
	mov	esi, 114
	jmp	.L11
.L10:
	mov	esi, 45
.L11:
	mov	ecx, eax
	mov	edx, edi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 3
	and	eax, 7
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1024
	test	eax, eax
	je	.L13
	mov	eax, 115
	jmp	.L15
.L13:
	mov	eax, 120
	jmp	.L15
.L12:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1024
	test	eax, eax
	je	.L16
	mov	eax, 83
	jmp	.L15
.L16:
	mov	eax, 45
.L15:
	mov	edx, DWORD PTR -4[rbp]
	and	edx, 2
	test	edx, edx
	je	.L18
	mov	edi, 119
	jmp	.L19
.L18:
	mov	edi, 45
.L19:
	mov	edx, DWORD PTR -4[rbp]
	and	edx, 4
	test	edx, edx
	je	.L20
	mov	esi, 114
	jmp	.L21
.L20:
	mov	esi, 45
.L21:
	mov	ecx, eax
	mov	edx, edi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 7
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 512
	test	eax, eax
	je	.L23
	mov	eax, 116
	jmp	.L25
.L23:
	mov	eax, 120
	jmp	.L25
.L22:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 512
	test	eax, eax
	je	.L26
	mov	eax, 84
	jmp	.L25
.L26:
	mov	eax, 45
.L25:
	mov	edx, DWORD PTR -4[rbp]
	and	edx, 2
	test	edx, edx
	je	.L28
	mov	edi, 119
	jmp	.L29
.L28:
	mov	edi, 45
.L29:
	mov	edx, DWORD PTR -4[rbp]
	and	edx, 4
	test	edx, edx
	je	.L30
	mov	esi, 114
	jmp	.L31
.L30:
	mov	esi, 45
.L31:
	mov	ecx, eax
	mov	edx, edi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printFullPerms, .-printFullPerms
	.globl	get_mask_and_shift
	.type	get_mask_and_shift, @function
get_mask_and_shift:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	cmp	eax, 117
	je	.L33
	cmp	eax, 117
	jg	.L37
	cmp	eax, 103
	je	.L35
	cmp	eax, 111
	je	.L36
	jmp	.L37
.L33:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 448
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 6
	jmp	.L34
.L35:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 56
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 3
	jmp	.L34
.L36:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 7
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	nop
.L34:
.L37:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_mask_and_shift, .-get_mask_and_shift
	.section	.rodata
.LC1:
	.string	"%s [ "
.LC2:
	.string	" ] -> "
.LC3:
	.string	"[ "
.LC4:
	.string	" ]"
	.align 8
.LC5:
	.string	"Could not change file mode on '%s', %s\n"
.LC6:
	.string	"."
.LC7:
	.string	".."
.LC8:
	.string	"%s/%s"
.LC9:
	.string	"[Error] %s (%s)\n"
	.text
	.globl	modcopy
	.type	modcopy, @function
modcopy:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 48
	mov	QWORD PTR -16408[rbp], rdi
	mov	QWORD PTR -16416[rbp], rsi
	mov	DWORD PTR -16420[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -16352[rbp]
	mov	rax, QWORD PTR -16408[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR -16408[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16328[rbp]
	mov	edi, eax
	call	printFullPerms
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -16396[rbp], 0
	mov	DWORD PTR -16392[rbp], 0
	mov	QWORD PTR -16384[rbp], 0
	mov	QWORD PTR -16376[rbp], 0
	mov	rax, QWORD PTR -16416[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	rdx, -16384[rbp]
	lea	rcx, -16396[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	get_mask_and_shift
	mov	rax, QWORD PTR -16416[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	rdx, -16376[rbp]
	lea	rcx, -16392[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	get_mask_and_shift
	mov	eax, DWORD PTR -16328[rbp]
	mov	DWORD PTR -16388[rbp], eax
	mov	eax, DWORD PTR -16392[rbp]
	not	eax
	and	DWORD PTR -16388[rbp], eax
	mov	edx, DWORD PTR -16328[rbp]
	mov	eax, DWORD PTR -16396[rbp]
	and	edx, eax
	mov	rax, QWORD PTR -16384[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	rax, QWORD PTR -16376[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -16388[rbp], eax
	mov	eax, DWORD PTR -16328[rbp]
	cmp	DWORD PTR -16388[rbp], eax
	je	.L40
	mov	edx, DWORD PTR -16388[rbp]
	mov	rax, QWORD PTR -16408[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	chmod@PLT
	test	eax, eax
	jne	.L41
.L40:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16388[rbp]
	mov	edi, eax
	call	printFullPerms
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L42
.L41:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16408[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L42:
	cmp	DWORD PTR -16420[rbp], 0
	je	.L48
	mov	eax, DWORD PTR -16328[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L48
	mov	rax, QWORD PTR -16408[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -16368[rbp], rax
	cmp	QWORD PTR -16368[rbp], 0
	je	.L48
	mov	rdx, QWORD PTR -16408[rbp]
	lea	rax, -16208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L44
.L45:
	mov	rax, QWORD PTR -16360[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L44
	mov	rax, QWORD PTR -16360[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L44
	mov	rax, QWORD PTR -16360[rbp]
	lea	rcx, 19[rax]
	lea	rdx, -16208[rbp]
	lea	rax, -8112[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edx, DWORD PTR -16420[rbp]
	mov	rcx, QWORD PTR -16416[rbp]
	lea	rax, -8112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	modcopy
.L44:
	mov	rax, QWORD PTR -16368[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -16360[rbp], rax
	cmp	QWORD PTR -16360[rbp], 0
	jne	.L45
	jmp	.L48
.L39:
	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	rdx, QWORD PTR -16408[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L48:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	modcopy, .-modcopy
	.section	.rodata
	.align 8
.LC10:
	.string	"Usage: %s [-r] POSITION-SPEC FILE\n"
	.text
	.globl	printUsage
	.type	printUsage, @function
printUsage:
.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	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printUsage, .-printUsage
	.section	.rodata
.LC11:
	.string	"-r"
	.align 8
.LC12:
	.string	"Position specifier must be two characters.\n"
	.align 8
.LC13:
	.string	"Position specifier must be two characters long, consisting of: 'u', 'g', or 'o' (user, group, or other)\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -36[rbp], 1
	jg	.L51
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	printUsage
	mov	eax, 1
	jmp	.L52
.L51:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L53
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -24[rbp], 1
.L53:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], dl
	cmp	DWORD PTR -24[rbp], 0
	jne	.L54
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L54
	mov	DWORD PTR -24[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L54:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jg	.L55
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	printUsage
	mov	eax, 1
	jmp	.L52
.L55:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 2
	je	.L56
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	printUsage
	mov	eax, 1
	jmp	.L52
.L56:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 117
	je	.L57
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 103
	je	.L57
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 111
	jne	.L58
.L57:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 117
	je	.L60
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 103
	je	.L60
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 111
	je	.L60
.L58:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 104
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	printUsage
	mov	eax, 1
	jmp	.L52
.L61:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	modcopy
	add	DWORD PTR -20[rbp], 1
.L60:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L61
	mov	eax, 0
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"57949962.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c%c%c\000"
	.text
	.align	2
	.global	printFullPerms
	.syntax unified
	.arm
	.fpu softvfp
	.type	printFullPerms, %function
printFullPerms:
	@ 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]
	lsr	r3, r3, #6
	and	r3, r3, #7
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L2
	mov	r1, #114
	b	.L3
.L2:
	mov	r1, #45
.L3:
	ldr	r3, [fp, #-8]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L4
	mov	r2, #119
	b	.L5
.L4:
	mov	r2, #45
.L5:
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-16]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L7
	mov	r3, #115
	b	.L9
.L7:
	mov	r3, #120
	b	.L9
.L6:
	ldr	r3, [fp, #-16]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L10
	mov	r3, #83
	b	.L9
.L10:
	mov	r3, #45
.L9:
	ldr	r0, .L32
	bl	printf
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #3
	and	r3, r3, #7
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L12
	mov	r1, #114
	b	.L13
.L12:
	mov	r1, #45
.L13:
	ldr	r3, [fp, #-8]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L14
	mov	r2, #119
	b	.L15
.L14:
	mov	r2, #45
.L15:
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-16]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L17
	mov	r3, #115
	b	.L19
.L17:
	mov	r3, #120
	b	.L19
.L16:
	ldr	r3, [fp, #-16]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L20
	mov	r3, #83
	b	.L19
.L20:
	mov	r3, #45
.L19:
	ldr	r0, .L32
	bl	printf
	ldr	r3, [fp, #-16]
	and	r3, r3, #7
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L22
	mov	r1, #114
	b	.L23
.L22:
	mov	r1, #45
.L23:
	ldr	r3, [fp, #-8]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L24
	mov	r2, #119
	b	.L25
.L24:
	mov	r2, #45
.L25:
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-16]
	and	r3, r3, #512
	cmp	r3, #0
	beq	.L27
	mov	r3, #116
	b	.L29
.L27:
	mov	r3, #120
	b	.L29
.L26:
	ldr	r3, [fp, #-16]
	and	r3, r3, #512
	cmp	r3, #0
	beq	.L30
	mov	r3, #84
	b	.L29
.L30:
	mov	r3, #45
.L29:
	ldr	r0, .L32
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC0
	.size	printFullPerms, .-printFullPerms
	.align	2
	.global	get_mask_and_shift
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_mask_and_shift, %function
get_mask_and_shift:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #117
	beq	.L35
	cmp	r3, #117
	bgt	.L39
	cmp	r3, #103
	beq	.L37
	cmp	r3, #111
	beq	.L38
	b	.L39
.L35:
	ldr	r3, [fp, #-12]
	mov	r2, #448
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r2, #6
	str	r2, [r3]
	b	.L36
.L37:
	ldr	r3, [fp, #-12]
	mov	r2, #56
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r2, #3
	str	r2, [r3]
	b	.L36
.L38:
	ldr	r3, [fp, #-12]
	mov	r2, #7
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	nop
.L36:
.L39:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_mask_and_shift, .-get_mask_and_shift
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s [ \000"
	.align	2
.LC2:
	.ascii	" ] -> \000"
	.align	2
.LC3:
	.ascii	"[ \000"
	.align	2
.LC4:
	.ascii	" ]\000"
	.align	2
.LC5:
	.ascii	"Could not change file mode on '%s', %s\012\000"
	.align	2
.LC6:
	.ascii	".\000"
	.align	2
.LC7:
	.ascii	"..\000"
	.align	2
.LC8:
	.ascii	"%s/%s\000"
	.align	2
.LC9:
	.ascii	"[Error] %s (%s)\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	modcopy
	.syntax unified
	.arm
	.fpu softvfp
	.type	modcopy, %function
modcopy:
	@ args = 0, pretend = 0, frame = 16336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16320
	sub	sp, sp, #20
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r0, [r3, #-4036]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r1, [r3, #-4040]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r2, [r3, #-4044]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16256
	sub	r3, r3, #12
	sub	r3, r3, #32
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-4036]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r1, [r3, #-4036]
	ldr	r0, .L51+4
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3984]
	mov	r0, r3
	bl	printFullPerms
	ldr	r0, .L51+8
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4028]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4024]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4020]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4016]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4040]
	ldrb	r0, [r3]	@ zero_extendqisi2
	sub	r2, fp, #16256
	sub	r2, r2, #12
	sub	r2, r2, #52
	sub	r3, fp, #16256
	sub	r3, r3, #12
	sub	r3, r3, #60
	mov	r1, r3
	bl	get_mask_and_shift
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4040]
	add	r3, r3, #1
	ldrb	r0, [r3]	@ zero_extendqisi2
	sub	r2, fp, #16256
	sub	r2, r2, #12
	sub	r2, r2, #48
	sub	r3, fp, #16256
	sub	r3, r3, #12
	sub	r3, r3, #56
	mov	r1, r3
	bl	get_mask_and_shift
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3984]
	str	r3, [r2, #-4012]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4024]
	mvn	r3, r3
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-4012]
	and	r3, r3, r2
	str	r3, [r1, #-4012]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r2, [r3, #-3984]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4028]
	and	r2, r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4020]
	lsr	r2, r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4016]
	lsl	r3, r2, r3
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-4012]
	orr	r3, r2, r3
	str	r3, [r1, #-4012]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3984]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-4012]
	cmp	r2, r3
	beq	.L42
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r1, [r2, #-4012]
	ldr	r0, [r3, #-4036]
	bl	chmod
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
.L42:
	ldr	r0, .L51+12
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-4012]
	bl	printFullPerms
	ldr	r0, .L51+16
	bl	puts
	b	.L44
.L43:
	ldr	r3, .L51+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-4036]
	ldr	r1, .L51+24
	mov	r0, r4
	bl	fprintf
.L44:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4044]
	cmp	r3, #0
	beq	.L50
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3984]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L50
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-4036]
	bl	opendir
	str	r0, [r4, #-4008]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4008]
	cmp	r3, #0
	beq	.L50
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-4036]
	mov	r0, r3
	bl	strcpy
	b	.L46
.L47:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4004]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L51+28
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4004]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L51+32
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4004]
	add	r3, r3, #11
	sub	r2, fp, #16192
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #8064
	sub	r0, r0, #12
	sub	r0, r0, #36
	ldr	r1, .L51+36
	bl	sprintf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	ldr	r2, [r2, #-4044]
	ldr	r1, [r1, #-4040]
	mov	r0, r3
	bl	modcopy
.L46:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-4008]
	bl	readdir
	str	r0, [r4, #-4004]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4004]
	cmp	r3, #0
	bne	.L47
	b	.L50
.L41:
	ldr	r3, .L51+20
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-4036]
	ldr	r1, .L51+40
	mov	r0, r4
	bl	fprintf
.L50:
	nop
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC10
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	modcopy, .-modcopy
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Usage: %s [-r] POSITION-SPEC FILE\012\000"
	.text
	.align	2
	.global	printUsage
	.syntax unified
	.arm
	.fpu softvfp
	.type	printUsage, %function
printUsage:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, .L54
	ldr	r0, [fp, #-8]
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC11
	.size	printUsage, .-printUsage
	.section	.rodata
	.align	2
.LC12:
	.ascii	"-r\000"
	.align	2
.LC13:
	.ascii	"Position specifier must be two characters.\012\000"
	.align	2
.LC14:
	.ascii	"Position specifier must be two characters long, con"
	.ascii	"sisting of: 'u', 'g', or 'o' (user, group, or other"
	.ascii	")\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L57
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	printUsage
	mov	r3, #1
	b	.L58
.L57:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L68+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-20]
.L59:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L60
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L68+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L60:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmp	r3, #0
	bgt	.L61
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	printUsage
	mov	r3, #1
	b	.L58
.L61:
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	cmp	r3, #2
	beq	.L62
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L68+8
	bl	fwrite
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	printUsage
	mov	r3, #1
	b	.L58
.L62:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #117
	beq	.L63
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #103
	beq	.L63
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L64
.L63:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #117
	beq	.L66
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #103
	beq	.L66
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #111
	beq	.L66
.L64:
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #104
	mov	r1, #1
	ldr	r0, .L68+12
	bl	fwrite
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	printUsage
	mov	r3, #1
	b	.L58
.L67:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	modcopy
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L66:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L67
	mov	r3, #0
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
