	.file	"extr_proclang.c_find_language_template.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_language_template, @function
find_language_template:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	edi, DWORD PTR PLTemplateRelationId[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbx, rsp
	call	table_open@PLT
	mov	rdi, r12
	mov	ebp, eax
	call	CStringGetDatum@PLT
	mov	ecx, DWORD PTR F_NAMEEQ[rip]
	mov	edx, DWORD PTR BTEqualStrategyNumber[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR Anum_pg_pltemplate_tmplname[rip]
	mov	r8d, eax
	call	ScanKeyInit@PLT
	mov	esi, DWORD PTR PLTemplateNameIndexId[rip]
	mov	r9, rbx
	xor	ecx, ecx
	mov	r8d, 1
	mov	edx, 1
	mov	edi, ebp
	call	systable_beginscan@PLT
	mov	edi, eax
	mov	r13d, eax
	call	systable_getnext@PLT
	mov	edi, eax
	mov	r12d, eax
	call	HeapTupleIsValid@PLT
	test	rax, rax
	je	.L2
	mov	edi, r12d
	call	GETSTRUCT@PLT
	mov	edi, 40
	movsx	r14, eax
	call	palloc0@PLT
	mov	edi, ebp
	mov	rbx, rax
	mov	eax, DWORD PTR 4[r14]
	mov	DWORD PTR 36[rbx], eax
	mov	eax, DWORD PTR [r14]
	lea	r14, 4[rsp]
	mov	DWORD PTR 32[rbx], eax
	call	RelationGetDescr@PLT
	mov	esi, DWORD PTR Anum_pg_pltemplate_tmplhandler[rip]
	mov	edi, r12d
	mov	rcx, r14
	mov	edx, eax
	call	heap_getattr@PLT
	mov	edi, DWORD PTR 4[rsp]
	test	edi, edi
	je	.L18
.L3:
	mov	edi, ebp
	call	RelationGetDescr@PLT
	mov	esi, DWORD PTR Anum_pg_pltemplate_tmplinline[rip]
	mov	rcx, r14
	mov	edi, r12d
	mov	edx, eax
	call	heap_getattr@PLT
	mov	esi, DWORD PTR 4[rsp]
	test	esi, esi
	je	.L19
.L4:
	mov	edi, ebp
	call	RelationGetDescr@PLT
	mov	esi, DWORD PTR Anum_pg_pltemplate_tmplvalidator[rip]
	mov	rcx, r14
	mov	edi, r12d
	mov	edx, eax
	call	heap_getattr@PLT
	mov	ecx, DWORD PTR 4[rsp]
	test	ecx, ecx
	je	.L20
.L5:
	mov	edi, ebp
	call	RelationGetDescr@PLT
	mov	esi, DWORD PTR Anum_pg_pltemplate_tmpllibrary[rip]
	mov	rcx, r14
	mov	edi, r12d
	mov	edx, eax
	call	heap_getattr@PLT
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	je	.L21
	mov	r14, QWORD PTR 8[rbx]
	test	r14, r14
	je	.L2
.L23:
	mov	r14, QWORD PTR [rbx]
	test	r14, r14
	cmovne	r14, rbx
.L2:
	mov	edi, r13d
	call	systable_endscan@PLT
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	edi, ebp
	call	table_close@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, eax
	call	TextDatumGetCString@PLT
	mov	r14, QWORD PTR 8[rbx]
	mov	QWORD PTR [rbx], rax
	test	r14, r14
	jne	.L23
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, eax
	call	TextDatumGetCString@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, eax
	call	TextDatumGetCString@PLT
	mov	QWORD PTR 24[rbx], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, eax
	call	TextDatumGetCString@PLT
	mov	QWORD PTR 16[rbx], rax
	jmp	.L5
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	find_language_template, .-find_language_template
	.comm	PLTemplateRelationId,4,4
	.comm	PLTemplateNameIndexId,4,4
	.comm	F_NAMEEQ,4,4
	.comm	BTEqualStrategyNumber,4,4
	.comm	Anum_pg_pltemplate_tmplvalidator,4,4
	.comm	Anum_pg_pltemplate_tmplname,4,4
	.comm	Anum_pg_pltemplate_tmpllibrary,4,4
	.comm	Anum_pg_pltemplate_tmplinline,4,4
	.comm	Anum_pg_pltemplate_tmplhandler,4,4
	.comm	AccessShareLock,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_proclang.c_find_language_template.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_language_template, %function
find_language_template:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L23
	ldr	r9, .L23+4
	mov	r4, r0
	ldr	r0, [r3]
	ldr	r3, .L23+8
	sub	sp, sp, #28
	ldr	r1, [r9]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	table_open
	ldr	r1, .L23+12
	ldr	r2, .L23+16
	ldr	r3, .L23+20
	mov	r5, r0
	mov	r0, r4
	ldr	r6, [r1]
	ldr	r8, [r3]
	ldr	r7, [r2]
	bl	CStringGetDatum
	add	r4, sp, #12
	mov	r3, r8
	mov	r1, r6
	mov	r2, r7
	str	r0, [sp]
	mov	r0, r4
	bl	ScanKeyInit
	mov	r2, #1
	ldr	r3, .L23+24
	str	r2, [sp]
	str	r4, [sp, #4]
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #0
	bl	systable_beginscan
	mov	r8, r0
	bl	systable_getnext
	mov	r6, r0
	bl	HeapTupleIsValid
	subs	r4, r0, #0
	beq	.L2
	mov	r0, r6
	bl	GETSTRUCT
	mov	r4, r0
	mov	r0, #24
	bl	palloc0
	ldr	r1, [r4, #4]
	ldr	r2, [r4]
	ldr	r3, .L23+28
	str	r1, [r0, #20]
	str	r2, [r0, #16]
	mov	r7, r0
	mov	r0, r5
	ldr	r4, [r3]
	bl	RelationGetDescr
	add	r3, sp, #16
	mov	r2, r0
	mov	r1, r4
	mov	r0, r6
	bl	heap_getattr
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L17
.L3:
	ldr	r3, .L23+32
	mov	r0, r5
	ldr	r4, [r3]
	bl	RelationGetDescr
	add	r3, sp, #16
	mov	r2, r0
	mov	r1, r4
	mov	r0, r6
	bl	heap_getattr
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L18
.L4:
	ldr	r3, .L23+36
	mov	r0, r5
	ldr	r4, [r3]
	bl	RelationGetDescr
	add	r3, sp, #16
	mov	r2, r0
	mov	r1, r4
	mov	r0, r6
	bl	heap_getattr
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L19
.L5:
	ldr	r3, .L23+40
	mov	r0, r5
	ldr	r4, [r3]
	bl	RelationGetDescr
	add	r3, sp, #16
	mov	r2, r0
	mov	r1, r4
	mov	r0, r6
	bl	heap_getattr
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L20
	ldr	r4, [r7, #4]
	cmp	r4, #0
	beq	.L2
.L22:
	ldr	r4, [r7]
	cmp	r4, #0
	movne	r4, r7
.L2:
	mov	r0, r8
	bl	systable_endscan
	mov	r0, r5
	ldr	r1, [r9]
	bl	table_close
	ldr	r3, .L23+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L20:
	bl	TextDatumGetCString
	ldr	r4, [r7, #4]
	str	r0, [r7]
	cmp	r4, #0
	bne	.L22
	b	.L2
.L17:
	bl	TextDatumGetCString
	str	r0, [r7, #4]
	b	.L3
.L18:
	bl	TextDatumGetCString
	str	r0, [r7, #12]
	b	.L4
.L19:
	bl	TextDatumGetCString
	str	r0, [r7, #8]
	b	.L5
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	PLTemplateRelationId
	.word	AccessShareLock
	.word	.LC0
	.word	Anum_pg_pltemplate_tmplname
	.word	BTEqualStrategyNumber
	.word	F_NAMEEQ
	.word	PLTemplateNameIndexId
	.word	Anum_pg_pltemplate_tmplhandler
	.word	Anum_pg_pltemplate_tmplinline
	.word	Anum_pg_pltemplate_tmplvalidator
	.word	Anum_pg_pltemplate_tmpllibrary
	.size	find_language_template, .-find_language_template
	.comm	PLTemplateRelationId,4,4
	.comm	PLTemplateNameIndexId,4,4
	.comm	F_NAMEEQ,4,4
	.comm	BTEqualStrategyNumber,4,4
	.comm	Anum_pg_pltemplate_tmplvalidator,4,4
	.comm	Anum_pg_pltemplate_tmplname,4,4
	.comm	Anum_pg_pltemplate_tmpllibrary,4,4
	.comm	Anum_pg_pltemplate_tmplinline,4,4
	.comm	Anum_pg_pltemplate_tmplhandler,4,4
	.comm	AccessShareLock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
