	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_calc_tabort
_cas_calc_tabort:                       ## @cas_calc_tabort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	callq	_CAS_TABORT
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	je	LBB0_2
## %bb.1:
	movslq	%ebx, %rbx
	addq	%r14, %rbx
	movq	%rbx, %rdi
	callq	_CAS_ROUND_PAGE
	movq	%rax, %rcx
	subq	%rbx, %rcx
	movq	_TX_TARGET_ABORT_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edx, %edx
	cmpq	%rax, %rcx
	cmoval	%edx, %eax
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_TARGET_ABORT_LEN,8,3        ## @TX_TARGET_ABORT_LEN
	.no_dead_strip	_cas_calc_tabort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_calc_tabort
_cas_calc_tabort:                       ; @cas_calc_tabort
	.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, x2
	mov	x20, x1
	bl	_CAS_TABORT
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	add	x19, x20, w19, sxtw
	mov	x0, x19
	bl	_CAS_ROUND_PAGE
Lloh0:
	adrp	x8, _TX_TARGET_ABORT_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_TARGET_ABORT_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x9, x0, x19
	cmp	x9, x8
	csel	w0, wzr, w8, hi
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_TARGET_ABORT_LEN,8,3        ; @TX_TARGET_ABORT_LEN
	.no_dead_strip	_cas_calc_tabort
.subsections_via_symbols
