	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cancel_transaction
_cancel_transaction:                    ## @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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_get_transaction
	movq	%rax, %rbx
	cmpq	$0, 8(%r14)
	setne	%al
	testq	%rbx, %rbx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	(%rbx), %rax
	movq	_trs_long_locked@GOTPCREL(%rip), %rcx
	movq	(%r14), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	xorl	%r15d, %r15d
	movl	$0, %ecx
	cmpq	$-3, %rdi
	jb	LBB0_3
## %bb.2:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_get_temp_transaction
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
LBB0_3:
	movl	%ecx, %edi
	callq	_assert
	cmpl	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	xorl	%r15d, %r15d
	cmpq	$0, 24(%rbx)
	setne	%r15b
LBB0_5:
	movl	%r15d, %edi
	callq	_assert
	movq	%rbx, %rdi
	callq	_remove_from_lock_heap
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	_trs_declared_locked@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_9
LBB0_6:
	cmpq	16(%rbx), %rdi
	sete	%al
	testq	%rdi, %rdi
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	(%r14), %edi
	callq	_get_temp_transaction
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	_trs_declared@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_trs_declared_locked@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	$0, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
LBB0_8:
	callq	_assert
LBB0_9:
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_unlock_transaction
	movq	_trs_cancelled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_remove_temp_transaction
	jmp	LBB0_15
LBB0_11:
	cmpq	$-3, %rax
	jne	LBB0_13
## %bb.12:
	movq	_expired_long_transactions@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_cancelled_long_transactions@GOTPCREL(%rip), %rax
LBB0_14:
	incl	(%rax)
LBB0_15:
	movq	_cancelled_transactions@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_trs_long_locked,8,3            ## @trs_long_locked
	.comm	_trs_declared_locked,8,3        ## @trs_declared_locked
	.comm	_trs_declared,8,3               ## @trs_declared
	.comm	_now,8,3                        ## @now
	.comm	_trs_cancelled,8,3              ## @trs_cancelled
	.comm	_expired_long_transactions,4,2  ## @expired_long_transactions
	.comm	_cancelled_long_transactions,4,2 ## @cancelled_long_transactions
	.comm	_cancelled_transactions,4,2     ## @cancelled_transactions
	.no_dead_strip	_cancel_transaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cancel_transaction
_cancel_transaction:                    ; @cancel_transaction
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_get_transaction
	mov	x20, x0
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _trs_long_locked@GOTPAGE
Lloh1:
	ldr	x9, [x9, _trs_long_locked@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x19]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	cmn	x0, #3
	b.lo	LBB0_5
; %bb.2:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_get_temp_transaction
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20, #16]
	cmp	x0, #0
	ccmp	x0, x8, #0, gt
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19]
	bl	_get_temp_transaction
	cmp	x20, x0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _trs_declared@GOTPAGE
Lloh4:
	ldr	x9, [x9, _trs_declared@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh6:
	adrp	x9, _trs_declared_locked@GOTPAGE
Lloh7:
	ldr	x9, [x9, _trs_declared_locked@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_8
; %bb.4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	mov	w0, #0
LBB0_6:
	bl	_assert
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_10
; %bb.7:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_11
LBB0_8:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w0, eq
LBB0_9:
	bl	_assert
	b	LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	bl	_assert
	mov	x0, x20
	bl	_remove_from_lock_heap
	ldr	x8, [x19]
	str	w8, [x20, #8]
Lloh9:
	adrp	x8, _trs_declared_locked@GOTPAGE
Lloh10:
	ldr	x8, [x8, _trs_declared_locked@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_12:
Lloh12:
	adrp	x8, _now@GOTPAGE
Lloh13:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	mov	x0, x20
	bl	_unlock_transaction
Lloh15:
	adrp	x8, _trs_cancelled@GOTPAGE
Lloh16:
	ldr	x8, [x8, _trs_cancelled@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_remove_temp_transaction
	b	LBB0_18
LBB0_14:
	cmn	x8, #3
	b.ne	LBB0_16
; %bb.15:
Lloh18:
	adrp	x8, _expired_long_transactions@GOTPAGE
Lloh19:
	ldr	x8, [x8, _expired_long_transactions@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh20:
	adrp	x8, _cancelled_long_transactions@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cancelled_long_transactions@GOTPAGEOFF]
LBB0_17:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_18:
Lloh22:
	adrp	x8, _cancelled_transactions@GOTPAGE
Lloh23:
	ldr	x8, [x8, _cancelled_transactions@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_trs_long_locked,8,3            ; @trs_long_locked
	.comm	_trs_declared_locked,8,3        ; @trs_declared_locked
	.comm	_trs_declared,8,3               ; @trs_declared
	.comm	_now,8,3                        ; @now
	.comm	_trs_cancelled,8,3              ; @trs_cancelled
	.comm	_expired_long_transactions,4,2  ; @expired_long_transactions
	.comm	_cancelled_long_transactions,4,2 ; @cancelled_long_transactions
	.comm	_cancelled_transactions,4,2     ; @cancelled_transactions
	.no_dead_strip	_cancel_transaction
.subsections_via_symbols
