	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConditionalXactLockTableWait   ## -- Begin function ConditionalXactLockTableWait
	.p2align	4, 0x90
_ConditionalXactLockTableWait:          ## @ConditionalXactLockTableWait
	.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
	movl	%edi, %ebx
	movq	_ShareLock@GOTPCREL(%rip), %r12
	leaq	-44(%rbp), %r15
	movq	_LOCKACQUIRE_NOT_AVAIL@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_SubTransGetTopmostTransaction
	movl	%eax, %ebx
	movb	$1, %r14b
LBB0_1:                                 ## =>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
	movl	$1, %ecx
	callq	_LockAcquire
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_LockRelease
	movl	%ebx, %edi
	callq	_TransactionIdIsInProgress
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %r14b
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_pg_usleep
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ShareLock,4,2                  ## @ShareLock
	.comm	_LOCKACQUIRE_NOT_AVAIL,8,3      ## @LOCKACQUIRE_NOT_AVAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConditionalXactLockTableWait   ; -- Begin function ConditionalXactLockTableWait
	.p2align	2
_ConditionalXactLockTableWait:          ; @ConditionalXactLockTableWait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w22, #0
Lloh0:
	adrp	x20, _ShareLock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ShareLock@GOTPAGEOFF]
Lloh2:
	adrp	x21, _LOCKACQUIRE_NOT_AVAIL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _LOCKACQUIRE_NOT_AVAIL@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_SubTransGetTopmostTransaction
	mov	x19, x0
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TransactionIdIsValid
	bl	_Assert
	bl	_GetTopTransactionIdIfAny
	mov	x1, x0
	mov	x0, x19
	bl	_TransactionIdEquals
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w0, [sp, #12]
	mov	x1, x19
	bl	_SET_LOCKTAG_TRANSACTION
	ldr	w1, [x20]
	add	x0, sp, #12
	mov	w2, #0
	mov	w3, #1
	bl	_LockAcquire
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x20]
	add	x0, sp, #12
	mov	w2, #0
	bl	_LockRelease
	mov	x0, x19
	bl	_TransactionIdIsInProgress
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w22, #0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	bl	_pg_usleep
	b	LBB0_1
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ShareLock,4,2                  ; @ShareLock
	.comm	_LOCKACQUIRE_NOT_AVAIL,8,3      ; @LOCKACQUIRE_NOT_AVAIL
.subsections_via_symbols
