	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_pid_list                   ## -- Begin function w32_pid_list
	.p2align	4, 0x90
_w32_pid_list:                          ## @w32_pid_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_TH32CS_SNAPPROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_w32_CreateToolhelp32Snapshot
	movq	%rax, %r15
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_perror
	jmp	LBB0_15
LBB0_2:
	movl	$16, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_Process32First
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	(%r12), %r13
	xorl	%ecx, %ecx
	leaq	-64(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_Process32Next
	movl	%r14d, %ecx
	testq	%rax, %rax
	je	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-60(%rbp), %edi
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ebx, %edi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	movl	$1, %ecx
	cmpl	%ebx, -56(%rbp)
	jne	LBB0_12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rsi
	movl	%ecx, %r14d
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	xorl	%esi, %esi
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %edx
	callq	___build_debug_pid
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_r_list_append
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	callq	_r_sys_perror
LBB0_14:
	movq	%r15, %rdi
	callq	_CloseHandle
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TH32CS_SNAPPROCESS,4,2         ## @TH32CS_SNAPPROCESS
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w32_pid_list/CreateToolhelp32Snapshot"

L_.str.1:                               ## @.str.1
	.asciz	"w32_pid_list/Process32First"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_pid_list                   ; -- Begin function w32_pid_list
	.p2align	2
_w32_pid_list:                          ; @w32_pid_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _TH32CS_SNAPPROCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TH32CS_SNAPPROCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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_17
LBB0_2:
	mov	x21, x0
	mov	w8, #16
	str	w8, [sp]
	mov	x1, sp
	bl	_Process32First
	cbz	x0, LBB0_15
; %bb.3:
	mov	w23, #0
	ldr	x22, [x22]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w23, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_Process32Next
	cbz	x0, LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #4]
	cbz	w20, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, w20
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w23, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w23, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x22]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, #0
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [sp, #12]
	bl	___build_debug_pid
	cbz	x0, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_r_list_append
	b	LBB0_5
LBB0_15:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_r_sys_perror
LBB0_16:
	mov	x0, x21
	bl	_CloseHandle
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TH32CS_SNAPPROCESS,4,2         ; @TH32CS_SNAPPROCESS
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w32_pid_list/CreateToolhelp32Snapshot"

l_.str.1:                               ; @.str.1
	.asciz	"w32_pid_list/Process32First"

.subsections_via_symbols
