	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thr_getsuspended
_thr_getsuspended:                      ## @thr_getsuspended
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_QUIT@GOTPCREL(%rip), %rbx
	cmpl	$1, (%rbx)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_kthread_suspend_check
	cmpl	$1, (%rbx)
	jne	LBB0_1
LBB0_3:
	movq	_test_global_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mtx_lock
	movq	_test_thrcnt@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_global_condvar@GOTPCREL(%rip), %rdi
	callq	_wakeup
	movq	%rbx, %rdi
	callq	_mtx_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kthread_exit                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QUIT,4,2                       ## @QUIT
	.comm	_test_global_lock,4,2           ## @test_global_lock
	.comm	_test_thrcnt,4,2                ## @test_thrcnt
	.comm	_global_condvar,4,2             ## @global_condvar
	.no_dead_strip	_thr_getsuspended
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thr_getsuspended
_thr_getsuspended:                      ; @thr_getsuspended
	.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
Lloh0:
	adrp	x19, _QUIT@GOTPAGE
Lloh1:
	ldr	x19, [x19, _QUIT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_kthread_suspend_check
	b	LBB0_1
LBB0_3:
Lloh2:
	adrp	x19, _test_global_lock@GOTPAGE
Lloh3:
	ldr	x19, [x19, _test_global_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_lock
Lloh4:
	adrp	x8, _test_thrcnt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _test_thrcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh6:
	adrp	x0, _global_condvar@GOTPAGE
Lloh7:
	ldr	x0, [x0, _global_condvar@GOTPAGEOFF]
	bl	_wakeup
	mov	x0, x19
	bl	_mtx_unlock
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kthread_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_QUIT,4,2                       ; @QUIT
	.comm	_test_global_lock,4,2           ; @test_global_lock
	.comm	_test_thrcnt,4,2                ; @test_thrcnt
	.comm	_global_condvar,4,2             ; @global_condvar
	.no_dead_strip	_thr_getsuspended
.subsections_via_symbols
