	.file	"extr_multi_client_executor.c_MultiClientConnectPoll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	MultiClientConnectPoll
	.type	MultiClientConnectPoll, @function
MultiClientConnectPoll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR INVALID_CONNECTION_ID[rip], rdi
	mov	r12d, DWORD PTR CLIENT_INVALID_CONNECT[rip]
	setne	dil
	movzx	edi, dil
	call	Assert@PLT
	mov	rax, QWORD PTR ClientConnectionArray[rip]
	xor	edi, edi
	mov	rbp, QWORD PTR [rax+rbx*8]
	test	rbp, rbp
	setne	dil
	call	Assert@PLT
	mov	rax, QWORD PTR ClientPollingStatusArray[rip]
	mov	rax, QWORD PTR [rax+rbx*8]
	cmp	QWORD PTR PGRES_POLLING_OK[rip], rax
	je	.L13
	mov	rsi, QWORD PTR PGRES_POLLING_READING[rip]
	lea	r13, 0[0+rbx*8]
	cmp	rsi, rax
	je	.L14
	mov	rsi, QWORD PTR PGRES_POLLING_WRITING[rip]
	cmp	rsi, rax
	je	.L15
	cmp	QWORD PTR PGRES_POLLING_FAILED[rip], rax
	je	.L16
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r12d, DWORD PTR CLIENT_CONNECTION_READY[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	ClientConnectionReady@PLT
	mov	r12d, DWORD PTR CLIENT_CONNECTION_BUSY_WRITE[rip]
	test	eax, eax
	je	.L1
.L11:
	mov	edi, DWORD PTR 0[rbp]
	add	r13, QWORD PTR ClientPollingStatusArray[rip]
	call	PQconnectPoll@PLT
	mov	r12d, DWORD PTR CLIENT_CONNECTION_BUSY[rip]
	mov	QWORD PTR 0[r13], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	ClientConnectionReady@PLT
	mov	r12d, DWORD PTR CLIENT_CONNECTION_BUSY_READ[rip]
	test	eax, eax
	je	.L1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR WARNING[rip]
	mov	rdi, rbp
	call	ReportConnectionError@PLT
	mov	r12d, DWORD PTR CLIENT_CONNECTION_BAD[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	MultiClientConnectPoll, .-MultiClientConnectPoll
	.comm	WARNING,4,4
	.comm	PGRES_POLLING_WRITING,8,8
	.comm	PGRES_POLLING_READING,8,8
	.comm	PGRES_POLLING_OK,8,8
	.comm	PGRES_POLLING_FAILED,8,8
	.comm	INVALID_CONNECTION_ID,8,8
	.comm	ClientPollingStatusArray,8,8
	.comm	ClientConnectionArray,8,8
	.comm	CLIENT_INVALID_CONNECT,4,4
	.comm	CLIENT_CONNECTION_READY,4,4
	.comm	CLIENT_CONNECTION_BUSY_WRITE,4,4
	.comm	CLIENT_CONNECTION_BUSY_READ,4,4
	.comm	CLIENT_CONNECTION_BUSY,4,4
	.comm	CLIENT_CONNECTION_BAD,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_multi_client_executor.c_MultiClientConnectPoll.c"
	.text
	.align	2
	.global	MultiClientConnectPoll
	.syntax unified
	.arm
	.fpu softvfp
	.type	MultiClientConnectPoll, %function
MultiClientConnectPoll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r2, .L15
	ldr	r3, .L15+4
	ldr	r0, [r2]
	ldr	r5, [r3]
	subs	r0, r0, r4
	movne	r0, #1
	bl	Assert
	ldr	r3, .L15+8
	ldr	r7, .L15+12
	ldr	r3, [r3]
	ldr	r6, [r3, r4, lsl #2]
	subs	r0, r6, #0
	movne	r0, #1
	bl	Assert
	ldr	r3, [r7]
	ldr	r2, .L15+16
	ldr	r3, [r3, r4, lsl #2]
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L11
	ldr	r2, .L15+20
	ldr	r1, [r2]
	cmp	r1, r3
	beq	.L12
	ldr	r2, .L15+24
	ldr	r1, [r2]
	cmp	r1, r3
	beq	.L13
	ldr	r2, .L15+28
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L14
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L15+32
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, r6
	bl	ClientConnectionReady
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L15+36
	ldr	r5, [r3]
	b	.L1
.L12:
	mov	r0, r6
	bl	ClientConnectionReady
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L15+40
	ldr	r5, [r3]
	b	.L1
.L14:
	ldr	r3, .L15+44
	mov	r0, r6
	ldr	r1, [r3]
	bl	ReportConnectionError
	ldr	r3, .L15+48
	ldr	r5, [r3]
	b	.L1
.L9:
	ldr	r0, [r6]
	ldr	r5, [r7]
	bl	PQconnectPoll
	ldr	r3, .L15+52
	str	r0, [r5, r4, lsl #2]
	ldr	r5, [r3]
	b	.L1
.L16:
	.align	2
.L15:
	.word	INVALID_CONNECTION_ID
	.word	CLIENT_INVALID_CONNECT
	.word	ClientConnectionArray
	.word	ClientPollingStatusArray
	.word	PGRES_POLLING_OK
	.word	PGRES_POLLING_READING
	.word	PGRES_POLLING_WRITING
	.word	PGRES_POLLING_FAILED
	.word	CLIENT_CONNECTION_READY
	.word	CLIENT_CONNECTION_BUSY_WRITE
	.word	CLIENT_CONNECTION_BUSY_READ
	.word	WARNING
	.word	CLIENT_CONNECTION_BAD
	.word	CLIENT_CONNECTION_BUSY
	.size	MultiClientConnectPoll, .-MultiClientConnectPoll
	.comm	WARNING,4,4
	.comm	PGRES_POLLING_WRITING,4,4
	.comm	PGRES_POLLING_READING,4,4
	.comm	PGRES_POLLING_OK,4,4
	.comm	PGRES_POLLING_FAILED,4,4
	.comm	INVALID_CONNECTION_ID,4,4
	.comm	ClientPollingStatusArray,4,4
	.comm	ClientConnectionArray,4,4
	.comm	CLIENT_INVALID_CONNECT,4,4
	.comm	CLIENT_CONNECTION_READY,4,4
	.comm	CLIENT_CONNECTION_BUSY_WRITE,4,4
	.comm	CLIENT_CONNECTION_BUSY_READ,4,4
	.comm	CLIENT_CONNECTION_BUSY,4,4
	.comm	CLIENT_CONNECTION_BAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
