	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RunIdentifySystem              ## -- Begin function RunIdentifySystem
	.p2align	4, 0x90
_RunIdentifySystem:                     ## @RunIdentifySystem
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_Assert
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQexec
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_PQnfields
	cmpl	$2, %eax
	jg	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	callq	_PQntuples
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_PQnfields
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	movl	$3, %r8d
LBB0_5:
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_6
LBB0_1:
	movq	%rbx, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pg_log_error
LBB0_6:
	movq	%r15, %rdi
	callq	_PQclear
LBB0_21:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, (%r14)
LBB0_9:
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atoi
	movl	%eax, (%r13)
LBB0_11:
	testq	%r12, %r12
	je	LBB0_14
## %bb.12:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_PQgetvalue
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movl	%eax, %edi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_13
LBB0_14:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_20
## %bb.15:
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_PQserverVersion
	cmpl	$90400, %eax                    ## imm = 0x16120
	jl	LBB0_20
## %bb.16:
	movq	%r15, %rdi
	callq	_PQnfields
	movq	%r15, %rdi
	cmpl	$3, %eax
	jg	LBB0_18
## %bb.17:
	callq	_PQntuples
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_PQnfields
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	movl	$4, %r8d
	jmp	LBB0_5
LBB0_13:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_PQgetvalue
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_6
LBB0_18:
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_PQgetisnull
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, (%r14)
LBB0_20:
	movq	%r15, %rdi
	callq	_PQclear
	movl	$1, %r12d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IDENTIFY_SYSTEM"

	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
L_.str.1:                               ## @.str.1
	.asciz	"could not send replication command \"%s\": %s"

L_.str.2:                               ## @.str.2
	.asciz	"could not identify system: got %d rows and %d fields, expected %d rows and %d or more fields"

L_.str.3:                               ## @.str.3
	.asciz	"%X/%X"

L_.str.4:                               ## @.str.4
	.asciz	"could not parse write-ahead log location \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RunIdentifySystem              ; -- Begin function RunIdentifySystem
	.p2align	2
_RunIdentifySystem:                     ; @RunIdentifySystem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_Assert
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x25
	bl	_PQexec
	mov	x19, x0
	bl	_PQresultStatus
Lloh2:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_PQnfields
	cmp	w0, #2
	b.gt	LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_PQntuples
	mov	x20, x0
	mov	x0, x19
	bl	_PQnfields
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, #3
LBB0_4:
	mov	w9, #1
	stp	x9, x8, [sp, #16]
	stp	x20, x0, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_PQerrorMessage
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_pg_log_error
	mov	x0, x19
	bl	_PQclear
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	cbz	x24, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x24]
LBB0_10:
	cbz	x23, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetvalue
	bl	_atoi
	str	w0, [x23]
LBB0_12:
	cbz	x22, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_PQgetvalue
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #44
	add	x3, sp, #40
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_18
LBB0_14:
	cbz	x20, LBB0_21
; %bb.15:
	str	xzr, [x20]
	mov	x0, x21
	bl	_PQserverVersion
	mov	w8, #24864
	movk	w8, #1, lsl #16
	cmp	w0, w8
	b.lt	LBB0_21
; %bb.16:
	mov	x0, x19
	bl	_PQnfields
	cmp	w0, #3
	b.gt	LBB0_19
; %bb.17:
	mov	x0, x19
	bl	_PQntuples
	mov	x20, x0
	mov	x0, x19
	bl	_PQnfields
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, #4
	b	LBB0_4
LBB0_18:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_PQgetvalue
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_19:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #3
	bl	_PQgetisnull
	cbnz	w0, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #3
	bl	_PQgetvalue
	bl	_pg_strdup
	str	x0, [x20]
LBB0_21:
	mov	x0, x19
	bl	_PQclear
	mov	w0, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IDENTIFY_SYSTEM"

	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
l_.str.1:                               ; @.str.1
	.asciz	"could not send replication command \"%s\": %s"

l_.str.2:                               ; @.str.2
	.asciz	"could not identify system: got %d rows and %d fields, expected %d rows and %d or more fields"

l_.str.3:                               ; @.str.3
	.asciz	"%X/%X"

l_.str.4:                               ; @.str.4
	.asciz	"could not parse write-ahead log location \"%s\""

.subsections_via_symbols
