	.file	"148576745.c"
	.intel_syntax noprefix
	.text
	.globl	access
	.type	access, @function
access:
.LFB0:
	.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	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L2
	mov	eax, -1
	jmp	.L9
.L2:
	mov	BYTE PTR -161[rbp], 1
	mov	eax, DWORD PTR -188[rbp]
	and	eax, 4
	test	eax, eax
	je	.L4
	movzx	edx, BYTE PTR -161[rbp]
	mov	eax, DWORD PTR -136[rbp]
	and	eax, edx
	and	eax, 292
	test	eax, eax
	setne	al
	mov	BYTE PTR -161[rbp], al
.L4:
	mov	eax, DWORD PTR -188[rbp]
	and	eax, 2
	test	eax, eax
	je	.L5
	movzx	edx, BYTE PTR -161[rbp]
	mov	eax, DWORD PTR -136[rbp]
	and	eax, edx
	and	eax, 146
	test	eax, eax
	setne	al
	mov	BYTE PTR -161[rbp], al
.L5:
	mov	eax, DWORD PTR -188[rbp]
	and	eax, 1
	test	eax, eax
	je	.L6
	movzx	edx, BYTE PTR -161[rbp]
	mov	eax, DWORD PTR -136[rbp]
	and	eax, edx
	and	eax, 73
	test	eax, eax
	setne	al
	mov	BYTE PTR -161[rbp], al
.L6:
	cmp	BYTE PTR -161[rbp], 0
	je	.L7
	mov	eax, 0
	jmp	.L9
.L7:
	mov	eax, -1
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"148576745.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	mvn	r3, #0
	b	.L9
.L2:
	mov	r3, #1
	strb	r3, [fp, #-101]
	ldr	r3, [fp, #-116]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L4
	ldrb	r2, [fp, #-101]	@ zero_extendqisi2
	ldr	r3, [fp, #-84]
	and	r3, r3, r2
	and	r3, r3, #292
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-101]
.L4:
	ldr	r3, [fp, #-116]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L5
	ldrb	r2, [fp, #-101]	@ zero_extendqisi2
	ldr	r3, [fp, #-84]
	and	r3, r3, r2
	and	r3, r3, #146
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-101]
.L5:
	ldr	r3, [fp, #-116]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L6
	ldrb	r2, [fp, #-101]	@ zero_extendqisi2
	ldr	r3, [fp, #-84]
	and	r3, r3, r2
	and	r3, r3, #73
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-101]
.L6:
	ldrb	r3, [fp, #-101]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	mov	r3, #0
	b	.L9
.L7:
	mvn	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{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
