	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_thread_closeall          ## -- Begin function __lwp_thread_closeall
	.p2align	4, 0x90
___lwp_thread_closeall:                 ## @__lwp_thread_closeall
	.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
	callq	__CPU_ISR_Disable
	movq	_LWP_MAXPRIORITIES@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.1:
	xorl	%r15d, %r15d
	movq	__lwp_thr_ready@GOTPCREL(%rip), %r12
	movq	__thr_executing@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	_LWP_MAXPRIORITIES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jae	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%r12), %rax
	leaq	(%rax,%r15,8), %rdi
	movq	(%rax,%r15,8), %rbx
	callq	___lwp_queue_tail
	cmpq	%rax, %rbx
	jne	LBB0_3
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	leaq	(,%r15,8), %rdi
	addq	(%r12), %rdi
	callq	___lwp_queue_tail
	movq	%r14, %rbx
	cmpq	%rax, %r14
	je	LBB0_6
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %r14
	cmpq	%rbx, (%r13)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	callq	___lwp_thread_close
	jmp	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LWP_MAXPRIORITIES,8,3          ## @LWP_MAXPRIORITIES
	.comm	__lwp_thr_ready,8,3             ## @_lwp_thr_ready
	.comm	__thr_executing,8,3             ## @_thr_executing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwp_thread_closeall          ; -- Begin function __lwp_thread_closeall
	.p2align	2
___lwp_thread_closeall:                 ; @__lwp_thread_closeall
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x20, _LWP_MAXPRIORITIES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LWP_MAXPRIORITIES@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x22, __lwp_thr_ready@GOTPAGE
Lloh3:
	ldr	x22, [x22, __lwp_thr_ready@GOTPAGEOFF]
Lloh4:
	adrp	x23, __thr_executing@GOTPAGE
Lloh5:
	ldr	x23, [x23, __thr_executing@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x22]
	add	x0, x8, x21, lsl #3
	ldr	x19, [x0]
	bl	___lwp_queue_tail
	cmp	x19, x0
	b.ne	LBB0_5
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x22]
	add	x0, x8, x21, lsl #3
	bl	___lwp_queue_tail
	mov	x19, x24
	cmp	x24, x0
	b.eq	LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x24, [x19]
	ldr	x8, [x23]
	cmp	x8, x19
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x19
	bl	___lwp_thread_close
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	__CPU_ISR_Restore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_LWP_MAXPRIORITIES,8,3          ; @LWP_MAXPRIORITIES
	.comm	__lwp_thr_ready,8,3             ; @_lwp_thr_ready
	.comm	__thr_executing,8,3             ; @_thr_executing
.subsections_via_symbols
