	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PrepareTransactionBlock        ## -- Begin function PrepareTransactionBlock
	.p2align	4, 0x90
_PrepareTransactionBlock:               ## @PrepareTransactionBlock
	.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
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_EndTransactionBlock
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %r15d
	movq	_CurrentTransactionState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	(%rbx), %rax
	movq	_TBLOCK_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_TopTransactionContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_MemoryContextStrdup
	movq	_prepareGID@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_TBLOCK_PREPARE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_7
LBB0_5:
	movq	_TBLOCK_STARTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_TBLOCK_IMPLICIT_INPROGRESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentTransactionState,8,3    ## @CurrentTransactionState
	.comm	_TBLOCK_END,8,3                 ## @TBLOCK_END
	.comm	_TopTransactionContext,4,2      ## @TopTransactionContext
	.comm	_prepareGID,4,2                 ## @prepareGID
	.comm	_TBLOCK_PREPARE,8,3             ## @TBLOCK_PREPARE
	.comm	_TBLOCK_STARTED,8,3             ## @TBLOCK_STARTED
	.comm	_TBLOCK_IMPLICIT_INPROGRESS,8,3 ## @TBLOCK_IMPLICIT_INPROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PrepareTransactionBlock        ; -- Begin function PrepareTransactionBlock
	.p2align	2
_PrepareTransactionBlock:               ; @PrepareTransactionBlock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	mov	w0, #0
	bl	_EndTransactionBlock
	mov	x19, x0
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _CurrentTransactionState@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentTransactionState@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
; %bb.3:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _TBLOCK_END@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TBLOCK_END@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _TopTransactionContext@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TopTransactionContext@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_MemoryContextStrdup
Lloh9:
	adrp	x8, _prepareGID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _prepareGID@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
Lloh12:
	adrp	x8, _TBLOCK_PREPARE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TBLOCK_PREPARE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x9, _TBLOCK_STARTED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TBLOCK_STARTED@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh18:
	adrp	x9, _TBLOCK_IMPLICIT_INPROGRESS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TBLOCK_IMPLICIT_INPROGRESS@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_Assert
	mov	w19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentTransactionState,8,3    ; @CurrentTransactionState
	.comm	_TBLOCK_END,8,3                 ; @TBLOCK_END
	.comm	_TopTransactionContext,4,2      ; @TopTransactionContext
	.comm	_prepareGID,4,2                 ; @prepareGID
	.comm	_TBLOCK_PREPARE,8,3             ; @TBLOCK_PREPARE
	.comm	_TBLOCK_STARTED,8,3             ; @TBLOCK_STARTED
	.comm	_TBLOCK_IMPLICIT_INPROGRESS,8,3 ; @TBLOCK_IMPLICIT_INPROGRESS
.subsections_via_symbols
