	.file	"extr_function.c_get_loadable_libraries.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SELECT DISTINCT probin FROM pg_catalog.pg_proc WHERE prolang = %u AND probin IS NOT NULL AND oid >= %u;"
	.align 8
.LC1:
	.string	"SELECT 1 FROM pg_catalog.pg_proc p     JOIN pg_catalog.pg_namespace n     ON pronamespace = n.oid WHERE proname = 'plpython_call_handler' AND nspname = 'public' AND prolang = %u AND probin = '$libdir/plpython' AND p.oid >= %u;"
	.align 8
.LC2:
	.ascii	"\nThe old cluster has a \"plpython_call_handler\" function d"
	.ascii	"efined\nin the \"public\" schema which is a duplicate of the"
	.ascii	" one defined\nin the \"pg_catalog\" schema.  You can confirm"
	.ascii	" this by executing\nin psql:\n\n    \\df *.plpython_call_han"
	.ascii	"dler\n\nThe \"public\" schema version of this function was c"
	.ascii	"reated by a\npre-8.1 install of plpython, and must be remove"
	.ascii	"d for pg_upgrad"
	.string	"e\nto complete because it references a now-obsolete \"plpython\"\nshared object file.  You can remove the \"public\" schema version\nof this function by running the following command:\n\n    DROP FUNCTION public.plpython_call_handler()\n\nin each affected database:\n\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"    %s\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Remove the problem functions from the old cluster to continue.\n"
	.text
	.p2align 4
	.globl	get_loadable_libraries
	.type	get_loadable_libraries, @function
get_loadable_libraries:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	eax, DWORD PTR old_cluster[rip]
	lea	edi, 0[0+rax*8]
	call	pg_malloc@PLT
	mov	esi, DWORD PTR old_cluster[rip]
	mov	QWORD PTR 40[rsp], rax
	test	esi, esi
	jle	.L11
	mov	r12, rax
	lea	rax, old_cluster[rip]
	xor	ebp, ebp
	xor	r14d, r14d
	mov	DWORD PTR 28[rsp], 0
	mov	QWORD PTR 8[rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r15
	add	rbp, 1
	add	r12, 8
	call	PQfinish@PLT
	mov	rax, QWORD PTR 8[rsp]
	cmp	DWORD PTR [rax], ebp
	jle	.L21
.L6:
	mov	rax, QWORD PTR old_cluster[rip+8]
	lea	rdi, old_cluster[rip]
	lea	r13, [rax+rbp*4]
	mov	esi, DWORD PTR 0[r13]
	call	connectToServer@PLT
	mov	ecx, DWORD PTR FirstNormalObjectId[rip]
	mov	edx, DWORD PTR ClanguageId[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	r15, rax
	call	executeQueryOrDie@PLT
	mov	QWORD PTR [r12], rax
	mov	rdi, rax
	call	PQntuples@PLT
	mov	edi, DWORD PTR old_cluster[rip+16]
	lea	ebx, [r14+rax]
	mov	r14d, ebx
	call	GET_MAJOR_VERSION@PLT
	cmp	eax, 900
	jg	.L3
	mov	ecx, DWORD PTR FirstNormalObjectId[rip]
	mov	edx, DWORD PTR ClanguageId[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	executeQueryOrDie@PLT
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	call	PQntuples@PLT
	mov	r9, QWORD PTR 16[rsp]
	test	rax, rax
	jle	.L4
	mov	ecx, DWORD PTR 28[rsp]
	mov	edi, DWORD PTR PG_WARNING[rip]
	test	ecx, ecx
	je	.L22
.L5:
	mov	edx, DWORD PTR 0[r13]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	mov	QWORD PTR 16[rsp], r9
	call	pg_log@PLT
	mov	DWORD PTR 28[rsp], 1
	mov	r9, QWORD PTR 16[rsp]
.L4:
	mov	rdi, r9
	call	PQclear@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, DWORD PTR 28[rsp]
	lea	ebp, 0[0+rbx*8]
	test	edx, edx
	je	.L2
	lea	rdi, .LC4[rip]
	call	pg_fatal@PLT
.L2:
	mov	edi, ebp
	call	pg_malloc@PLT
	mov	QWORD PTR os_info[rip+8], rax
	mov	eax, DWORD PTR old_cluster[rip]
	test	eax, eax
	jle	.L12
	mov	rax, QWORD PTR 40[rsp]
	mov	DWORD PTR 28[rsp], 0
	xor	ebp, ebp
	mov	QWORD PTR 16[rsp], rax
	lea	rax, old_cluster[rip]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 16[rsp]
	mov	r15, QWORD PTR [rax]
	mov	rdi, r15
	call	PQntuples@PLT
	mov	QWORD PTR 32[rsp], rax
	mov	r12d, eax
	test	eax, eax
	jle	.L8
	movsx	rbx, DWORD PTR 28[rsp]
	xor	r14d, r14d
	sal	rbx, 3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, r14d
	xor	edx, edx
	mov	rdi, r15
	add	r14d, 1
	call	PQgetvalue@PLT
	mov	r13, QWORD PTR os_info[rip+8]
	mov	rdi, rax
	call	pg_strdup@PLT
	add	r13, rbx
	mov	DWORD PTR 4[r13], eax
	mov	rax, QWORD PTR os_info[rip+8]
	mov	DWORD PTR [rax+rbx], ebp
	add	rbx, 8
	cmp	r12d, r14d
	jne	.L9
	mov	ecx, DWORD PTR 32[rsp]
	add	DWORD PTR 28[rsp], ecx
.L8:
	mov	rdi, r15
	add	ebp, 1
	call	PQclear@PLT
	mov	rax, QWORD PTR 8[rsp]
	add	QWORD PTR 16[rsp], 8
	cmp	DWORD PTR [rax], ebp
	jg	.L10
.L7:
	mov	rdi, QWORD PTR 40[rsp]
	call	pg_free@PLT
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR os_info[rip], eax
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L22:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	pg_log@PLT
	mov	edi, DWORD PTR PG_WARNING[rip]
	mov	r9, QWORD PTR 16[rsp]
	jmp	.L5
.L11:
	xor	ebp, ebp
	jmp	.L2
.L12:
	mov	DWORD PTR 28[rsp], 0
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	get_loadable_libraries, .-get_loadable_libraries
	.comm	os_info,16,16
	.comm	old_cluster,24,16
	.comm	PG_WARNING,4,4
	.comm	FirstNormalObjectId,4,4
	.comm	ClanguageId,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_function.c_get_loadable_libraries.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SELECT DISTINCT probin FROM pg_catalog.pg_proc WHER"
	.ascii	"E prolang = %u AND probin IS NOT NULL AND oid >= %u"
	.ascii	";\000"
	.align	2
.LC1:
	.ascii	"SELECT 1 FROM pg_catalog.pg_proc p     JOIN pg_cata"
	.ascii	"log.pg_namespace n     ON pronamespace = n.oid WHER"
	.ascii	"E proname = 'plpython_call_handler' AND nspname = '"
	.ascii	"public' AND prolang = %u AND probin = '$libdir/plpy"
	.ascii	"thon' AND p.oid >= %u;\000"
	.align	2
.LC2:
	.ascii	"\012The old cluster has a \"plpython_call_handler\""
	.ascii	" function defined\012in the \"public\" schema which"
	.ascii	" is a duplicate of the one defined\012in the \"pg_c"
	.ascii	"atalog\" schema.  You can confirm this by executing"
	.ascii	"\012in psql:\012\012    \\df *.plpython_call_handle"
	.ascii	"r\012\012The \"public\" schema version of this func"
	.ascii	"tion was created by a\012pre-8.1 install of plpytho"
	.ascii	"n, and must be removed for pg_upgrade\012to complet"
	.ascii	"e because it references a now-obsolete \"plpython\""
	.ascii	"\012shared object file.  You can remove the \"publi"
	.ascii	"c\" schema version\012of this function by running t"
	.ascii	"he following command:\012\012    DROP FUNCTION publ"
	.ascii	"ic.plpython_call_handler()\012\012in each affected "
	.ascii	"database:\012\012\000"
	.align	2
.LC3:
	.ascii	"    %s\012\000"
	.align	2
.LC4:
	.ascii	"Remove the problem functions from the old cluster t"
	.ascii	"o continue.\012\000"
	.text
	.align	2
	.global	get_loadable_libraries
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_loadable_libraries, %function
get_loadable_libraries:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L23
	sub	sp, sp, #20
	ldr	r0, [r5]
	lsl	r0, r0, #2
	bl	pg_malloc
	ldr	r3, [r5]
	str	r0, [sp, #12]
	cmp	r3, #0
	ble	.L11
	mov	r3, #0
	mov	r7, r0
	mov	r4, r3
	mov	fp, r5
	mov	r9, r3
	ldr	r10, .L23+4
	str	r3, [sp, #8]
	b	.L6
.L3:
	mov	r0, r6
	bl	PQfinish
	ldr	r3, [r5]
	add	r7, r7, #4
	cmp	r3, r4
	ble	.L21
.L6:
	ldr	r8, [r5, #4]
	mov	r0, fp
	ldr	r1, [r8, r4, lsl #2]
	bl	connectToServer
	ldr	r3, .L23+8
	ldr	r2, .L23+12
	mov	r1, r10
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r6, r0
	bl	executeQueryOrDie
	str	r0, [r7]
	bl	PQntuples
	mov	r3, r0
	ldr	r0, [r5, #8]
	add	r9, r9, r3
	bl	GET_MAJOR_VERSION
	lsl	r3, r4, #2
	cmp	r0, #900
	str	r3, [sp]
	add	r4, r4, #1
	bgt	.L3
	ldr	r3, .L23+8
	ldr	r2, .L23+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L23+16
	mov	r0, r6
	bl	executeQueryOrDie
	str	r0, [sp, #4]
	bl	PQntuples
	cmp	r0, #0
	ble	.L4
	ldr	r3, [sp, #8]
	cmp	r3, #0
	ldr	r3, .L23+20
	ldr	r0, [r3]
	beq	.L22
.L5:
	ldr	r3, [sp]
	ldr	r1, .L23+24
	ldr	r2, [r8, r3]
	bl	pg_log
	mov	r3, #1
	str	r3, [sp, #8]
.L4:
	ldr	r0, [sp, #4]
	bl	PQclear
	b	.L3
.L21:
	ldr	r3, [sp, #8]
	lsl	r8, r9, #3
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L23+28
	bl	pg_fatal
.L2:
	mov	r0, r8
	bl	pg_malloc
	ldr	r3, [r5]
	ldr	r6, .L23+32
	cmp	r3, #0
	str	r0, [r6, #4]
	ble	.L12
	mov	r8, #0
	ldr	r3, [sp, #12]
	stm	sp, {r3, r8}
.L10:
	ldr	r3, [sp]
	ldr	fp, [r3]
	mov	r0, fp
	bl	PQntuples
	subs	r9, r0, #0
	ble	.L8
	mov	r7, #0
	ldr	r3, [sp, #4]
	lsl	r4, r3, #3
.L9:
	mov	r1, r7
	mov	r2, #0
	mov	r0, fp
	bl	PQgetvalue
	ldr	r10, [r6, #4]
	bl	pg_strdup
	add	r7, r7, #1
	ldr	r3, [r6, #4]
	add	r10, r10, r4
	cmp	r9, r7
	str	r0, [r10, #4]
	str	r8, [r3, r4]
	add	r4, r4, #8
	bne	.L9
	ldr	r3, [sp, #4]
	add	r3, r9, r3
	str	r3, [sp, #4]
.L8:
	mov	r0, fp
	bl	PQclear
	ldr	r3, [r5]
	add	r8, r8, #1
	cmp	r3, r8
	ldr	r3, [sp]
	add	r3, r3, #4
	str	r3, [sp]
	bgt	.L10
.L7:
	ldr	r0, [sp, #12]
	bl	pg_free
	ldr	r3, [sp, #4]
	str	r3, [r6]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r1, .L23+36
	bl	pg_log
	ldr	r3, .L23+20
	ldr	r0, [r3]
	b	.L5
.L11:
	mov	r8, #0
	b	.L2
.L12:
	mov	r3, #0
	str	r3, [sp, #4]
	b	.L7
.L24:
	.align	2
.L23:
	.word	old_cluster
	.word	.LC0
	.word	FirstNormalObjectId
	.word	ClanguageId
	.word	.LC1
	.word	PG_WARNING
	.word	.LC3
	.word	.LC4
	.word	os_info
	.word	.LC2
	.size	get_loadable_libraries, .-get_loadable_libraries
	.comm	os_info,8,4
	.comm	old_cluster,12,4
	.comm	PG_WARNING,4,4
	.comm	FirstNormalObjectId,4,4
	.comm	ClanguageId,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
