	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function suspend_common
_suspend_common:                        ## @suspend_common
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rcx
	movq	_PS_DEAD@GOTPCREL(%rip), %r13
	movl	$1, %eax
	cmpq	(%r13), %rcx
	je	LBB0_10
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	24(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %eax
	movq	_THR_FLAGS_SUSPENDED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_THR_FLAGS_NEED_SUSPEND@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%rbx)
	movq	16(%rbx), %rax
	movq	_TID_TERMINATED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbx), %r14d
	movq	_SIGCANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	__thr_send_sig
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_THR_THREAD_UNLOCK
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	__thr_umtx_wait_uint
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_THR_THREAD_LOCK
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_2
LBB0_7:
	movl	$1, %eax
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_THR_THREAD_LOCK
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_DEAD,8,3                    ## @PS_DEAD
	.comm	_THR_FLAGS_SUSPENDED,4,2        ## @THR_FLAGS_SUSPENDED
	.comm	_THR_FLAGS_NEED_SUSPEND,4,2     ## @THR_FLAGS_NEED_SUSPEND
	.comm	_TID_TERMINATED,8,3             ## @TID_TERMINATED
	.comm	_SIGCANCEL,4,2                  ## @SIGCANCEL
	.no_dead_strip	_suspend_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function suspend_common
_suspend_common:                        ; @suspend_common
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x24, _PS_DEAD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PS_DEAD@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	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_3:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x22, x1, #24
Lloh2:
	adrp	x25, _THR_FLAGS_SUSPENDED@GOTPAGE
Lloh3:
	ldr	x25, [x25, _THR_FLAGS_SUSPENDED@GOTPAGEOFF]
Lloh4:
	adrp	x26, _THR_FLAGS_NEED_SUSPEND@GOTPAGE
Lloh5:
	ldr	x26, [x26, _THR_FLAGS_NEED_SUSPEND@GOTPAGEOFF]
Lloh6:
	adrp	x27, _TID_TERMINATED@GOTPAGE
Lloh7:
	ldr	x27, [x27, _TID_TERMINATED@GOTPAGEOFF]
Lloh8:
	adrp	x28, _SIGCANCEL@GOTPAGE
Lloh9:
	ldr	x28, [x28, _SIGCANCEL@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x19, #24]
	ldr	w1, [x28]
	mov	x0, x19
	bl	__thr_send_sig
	mov	x0, x20
	mov	x1, x19
	bl	_THR_THREAD_UNLOCK
	cbz	w21, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, #0
	mov	w3, #0
	bl	__thr_umtx_wait_uint
	mov	x0, x20
	mov	x1, x19
	bl	_THR_THREAD_LOCK
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_4
	b	LBB0_1
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_THR_THREAD_LOCK
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_DEAD,8,3                    ; @PS_DEAD
	.comm	_THR_FLAGS_SUSPENDED,4,2        ; @THR_FLAGS_SUSPENDED
	.comm	_THR_FLAGS_NEED_SUSPEND,4,2     ; @THR_FLAGS_NEED_SUSPEND
	.comm	_TID_TERMINATED,8,3             ; @TID_TERMINATED
	.comm	_SIGCANCEL,4,2                  ; @SIGCANCEL
	.no_dead_strip	_suspend_common
.subsections_via_symbols
