	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetPreparedTransactionList
_GetPreparedTransactionList:            ## @GetPreparedTransactionList
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_TwoPhaseState@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %r15d
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	leal	(,%r15,4), %edi
	callq	_palloc
	movq	%rax, (%r14)
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.3:
	movq	%rax, %r12
	leaq	(,%r15,4), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rbx), %rdi
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	addq	$4, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_4
LBB0_5:
	movq	_TwoPhaseStateLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	jmp	LBB0_6
LBB0_1:
	movl	(%rbx), %edi
	callq	_LWLockRelease
	movq	$0, (%r14)
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %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_SHARED,4,2                  ## @LW_SHARED
	.comm	_TwoPhaseState,8,3              ## @TwoPhaseState
	.no_dead_strip	_GetPreparedTransactionList
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetPreparedTransactionList
_GetPreparedTransactionList:            ; @GetPreparedTransactionList
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x22, _TwoPhaseStateLock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TwoPhaseStateLock@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh5:
	adrp	x23, _TwoPhaseState@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TwoPhaseState@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w19, [x8]
	cbz	w19, LBB0_5
; %bb.1:
	lsl	w0, w19, #2
	bl	_palloc
	str	x0, [x20]
	cmp	w19, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x20, #0
	lsl	x24, x19, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, x20
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x20]
	mov	w2, #4
	bl	_memcpy
	add	x20, x20, #4
	cmp	x24, x20
	b.ne	LBB0_3
LBB0_4:
	ldr	w0, [x22]
	bl	_LWLockRelease
	b	LBB0_6
LBB0_5:
	ldr	w0, [x22]
	bl	_LWLockRelease
	str	xzr, [x20]
LBB0_6:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TwoPhaseStateLock,4,2          ; @TwoPhaseStateLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_TwoPhaseState,8,3              ; @TwoPhaseState
	.no_dead_strip	_GetPreparedTransactionList
.subsections_via_symbols
