	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CleanupSubTransaction
_CleanupSubTransaction:                 ## @CleanupSubTransaction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_CurrentTransactionState@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_ShowTransactionState
	movq	(%rbx), %rdi
	movq	_TRANS_ABORT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_2
## %bb.1:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_TransStateAsString
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_elog
LBB0_2:
	movl	24(%rbx), %edi
	callq	_AtSubCleanup_Portals
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %eax
	movq	_CurTransactionResourceOwner@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_ResourceOwnerDelete
LBB0_4:
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	callq	_AtSubCleanup_Memory
	movq	_TRANS_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PopTransaction                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentTransactionState,8,3    ## @CurrentTransactionState
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CleanupSubTransaction"

	.comm	_TRANS_ABORT,8,3                ## @TRANS_ABORT
	.comm	_WARNING,4,2                    ## @WARNING
L_.str.1:                               ## @.str.1
	.asciz	"CleanupSubTransaction while in %s state"

	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.comm	_CurTransactionResourceOwner,4,2 ## @CurTransactionResourceOwner
	.comm	_TRANS_DEFAULT,8,3              ## @TRANS_DEFAULT
	.no_dead_strip	_CleanupSubTransaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CleanupSubTransaction
_CleanupSubTransaction:                 ; @CleanupSubTransaction
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _CurrentTransactionState@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentTransactionState@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ShowTransactionState
	ldr	x0, [x20]
Lloh5:
	adrp	x8, _TRANS_ABORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRANS_ABORT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	bl	_TransStateAsString
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_elog
LBB0_2:
	ldr	w0, [x20, #24]
	bl	_AtSubCleanup_Portals
Lloh13:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
	ldp	x0, x9, [x20, #8]
	ldr	w10, [x9]
Lloh15:
	str	w10, [x8]
	ldr	w8, [x9]
Lloh16:
	adrp	x9, _CurTransactionResourceOwner@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CurTransactionResourceOwner@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_ResourceOwnerDelete
LBB0_4:
	str	xzr, [x20, #8]
	bl	_AtSubCleanup_Memory
Lloh19:
	adrp	x8, _TRANS_DEFAULT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRANS_DEFAULT@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PopTransaction
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentTransactionState,8,3    ; @CurrentTransactionState
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CleanupSubTransaction"

	.comm	_TRANS_ABORT,8,3                ; @TRANS_ABORT
	.comm	_WARNING,4,2                    ; @WARNING
l_.str.1:                               ; @.str.1
	.asciz	"CleanupSubTransaction while in %s state"

	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_CurTransactionResourceOwner,4,2 ; @CurTransactionResourceOwner
	.comm	_TRANS_DEFAULT,8,3              ; @TRANS_DEFAULT
	.no_dead_strip	_CleanupSubTransaction
.subsections_via_symbols
