	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_debug_lstThreadAdd
_r_debug_lstThreadAdd:                  ## @r_debug_lstThreadAdd
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r12d
	movl	$0, -44(%rbp)
	movq	_lstThread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_PTHREAD_MAX@GOTPCREL(%rip), %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %esi
	shll	$2, %esi
	movq	_MEM_COMMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAGE_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, %r15
	xorl	%edi, %edi
	movq	%r8, %rbx
	movl	%r9d, %r14d
	callq	_VirtualAlloc
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %r9d
	movq	%rbx, %r8
	movq	_lstThread@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_2:
	movq	_lstThreadPtr@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	_PTHREAD_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.3:
	addq	$48, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -16(%rax)
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, (%r15)
	addq	$48, %rax
	decl	%ecx
	jne	LBB0_4
LBB0_9:
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eprintf                        ## TAILCALL
LBB0_5:
	movq	%rdi, -8(%rax)
	movq	%rsi, -16(%rax)
	movl	%r9d, -20(%rax)
	movl	%r12d, -24(%rax)
	movq	%r13, -32(%rax)
	movq	%r8, -40(%rax)
	leaq	-44(%rbp), %rdx
	movl	%r12d, %edi
	movl	$9, %esi
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_w32_NtQueryInformationThread
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	-44(%rbp), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lstThread,8,3                  ## @lstThread
	.comm	_PTHREAD_MAX,4,2                ## @PTHREAD_MAX
	.comm	_MEM_COMMIT,4,2                 ## @MEM_COMMIT
	.comm	_PAGE_READWRITE,4,2             ## @PAGE_READWRITE
	.comm	_lstThreadPtr,8,3               ## @lstThreadPtr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r_debug_lstThreadAdd: Cannot find slot\n"

	.no_dead_strip	_r_debug_lstThreadAdd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_debug_lstThreadAdd
_r_debug_lstThreadAdd:                  ; @r_debug_lstThreadAdd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x5
	mov	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x24, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x25, _lstThread@GOTPAGE
Lloh1:
	ldr	x25, [x25, _lstThread@GOTPAGEOFF]
	ldr	x0, [x25]
Lloh2:
	adrp	x26, _PTHREAD_MAX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PTHREAD_MAX@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x26]
	lsl	w1, w8, #2
Lloh4:
	adrp	x8, _MEM_COMMIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MEM_COMMIT@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _PAGE_READWRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_READWRITE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	bl	_VirtualAlloc
	str	x0, [x25]
LBB0_2:
Lloh10:
	adrp	x25, _lstThreadPtr@GOTPAGE
Lloh11:
	ldr	x25, [x25, _lstThreadPtr@GOTPAGEOFF]
	str	x0, [x25]
	ldr	w9, [x26]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.3:
	add	x8, x0, #48
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-16]
	cbz	x10, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x25]
	add	x8, x8, #48
	subs	w9, w9, #1
	b.ne	LBB0_4
LBB0_6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	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
	add	sp, sp, #96
	b	_eprintf
LBB0_7:
	stp	x23, x24, [x8, #-16]
	stp	w19, w22, [x8, #-24]
	stp	x20, x21, [x8, #-40]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #9
	mov	w3, #4
	mov	x4, #0
	bl	_w32_NtQueryInformationThread
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	w8, [sp, #12]
	ldr	x9, [x25]
	str	w8, [x9]
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_lstThread,8,3                  ; @lstThread
	.comm	_PTHREAD_MAX,4,2                ; @PTHREAD_MAX
	.comm	_MEM_COMMIT,4,2                 ; @MEM_COMMIT
	.comm	_PAGE_READWRITE,4,2             ; @PAGE_READWRITE
	.comm	_lstThreadPtr,8,3               ; @lstThreadPtr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r_debug_lstThreadAdd: Cannot find slot\n"

	.no_dead_strip	_r_debug_lstThreadAdd
.subsections_via_symbols
