	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function KnownAssignedXidsAdd
_KnownAssignedXidsAdd:                  ## @KnownAssignedXidsAdd
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_procArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	callq	_TransactionIdPrecedesOrEquals
	movl	%eax, %edi
	callq	_Assert
	cmpq	%r13, %rbx
	jge	LBB0_23
## %bb.1:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_TransactionIdPrecedes
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	movq	%r13, %rdi
	callq	_TransactionIdAdvance
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_4
LBB0_23:
	subl	%r13d, %ebx
	incl	%ebx
	movl	%ebx, %r15d
LBB0_4:
	movslq	(%r12), %r14
	xorl	%ebx, %ebx
	movq	%r12, %rax
	movl	4(%r12), %r12d
	movl	$0, %edi
	testq	%r14, %r14
	js	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	cmpl	8(%rax), %r14d
	setle	%dil
LBB0_6:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_Assert
	testl	%r12d, %r12d
	js	LBB0_8
## %bb.7:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	8(%rax), %r12d
	setl	%bl
LBB0_8:
	movl	%ebx, %edi
	callq	_Assert
	cmpl	%r12d, %r14d
	movq	%r14, %r12
	jle	LBB0_11
## %bb.9:
	movq	_KnownAssignedXids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%r12,8), %rdi
	movq	%r13, %rsi
	callq	_TransactionIdFollowsOrEquals
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_KnownAssignedXidsDisplay
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_11:
	leal	(%r12,%r15), %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	8(%rbx), %eax
	jle	LBB0_17
## %bb.12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movl	$1, %edi
	callq	_KnownAssignedXidsCompress
	movl	(%rbx), %r12d
	jmp	LBB0_15
LBB0_14:
	movq	_ProcArrayLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	$1, %edi
	callq	_KnownAssignedXidsCompress
	movl	(%rbx), %r12d
	movl	(%r14), %edi
	callq	_LWLockRelease
LBB0_15:
	leal	(%r12,%r15), %eax
	cmpl	8(%rbx), %eax
	jle	LBB0_17
## %bb.16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_17:
	testl	%r15d, %r15d
	jle	LBB0_21
## %bb.18:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %rbx
	movl	%r15d, %r14d
	negl	%r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	_KnownAssignedXids@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r13, (%rax,%rbx,8)
	movq	_KnownAssignedXidsValid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%rbx,4)
	movq	%r13, %rdi
	callq	_TransactionIdAdvance
	incq	%rbx
	decl	%r12d
	cmpl	%r12d, %r14d
	jne	LBB0_19
## %bb.20:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	subl	%r12d, %ebx
	movq	%rbx, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_21:
	addl	%r15d, 12(%rbx)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.24:
	movl	%r12d, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	movl	%r12d, (%rbx)
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SpinLockRelease                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_procArray,8,3                  ## @procArray
	.comm	_KnownAssignedXids,8,3          ## @KnownAssignedXids
	.comm	_LOG,4,2                        ## @LOG
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out-of-order XID insertion in KnownAssignedXids"

	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
L_.str.1:                               ## @.str.1
	.asciz	"too many KnownAssignedXids"

	.comm	_KnownAssignedXidsValid,8,3     ## @KnownAssignedXidsValid
	.no_dead_strip	_KnownAssignedXidsAdd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function KnownAssignedXidsAdd
_KnownAssignedXidsAdd:                  ; @KnownAssignedXidsAdd
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _procArray@GOTPAGE
Lloh1:
	ldr	x8, [x8, _procArray@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	bl	_TransactionIdPrecedesOrEquals
	bl	_Assert
	cmp	x21, x20
	b.ge	LBB0_6
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_TransactionIdPrecedes
	mov	w23, #1
	cbz	x0, LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	mov	x0, x20
	bl	_TransactionIdAdvance
	mov	x0, x20
	mov	x1, x21
	bl	_TransactionIdPrecedes
	cbnz	x0, LBB0_2
LBB0_3:
	ldp	w21, w25, [x22]
	tbnz	w21, #31, LBB0_7
LBB0_4:
	ldr	w8, [x22, #8]
	cmp	w21, w8
	cset	w0, le
	bl	_Assert
	tbnz	w25, #31, LBB0_8
LBB0_5:
	ldr	w8, [x22, #8]
	cmp	w25, w8
	cset	w0, lt
	b	LBB0_9
LBB0_6:
	sub	w8, w21, w20
	add	w23, w8, #1
	ldp	w21, w25, [x22]
	tbz	w21, #31, LBB0_4
LBB0_7:
	mov	w0, #0
	bl	_Assert
	tbz	w25, #31, LBB0_5
LBB0_8:
	mov	w0, #0
LBB0_9:
	bl	_Assert
Lloh3:
	adrp	x24, _KnownAssignedXids@GOTPAGE
Lloh4:
	ldr	x24, [x24, _KnownAssignedXids@GOTPAGEOFF]
	cmp	w21, w25
	b.le	LBB0_12
; %bb.10:
	ldr	x8, [x24]
	sub	w9, w21, #1
	ldr	x0, [x8, w9, sxtw #3]
	mov	x1, x20
	bl	_TransactionIdFollowsOrEquals
	cbz	x0, LBB0_12
; %bb.11:
Lloh5:
	adrp	x8, _LOG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_KnownAssignedXidsDisplay
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_12:
	ldr	w8, [x22, #8]
	add	w9, w21, w23
	cmp	w9, w8
	b.le	LBB0_18
; %bb.13:
	cbz	w19, LBB0_15
; %bb.14:
	mov	w0, #1
	bl	_KnownAssignedXidsCompress
	ldr	w21, [x22]
	b	LBB0_16
LBB0_15:
Lloh13:
	adrp	x25, _ProcArrayLock@GOTPAGE
Lloh14:
	ldr	x25, [x25, _ProcArrayLock@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh15:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	mov	w0, #1
	bl	_KnownAssignedXidsCompress
	ldr	w21, [x22]
	ldr	w0, [x25]
	bl	_LWLockRelease
LBB0_16:
	ldr	w8, [x22, #8]
	add	w9, w21, w23
	cmp	w9, w8
	b.le	LBB0_18
; %bb.17:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_18:
	cmp	w23, #1
	b.lt	LBB0_22
; %bb.19:
	sxtw	x21, w21
Lloh23:
	adrp	x25, _KnownAssignedXidsValid@GOTPAGE
Lloh24:
	ldr	x25, [x25, _KnownAssignedXidsValid@GOTPAGEOFF]
	mov	w26, #1
	mov	x27, x23
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	str	x20, [x8, x21, lsl #3]
	ldr	x8, [x25]
	str	w26, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_TransactionIdAdvance
	add	x21, x21, #1
	subs	w27, w27, #1
	b.ne	LBB0_20
; %bb.21:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_22:
	ldr	w8, [x22, #12]
	add	w8, w8, w23
	str	w8, [x22, #12]
	cbz	w19, LBB0_24
; %bb.23:
	str	w21, [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
	ret
LBB0_24:
	add	x19, x22, #16
	mov	x0, x19
	bl	_SpinLockAcquire
	str	w21, [x22]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_SpinLockRelease
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_procArray,8,3                  ; @procArray
	.comm	_KnownAssignedXids,8,3          ; @KnownAssignedXids
	.comm	_LOG,4,2                        ; @LOG
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out-of-order XID insertion in KnownAssignedXids"

	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
l_.str.1:                               ; @.str.1
	.asciz	"too many KnownAssignedXids"

	.comm	_KnownAssignedXidsValid,8,3     ; @KnownAssignedXidsValid
	.no_dead_strip	_KnownAssignedXidsAdd
.subsections_via_symbols
