	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_pids                       ## -- Begin function w32_pids
	.p2align	4, 0x90
_w32_pids:                              ## @w32_pids
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	$12, -48(%rbp)
	movq	_TH32CS_SNAPPROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_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_11
LBB0_2:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_Process32First
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	leaq	-48(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_Process32Next
	testq	%rax, %rax
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ebx, -44(%rbp)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ebx, -40(%rbp)
	jne	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_build_debug_pid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_r_list_append
	jmp	LBB0_9
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	callq	_r_sys_perror
LBB0_10:
	movq	%r15, %rdi
	callq	_CloseHandle
LBB0_11:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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_pids/CreateToolhelp32Snapshot"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_pids                       ; -- Begin function w32_pids
	.p2align	2
_w32_pids:                              ; @w32_pids
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #12
	str	w8, [sp]
Lloh0:
	adrp	x8, _TH32CS_SNAPPROCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TH32CS_SNAPPROCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_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_5
LBB0_2:
	mov	x21, x0
	mov	x1, sp
	bl	_Process32First
	cbnz	w0, LBB0_7
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_r_sys_perror
LBB0_4:
	mov	x0, x21
	bl	_CloseHandle
LBB0_5:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_Process32Next
	cbz	x0, LBB0_4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w20, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w8, w9, [sp, #4]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, sp
	bl	_build_debug_pid
	cbz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_r_list_append
	b	LBB0_6
	.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_pids/CreateToolhelp32Snapshot"

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

.subsections_via_symbols
