	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_long_check_transaction         ## -- Begin function long_check_transaction
	.p2align	4, 0x90
_long_check_transaction:                ## @long_check_transaction
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_get_transaction
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_trs_cancelled@GOTPCREL(%rip), %r12
	movq	_trs_committed@GOTPCREL(%rip), %r13
	cmpq	(%r12), %rax
	je	LBB0_4
## %bb.2:
	movq	_trs_long_locked@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	cmpq	(%r13), %rax
	jne	LBB0_11
LBB0_4:
	movl	$-1, %r14d
	cmpl	$0, 16(%rbx)
	je	LBB0_11
## %bb.5:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_compute_lock_codes
	movq	-64(%rbp), %rax
	cmpq	%r15, %rax
	je	LBB0_7
## %bb.6:
	cmpq	%r15, -56(%rbp)
	jne	LBB0_11
LBB0_7:
	movq	(%rbx), %rcx
	movl	$1, %r14d
	cmpq	(%r13), %rcx
	je	LBB0_11
## %bb.8:
	movq	(%r12), %rdx
	xorl	%r14d, %r14d
	cmpq	%rdx, %rcx
	sete	%r14b
	orl	$2, %r14d
	cmpq	%rdx, %rcx
	je	LBB0_11
## %bb.9:
	cmpq	%r15, %rax
	jne	LBB0_11
## %bb.10:
	movq	_now@GOTPCREL(%rip), %rax
	movq	_LONG_LOCK_CANCEL_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movl	$2, %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_trs_cancelled,8,3              ## @trs_cancelled
	.comm	_trs_long_locked,8,3            ## @trs_long_locked
	.comm	_trs_committed,8,3              ## @trs_committed
	.comm	_now,8,3                        ## @now
	.comm	_LONG_LOCK_CANCEL_TIMEOUT,8,3   ## @LONG_LOCK_CANCEL_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_long_check_transaction         ; -- Begin function long_check_transaction
	.p2align	2
_long_check_transaction:                ; @long_check_transaction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_get_transaction
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x21, _trs_cancelled@GOTPAGE
Lloh4:
	ldr	x21, [x21, _trs_cancelled@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh5:
	adrp	x10, _trs_long_locked@GOTPAGE
Lloh6:
	ldr	x10, [x10, _trs_long_locked@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x22, _trs_committed@GOTPAGE
Lloh9:
	ldr	x22, [x22, _trs_committed@GOTPAGEOFF]
	ldr	x11, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_compute_lock_codes
	ldr	x8, [sp, #8]
	cmp	x8, x20
	b.eq	LBB0_9
; %bb.4:
	ldr	x9, [sp, #16]
	cmp	x9, x20
	b.eq	LBB0_9
LBB0_5:
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	x9, [x19]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #1
	b	LBB0_7
LBB0_11:
	ldr	x10, [x21]
	cmp	x9, x10
	mov	w9, #2
	cinc	w0, w9, eq
	ccmp	x8, x20, #0, ne
	b.ne	LBB0_7
; %bb.12:
Lloh13:
	adrp	x8, _now@GOTPAGE
Lloh14:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _LONG_LOCK_CANCEL_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _LONG_LOCK_CANCEL_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #8]
	mov	w0, #2
	b	LBB0_7
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_trs_cancelled,8,3              ; @trs_cancelled
	.comm	_trs_long_locked,8,3            ; @trs_long_locked
	.comm	_trs_committed,8,3              ; @trs_committed
	.comm	_now,8,3                        ; @now
	.comm	_LONG_LOCK_CANCEL_TIMEOUT,8,3   ; @LONG_LOCK_CANCEL_TIMEOUT
.subsections_via_symbols
