	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AtPrepare_PgStat               ## -- Begin function AtPrepare_PgStat
	.p2align	4, 0x90
_AtPrepare_PgStat:                      ## @AtPrepare_PgStat
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pgStatXactStack@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	cmpl	$1, (%rbx)
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	callq	_Assert
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	movq	_TWOPHASE_RM_PGSTAT_ID@GOTPCREL(%rip), %r15
	leaq	-72(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	$1, (%rbx)
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	sete	%dil
	callq	_Assert
	movq	32(%rbx), %r12
	xorl	%edi, %edi
	cmpq	%rbx, 8(%r12)
	sete	%dil
	callq	_Assert
	movups	16(%rbx), %xmm0
	movups	%xmm0, -52(%rbp)
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	movsd	(%r12), %xmm1                   ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, -68(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -72(%rbp)
	movl	(%r15), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$36, %ecx
	callq	_RegisterTwoPhaseRecord
	movq	48(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_4:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pgStatXactStack,8,3            ## @pgStatXactStack
	.comm	_TWOPHASE_RM_PGSTAT_ID,4,2      ## @TWOPHASE_RM_PGSTAT_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AtPrepare_PgStat               ; -- Begin function AtPrepare_PgStat
	.p2align	2
_AtPrepare_PgStat:                      ; @AtPrepare_PgStat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, _pgStatXactStack@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pgStatXactStack@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cbz	x19, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_4
; %bb.2:
Lloh3:
	adrp	x20, _TWOPHASE_RM_PGSTAT_ID@GOTPAGE
Lloh4:
	ldr	x20, [x20, _TWOPHASE_RM_PGSTAT_ID@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x21, [x19, #32]
	ldr	x8, [x21, #8]
	cmp	x8, x19
	cset	w0, eq
	bl	_Assert
	ldr	q0, [x19, #16]
	stur	q0, [sp, #28]
	ldr	d0, [x19, #8]
	ldr	d1, [x21]
	mov.d	v1[1], v0[0]
	stur	q1, [sp, #12]
	ldr	w8, [x19, #4]
	str	w8, [sp, #8]
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	w1, #0
	mov	w3, #36
	bl	_RegisterTwoPhaseRecord
	ldr	x19, [x19, #48]
	cbnz	x19, LBB0_3
LBB0_4:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pgStatXactStack,8,3            ; @pgStatXactStack
	.comm	_TWOPHASE_RM_PGSTAT_ID,4,2      ; @TWOPHASE_RM_PGSTAT_ID
.subsections_via_symbols
