	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_cancel                    ## -- Begin function _thr_cancel
	.p2align	4, 0x90
__thr_cancel:                           ## @_thr_cancel
	.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, %r15
	xorl	%eax, %eax
	callq	__get_curthread
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	__thr_find_thread
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	cmpl	$0, (%r15)
	jne	LBB0_4
## %bb.2:
	movl	$1, (%r15)
	movq	8(%r15), %rax
	movq	_PS_DEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_SIGCANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	__thr_send_sig
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_THR_THREAD_UNLOCK
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_DEAD,8,3                    ## @PS_DEAD
	.comm	_SIGCANCEL,4,2                  ## @SIGCANCEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_cancel                    ; -- Begin function _thr_cancel
	.p2align	2
__thr_cancel:                           ; @_thr_cancel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	__get_curthread
	mov	x20, x0
	mov	x1, x19
	mov	w2, #0
	bl	__thr_find_thread
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _PS_DEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PS_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _SIGCANCEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGCANCEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	__thr_send_sig
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_THR_THREAD_UNLOCK
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_DEAD,8,3                    ; @PS_DEAD
	.comm	_SIGCANCEL,4,2                  ; @SIGCANCEL
.subsections_via_symbols
