	.file	"extr_fd.c_PathNameOpenFilePerm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PathNameOpenFilePerm: %s %x %o"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"out of memory"
.LC2:
	.string	"PathNameOpenFile: success %d"
	.text
	.p2align 4
	.globl	PathNameOpenFilePerm
	.type	PathNameOpenFilePerm, @function
PathNameOpenFilePerm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r8d, edx
	mov	r15, rdi
	mov	ecx, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	mov	rdx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR LOG[rip]
	call	elog@PLT
	mov	edi, eax
	call	DO_DB@PLT
	mov	rdi, r15
	call	strdup@PLT
	mov	r14, rax
	test	rax, rax
	je	.L7
.L2:
	xor	eax, eax
	call	AllocateVfd@PLT
	lea	rdx, [rax+rax*4]
	mov	r12, rax
	mov	rax, QWORD PTR VfdCache[rip]
	lea	r13, [rax+rdx*8]
	xor	eax, eax
	call	ReleaseLruFiles@PLT
	mov	edx, ebx
	mov	esi, ebp
	mov	rdi, r15
	call	BasicOpenFilePerm@PLT
	mov	DWORD PTR 36[r13], eax
	test	eax, eax
	js	.L8
	mov	edi, DWORD PTR LOG[rip]
	movsx	rdx, eax
	xor	eax, eax
	lea	rsi, .LC2[rip]
	add	DWORD PTR nfile[rip], 1
	call	elog@PLT
	mov	edi, eax
	call	DO_DB@PLT
	mov	rdi, r12
	call	Insert@PLT
	mov	esi, DWORD PTR O_CREAT[rip]
	or	esi, DWORD PTR O_TRUNC[rip]
	mov	QWORD PTR 0[r13], r14
	or	esi, DWORD PTR O_EXCL[rip]
	mov	DWORD PTR 32[r13], ebx
	not	esi
	mov	QWORD PTR 24[r13], 0
	and	esi, ebp
	mov	DWORD PTR 12[r13], 0
	mov	DWORD PTR 8[r13], esi
	mov	QWORD PTR 16[r13], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, r12
	mov	ebx, DWORD PTR errno[rip]
	mov	r12, -1
	call	FreeVfd@PLT
	mov	rdi, r14
	call	free@PLT
	mov	DWORD PTR errno[rip], ebx
	jmp	.L1
.L7:
	mov	edi, DWORD PTR ERRCODE_OUT_OF_MEMORY[rip]
	call	errcode@PLT
	lea	rdi, .LC1[rip]
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	PathNameOpenFilePerm, .-PathNameOpenFilePerm
	.comm	nfile,4,4
	.comm	errno,4,4
	.comm	VfdCache,8,8
	.comm	O_TRUNC,4,4
	.comm	O_EXCL,4,4
	.comm	O_CREAT,4,4
	.comm	LOG,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_OUT_OF_MEMORY,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_fd.c_PathNameOpenFilePerm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PathNameOpenFilePerm: %s %x %o\000"
	.align	2
.LC1:
	.ascii	"out of memory\000"
	.align	2
.LC2:
	.ascii	"PathNameOpenFile: success %d\000"
	.text
	.align	2
	.global	PathNameOpenFilePerm
	.syntax unified
	.arm
	.fpu softvfp
	.type	PathNameOpenFilePerm, %function
PathNameOpenFilePerm:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r10, .L9
	sub	sp, sp, #20
	mov	r3, r1
	str	r2, [sp]
	mov	r5, r1
	mov	r7, r2
	ldr	r1, .L9+4
	mov	r2, r0
	ldr	r0, [r10]
	bl	elog
	bl	DO_DB
	mov	r0, r6
	bl	strdup
	subs	r8, r0, #0
	beq	.L7
.L2:
	bl	AllocateVfd
	ldr	r2, .L9+8
	rsb	r4, r0, r0, lsl #3
	lsl	r3, r4, #2
	ldr	r9, [r2]
	str	r3, [sp, #12]
	mov	fp, r0
	bl	ReleaseLruFiles
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	BasicOpenFilePerm
	add	r4, r9, r4, lsl #2
	cmp	r0, #0
	mov	r2, r0
	str	r0, [r4, #24]
	blt	.L8
	ldr	lr, .L9+12
	ldr	r1, .L9+16
	ldr	ip, [lr]
	ldr	r0, [r10]
	add	ip, ip, #1
	str	ip, [lr]
	bl	elog
	bl	DO_DB
	mov	r0, fp
	bl	Insert
	ldr	r1, .L9+20
	ldr	ip, .L9+24
	ldr	r0, .L9+28
	ldr	r1, [r1]
	ldr	ip, [ip]
	ldr	r0, [r0]
	orr	r1, r1, ip
	mov	r2, #0
	orr	r1, r1, r0
	mov	r0, fp
	ldr	r3, [sp, #12]
	bic	r5, r5, r1
	str	r8, [r9, r3]
	str	r7, [r4, #20]
	str	r5, [r4, #4]
	str	r2, [r4, #16]
	str	r2, [r4, #8]
	str	r2, [r4, #12]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r0, fp
	mvn	fp, #0
	ldr	r4, .L9+32
	ldr	r5, [r4]
	bl	FreeVfd
	mov	r0, r8
	bl	free
	mov	r0, fp
	str	r5, [r4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r2, .L9+36
	ldr	r3, .L9+40
	ldr	r0, [r2]
	ldr	r4, [r3]
	bl	errcode
	ldr	r0, .L9+44
	bl	errmsg
	mov	r1, r0
	mov	r0, r4
	bl	ereport
	b	.L2
.L10:
	.align	2
.L9:
	.word	LOG
	.word	.LC0
	.word	VfdCache
	.word	nfile
	.word	.LC2
	.word	O_CREAT
	.word	O_TRUNC
	.word	O_EXCL
	.word	errno
	.word	ERRCODE_OUT_OF_MEMORY
	.word	ERROR
	.word	.LC1
	.size	PathNameOpenFilePerm, .-PathNameOpenFilePerm
	.comm	nfile,4,4
	.comm	errno,4,4
	.comm	VfdCache,4,4
	.comm	O_TRUNC,4,4
	.comm	O_EXCL,4,4
	.comm	O_CREAT,4,4
	.comm	LOG,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_OUT_OF_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
