	.file	"extr_connection_management.c_CloseConnection.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"closing untracked connection"
	.text
	.p2align 4
	.globl	CloseConnection
	.type	CloseConnection, @function
CloseConnection:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	PQfinish@PLT
	mov	QWORD PTR 24[rbp], 0
	mov	esi, DWORD PTR 16[rbp]
	mov	edx, DWORD PTR MAX_NODE_LENGTH[rip]
	mov	edi, DWORD PTR 28[rsp]
	call	strlcpy@PLT
	mov	eax, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR NAMEDATALEN[rip]
	mov	edi, DWORD PTR 20[rsp]
	mov	DWORD PTR 24[rsp], eax
	call	strlcpy@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR NAMEDATALEN[rip]
	mov	edi, DWORD PTR 16[rsp]
	call	strlcpy@PLT
	mov	edx, DWORD PTR HASH_FIND[rip]
	mov	edi, DWORD PTR ConnectionHash[rip]
	lea	rcx, 12[rsp]
	lea	rsi, 16[rsp]
	call	hash_search@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L2
	mov	rdi, rbp
	call	dlist_delete@PLT
	mov	rdi, rbp
	call	CloseRemoteTransaction@PLT
	mov	rdi, rbp
	call	CloseShardPlacementAssociation@PLT
	mov	rdi, rbp
	call	pfree@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CloseConnection, .-CloseConnection
	.comm	NAMEDATALEN,4,4
	.comm	MAX_NODE_LENGTH,4,4
	.comm	HASH_FIND,4,4
	.comm	ERROR,4,4
	.comm	ConnectionHash,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_connection_management.c_CloseConnection.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"closing untracked connection\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CloseConnection
	.syntax unified
	.arm
	.fpu softvfp
	.type	CloseConnection, %function
CloseConnection:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L8
	sub	sp, sp, #28
	mov	r4, r0
	ldr	r0, [r0, #20]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	PQfinish
	mov	r2, #0
	ldr	r3, .L8+4
	ldr	r1, [r4, #16]
	ldr	r5, .L8+8
	str	r2, [r4, #20]
	ldr	r0, [sp, #16]
	ldr	r2, [r3]
	bl	strlcpy
	ldr	r3, [r4, #12]
	ldr	r1, [r4, #8]
	ldr	r2, [r5]
	ldr	r0, [sp, #8]
	str	r3, [sp, #12]
	bl	strlcpy
	ldr	r2, [r5]
	ldr	r1, [r4, #4]
	ldr	r0, [sp, #4]
	bl	strlcpy
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	ldr	r0, [r3]
	ldr	r2, [r2]
	mov	r3, sp
	add	r1, sp, #4
	bl	hash_search
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L2
	mov	r0, r4
	bl	dlist_delete
	mov	r0, r4
	bl	CloseRemoteTransaction
	mov	r0, r4
	bl	CloseShardPlacementAssociation
	mov	r0, r4
	bl	pfree
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L8+20
	ldr	r0, .L8+24
	ldr	r4, [r3]
	bl	errmsg
	mov	r1, r0
	mov	r0, r4
	bl	ereport
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	MAX_NODE_LENGTH
	.word	NAMEDATALEN
	.word	ConnectionHash
	.word	HASH_FIND
	.word	ERROR
	.word	.LC0
	.size	CloseConnection, .-CloseConnection
	.comm	NAMEDATALEN,4,4
	.comm	MAX_NODE_LENGTH,4,4
	.comm	HASH_FIND,4,4
	.comm	ERROR,4,4
	.comm	ConnectionHash,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
