	.file	"extr_launcher.c_logicalrep_workers_find.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	logicalrep_workers_find
	.type	logicalrep_workers_find, @function
logicalrep_workers_find:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR LogicalRepWorkerLock[rip]
	mov	r13, QWORD PTR NIL[rip]
	call	LWLockHeldByMe@PLT
	mov	edi, eax
	call	Assert@PLT
	mov	eax, DWORD PTR max_logical_replication_workers[rip]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR max_logical_replication_workers[rip], ebx
	jle	.L1
.L5:
	mov	rdx, QWORD PTR LogicalRepCtx[rip]
	lea	rax, [rbx+rbx*2]
	mov	rdx, QWORD PTR [rdx]
	lea	rsi, [rdx+rax*8]
	cmp	QWORD PTR 16[rsi], 0
	je	.L3
	cmp	QWORD PTR [rsi], r12
	jne	.L3
	test	ebp, ebp
	je	.L4
	cmp	QWORD PTR 8[rsi], 0
	je	.L3
.L4:
	mov	rdi, r13
	add	rbx, 1
	call	lappend@PLT
	cmp	DWORD PTR max_logical_replication_workers[rip], ebx
	mov	r13, rax
	jg	.L5
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
	.cfi_endproc
.LFE0:
	.size	logicalrep_workers_find, .-logicalrep_workers_find
	.comm	max_logical_replication_workers,4,4
	.comm	NIL,8,8
	.comm	LogicalRepWorkerLock,4,4
	.comm	LogicalRepCtx,8,8
	.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_launcher.c_logicalrep_workers_find.c"
	.text
	.align	2
	.global	logicalrep_workers_find
	.syntax unified
	.arm
	.fpu softvfp
	.type	logicalrep_workers_find, %function
logicalrep_workers_find:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L18
	ldr	r3, .L18+4
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	ldr	r5, .L18+8
	ldr	r0, [r2]
	ldr	r9, [r3]
	mov	r7, r1
	bl	LWLockHeldByMe
	bl	Assert
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L1
	mov	r4, #0
	ldr	r6, .L18+12
	b	.L5
.L3:
	ldr	r3, [r5]
	cmp	r3, r4
	ble	.L1
.L5:
	ldr	r3, [r6]
	add	r2, r4, r4, lsl #1
	ldr	r3, [r3]
	add	r4, r4, #1
	add	r1, r3, r2, lsl #2
	ldr	r0, [r1, #8]
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, r8
	bne	.L3
	cmp	r7, #0
	beq	.L4
	ldr	r3, [r1, #4]
	cmp	r3, #0
	beq	.L3
.L4:
	mov	r0, r9
	bl	lappend
	ldr	r3, [r5]
	mov	r9, r0
	cmp	r3, r4
	bgt	.L5
.L1:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	.align	2
.L18:
	.word	LogicalRepWorkerLock
	.word	NIL
	.word	max_logical_replication_workers
	.word	LogicalRepCtx
	.size	logicalrep_workers_find, .-logicalrep_workers_find
	.comm	max_logical_replication_workers,4,4
	.comm	NIL,4,4
	.comm	LogicalRepWorkerLock,4,4
	.comm	LogicalRepCtx,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
