	.file	"449160.c"
	.intel_syntax noprefix
	.text
	.globl	access
	.type	access, @function
access:
.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, 200
	.cfi_offset 3, -24
	mov	QWORD PTR -200[rbp], rdi
	mov	DWORD PTR -204[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -204[rbp]
	and	eax, 7
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -204[rbp], 0
	je	.L2
	mov	eax, DWORD PTR -204[rbp]
	and	eax, -8
	test	eax, eax
	je	.L2
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, -1
	jmp	.L9
.L2:
	lea	rdx, -176[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L4
	mov	eax, -1
	jmp	.L9
.L4:
	cmp	DWORD PTR -204[rbp], 0
	jne	.L5
	mov	eax, 0
	jmp	.L9
.L5:
	mov	ebx, DWORD PTR -148[rbp]
	call	getuid@PLT
	cmp	ebx, eax
	jne	.L6
	sal	DWORD PTR -180[rbp], 6
	jmp	.L7
.L6:
	mov	ebx, DWORD PTR -144[rbp]
	call	getgid@PLT
	cmp	ebx, eax
	jne	.L7
	sal	DWORD PTR -180[rbp], 3
.L7:
	mov	eax, DWORD PTR -152[rbp]
	and	eax, DWORD PTR -180[rbp]
	cmp	DWORD PTR -180[rbp], eax
	jne	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 13
	mov	eax, -1
.L9:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, 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	access, .-access
	.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	"449160.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	access
	.syntax unified
	.arm
	.fpu softvfp
	.type	access, %function
access:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #116
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-124]
	and	r3, r3, #7
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-124]
	bic	r3, r3, #7
	cmp	r3, #0
	beq	.L2
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mvn	r3, #0
	b	.L9
.L2:
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	mvn	r3, #0
	b	.L9
.L4:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L9
.L5:
	ldr	r4, [fp, #-84]
	bl	getuid
	mov	r3, r0
	cmp	r4, r3
	bne	.L6
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #6
	str	r3, [fp, #-112]
	b	.L7
.L6:
	ldr	r4, [fp, #-80]
	bl	getgid
	mov	r3, r0
	cmp	r4, r3
	bne	.L7
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #3
	str	r3, [fp, #-112]
.L7:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-112]
	and	r3, r3, r2
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bne	.L8
	mov	r3, #0
	b	.L9
.L8:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #13
	str	r2, [r3]
	mvn	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	access, .-access
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
