	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XactLockTableWait              ## -- Begin function XactLockTableWait
	.p2align	4, 0x90
_XactLockTableWait:                     ## @XactLockTableWait
	.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	%rcx, %r14
	movl	%edi, %ebx
	movq	_XLTW_None@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%esi, %edi
	callq	_RelationIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	%r15d, %edi
	callq	_ItemPointerIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	%r12d, -52(%rbp)
	movl	%r15d, -56(%rbp)
	movq	%r14, -64(%rbp)
	movq	_XactLockTableWaitErrorCb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	_error_context_stack@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, -88(%rbp)
	leaq	-88(%rbp), %rcx
	movq	%rcx, (%rax)
LBB0_2:
	movq	_ShareLock@GOTPCREL(%rip), %r12
	leaq	-44(%rbp), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_SubTransGetTopmostTransaction
	movl	%eax, %ebx
	movb	$1, %r13b
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	xorl	%eax, %eax
	callq	_GetTopTransactionIdIfAny
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_TransactionIdEquals
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	-44(%rbp), %edi
	movl	%ebx, %esi
	callq	_SET_LOCKTAG_TRANSACTION
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_LockAcquire
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_LockRelease
	movl	%ebx, %edi
	callq	_TransactionIdIsInProgress
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r13b
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_pg_usleep
	jmp	LBB0_6
LBB0_7:
	movq	_XLTW_None@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_9
## %bb.8:
	movq	-88(%rbp), %rax
	movq	_error_context_stack@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLTW_None,8,3                  ## @XLTW_None
	.comm	_XactLockTableWaitErrorCb,4,2   ## @XactLockTableWaitErrorCb
	.comm	_error_context_stack,8,3        ## @error_context_stack
	.comm	_ShareLock,4,2                  ## @ShareLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XactLockTableWait              ; -- Begin function XactLockTableWait
	.p2align	2
_XactLockTableWait:                     ; @XactLockTableWait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x3
	mov	x20, x0
Lloh0:
	adrp	x24, _XLTW_None@GOTPAGE
Lloh1:
	ldr	x24, [x24, _XLTW_None@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh2:
	adrp	x23, _error_context_stack@GOTPAGE
Lloh3:
	ldr	x23, [x23, _error_context_stack@GOTPAGEOFF]
	cmp	x8, x3
	b.eq	LBB0_2
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x0, x1
	bl	_RelationIsValid
	bl	_Assert
	mov	x0, x21
	bl	_ItemPointerIsValid
	bl	_Assert
	stp	w21, w22, [sp, #32]
	str	x19, [sp, #24]
Lloh4:
	adrp	x8, _XactLockTableWaitErrorCb@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XactLockTableWaitErrorCb@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	add	x8, sp, #24
	ldr	x9, [x23]
	stp	x9, x8, [sp]
	mov	x8, sp
	str	x8, [x23]
LBB0_2:
	mov	w22, #0
Lloh7:
	adrp	x21, _ShareLock@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ShareLock@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_SubTransGetTopmostTransaction
	mov	x20, x0
	mov	w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TransactionIdIsValid
	bl	_Assert
	bl	_GetTopTransactionIdIfAny
	mov	x1, x0
	mov	x0, x20
	bl	_TransactionIdEquals
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w0, [sp, #44]
	mov	x1, x20
	bl	_SET_LOCKTAG_TRANSACTION
	ldr	w1, [x21]
	add	x0, sp, #44
	mov	w2, #0
	mov	w3, #0
	bl	_LockAcquire
	ldr	w1, [x21]
	add	x0, sp, #44
	mov	w2, #0
	bl	_LockRelease
	mov	x0, x20
	bl	_TransactionIdIsInProgress
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w22, #0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1000
	bl	_pg_usleep
	b	LBB0_3
LBB0_7:
	ldr	x8, [x24]
	cmp	x8, x19
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [sp]
	str	x8, [x23]
LBB0_9:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_XLTW_None,8,3                  ; @XLTW_None
	.comm	_XactLockTableWaitErrorCb,4,2   ; @XactLockTableWaitErrorCb
	.comm	_error_context_stack,8,3        ; @error_context_stack
	.comm	_ShareLock,4,2                  ; @ShareLock
.subsections_via_symbols
