	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_thread_resume            ## -- Begin function __lwp_thread_resume
	.p2align	4, 0x90
___lwp_thread_resume:                   ## @__lwp_thread_resume
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	__CPU_ISR_Disable
	movq	_TRUE@GOTPCREL(%rip), %r15
	cmpq	%rbx, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	$0, (%r14)
	jmp	LBB0_3
LBB0_2:
	movq	(%r14), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r14)
	cmpq	$1, %rax
	jg	LBB0_9
LBB0_3:
	movq	8(%r14), %rdi
	movq	_LWP_STATES_SUSPENDED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rdi, %rsi
	je	LBB0_9
## %bb.4:
	callq	___lwp_clearstate
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	___lwp_stateready
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	32(%r14), %rdi
	callq	___lwp_priomap_addto
	movl	28(%r14), %edi
	leaq	24(%r14), %rsi
	callq	___lwp_queue_appendI
	callq	__CPU_ISR_Flash
	movq	16(%r14), %rax
	movq	__thr_heir@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	16(%rdx), %rax
	jge	LBB0_9
## %bb.6:
	movq	%r14, (%rcx)
	movq	__thr_executing@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_8
## %bb.7:
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	movq	(%r15), %rax
	movq	__context_switch_want@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_LWP_STATES_SUSPENDED,8,3       ## @LWP_STATES_SUSPENDED
	.comm	__thr_heir,8,3                  ## @_thr_heir
	.comm	__thr_executing,8,3             ## @_thr_executing
	.comm	__context_switch_want,8,3       ## @_context_switch_want
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_thread_resume            ; -- Begin function __lwp_thread_resume
	.p2align	2
___lwp_thread_resume:                   ; @__lwp_thread_resume
	.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	x20, x1
	mov	x19, x0
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x21, _TRUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x19]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.gt	LBB0_8
LBB0_3:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x8, _LWP_STATES_SUSPENDED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LWP_STATES_SUSPENDED@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	tst	x1, x0
	b.eq	LBB0_8
; %bb.4:
	bl	___lwp_clearstate
	str	x0, [x19, #8]
	bl	___lwp_stateready
	cbz	x0, LBB0_8
; %bb.5:
	add	x0, x19, #32
	bl	___lwp_priomap_addto
	ldr	w0, [x19, #28]
	add	x1, x19, #24
	bl	___lwp_queue_appendI
	bl	__CPU_ISR_Flash
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, __thr_heir@GOTPAGE
Lloh6:
	ldr	x9, [x9, __thr_heir@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x10, [x10, #16]
	cmp	x8, x10
	b.ge	LBB0_8
; %bb.6:
	str	x19, [x9]
Lloh7:
	adrp	x9, __thr_executing@GOTPAGE
Lloh8:
	ldr	x9, [x9, __thr_executing@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x21]
Lloh10:
	adrp	x9, __context_switch_want@GOTPAGE
Lloh11:
	ldr	x9, [x9, __context_switch_want@GOTPAGEOFF]
Lloh12:
	str	x8, [x9]
LBB0_8:
	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
	b	__CPU_ISR_Restore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_LWP_STATES_SUSPENDED,8,3       ; @LWP_STATES_SUSPENDED
	.comm	__thr_heir,8,3                  ; @_thr_heir
	.comm	__thr_executing,8,3             ; @_thr_executing
	.comm	__context_switch_want,8,3       ; @_context_switch_want
.subsections_via_symbols
