	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MarkAsPreparingGuts
_MarkAsPreparingGuts:                   ## @MarkAsPreparingGuts
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockHeldByMeInMode
	movl	%eax, %edi
	callq	_Assert
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_Assert
	movq	_ProcGlobal@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	8(%rax), %r15
	movq	(%rbx), %r14
	imulq	$104, %r14, %r13
	leaq	(%r15,%r13), %rdi
	xorl	%esi, %esi
	movl	$104, %edx
	callq	_MemSet
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%rax, (%r15,%r13)
	leaq	(%r15,%r13), %rdi
	addq	$100, %rdi
	callq	_SHMQueueElemInit
	movq	_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r15,%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 88(%r15,%r13)
	leaq	(%r14,%r14,4), %r14
	movq	%rax, 32(%r12,%r14,8)
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12,%r14,8)
	movl	$0, (%r12,%r14,8)
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%r12,%r14,8)
	movq	$0, 80(%r15,%r13)
	movq	_InvalidBackendId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15,%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%r15,%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%r15,%r13)
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15,%r13)
	movq	$0, 8(%r15,%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15,%r13)
	movq	$0, 40(%r15,%r13)
	movq	_NUM_LOCK_PARTITIONS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	addq	%r13, %r15
	addq	$16, %r15
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%r13, %rdi
	callq	_SHMQueueInit
	incq	%rbx
	movslq	(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 4(%rax,%r14,8)
	movq	$0, 8(%rax,%r14,8)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 40(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	_MyBackendId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	$0, 8(%rbx)
	movl	16(%rbx), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcpy
	movq	_MyLockedGxact@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TwoPhaseStateLock,4,2          ## @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_ProcGlobal,8,3                 ## @ProcGlobal
	.comm	_STATUS_OK,4,2                  ## @STATUS_OK
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_InvalidBackendId,4,2           ## @InvalidBackendId
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_NUM_LOCK_PARTITIONS,4,2        ## @NUM_LOCK_PARTITIONS
	.comm	_MyBackendId,4,2                ## @MyBackendId
	.comm	_MyLockedGxact,8,3              ## @MyLockedGxact
	.no_dead_strip	_MarkAsPreparingGuts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MarkAsPreparingGuts
_MarkAsPreparingGuts:                   ; @MarkAsPreparingGuts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x5
	mov	x21, x4
	mov	x23, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TwoPhaseStateLock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TwoPhaseStateLock@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LWLockHeldByMeInMode
	bl	_Assert
	cmp	x19, #0
	cset	w0, ne
	bl	_Assert
Lloh6:
	adrp	x8, _ProcGlobal@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ProcGlobal@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x26, [x19]
	mov	w9, #104
	ldp	x27, x28, [x8]
	madd	x25, x26, x9, x28
	mov	x0, x25
	mov	w1, #0
	mov	w2, #104
	bl	_MemSet
	ldr	x8, [x19]
	str	x8, [x25]
	add	x0, x25, #100
	bl	_SHMQueueElemInit
Lloh9:
	adrp	x8, _STATUS_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATUS_OK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x25, #96]
	mov	w8, #40
	madd	x8, x26, x8, x27
	str	x22, [x8, #32]
Lloh12:
	adrp	x9, _InvalidTransactionId@GOTPAGE
Lloh13:
	ldr	x9, [x9, _InvalidTransactionId@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [x8, #24]
	str	wzr, [x8]
	str	xzr, [x8, #16]
Lloh15:
	adrp	x8, _InvalidBackendId@GOTPAGE
Lloh16:
	ldr	x8, [x8, _InvalidBackendId@GOTPAGEOFF]
	stp	xzr, x22, [x25, #80]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x25, #72]
Lloh18:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh19:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
	stp	x21, x24, [x25, #56]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x25, #48]
	str	xzr, [x25, #8]
	stp	xzr, xzr, [x25, #32]
	str	xzr, [x25, #24]
Lloh21:
	adrp	x24, _NUM_LOCK_PARTITIONS@GOTPAGE
Lloh22:
	ldr	x24, [x24, _NUM_LOCK_PARTITIONS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	mov	x20, #0
	mov	w8, #104
	madd	x8, x26, x8, x28
	add	x28, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	add	x0, x8, x25
	bl	_SHMQueueInit
	add	x20, x20, #1
	ldrsw	x8, [x24]
	add	x25, x25, #4
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	mov	w8, #40
	madd	x8, x26, x8, x27
	str	wzr, [x8, #4]
	str	xzr, [x8, #8]
	str	w23, [x19, #40]
Lloh23:
	adrp	x8, _MyBackendId@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MyBackendId@GOTPAGEOFF]
	stp	x21, x22, [x19, #24]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	str	xzr, [x19, #8]
	ldr	w0, [x19, #16]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_strcpy
Lloh26:
	adrp	x8, _MyLockedGxact@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MyLockedGxact@GOTPAGEOFF]
Lloh28:
	str	x19, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TwoPhaseStateLock,4,2          ; @TwoPhaseStateLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_ProcGlobal,8,3                 ; @ProcGlobal
	.comm	_STATUS_OK,4,2                  ; @STATUS_OK
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_InvalidBackendId,4,2           ; @InvalidBackendId
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_NUM_LOCK_PARTITIONS,4,2        ; @NUM_LOCK_PARTITIONS
	.comm	_MyBackendId,4,2                ; @MyBackendId
	.comm	_MyLockedGxact,8,3              ; @MyLockedGxact
	.no_dead_strip	_MarkAsPreparingGuts
.subsections_via_symbols
