	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SyncRepGetStandbyPriority
_SyncRepGetStandbyPriority:             ## @SyncRepGetStandbyPriority
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_am_cascading_walsender@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_SyncStandbysDefined
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	_SyncRepConfig@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	cmpl	$0, 8(%rax)
	jle	LBB0_9
## %bb.4:
	movq	(%rax), %rbx
	movl	$1, %r13d
	movq	_application_name@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_pg_strcasecmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rax, %rbx
	incq	%rbx
	leal	1(%r13), %eax
	movq	(%r12), %rcx
	cmpl	8(%rcx), %r13d
	movl	%eax, %r13d
	jl	LBB0_5
	jmp	LBB0_9
LBB0_8:
	movq	(%r12), %rax
	movq	16(%rax), %rax
	movq	_SYNC_REP_PRIORITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1, %r14d
	cmovel	%r13d, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_am_cascading_walsender,8,3     ## @am_cascading_walsender
	.comm	_SyncRepConfig,8,3              ## @SyncRepConfig
	.comm	_application_name,4,2           ## @application_name
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*"

	.comm	_SYNC_REP_PRIORITY,8,3          ## @SYNC_REP_PRIORITY
	.no_dead_strip	_SyncRepGetStandbyPriority
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SyncRepGetStandbyPriority
_SyncRepGetStandbyPriority:             ; @SyncRepGetStandbyPriority
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _am_cascading_walsender@GOTPAGE
Lloh1:
	ldr	x8, [x8, _am_cascading_walsender@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	bl	_SyncStandbysDefined
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_2
; %bb.4:
Lloh3:
	adrp	x21, _SyncRepConfig@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SyncRepConfig@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.5:
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_1
; %bb.6:
	ldr	x19, [x8]
	mov	w22, #1
Lloh5:
	adrp	x23, _application_name@GOTPAGE
Lloh6:
	ldr	x23, [x23, _application_name@GOTPAGEOFF]
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pg_strcasecmp
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_strlen
	add	x8, x0, x19
	add	x19, x8, #1
	add	w8, w22, #1
	ldr	x9, [x21]
	ldr	w9, [x9, #8]
	cmp	w22, w9
	mov	x22, x8
	b.lt	LBB0_7
	b	LBB0_1
LBB0_10:
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
Lloh9:
	adrp	x9, _SYNC_REP_PRIORITY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SYNC_REP_PRIORITY@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	csinc	w0, w22, wzr, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_am_cascading_walsender,8,3     ; @am_cascading_walsender
	.comm	_SyncRepConfig,8,3              ; @SyncRepConfig
	.comm	_application_name,4,2           ; @application_name
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*"

	.comm	_SYNC_REP_PRIORITY,8,3          ; @SYNC_REP_PRIORITY
	.no_dead_strip	_SyncRepGetStandbyPriority
.subsections_via_symbols
