	.file	"extr_syncrep.c_SyncRepGetSyncStandbys.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SyncRepGetSyncStandbys
	.type	SyncRepGetSyncStandbys, @function
SyncRepGetSyncStandbys:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, DWORD PTR SyncRepLock[rip]
	call	LWLockHeldByMe@PLT
	mov	edi, eax
	call	Assert@PLT
	test	rbp, rbp
	je	.L2
	mov	DWORD PTR 0[rbp], 0
.L2:
	mov	rax, QWORD PTR SyncRepConfig[rip]
	test	rax, rax
	je	.L12
	mov	rdx, QWORD PTR SYNC_REP_PRIORITY[rip]
	mov	rdi, rbp
	cmp	QWORD PTR [rax], rdx
	je	.L13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	SyncRepGetSyncStandbysQuorum@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	SyncRepGetSyncStandbysPriority@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR NIL[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	SyncRepGetSyncStandbys, .-SyncRepGetSyncStandbys
	.comm	SyncRepLock,4,4
	.comm	SyncRepConfig,8,8
	.comm	SYNC_REP_PRIORITY,8,8
	.comm	NIL,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_syncrep.c_SyncRepGetSyncStandbys.c"
	.text
	.align	2
	.global	SyncRepGetSyncStandbys
	.syntax unified
	.arm
	.fpu softvfp
	.type	SyncRepGetSyncStandbys, %function
SyncRepGetSyncStandbys:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L14
	ldr	r0, [r3]
	bl	LWLockHeldByMe
	bl	Assert
	cmp	r4, #0
	movne	r3, #0
	strne	r3, [r4]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r1, .L14+8
	ldr	r2, [r3]
	ldr	r3, [r1]
	mov	r0, r4
	cmp	r2, r3
	beq	.L13
	pop	{r4, lr}
	b	SyncRepGetSyncStandbysQuorum
.L13:
	pop	{r4, lr}
	b	SyncRepGetSyncStandbysPriority
.L12:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	SyncRepLock
	.word	SyncRepConfig
	.word	SYNC_REP_PRIORITY
	.word	NIL
	.size	SyncRepGetSyncStandbys, .-SyncRepGetSyncStandbys
	.comm	SyncRepLock,4,4
	.comm	SyncRepConfig,4,4
	.comm	SYNC_REP_PRIORITY,4,4
	.comm	NIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
