	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_and_dump_old_cluster     ## -- Begin function check_and_dump_old_cluster
	.p2align	4, 0x90
_check_and_dump_old_cluster:            ## @check_and_dump_old_cluster
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_start_postmaster
LBB0_2:
	movq	_old_cluster@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_get_db_and_rel_infos
	xorl	%eax, %eax
	callq	_init_tablespaces
	xorl	%eax, %eax
	callq	_get_loadable_libraries
	movq	%rbx, %rdi
	callq	_check_is_install_user
	movq	%rbx, %rdi
	callq	_check_proper_datallowconn
	movq	%rbx, %rdi
	callq	_check_for_prepared_transactions
	movq	%rbx, %rdi
	callq	_check_for_reg_data_type_usage
	movq	%rbx, %rdi
	callq	_check_for_isn_and_int8_passing_mismatch
	movl	(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$1100, %eax                     ## imm = 0x44C
	jg	LBB0_4
## %bb.3:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	callq	_check_for_tables_with_oids
LBB0_4:
	movl	(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$1100, %eax                     ## imm = 0x44C
	jg	LBB0_6
## %bb.5:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	callq	_old_11_check_for_sql_identifier_data_type_usage
LBB0_6:
	movl	(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$906, %eax                      ## imm = 0x38A
	jg	LBB0_9
## %bb.7:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	callq	_old_9_6_check_for_unknown_data_type_usage
	movq	_user_opts@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_old_9_6_invalidate_hash_indexes
LBB0_9:
	movl	(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$905, %eax                      ## imm = 0x389
	jg	LBB0_11
## %bb.10:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	callq	_check_for_pg_role_prefix
LBB0_11:
	movl	(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$904, %eax                      ## imm = 0x388
	jne	LBB0_14
## %bb.12:
	movq	8(%rbx), %rax
	movq	_JSONB_FORMAT_CHANGE_CAT_VER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_14
## %bb.13:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	callq	_check_for_jsonb_9_4_usage
LBB0_14:
	movl	(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$903, %eax                      ## imm = 0x387
	jg	LBB0_16
## %bb.15:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	callq	_old_9_3_check_for_line_data_type_usage
LBB0_16:
	movl	(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$804, %eax                      ## imm = 0x324
	jg	LBB0_18
## %bb.17:
	movq	_old_cluster@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_new_9_0_populate_pg_largeobject_metadata
LBB0_18:
	movq	_user_opts@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.20:
	testl	%r14d, %r14d
	je	LBB0_22
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_19:
	xorl	%eax, %eax
	callq	_generate_old_dump
	testl	%r14d, %r14d
	jne	LBB0_21
LBB0_22:
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_stop_postmaster                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_old_cluster,16,3               ## @old_cluster
	.comm	_user_opts,8,3                  ## @user_opts
	.comm	_JSONB_FORMAT_CHANGE_CAT_VER,8,3 ## @JSONB_FORMAT_CHANGE_CAT_VER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_and_dump_old_cluster     ; -- Begin function check_and_dump_old_cluster
	.p2align	2
_check_and_dump_old_cluster:            ; @check_and_dump_old_cluster
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, _old_cluster@GOTPAGE
Lloh1:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	mov	w1, #1
	bl	_start_postmaster
LBB0_2:
Lloh2:
	adrp	x20, _old_cluster@GOTPAGE
Lloh3:
	ldr	x20, [x20, _old_cluster@GOTPAGEOFF]
	mov	x0, x20
	bl	_get_db_and_rel_infos
	bl	_init_tablespaces
	bl	_get_loadable_libraries
	mov	x0, x20
	bl	_check_is_install_user
	mov	x0, x20
	bl	_check_proper_datallowconn
	mov	x0, x20
	bl	_check_for_prepared_transactions
	mov	x0, x20
	bl	_check_for_reg_data_type_usage
	mov	x0, x20
	bl	_check_for_isn_and_int8_passing_mismatch
	ldr	w0, [x20]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #1100
	b.gt	LBB0_4
; %bb.3:
Lloh4:
	adrp	x0, _old_cluster@GOTPAGE
Lloh5:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	bl	_check_for_tables_with_oids
LBB0_4:
	ldr	w0, [x20]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #1100
	b.gt	LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, _old_cluster@GOTPAGE
Lloh7:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	bl	_old_11_check_for_sql_identifier_data_type_usage
LBB0_6:
	ldr	w0, [x20]
	bl	_GET_MAJOR_VERSION
Lloh8:
	adrp	x21, _user_opts@GOTPAGE
Lloh9:
	ldr	x21, [x21, _user_opts@GOTPAGEOFF]
	cmp	w0, #906
	b.gt	LBB0_9
; %bb.7:
Lloh10:
	adrp	x0, _old_cluster@GOTPAGE
Lloh11:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	bl	_old_9_6_check_for_unknown_data_type_usage
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.8:
Lloh12:
	adrp	x0, _old_cluster@GOTPAGE
Lloh13:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	mov	w1, #1
	bl	_old_9_6_invalidate_hash_indexes
LBB0_9:
	ldr	w0, [x20]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #906
	b.ge	LBB0_11
; %bb.10:
Lloh14:
	adrp	x0, _old_cluster@GOTPAGE
Lloh15:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	bl	_check_for_pg_role_prefix
LBB0_11:
	ldr	w0, [x20]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #904
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x20, #8]
Lloh16:
	adrp	x9, _JSONB_FORMAT_CHANGE_CAT_VER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _JSONB_FORMAT_CHANGE_CAT_VER@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.13:
Lloh19:
	adrp	x0, _old_cluster@GOTPAGE
Lloh20:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	bl	_check_for_jsonb_9_4_usage
LBB0_14:
	ldr	w0, [x20]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #903
	b.gt	LBB0_16
; %bb.15:
Lloh21:
	adrp	x0, _old_cluster@GOTPAGE
Lloh22:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	bl	_old_9_3_check_for_line_data_type_usage
LBB0_16:
	ldr	w0, [x20]
	bl	_GET_MAJOR_VERSION
	cmp	w0, #804
	b.le	LBB0_20
; %bb.17:
	ldr	x8, [x21]
	cbz	x8, LBB0_21
LBB0_18:
	cbz	w19, LBB0_22
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh23:
	adrp	x0, _old_cluster@GOTPAGE
Lloh24:
	ldr	x0, [x0, _old_cluster@GOTPAGEOFF]
	mov	w1, #1
	bl	_new_9_0_populate_pg_largeobject_metadata
	ldr	x8, [x21]
	cbnz	x8, LBB0_18
LBB0_21:
	bl	_generate_old_dump
	cbnz	w19, LBB0_19
LBB0_22:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_stop_postmaster
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_old_cluster,16,3               ; @old_cluster
	.comm	_user_opts,8,3                  ; @user_opts
	.comm	_JSONB_FORMAT_CHANGE_CAT_VER,8,3 ; @JSONB_FORMAT_CHANGE_CAT_VER
.subsections_via_symbols
