	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_thread_list                ## -- Begin function w32_thread_list
	.p2align	4, 0x90
_w32_thread_list:                       ## @w32_thread_list
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_TH32CS_SNAPTHREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_w32_CreateToolhelp32Snapshot
	movq	%rax, %r13
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_perror
	jmp	LBB0_21
LBB0_2:
	movl	$12, -56(%rbp)
	movq	_PROCESS_QUERY_INFORMATION@GOTPCREL(%rip), %rax
	movq	_PROCESS_VM_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_w32_OpenProcess
	movq	%rax, %r14
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_Thread32First
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movl	$-1, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, -52(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	%r13, %rbx
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	___resolve_path
	movq	%rax, %r14
	leaq	-88(%rbp), %rsi
	movl	%r12d, %edi
	callq	_ProcessIdToSessionId
	cmpq	$1, %rax
	sbbl	%r13d, %r13d
	orl	-88(%rbp), %r13d
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	jne	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_strdup
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %rbx
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_R_DBG_PROC_DEAD@GOTPCREL(%rip), %rax
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movzbl	(%rax), %r13d
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %esi
	movsbl	%r13b, %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %r8d
	callq	_r_debug_pid_new
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %esi
	callq	_r_list_append
	movq	-120(%rbp), %r13                ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_Thread32Next
	testq	%rax, %rax
	je	LBB0_18
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, -48(%rbp)
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_R_DBG_PROC_SLEEP@GOTPCREL(%rip), %rax
	movzbl	(%rax), %r13d
	xorl	%r14d, %r14d
	movl	%r12d, %eax
	cmpl	%r12d, 4(%r15)
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, -80(%rbp)
	movq	$0, -88(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, (%r15)
	movq	_R_REG_TYPE_GPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	-88(%rbp), %rdx
	movl	$12, %ecx
	callq	_w32_reg_read
	movl	-88(%rbp), %r14d
	movl	-52(%rbp), %esi
	movq	%r15, %rdi
	callq	___find_thread
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 8(%rax)
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_R_DBG_PROC_SLEEP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_R_DBG_PROC_RUN@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_18:
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	callq	_r_sys_perror
LBB0_20:
	movq	%r13, %rdi
	callq	_CloseHandle
LBB0_21:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TH32CS_SNAPTHREAD,4,2          ## @TH32CS_SNAPTHREAD
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w32_thread_list/CreateToolhelp32Snapshot"

	.comm	_PROCESS_QUERY_INFORMATION,4,2  ## @PROCESS_QUERY_INFORMATION
	.comm	_PROCESS_VM_READ,4,2            ## @PROCESS_VM_READ
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"???"

	.comm	_R_DBG_PROC_SLEEP,1,0           ## @R_DBG_PROC_SLEEP
	.comm	_R_REG_TYPE_GPR,4,2             ## @R_REG_TYPE_GPR
	.comm	_R_DBG_PROC_DEAD,1,0            ## @R_DBG_PROC_DEAD
	.comm	_R_DBG_PROC_RUN,1,0             ## @R_DBG_PROC_RUN
L_.str.2:                               ## @.str.2
	.asciz	"w32_thread_list/Thread32First"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_thread_list                ; -- Begin function w32_thread_list
	.p2align	2
_w32_thread_list:                       ; @w32_thread_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _TH32CS_SNAPTHREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TH32CS_SNAPTHREAD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_w32_CreateToolhelp32Snapshot
Lloh3:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_sys_perror
	b	LBB0_23
LBB0_2:
	mov	x20, x0
	mov	w8, #12
	str	w8, [sp, #32]
Lloh8:
	adrp	x8, _PROCESS_QUERY_INFORMATION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PROCESS_QUERY_INFORMATION@GOTPAGEOFF]
Lloh10:
	adrp	x9, _PROCESS_VM_READ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PROCESS_VM_READ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh14:
	adrp	x8, _FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_w32_OpenProcess
	mov	x23, x0
	add	x1, sp, #32
	mov	x0, x20
	bl	_Thread32First
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_6
; %bb.4:
	mov	w24, #-1
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_r_sys_perror
	b	LBB0_22
LBB0_6:
	mov	x0, x23
	mov	x1, #0
	bl	___resolve_path
	mov	x23, x0
	add	x1, sp, #16
	mov	x0, x22
	bl	_ProcessIdToSessionId
	ldr	w8, [sp, #16]
	cmp	x0, #0
	csinv	w24, w8, wzr, ne
	cbnz	x23, LBB0_8
LBB0_7:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strdup
	mov	x23, x0
LBB0_8:
	ldr	w8, [x21]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh21:
	adrp	x27, _R_DBG_PROC_SLEEP@GOTPAGE
Lloh22:
	ldr	x27, [x27, _R_DBG_PROC_SLEEP@GOTPAGEOFF]
Lloh23:
	adrp	x28, _R_REG_TYPE_GPR@GOTPAGE
Lloh24:
	ldr	x28, [x28, _R_REG_TYPE_GPR@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	mov	w25, #0
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [sp, #36]
	sxtb	w3, w26
	mov	x0, x23
	mov	x2, x24
	mov	x4, x25
	bl	_r_debug_pid_new
	mov	x1, x0
	mov	x0, x19
	bl	_r_list_append
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	bl	_Thread32Next
	cbz	x0, LBB0_21
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #40]
	cmp	w8, w22
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w26, [x27]
	ldr	w8, [x21, #4]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	ldr	w8, [sp, #36]
	str	w8, [x21]
	ldr	w1, [x28]
	add	x2, sp, #16
	mov	x0, x21
	mov	w3, #12
	bl	_w32_reg_read
	ldr	w25, [sp, #16]
	ldr	w1, [sp, #36]
	mov	x0, x21
	bl	___find_thread
	cbz	x0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh25:
	adrp	x8, _R_DBG_PROC_DEAD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _R_DBG_PROC_DEAD@GOTPAGEOFF]
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w26, [x8]
	b	LBB0_10
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x0]
	cbz	x8, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w26, [x27]
	b	LBB0_10
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh27:
	adrp	x8, _R_DBG_PROC_RUN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _R_DBG_PROC_RUN@GOTPAGEOFF]
	b	LBB0_17
LBB0_21:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x21]
	mov	x0, x23
	bl	_free
LBB0_22:
	mov	x0, x20
	bl	_CloseHandle
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TH32CS_SNAPTHREAD,4,2          ; @TH32CS_SNAPTHREAD
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w32_thread_list/CreateToolhelp32Snapshot"

	.comm	_PROCESS_QUERY_INFORMATION,4,2  ; @PROCESS_QUERY_INFORMATION
	.comm	_PROCESS_VM_READ,4,2            ; @PROCESS_VM_READ
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"???"

	.comm	_R_DBG_PROC_SLEEP,1,0           ; @R_DBG_PROC_SLEEP
	.comm	_R_REG_TYPE_GPR,4,2             ; @R_REG_TYPE_GPR
	.comm	_R_DBG_PROC_DEAD,1,0            ; @R_DBG_PROC_DEAD
	.comm	_R_DBG_PROC_RUN,1,0             ; @R_DBG_PROC_RUN
l_.str.2:                               ; @.str.2
	.asciz	"w32_thread_list/Thread32First"

.subsections_via_symbols
