	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TwoPhaseShmemInit              ## -- Begin function TwoPhaseShmemInit
	.p2align	4, 0x90
_TwoPhaseShmemInit:                     ## @TwoPhaseShmemInit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_TwoPhaseShmemSize
	leaq	L_.str(%rip), %rdi
	leaq	-28(%rbp), %rdx
	movl	%eax, %esi
	callq	_ShmemInitStruct
	movq	_TwoPhaseState@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	-28(%rbp), %edi
	je	LBB0_1
## %bb.4:
	callq	_Assert
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	testl	%edi, %edi
	sete	%al
	movl	%eax, %edi
	callq	_Assert
	movq	(%r14), %rax
	movq	$0, (%rax)
	movq	(%r14), %rbx
	movq	$0, 8(%rbx)
	movq	_TwoPhaseStateData@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_prepXacts@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	movq	_max_prepared_xacts@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	leaq	(%rax,%rcx,8), %rdi
	callq	_MAXALIGN
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.2:
	cltq
	addq	%rax, %rbx
	xorl	%eax, %eax
	movq	_PreparedXactProcs@GOTPCREL(%rip), %rcx
	movq	_MaxBackends@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 16(%rbx)
	movq	(%r14), %rsi
	movq	%rbx, (%rsi)
	movq	(%rcx), %rsi
	movl	(%rsi,%rax,4), %esi
	movl	%esi, 8(%rbx)
	movq	(%rdx), %rsi
	addq	%rax, %rsi
	incq	%rsi
	incq	%rax
	movq	%rsi, (%rbx)
	movslq	(%r15), %rsi
	addq	$24, %rbx
	cmpq	%rsi, %rax
	jl	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Prepared Transaction Table"

	.comm	_TwoPhaseState,8,3              ## @TwoPhaseState
	.comm	_IsUnderPostmaster,4,2          ## @IsUnderPostmaster
	.comm	_TwoPhaseStateData,4,2          ## @TwoPhaseStateData
	.comm	_prepXacts,4,2                  ## @prepXacts
	.comm	_max_prepared_xacts,4,2         ## @max_prepared_xacts
	.comm	_PreparedXactProcs,8,3          ## @PreparedXactProcs
	.comm	_MaxBackends,8,3                ## @MaxBackends
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TwoPhaseShmemInit              ; -- Begin function TwoPhaseShmemInit
	.p2align	2
_TwoPhaseShmemInit:                     ; @TwoPhaseShmemInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_TwoPhaseShmemSize
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_ShmemInitStruct
Lloh2:
	adrp	x19, _TwoPhaseState@GOTPAGE
Lloh3:
	ldr	x19, [x19, _TwoPhaseState@GOTPAGEOFF]
	str	x0, [x19]
Lloh4:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w0, [sp, #12]
	cbz	w8, LBB0_2
; %bb.1:
	bl	_Assert
	b	LBB0_5
LBB0_2:
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	str	xzr, [x8]
	ldr	x21, [x19]
	str	xzr, [x21, #8]
Lloh7:
	adrp	x8, _TwoPhaseStateData@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TwoPhaseStateData@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _prepXacts@GOTPAGE
Lloh11:
	ldr	x8, [x8, _prepXacts@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_offsetof
Lloh13:
	adrp	x20, _max_prepared_xacts@GOTPAGE
Lloh14:
	ldr	x20, [x20, _max_prepared_xacts@GOTPAGEOFF]
	ldrsw	x8, [x20]
	add	x0, x0, x8, lsl #3
	bl	_MAXALIGN
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x11, #0
	sxtw	x8, w0
	add	x8, x21, x8
Lloh15:
	adrp	x9, _PreparedXactProcs@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PreparedXactProcs@GOTPAGEOFF]
Lloh17:
	adrp	x10, _MaxBackends@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MaxBackends@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x19]
	ldr	x12, [x12]
	str	x12, [x8, #16]
	ldr	x12, [x19]
	str	x8, [x12]
	ldr	x12, [x9]
	ldr	w12, [x12, x11, lsl #2]
	str	w12, [x8, #8]
	ldr	x12, [x10]
	add	x12, x11, x12
	add	x13, x11, #1
	add	x11, x12, #1
	str	x11, [x8], #24
	ldrsw	x12, [x20]
	mov	x11, x13
	cmp	x13, x12
	b.lt	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Prepared Transaction Table"

	.comm	_TwoPhaseState,8,3              ; @TwoPhaseState
	.comm	_IsUnderPostmaster,4,2          ; @IsUnderPostmaster
	.comm	_TwoPhaseStateData,4,2          ; @TwoPhaseStateData
	.comm	_prepXacts,4,2                  ; @prepXacts
	.comm	_max_prepared_xacts,4,2         ; @max_prepared_xacts
	.comm	_PreparedXactProcs,8,3          ; @PreparedXactProcs
	.comm	_MaxBackends,8,3                ; @MaxBackends
.subsections_via_symbols
