	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_cancel
_check_cancel:                          ## @check_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$1, %edi
	cmpl	$0, 52(%rbx)
	je	LBB0_3
## %bb.1:
	cmpl	$0, 48(%rbx)
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	setne	%dil
LBB0_3:
	callq	___predict_true
	testq	%rax, %rax
	je	LBB0_4
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.10:
	movl	(%r14), %edi
	movq	_SIGCANCEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_SIGADDSET
	movl	$1, (%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__thr_send_sig                  ## TAILCALL
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.11:
	movq	_PTHREAD_CANCELED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__pthread_exit_mask             ## TAILCALL
LBB0_7:
	movl	16(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_thr_wake                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGCANCEL,4,2                  ## @SIGCANCEL
	.comm	_PTHREAD_CANCELED,4,2           ## @PTHREAD_CANCELED
	.no_dead_strip	_check_cancel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_cancel
_check_cancel:                          ; @check_cancel
	.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
	ldr	w8, [x0, #52]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w0, ne
	bl	___predict_true
	cbnz	x0, LBB0_4
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	bl	___predict_true
	cbz	x0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.6:
	cbz	x20, LBB0_11
; %bb.7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	w0, [x20]
Lloh0:
	adrp	x20, _SIGCANCEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SIGCANCEL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_SIGADDSET
	mov	w8, #1
	str	w8, [x19]
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__thr_send_sig
LBB0_9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.10:
Lloh2:
	adrp	x8, _PTHREAD_CANCELED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTHREAD_CANCELED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__pthread_exit_mask
LBB0_11:
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_thr_wake
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGCANCEL,4,2                  ; @SIGCANCEL
	.comm	_PTHREAD_CANCELED,4,2           ; @PTHREAD_CANCELED
	.no_dead_strip	_check_cancel
.subsections_via_symbols
