	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_cancel_enter2             ## -- Begin function _thr_cancel_enter2
	.p2align	4, 0x90
__thr_cancel_enter2:                    ## @_thr_cancel_enter2
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movl	$1, (%rdi)
	callq	_SHOULD_CANCEL
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_THR_IN_CRITICAL
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	movq	_PTHREAD_CANCELED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__pthread_exit                  ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	4(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_thr_wake                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PTHREAD_CANCELED,4,2           ## @PTHREAD_CANCELED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_cancel_enter2             ; -- Begin function _thr_cancel_enter2
	.p2align	2
__thr_cancel_enter2:                    ; @_thr_cancel_enter2
	.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	x20, x1
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	bl	_SHOULD_CANCEL
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_THR_IN_CRITICAL
	cmp	w0, #0
	cset	w0, eq
LBB0_2:
	bl	___predict_false
	cbz	x0, LBB0_5
; %bb.3:
	cbz	w20, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _PTHREAD_CANCELED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTHREAD_CANCELED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__pthread_exit
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_thr_wake
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PTHREAD_CANCELED,4,2           ; @PTHREAD_CANCELED
.subsections_via_symbols
