	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetMultiXactIdLimit            ## -- Begin function SetMultiXactIdLimit
	.p2align	4, 0x90
_SetMultiXactIdLimit:                   ## @SetMultiXactIdLimit
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_MultiXactIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	_MaxMultiXactId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	cltq
	addq	%r15, %rax
	movq	_FirstMultiXactId@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r12d, %r12d
	cmpq	%rcx, %rax
	movl	$0, %edx
	cmovlq	%rcx, %rdx
	leaq	(%rdx,%rax), %rbx
	addq	$-100, %rbx
	cmpq	%rcx, %rbx
	movl	$0, %esi
	cmovlq	%rcx, %rsi
	leaq	(%rdx,%rax), %r13
	subq	%rsi, %rbx
	leaq	-10000000(%rbx), %rax
	cmpq	%rcx, %rax
	movl	$0, %eax
	cmovlq	%rcx, %rax
	negq	%rax
	leaq	(%rbx,%rax), %r14
	addq	$-10000000, %r14                ## imm = 0xFF676980
	movq	_autovacuum_multixact_freeze_max_age@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r15, %rax
	cmpq	%rcx, %rax
	cmovlq	%rcx, %r12
	addq	%rax, %r12
	movq	_MultiXactGenLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_MultiXactState@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	%r15, 56(%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	(%rdx), %rax
	movq	%r12, 48(%rax)
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, 40(%rax)
	movq	%rbx, 32(%rax)
	movq	%r13, 24(%rax)
	movq	8(%rax), %r15
	movq	_MultiXactGenLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rcx, %r14
	callq	_LWLockRelease
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	_MultiXactState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, 16(%rax)
	je	LBB0_10
## %bb.1:
	movq	_InRecovery@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_Assert
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_SetOffsetVacuumLimit
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_MultiXactIdPrecedes
	testq	%rax, %rax
	setne	%al
	testl	%ebx, %ebx
	setne	%cl
	orb	%al, %cl
	cmpb	$1, %cl
	jne	LBB0_4
## %bb.2:
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_PMSIGNAL_START_AUTOVAC_LAUNCHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SendPostmasterSignal
LBB0_4:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_MultiXactIdPrecedes
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	xorl	%eax, %eax
	callq	_IsTransactionState
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_database_name
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	subq	%r15, %rdx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rcx
	jmp	LBB0_9
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	subq	%r15, %rdx
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_9:
	movq	%rdx, %r8
	callq	_errmsg_plural
	leaq	L_.str.3(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxMultiXactId,4,2             ## @MaxMultiXactId
	.comm	_FirstMultiXactId,8,3           ## @FirstMultiXactId
	.comm	_autovacuum_multixact_freeze_max_age,8,3 ## @autovacuum_multixact_freeze_max_age
	.comm	_MultiXactGenLock,4,2           ## @MultiXactGenLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_MultiXactState,8,3             ## @MultiXactState
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MultiXactId wrap limit is %u, limited by database with OID %u"

	.comm	_InRecovery,4,2                 ## @InRecovery
	.comm	_IsUnderPostmaster,8,3          ## @IsUnderPostmaster
	.comm	_PMSIGNAL_START_AUTOVAC_LAUNCHER,4,2 ## @PMSIGNAL_START_AUTOVAC_LAUNCHER
	.comm	_WARNING,4,2                    ## @WARNING
L_.str.1:                               ## @.str.1
	.asciz	"database \"%s\" must be vacuumed before %u more MultiXactId is used"

L_.str.2:                               ## @.str.2
	.asciz	"database \"%s\" must be vacuumed before %u more MultiXactIds are used"

L_.str.3:                               ## @.str.3
	.asciz	"To avoid a database shutdown, execute a database-wide VACUUM in that database.\nYou might also need to commit or roll back old prepared transactions, or drop stale replication slots."

L_.str.4:                               ## @.str.4
	.asciz	"database with OID %u must be vacuumed before %u more MultiXactId is used"

L_.str.5:                               ## @.str.5
	.asciz	"database with OID %u must be vacuumed before %u more MultiXactIds are used"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetMultiXactIdLimit            ; -- Begin function SetMultiXactIdLimit
	.p2align	2
_SetMultiXactIdLimit:                   ; @SetMultiXactIdLimit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	bl	_MultiXactIdIsValid
	bl	_Assert
Lloh0:
	adrp	x8, _MaxMultiXactId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MaxMultiXactId@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w8, #1
	add	x8, x21, w8, sxtw
Lloh3:
	adrp	x9, _FirstMultiXactId@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FirstMultiXactId@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x10, x9, xzr, lt
	add	x20, x10, x8
	sub	x8, x20, #100
	cmp	x8, x9
	csel	x10, x9, xzr, lt
	sub	x25, x8, x10
	sub	x8, x25, #2441, lsl #12         ; =9998336
	sub	x8, x8, #1664
	cmp	x8, x9
	csel	x10, x9, xzr, lt
Lloh6:
	adrp	x11, _autovacuum_multixact_freeze_max_age@GOTPAGE
Lloh7:
	ldr	x11, [x11, _autovacuum_multixact_freeze_max_age@GOTPAGEOFF]
	sub	x23, x8, x10
Lloh8:
	ldr	x8, [x11]
	add	x8, x8, x21
	cmp	x8, x9
	csel	x9, x9, xzr, lt
	add	x24, x9, x8
Lloh9:
	adrp	x26, _MultiXactGenLock@GOTPAGE
Lloh10:
	ldr	x26, [x26, _MultiXactGenLock@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh11:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh14:
	adrp	x27, _MultiXactState@GOTPAGE
Lloh15:
	ldr	x27, [x27, _MultiXactState@GOTPAGEOFF]
	ldr	x8, [x27]
	str	x21, [x8, #56]
	str	x19, [x8]
	ldr	x8, [x27]
	stp	x23, x24, [x8, #40]
	stp	x20, x25, [x8, #24]
	ldr	x21, [x8, #8]
	ldr	w0, [x26]
	bl	_LWLockRelease
Lloh16:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh18:
	ldr	w25, [x8]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
	ldr	x8, [x27]
	ldr	w8, [x8, #16]
	cbz	w8, LBB0_7
; %bb.1:
Lloh21:
	adrp	x8, _InRecovery@GOTPAGE
Lloh22:
	ldr	x8, [x8, _InRecovery@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x22
	bl	_SetOffsetVacuumLimit
	mov	x22, x0
	mov	x0, x24
	mov	x1, x21
	bl	_MultiXactIdPrecedes
	cmp	w22, #0
	ccmp	x0, #0, #0, eq
Lloh24:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:
Lloh27:
	adrp	x8, _PMSIGNAL_START_AUTOVAC_LAUNCHER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PMSIGNAL_START_AUTOVAC_LAUNCHER@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_SendPostmasterSignal
LBB0_3:
	mov	x0, x23
	mov	x1, x21
	bl	_MultiXactIdPrecedes
	cbz	x0, LBB0_7
; %bb.4:
	bl	_IsTransactionState
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_get_database_name
	cbz	x0, LBB0_8
; %bb.6:
	mov	x3, x0
Lloh30:
	adrp	x8, _WARNING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
	sub	x2, x20, x21
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh37:
	adrp	x8, _WARNING@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh39:
	ldr	w22, [x8]
	sub	x2, x20, x21
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x3, x19
LBB0_9:
	mov	x4, x2
	bl	_errmsg_plural
Lloh44:
	adrp	x0, l_.str.3@PAGE
Lloh45:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x22
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxMultiXactId,4,2             ; @MaxMultiXactId
	.comm	_FirstMultiXactId,8,3           ; @FirstMultiXactId
	.comm	_autovacuum_multixact_freeze_max_age,8,3 ; @autovacuum_multixact_freeze_max_age
	.comm	_MultiXactGenLock,4,2           ; @MultiXactGenLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_MultiXactState,8,3             ; @MultiXactState
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MultiXactId wrap limit is %u, limited by database with OID %u"

	.comm	_InRecovery,4,2                 ; @InRecovery
	.comm	_IsUnderPostmaster,8,3          ; @IsUnderPostmaster
	.comm	_PMSIGNAL_START_AUTOVAC_LAUNCHER,4,2 ; @PMSIGNAL_START_AUTOVAC_LAUNCHER
	.comm	_WARNING,4,2                    ; @WARNING
l_.str.1:                               ; @.str.1
	.asciz	"database \"%s\" must be vacuumed before %u more MultiXactId is used"

l_.str.2:                               ; @.str.2
	.asciz	"database \"%s\" must be vacuumed before %u more MultiXactIds are used"

l_.str.3:                               ; @.str.3
	.asciz	"To avoid a database shutdown, execute a database-wide VACUUM in that database.\nYou might also need to commit or roll back old prepared transactions, or drop stale replication slots."

l_.str.4:                               ; @.str.4
	.asciz	"database with OID %u must be vacuumed before %u more MultiXactId is used"

l_.str.5:                               ; @.str.5
	.asciz	"database with OID %u must be vacuumed before %u more MultiXactIds are used"

.subsections_via_symbols
