	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_cancellation_possibility
_check_cancellation_possibility:        ## @check_cancellation_possibility
	.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
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rdx
	movq	_trs_committed@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_22
## %bb.2:
	cmpq	$0, 24(%r12)
	jne	LBB0_22
## %bb.3:
	cmpl	$0, 8(%r12)
	jle	LBB0_16
## %bb.4:
	movl	$-48, %ecx
	movl	$8, %ebx
	xorl	%edx, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	8(%r12), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	addq	$16, %rbx
	cmpq	%rax, %rdx
	jge	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx), %r15
	testq	%r15, %r15
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	-8(%rax,%rbx), %r13
	movq	24(%r15), %rax
	movl	(%rax), %r14d
	movq	_MAX_ACC_INCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r13, %r13
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	cmpq	%r13, %rax
	setge	%dil
	callq	_assert
	movl	(%r15), %eax
	orl	%r14d, %eax
	testb	$2, %al
	jne	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rcx
	movq	16(%r15), %rax
	subq	%r13, %rcx
	cmpq	%rax, %rcx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	andl	$4, %r14d
	je	LBB0_19
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_MAX_BALANCE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rsi
	negq	%rsi
	cmpq	%rsi, %rcx
	jl	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	%r13, %rax
	cmpq	%rdx, %rax
	jl	LBB0_5
	jmp	LBB0_21
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rcx
	negq	%rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setg	%dil
	callq	_assert
	orl	(%r15), %r14d
	testb	$1, %r14b
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	subq	%r13, %rax
	movq	_MAX_BALANCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
LBB0_21:
	movl	$-1, %eax
	jmp	LBB0_22
LBB0_16:
	movl	$1, %eax
	jmp	LBB0_22
LBB0_17:
	addl	$16, %ecx
	movl	%ecx, %eax
	jmp	LBB0_22
LBB0_18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	$16, %eax
	jmp	LBB0_22
LBB0_19:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_trs_committed,8,3              ## @trs_committed
	.comm	_MAX_ACC_INCR,8,3               ## @MAX_ACC_INCR
	.comm	_MAX_BALANCE,8,3                ## @MAX_BALANCE
	.no_dead_strip	_check_cancellation_possibility
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_cancellation_possibility
_check_cancellation_possibility:        ; @check_cancellation_possibility
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _trs_committed@GOTPAGE
Lloh1:
	ldr	x9, [x9, _trs_committed@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.6:
	mov	x21, #0
	mov	x22, #0
	mov	w20, #-48
Lloh3:
	adrp	x23, _MAX_ACC_INCR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_ACC_INCR@GOTPAGEOFF]
Lloh5:
	adrp	x24, _MAX_BALANCE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MAX_BALANCE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	add	w20, w20, #1
	add	x21, x21, #16
	mov	w0, #1
	cmp	x22, x8
	b.ge	LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x21
	ldr	x26, [x8, #8]
	cbz	x26, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x25, [x8]
	ldr	x8, [x26, #24]
	ldr	w27, [x8]
	ldr	x8, [x23]
	cmp	x25, #0
	b.le	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, x25
	cset	w0, ge
	bl	_assert
	ldr	w8, [x26]
	orr	w8, w8, w27
	tbnz	w8, #1, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldp	x9, x8, [x26, #8]
	and	w10, w27, #0x4
	sub	x9, x9, x25
	cmp	x9, x8
	ccmp	w10, #0, #0, lt
	b.eq	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x24]
	add	x8, x8, x25
	neg	x11, x10
	cmp	x9, x11
	ccmp	x8, x10, #0, ge
	b.lt	LBB0_7
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	neg	x9, x25
	cmp	x8, x9
	cset	w0, gt
	bl	_assert
	ldr	w8, [x26]
	orr	w8, w8, w27
	tbnz	w8, #0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26, #8]
	ldr	x9, [x24]
	sub	x8, x8, x25
	cmp	x8, x9
	b.lt	LBB0_7
	b	LBB0_3
LBB0_15:
	mov	w0, #1
	b	LBB0_4
LBB0_16:
	add	w0, w20, #16
	b	LBB0_4
LBB0_17:
	mov	x0, x20
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_trs_committed,8,3              ; @trs_committed
	.comm	_MAX_ACC_INCR,8,3               ; @MAX_ACC_INCR
	.comm	_MAX_BALANCE,8,3                ; @MAX_BALANCE
	.no_dead_strip	_check_cancellation_possibility
.subsections_via_symbols
