	.file	"extr_hooks.c_file_to_av.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	file_to_av, @function
file_to_av:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	mov	edx, DWORD PTR FMODE_WRITE[rip]
	and	edx, eax
	and	eax, DWORD PTR FMODE_READ[rip]
	jne	.L2
	test	edx, edx
	je	.L4
	mov	edx, DWORD PTR 4[rdi]
	test	DWORD PTR O_APPEND[rip], edx
	je	.L6
.L12:
	or	eax, DWORD PTR FILE__APPEND[rip]
.L5:
	test	eax, eax
	je	.L4
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR FILE__IOCTL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR FILE__READ[rip]
	test	edx, edx
	je	.L5
	mov	edx, DWORD PTR 4[rdi]
	test	DWORD PTR O_APPEND[rip], edx
	jne	.L12
.L6:
	or	eax, DWORD PTR FILE__WRITE[rip]
	test	eax, eax
	jne	.L1
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	file_to_av, .-file_to_av
	.comm	O_APPEND,4,4
	.comm	FMODE_WRITE,4,4
	.comm	FMODE_READ,4,4
	.comm	FILE__WRITE,4,4
	.comm	FILE__READ,4,4
	.comm	FILE__IOCTL,4,4
	.comm	FILE__APPEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hooks.c_file_to_av.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_to_av, %function
file_to_av:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	mov	r1, r0
	ldr	r3, .L13
	ldr	r0, .L13+4
	ldr	r2, [r1]
	ldr	r3, [r3]
	ldr	ip, [r0]
	ands	r0, r2, r3
	and	r2, r2, ip
	bne	.L2
	cmp	r2, #0
	beq	.L4
.L3:
	ldr	r3, .L13+8
	ldr	r2, [r1, #4]
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, .L13+12
	ldreq	r3, .L13+16
	ldr	r3, [r3]
	orr	r0, r0, r3
	cmp	r0, #0
	bxne	lr
.L4:
	ldr	r3, .L13+20
	ldr	r0, [r3]
	bx	lr
.L2:
	ldr	r3, .L13+24
	cmp	r2, #0
	ldr	r0, [r3]
	bne	.L3
	cmp	r0, #0
	bxne	lr
	b	.L4
.L14:
	.align	2
.L13:
	.word	FMODE_READ
	.word	FMODE_WRITE
	.word	O_APPEND
	.word	FILE__APPEND
	.word	FILE__WRITE
	.word	FILE__IOCTL
	.word	FILE__READ
	.size	file_to_av, .-file_to_av
	.comm	O_APPEND,4,4
	.comm	FMODE_WRITE,4,4
	.comm	FMODE_READ,4,4
	.comm	FILE__WRITE,4,4
	.comm	FILE__READ,4,4
	.comm	FILE__IOCTL,4,4
	.comm	FILE__APPEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
