	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetTransactionIdLimit          ## -- Begin function SetTransactionIdLimit
	.p2align	4, 0x90
_SetTransactionIdLimit:                 ## @SetTransactionIdLimit
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	callq	_TransactionIdIsNormal
	movl	%eax, %edi
	callq	_Assert
	movq	_MaxTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	cltq
	addq	%r13, %rax
	movq	_FirstNormalTransactionId@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r15d, %r15d
	cmpq	%rcx, %rax
	movl	$0, %edx
	cmovlq	%rcx, %rdx
	leaq	(%rdx,%rax), %rbx
	addq	$-1000000, %rbx                 ## imm = 0xFFF0BDC0
	cmpq	%rcx, %rbx
	movl	$0, %esi
	cmovlq	%rcx, %rsi
	leaq	(%rdx,%rax), %r12
	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_freeze_max_age@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r13, %rax
	cmpq	%rcx, %rax
	cmovlq	%rcx, %r15
	addq	%rax, %r15
	movq	_XidGenLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_ShmemVariableCache@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, 48(%rcx)
	movq	%r15, 40(%rcx)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, 32(%rcx)
	movq	%rbx, 24(%rcx)
	movq	%r12, 16(%rcx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%rcx)
	movq	(%rax), %rax
	movl	8(%rax), %edi
	callq	_XidFromFullTransactionId
	movq	%rax, %r13
	movq	_XidGenLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_TransactionIdFollowsOrEquals
	movq	_InRecovery@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_PMSIGNAL_START_AUTOVAC_LAUNCHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SendPostmasterSignal
LBB0_4:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_TransactionIdFollowsOrEquals
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	cmpl	$0, (%rbx)
	jne	LBB0_11
## %bb.6:
	xorl	%eax, %eax
	callq	_IsTransactionState
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_get_database_name
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	subq	%r13, %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	jmp	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	subq	%r13, %rdx
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
LBB0_10:
	callq	_errmsg
	leaq	L_.str.2(%rip), %rdi
	callq	_errhint
	movl	%r14d, %edi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxTransactionId,4,2           ## @MaxTransactionId
	.comm	_FirstNormalTransactionId,8,3   ## @FirstNormalTransactionId
	.comm	_autovacuum_freeze_max_age,8,3  ## @autovacuum_freeze_max_age
	.comm	_XidGenLock,4,2                 ## @XidGenLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transaction ID wrap limit is %u, limited by database with OID %u"

	.comm	_IsUnderPostmaster,8,3          ## @IsUnderPostmaster
	.comm	_InRecovery,4,2                 ## @InRecovery
	.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 within %u transactions"

L_.str.2:                               ## @.str.2
	.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.3:                               ## @.str.3
	.asciz	"database with OID %u must be vacuumed within %u transactions"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetTransactionIdLimit          ; -- Begin function SetTransactionIdLimit
	.p2align	2
_SetTransactionIdLimit:                 ; @SetTransactionIdLimit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x21, x0
	bl	_TransactionIdIsNormal
	bl	_Assert
Lloh0:
	adrp	x8, _MaxTransactionId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MaxTransactionId@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w8, #1
	add	x8, x21, w8, sxtw
Lloh3:
	adrp	x9, _FirstNormalTransactionId@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FirstNormalTransactionId@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x10, x9, xzr, lt
	add	x20, x10, x8
	sub	x8, x20, #244, lsl #12          ; =999424
	sub	x8, x8, #576
	cmp	x8, x9
	csel	x10, x9, xzr, lt
	sub	x24, x8, x10
	sub	x8, x24, #2441, lsl #12         ; =9998336
	sub	x8, x8, #1664
	cmp	x8, x9
	csel	x10, x9, xzr, lt
Lloh6:
	adrp	x11, _autovacuum_freeze_max_age@GOTPAGE
Lloh7:
	ldr	x11, [x11, _autovacuum_freeze_max_age@GOTPAGEOFF]
	sub	x22, x8, x10
Lloh8:
	ldr	x8, [x11]
	add	x8, x8, x21
	cmp	x8, x9
	csel	x9, x9, xzr, lt
	add	x23, x9, x8
Lloh9:
	adrp	x25, _XidGenLock@GOTPAGE
Lloh10:
	ldr	x25, [x25, _XidGenLock@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh11:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh14:
	adrp	x8, _ShmemVariableCache@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ShmemVariableCache@GOTPAGEOFF]
	ldr	x9, [x8]
	stp	x23, x21, [x9, #40]
	stp	x24, x22, [x9, #24]
	str	x20, [x9, #16]
	str	x19, [x9]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	bl	_XidFromFullTransactionId
	mov	x21, x0
	ldr	w0, [x25]
	bl	_LWLockRelease
Lloh16:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh18:
	ldr	w24, [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, x24
	bl	_ereport
	mov	x0, x21
	mov	x1, x23
	bl	_TransactionIdFollowsOrEquals
Lloh21:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x23, _InRecovery@GOTPAGE
Lloh25:
	ldr	x23, [x23, _InRecovery@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_2
; %bb.1:
Lloh26:
	adrp	x8, _PMSIGNAL_START_AUTOVAC_LAUNCHER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PMSIGNAL_START_AUTOVAC_LAUNCHER@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_SendPostmasterSignal
LBB0_2:
	mov	x0, x21
	mov	x1, x22
	bl	_TransactionIdFollowsOrEquals
	ldr	w8, [x23]
	cmp	x0, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_IsTransactionState
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_get_database_name
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x0
Lloh29:
	adrp	x8, _WARNING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh31:
	ldr	w22, [x8]
	sub	x2, x20, x21
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh34:
	adrp	x8, _WARNING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh36:
	ldr	w22, [x8]
	sub	x2, x20, x21
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
LBB0_8:
	bl	_errmsg
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxTransactionId,4,2           ; @MaxTransactionId
	.comm	_FirstNormalTransactionId,8,3   ; @FirstNormalTransactionId
	.comm	_autovacuum_freeze_max_age,8,3  ; @autovacuum_freeze_max_age
	.comm	_XidGenLock,4,2                 ; @XidGenLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transaction ID wrap limit is %u, limited by database with OID %u"

	.comm	_IsUnderPostmaster,8,3          ; @IsUnderPostmaster
	.comm	_InRecovery,4,2                 ; @InRecovery
	.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 within %u transactions"

l_.str.2:                               ; @.str.2
	.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.3:                               ; @.str.3
	.asciz	"database with OID %u must be vacuumed within %u transactions"

.subsections_via_symbols
