	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GenerateRecoveryConfig         ## -- Begin function GenerateRecoveryConfig
	.p2align	4, 0x90
_GenerateRecoveryConfig:                ## @GenerateRecoveryConfig
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_PQserverVersion
	movq	_MINIMUM_VERSION_FOR_RECOVERY_GUC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_appendPQExpBufferStr
LBB0_3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_PQconninfo
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdi
	callq	_initPQExpBuffer
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.5:
	leaq	L_.str.2(%rip), %rbx
	leaq	L_.str.3(%rip), %r13
	leaq	L_.str.4(%rip), %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rdx
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_appendPQExpBuffer
	movq	8(%r15), %rsi
	movq	%r12, %rdi
	callq	_appendConnStrVal
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r15), %rdi
	addq	$16, %r15
	testq	%rdi, %rdi
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$0, (%rax)
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, -56(%rbp)
	leaq	-56(%rbp), %r12
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	-56(%rbp), %rdi
	movl	$32, %esi
	callq	_appendPQExpBufferChar
	leaq	-56(%rbp), %r12
	jmp	LBB0_13
LBB0_15:
	movq	-56(%rbp), %rdi
	movl	-48(%rbp), %esi
	callq	_PQExpBufferDataBroken
	testq	%rax, %rax
	jne	LBB0_20
## %bb.16:
	movl	-48(%rbp), %edi
	callq	_escape_quotes
	movq	%rax, %r14
	leaq	-56(%rbp), %rdi
	callq	_termPQExpBuffer
	leaq	L_.str.6(%rip), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_appendPQExpBuffer
	movq	%r14, %rdi
	callq	_free
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_appendPQExpBuffer
LBB0_18:
	movq	%rbx, %rdi
	callq	_PQExpBufferBroken
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_PQconninfoFree
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str(%rip), %rdi
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_MINIMUM_VERSION_FOR_RECOVERY_GUC,8,3 ## @MINIMUM_VERSION_FOR_RECOVERY_GUC
L_.str.1:                               ## @.str.1
	.asciz	"standby_mode = 'on'\n"

L_.str.2:                               ## @.str.2
	.asciz	"replication"

L_.str.3:                               ## @.str.3
	.asciz	"dbname"

L_.str.4:                               ## @.str.4
	.asciz	"fallback_application_name"

L_.str.5:                               ## @.str.5
	.asciz	"%s="

L_.str.6:                               ## @.str.6
	.asciz	"primary_conninfo = '%s'\n"

L_.str.7:                               ## @.str.7
	.asciz	"primary_slot_name = '%s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GenerateRecoveryConfig         ; -- Begin function GenerateRecoveryConfig
	.p2align	2
_GenerateRecoveryConfig:                ; @GenerateRecoveryConfig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_Assert
	bl	_createPQExpBuffer
	cbz	x0, LBB0_20
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	bl	_PQserverVersion
Lloh0:
	adrp	x8, _MINIMUM_VERSION_FOR_RECOVERY_GUC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MINIMUM_VERSION_FOR_RECOVERY_GUC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBufferStr
LBB0_3:
	mov	x0, x21
	bl	_PQconninfo
	cbz	x0, LBB0_20
; %bb.4:
	mov	x21, x0
	mov	x0, sp
	bl	_initPQExpBuffer
	ldr	x0, [x21]
	cbz	x0, LBB0_15
; %bb.5:
Lloh5:
	adrp	x22, l_.str.2@PAGE
Lloh6:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh7:
	adrp	x23, l_.str.3@PAGE
Lloh8:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh9:
	adrp	x24, l_.str.4@PAGE
Lloh10:
	add	x24, x24, l_.str.4@PAGEOFF
	mov	x26, x21
Lloh11:
	adrp	x25, l_.str.5@PAGE
Lloh12:
	add	x25, x25, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x2, [x26]
	mov	x0, sp
	mov	x1, x25
	bl	_appendPQExpBuffer
	ldr	x1, [x26, #8]
	mov	x0, sp
	bl	_appendConnStrVal
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x26, #16]!
	cbz	x0, LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x26]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x26]
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x8]
	cbz	w8, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp]
	cbz	x8, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, sp
	mov	w1, #32
	bl	_appendPQExpBufferChar
	b	LBB0_6
LBB0_15:
	ldp	x0, x1, [sp]
	bl	_PQExpBufferDataBroken
	cbnz	x0, LBB0_20
; %bb.16:
	ldr	w0, [sp, #8]
	bl	_escape_quotes
	mov	x22, x0
	mov	x0, sp
	bl	_termPQExpBuffer
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_appendPQExpBuffer
	mov	x0, x22
	bl	_free
	cbz	x20, LBB0_18
; %bb.17:
Lloh15:
	adrp	x1, l_.str.7@PAGE
Lloh16:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_appendPQExpBuffer
LBB0_18:
	mov	x0, x19
	bl	_PQExpBufferBroken
	cbnz	x0, LBB0_20
; %bb.19:
	mov	x0, x21
	bl	_PQconninfoFree
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_MINIMUM_VERSION_FOR_RECOVERY_GUC,8,3 ; @MINIMUM_VERSION_FOR_RECOVERY_GUC
l_.str.1:                               ; @.str.1
	.asciz	"standby_mode = 'on'\n"

l_.str.2:                               ; @.str.2
	.asciz	"replication"

l_.str.3:                               ; @.str.3
	.asciz	"dbname"

l_.str.4:                               ; @.str.4
	.asciz	"fallback_application_name"

l_.str.5:                               ; @.str.5
	.asciz	"%s="

l_.str.6:                               ; @.str.6
	.asciz	"primary_conninfo = '%s'\n"

l_.str.7:                               ; @.str.7
	.asciz	"primary_slot_name = '%s'\n"

.subsections_via_symbols
