	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AssignTransactionId
_AssignTransactionId:                   ## @AssignTransactionId
	.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	%rdi, %r15
	movq	24(%rdi), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	setne	%r12b
	movl	12(%rdi), %edi
	callq	_FullTransactionIdIsValid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	(%r15), %rax
	movq	_TRANS_INPROGRESS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_IsInParallelMode
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_IsParallelWorker
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_3:
	movb	%r12b, %r14b
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.4:
	movq	24(%r15), %rax
	movl	12(%rax), %edi
	callq	_FullTransactionIdIsValid
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	24(%r15), %r13
	movl	8(%r15), %edi
	shll	$3, %edi
	callq	_palloc
	movq	%rax, %r12
	testq	%r13, %r13
	je	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %edi
	callq	_FullTransactionIdIsValid
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, (%r12,%rbx,8)
	incq	%rbx
	movq	24(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	-8(%r12,%rbx,8), %rdi
	decq	%rbx
	callq	_AssignTransactionId
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_11:
	movq	%r12, %rdi
	callq	_pfree
LBB0_12:
	xorl	%eax, %eax
	callq	_XLogLogicalInfoActive
	movq	%rax, %r12
	movq	_TopTransactionStateData@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_GetNewTransactionId
	movl	%eax, 12(%r15)
	movl	%eax, %edi
	callq	_XidFromFullTransactionId
	movl	%eax, %ebx
	movq	24(%r15), %rax
	movl	12(%rax), %edi
	callq	_XidFromFullTransactionId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SubTransSetParent
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	16(%r15), %eax
	movl	%eax, (%r14)
	movl	12(%r15), %edi
	callq	_XidFromFullTransactionId
	movl	%eax, %edi
	callq	_XactLockTableInsert
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	callq	_XLogStandbyInfoActive
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	testq	%r12, %r12
	setne	%r12b
	testl	%r13d, %r13d
	sete	%bl
	movl	12(%r15), %edi
	callq	_XidFromFullTransactionId
	movq	_unreportedXids@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	_nUnreportedXids@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	movq	%rcx, (%r15)
	testb	%bl, %r12b
	jne	LBB0_15
## %bb.14:
	movq	_PGPROC_MAX_CACHED_SUBXIDS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jb	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	callq	_GetTopTransactionId
	movl	%eax, -48(%rbp)
	movl	%eax, %edi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_MinSizeOfXactAssignment@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-56(%rbp), %rdi
	callq	_XLogRegisterData
	movq	(%r14), %rdi
	movq	(%r15), %rsi
	shlq	$2, %rsi
	callq	_XLogRegisterData
	movq	_RM_XACT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_XACT_ASSIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movq	$0, (%r15)
	movq	_TopTransactionStateData@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_16
LBB0_17:
	movl	%r14d, %edi
	callq	_GetNewTransactionId
	movl	%eax, 12(%r15)
	movq	_XactTopFullTransactionId@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	callq	_XidFromFullTransactionId
	movl	%eax, %edi
	callq	_RegisterPredicateLockingXid
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	16(%r15), %eax
	movl	%eax, (%r14)
	movl	12(%r15), %edi
	callq	_XidFromFullTransactionId
	movl	%eax, %edi
	callq	_XactLockTableInsert
	movl	%ebx, (%r14)
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANS_INPROGRESS,8,3           ## @TRANS_INPROGRESS
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot assign XIDs during a parallel operation"

	.comm	_TopTransactionStateData,4,2    ## @TopTransactionStateData
	.comm	_XactTopFullTransactionId,4,2   ## @XactTopFullTransactionId
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.comm	_unreportedXids,8,3             ## @unreportedXids
	.comm	_nUnreportedXids,8,3            ## @nUnreportedXids
	.comm	_PGPROC_MAX_CACHED_SUBXIDS,8,3  ## @PGPROC_MAX_CACHED_SUBXIDS
	.comm	_MinSizeOfXactAssignment,8,3    ## @MinSizeOfXactAssignment
	.comm	_RM_XACT_ID,4,2                 ## @RM_XACT_ID
	.comm	_XLOG_XACT_ASSIGNMENT,4,2       ## @XLOG_XACT_ASSIGNMENT
	.no_dead_strip	_AssignTransactionId
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AssignTransactionId
_AssignTransactionId:                   ; @AssignTransactionId
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x21, [x0, #24]
	cmp	x21, #0
	cset	w20, ne
	ldr	w0, [x0, #12]
	bl	_FullTransactionIdIsValid
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TRANS_INPROGRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRANS_INPROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	bl	_IsInParallelMode
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_IsParallelWorker
	cbz	x0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_3:
	cbz	x21, LBB0_9
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #12]
	bl	_FullTransactionIdIsValid
	cbnz	w0, LBB0_15
; %bb.5:
	ldr	x22, [x19, #24]
	ldr	w8, [x19, #8]
	lsl	w0, w8, #3
	bl	_palloc
	mov	x21, x0
	cbz	x22, LBB0_14
; %bb.6:
	mov	x23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #12]
	bl	_FullTransactionIdIsValid
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x23, #1
	str	x22, [x21, x23, lsl #3]
	ldr	x22, [x22, #24]
	mov	x23, x8
	cbnz	x22, LBB0_7
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_GetNewTransactionId
	str	w0, [x19, #12]
Lloh8:
	adrp	x8, _XactTopFullTransactionId@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XactTopFullTransactionId@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
	bl	_XidFromFullTransactionId
	bl	_RegisterPredicateLockingXid
Lloh11:
	adrp	x20, _CurrentResourceOwner@GOTPAGE
Lloh12:
	ldr	x20, [x20, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	w21, [x20]
	ldp	w0, w8, [x19, #12]
	str	w8, [x20]
	bl	_XidFromFullTransactionId
	bl	_XactLockTableInsert
	str	w21, [x20]
	b	LBB0_18
LBB0_10:
	mov	x8, x23
LBB0_11:
	cbz	x8, LBB0_14
; %bb.12:
	sub	x22, x21, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	x23, x8, #1
	ldr	x0, [x22, x8, lsl #3]
	bl	_AssignTransactionId
	mov	x8, x23
	cbnz	x23, LBB0_13
LBB0_14:
	mov	x0, x21
	bl	_pfree
LBB0_15:
	bl	_XLogLogicalInfoActive
	mov	x21, x0
Lloh13:
	adrp	x22, _TopTransactionStateData@GOTPAGE
Lloh14:
	ldr	x22, [x22, _TopTransactionStateData@GOTPAGEOFF]
	ldr	w23, [x22]
	mov	x0, x20
	bl	_GetNewTransactionId
	str	w0, [x19, #12]
	bl	_XidFromFullTransactionId
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #12]
	bl	_XidFromFullTransactionId
	mov	x1, x0
	mov	x0, x20
	bl	_SubTransSetParent
Lloh15:
	adrp	x20, _CurrentResourceOwner@GOTPAGE
Lloh16:
	ldr	x20, [x20, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	w24, [x20]
	ldp	w0, w8, [x19, #12]
	str	w8, [x20]
	bl	_XidFromFullTransactionId
	bl	_XactLockTableInsert
	str	w24, [x20]
	bl	_XLogStandbyInfoActive
	cbz	x0, LBB0_18
; %bb.16:
	ldr	w0, [x19, #12]
	bl	_XidFromFullTransactionId
	cmp	w23, #0
	ccmp	x21, #0, #4, eq
Lloh17:
	adrp	x20, _unreportedXids@GOTPAGE
Lloh18:
	ldr	x20, [x20, _unreportedXids@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh19:
	adrp	x19, _nUnreportedXids@GOTPAGE
Lloh20:
	ldr	x19, [x19, _nUnreportedXids@GOTPAGEOFF]
	ldr	x9, [x19]
	str	w0, [x8, x9, lsl #2]
	add	x8, x9, #1
	str	x8, [x19]
Lloh21:
	adrp	x9, _PGPROC_MAX_CACHED_SUBXIDS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PGPROC_MAX_CACHED_SUBXIDS@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ccmp	x8, x9, #2, eq
	b.lo	LBB0_18
; %bb.17:
	bl	_GetTopTransactionId
	str	w0, [sp, #8]
	bl	_TransactionIdIsValid
	bl	_Assert
	ldr	x8, [x19]
	str	x8, [sp]
	bl	_XLogBeginInsert
Lloh24:
	adrp	x8, _MinSizeOfXactAssignment@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MinSizeOfXactAssignment@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x8]
	mov	x0, sp
	bl	_XLogRegisterData
	ldr	x0, [x20]
	ldr	x8, [x19]
	lsl	x1, x8, #2
	bl	_XLogRegisterData
Lloh27:
	adrp	x8, _RM_XACT_ID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RM_XACT_ID@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _XLOG_XACT_ASSIGNMENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _XLOG_XACT_ASSIGNMENT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_XLogInsert
	str	xzr, [x19]
	mov	w8, #1
	str	w8, [x22]
LBB0_18:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANS_INPROGRESS,8,3           ; @TRANS_INPROGRESS
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot assign XIDs during a parallel operation"

	.comm	_TopTransactionStateData,4,2    ; @TopTransactionStateData
	.comm	_XactTopFullTransactionId,4,2   ; @XactTopFullTransactionId
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_unreportedXids,8,3             ; @unreportedXids
	.comm	_nUnreportedXids,8,3            ; @nUnreportedXids
	.comm	_PGPROC_MAX_CACHED_SUBXIDS,8,3  ; @PGPROC_MAX_CACHED_SUBXIDS
	.comm	_MinSizeOfXactAssignment,8,3    ; @MinSizeOfXactAssignment
	.comm	_RM_XACT_ID,4,2                 ; @RM_XACT_ID
	.comm	_XLOG_XACT_ASSIGNMENT,4,2       ; @XLOG_XACT_ASSIGNMENT
	.no_dead_strip	_AssignTransactionId
.subsections_via_symbols
