	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_long_cancel_transaction     ## -- Begin function do_long_cancel_transaction
	.p2align	4, 0x90
_do_long_cancel_transaction:            ## @do_long_cancel_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_get_transaction
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_trs_long_locked@GOTPCREL(%rip), %rcx
	movl	$-1, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_compute_lock_codes
	cmpq	%r14, -48(%rbp)
	jne	LBB0_4
LBB0_6:
	movq	_LEV_MONEY_TRANS_CANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	movl	$-2, %edx
	callq	_alloc_log_event
	xorl	%ecx, %ecx
	cmpq	%r14, -48(%rbp)
	sete	%cl
	notl	%ecx
	movl	%ecx, (%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movq	%rax, %rdi
	callq	_cancel_transaction
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	callq	_flush_binlog_forced
	movl	$3, %r15d
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	%r14, -40(%rbp)
	jne	LBB0_7
## %bb.5:
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	8(%rbx), %rax
	jge	LBB0_6
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_trs_long_locked,8,3            ## @trs_long_locked
	.comm	_now,8,3                        ## @now
	.comm	_LEV_MONEY_TRANS_CANCEL,4,2     ## @LEV_MONEY_TRANS_CANCEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_long_cancel_transaction     ; -- Begin function do_long_cancel_transaction
	.p2align	2
_do_long_cancel_transaction:            ; @do_long_cancel_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	x19, 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	x20, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _trs_long_locked@GOTPAGE
Lloh4:
	ldr	x9, [x9, _trs_long_locked@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x0, x20
	bl	_compute_lock_codes
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.ne	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _LEV_MONEY_TRANS_CANCEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LEV_MONEY_TRANS_CANCEL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w21, #-2
	mov	w1, #8
	mov	w2, #-2
	bl	_alloc_log_event
	ldr	x8, [sp, #8]
	cmp	x8, x19
	cinc	w8, w21, ne
	str	w8, [x0]
	ldr	w8, [x20, #16]
	str	w8, [x0, #4]
	bl	_cancel_transaction
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
	mov	w0, #0
	bl	_flush_binlog_forced
	mov	w0, #3
	b	LBB0_7
LBB0_4:
	ldr	x8, [sp, #16]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _now@GOTPAGE
Lloh10:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ge	LBB0_3
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %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:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_trs_long_locked,8,3            ; @trs_long_locked
	.comm	_now,8,3                        ; @now
	.comm	_LEV_MONEY_TRANS_CANCEL,4,2     ; @LEV_MONEY_TRANS_CANCEL
.subsections_via_symbols
