	.file	"688233.c"
	.intel_syntax noprefix
	.text
	.globl	maskOctalPermissions
	.type	maskOctalPermissions, @function
maskOctalPermissions:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 511
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	maskOctalPermissions, .-maskOctalPermissions
	.section	.rodata
.LC0:
	.string	"/"
.LC1:
	.string	"Failed to open directory"
.LC2:
	.string	"."
.LC3:
	.string	".."
.LC4:
	.string	"%s\t%s\t%o\n"
.LC5:
	.string	"getpwuid"
.LC6:
	.string	"stat"
	.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, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	opendir@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L6
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L5
.L11:
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 19[rax]
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	stat@PLT
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 16384
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 19[rax]
	lea	rax, .LC2[rip]
	cmp	rdx, rax
	jne	.L8
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 19[rax]
	lea	rax, .LC3[rip]
	cmp	rdx, rax
	je	.L6
.L8:
	mov	eax, DWORD PTR -132[rbp]
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -136[rbp]
	mov	edi, eax
	call	maskOctalPermissions
	mov	ecx, eax
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L10:
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L6
.L7:
	lea	rdi, .LC6[rip]
	call	perror@PLT
.L6:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L11
	nop
.L13:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	closedir@PLT
	cmp	eax, -1
	jne	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L13
.L12:
	mov	eax, 0
.L5:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"688233.c"
	.text
	.align	2
	.global	maskOctalPermissions
	.syntax unified
	.arm
	.fpu softvfp
	.type	maskOctalPermissions, %function
maskOctalPermissions:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	maskOctalPermissions, .-maskOctalPermissions
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/\000"
	.align	2
.LC1:
	.ascii	"Failed to open directory\000"
	.align	2
.LC2:
	.ascii	".\000"
	.align	2
.LC3:
	.ascii	"..\000"
	.align	2
.LC4:
	.ascii	"%s\011%s\011%o\012\000"
	.align	2
.LC5:
	.ascii	"getpwuid\000"
	.align	2
.LC6:
	.ascii	"stat\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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #112
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L15+4
	bl	opendir
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L15+8
	bl	perror
	mov	r3, #1
	b	.L5
.L11:
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	sub	r2, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-92]
	and	r3, r3, #16384
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	ldr	r2, .L15+12
	cmp	r3, r2
	bne	.L8
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	ldr	r2, .L15+16
	cmp	r3, r2
	beq	.L6
.L8:
	ldr	r3, [fp, #-84]
	mov	r0, r3
	bl	getpwuid
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-112]
	ldr	r4, [r3]
	ldr	r3, [fp, #-116]
	add	r5, r3, #11
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	maskOctalPermissions
	mov	r3, r0
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L15+20
	bl	printf
	b	.L6
.L10:
	ldr	r0, .L15+24
	bl	perror
	b	.L6
.L7:
	ldr	r0, .L15+28
	bl	perror
.L6:
	ldr	r0, [fp, #-120]
	bl	readdir
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L11
	nop
.L13:
	ldr	r0, [fp, #-120]
	bl	closedir
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L13
.L12:
	mov	r3, #0
.L5:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
