	.file	"extr_check.c_check_for_isn_and_int8_passing_mismatch.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Checking for contrib/isn with bigint-passing mismatch"
	.align 8
.LC1:
	.string	"contrib_isn_and_int8_pass_by_value.txt"
	.align 8
.LC2:
	.string	"SELECT n.nspname, p.proname FROM\tpg_catalog.pg_proc p, \t\tpg_catalog.pg_namespace n WHERE\tp.pronamespace = n.oid AND \t\tp.probin = '$libdir/isn'"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"nspname"
.LC4:
	.string	"proname"
.LC5:
	.string	"w"
.LC6:
	.string	"could not open file \"%s\": %s\n"
.LC7:
	.string	"In database: %s\n"
.LC8:
	.string	"  %s.%s\n"
.LC9:
	.string	"fatal\n"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.ascii	"Your installation contains \"contrib/isn\" functions which r"
	.ascii	"ely on the\nbigint data type.  Your old and new clusters pas"
	.ascii	"s bigint values\n"
	.string	"differently so this cluster cannot currently be upgraded.  You can\nmanually upgrade databases that use \"contrib/isn\" facilities and remove\n\"contrib/isn\" from the old cluster and restart the upgrade.  A list of\nthe problem functions is in the file:\n    %s\n\n"
	.text
	.p2align 4
	.type	check_for_isn_and_int8_passing_mismatch, @function
check_for_isn_and_int8_passing_mismatch:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -104[rbp], rdi
	mov	rsi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAXPGPATH[rip]
	mov	QWORD PTR -128[rbp], rsp
	mov	r12, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L29:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L29
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L30
.L4:
	lea	rdi, .LC0[rip]
	mov	QWORD PTR -120[rbp], rsp
	call	prep_status@PLT
	mov	rax, QWORD PTR new_cluster[rip]
	cmp	QWORD PTR old_cluster[rip], rax
	je	.L7
	lea	rdx, .LC1[rip]
	mov	esi, r12d
	mov	rdi, rsp
	call	snprintf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L7
	mov	QWORD PTR -88[rbp], 0
	xor	r15d, r15d
	mov	DWORD PTR -72[rbp], 0
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR -104[rbp]
	mov	rsi, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rdi]
	lea	rax, [rax+rsi*8]
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR -96[rbp], rax
	call	connectToServer@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	QWORD PTR -112[rbp], rax
	call	executeQueryOrDie@PLT
	mov	r12, rax
	mov	rdi, rax
	call	PQntuples@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	mov	DWORD PTR -76[rbp], eax
	mov	ebx, eax
	call	PQfnumber@PLT
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	mov	r13d, eax
	call	PQfnumber@PLT
	mov	r14d, eax
	test	ebx, ebx
	jle	.L8
	xor	ebx, ebx
	xor	ecx, ecx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, ebx
	mov	edx, r14d
	mov	rdi, r12
	call	PQgetvalue@PLT
	mov	esi, ebx
	mov	edx, r13d
	mov	rdi, r12
	mov	QWORD PTR -72[rbp], rax
	add	ebx, 1
	call	PQgetvalue@PLT
	mov	rcx, QWORD PTR -72[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, r15
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	ecx, 1
	cmp	DWORD PTR -76[rbp], ebx
	je	.L31
.L11:
	test	r15, r15
	je	.L32
.L9:
	test	ecx, ecx
	jne	.L10
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, r15
	mov	rdx, QWORD PTR [rax]
	xor	eax, eax
	call	fprintf@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, QWORD PTR -120[rbp]
	lea	rsi, .LC5[rip]
	mov	DWORD PTR -72[rbp], ecx
	call	fopen_priv@PLT
	mov	ecx, DWORD PTR -72[rbp]
	test	rax, rax
	mov	r15, rax
	jne	.L9
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rsi, QWORD PTR -120[rbp]
	lea	rdi, .LC6[rip]
	mov	edx, eax
	xor	eax, eax
	call	pg_fatal@PLT
	mov	ecx, DWORD PTR -72[rbp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	mov	DWORD PTR -72[rbp], 1
.L8:
	mov	rdi, r12
	call	PQclear@PLT
	mov	rdi, QWORD PTR -112[rbp]
	call	PQfinish@PLT
	mov	rsi, QWORD PTR -104[rbp]
	add	QWORD PTR -88[rbp], 1
	mov	rax, QWORD PTR -88[rbp]
	cmp	DWORD PTR [rsi], eax
	jg	.L12
	test	r15, r15
	je	.L13
	mov	rdi, r15
	call	fclose@PLT
.L13:
	mov	eax, DWORD PTR -72[rbp]
	test	eax, eax
	je	.L7
	mov	edi, DWORD PTR PG_REPORT[rip]
	lea	rsi, .LC9[rip]
	call	pg_log@PLT
	mov	rsi, QWORD PTR -120[rbp]
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	pg_fatal@PLT
.L14:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, QWORD PTR -128[rbp]
	jne	.L33
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	check_ok@PLT
	jmp	.L14
.L30:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_for_isn_and_int8_passing_mismatch, .-check_for_isn_and_int8_passing_mismatch
	.comm	old_cluster,8,8
	.comm	new_cluster,8,8
	.comm	errno,4,4
	.comm	PG_REPORT,4,4
	.comm	MAXPGPATH,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_check.c_check_for_isn_and_int8_passing_mismatch.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Checking for contrib/isn with bigint-passing mismat"
	.ascii	"ch\000"
	.align	2
.LC1:
	.ascii	"contrib_isn_and_int8_pass_by_value.txt\000"
	.align	2
.LC2:
	.ascii	"SELECT n.nspname, p.proname FROM\011pg_catalog.pg_p"
	.ascii	"roc p, \011\011pg_catalog.pg_namespace n WHERE\011p"
	.ascii	".pronamespace = n.oid AND \011\011p.probin = '$libd"
	.ascii	"ir/isn'\000"
	.align	2
.LC3:
	.ascii	"nspname\000"
	.align	2
.LC4:
	.ascii	"proname\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"could not open file \"%s\": %s\012\000"
	.align	2
.LC7:
	.ascii	"In database: %s\012\000"
	.align	2
.LC8:
	.ascii	"  %s.%s\012\000"
	.align	2
.LC9:
	.ascii	"fatal\012\000"
	.align	2
.LC10:
	.ascii	"Your installation contains \"contrib/isn\" function"
	.ascii	"s which rely on the\012bigint data type.  Your old "
	.ascii	"and new clusters pass bigint values\012differently "
	.ascii	"so this cluster cannot currently be upgraded.  You "
	.ascii	"can\012manually upgrade databases that use \"contri"
	.ascii	"b/isn\" facilities and remove\012\"contrib/isn\" fr"
	.ascii	"om the old cluster and restart the upgrade.  A list"
	.ascii	" of\012the problem functions is in the file:\012   "
	.ascii	" %s\012\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_for_isn_and_int8_passing_mismatch, %function
check_for_isn_and_int8_passing_mismatch:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	r2, r0
	ldr	r3, .L25
	str	sp, [fp, #-72]
	ldr	r4, [r3]
	str	r2, [fp, #-60]
	add	r3, r4, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L25+4
	ldr	r0, .L25+8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	prep_status
	ldr	r2, .L25+12
	ldr	r3, .L25+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	sp, [fp, #-68]
	cmp	r2, r3
	beq	.L4
	mov	r1, r4
	mov	r0, sp
	ldr	r2, .L25+20
	bl	snprintf
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L4
	mov	r5, #0
	mov	r7, r5
	str	r5, [fp, #-56]
.L9:
	ldr	r0, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r3, [r0, #4]
	ldr	r1, [r3, r2, lsl #2]
	add	r3, r3, r2, lsl #2
	str	r3, [fp, #-52]
	bl	connectToServer
	ldr	r1, .L25+24
	str	r0, [fp, #-64]
	bl	executeQueryOrDie
	mov	r6, r0
	bl	PQntuples
	mov	r3, r0
	ldr	r1, .L25+28
	mov	r0, r6
	mov	r4, r3
	str	r3, [fp, #-48]
	bl	PQfnumber
	ldr	r1, .L25+32
	mov	r8, r0
	mov	r0, r6
	bl	PQfnumber
	cmp	r4, #0
	mov	r9, r0
	ble	.L5
	mov	r4, #0
	ldr	r10, .L25+36
	mov	r5, r4
	b	.L8
.L7:
	mov	r1, r4
	mov	r2, r8
	mov	r0, r6
	bl	PQgetvalue
	mov	r1, r4
	mov	r5, r0
	mov	r2, r9
	mov	r0, r6
	bl	PQgetvalue
	mov	r2, r5
	mov	r3, r0
	mov	r1, r10
	mov	r0, r7
	bl	fprintf
	ldr	r3, [fp, #-48]
	add	r4, r4, #1
	cmp	r3, r4
	mov	r5, #1
	beq	.L5
.L8:
	cmp	r7, #0
	beq	.L23
.L6:
	cmp	r5, #0
	bne	.L7
	ldr	r3, [fp, #-52]
	mov	r0, r7
	ldr	r2, [r3]
	ldr	r1, .L25+40
	bl	fprintf
	b	.L7
.L23:
	ldr	r1, .L25+44
	ldr	r0, [fp, #-68]
	bl	fopen_priv
	subs	r7, r0, #0
	bne	.L6
	ldr	r3, .L25+48
	ldr	r0, [r3]
	bl	strerror
	ldr	r1, [fp, #-68]
	mov	r2, r0
	ldr	r0, .L25+52
	bl	pg_fatal
	b	.L6
.L5:
	mov	r0, r6
	bl	PQclear
	ldr	r0, [fp, #-64]
	bl	PQfinish
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r3, [r3]
	add	r2, r2, #1
	cmp	r3, r2
	str	r2, [fp, #-56]
	bgt	.L9
	cmp	r7, #0
	beq	.L10
	mov	r0, r7
	bl	fclose
.L10:
	cmp	r5, #0
	beq	.L4
	ldr	r3, .L25+56
	ldr	r1, .L25+60
	ldr	r0, [r3]
	bl	pg_log
	ldr	r1, [fp, #-68]
	ldr	r0, .L25+64
	bl	pg_fatal
	b	.L11
.L4:
	bl	check_ok
.L11:
	ldr	r3, .L25+4
	ldr	sp, [fp, #-72]
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	MAXPGPATH
	.word	.LC11
	.word	.LC0
	.word	old_cluster
	.word	new_cluster
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC8
	.word	.LC7
	.word	.LC5
	.word	errno
	.word	.LC6
	.word	PG_REPORT
	.word	.LC9
	.word	.LC10
	.size	check_for_isn_and_int8_passing_mismatch, .-check_for_isn_and_int8_passing_mismatch
	.comm	old_cluster,4,4
	.comm	new_cluster,4,4
	.comm	errno,4,4
	.comm	PG_REPORT,4,4
	.comm	MAXPGPATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
