	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_desc_list                  ## -- Begin function w32_desc_list
	.p2align	4, 0x90
_w32_desc_list:                         ## @w32_desc_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
	movl	%edi, %r12d
	movq	_free@GOTPCREL(%rip), %rdi
	callq	_r_list_newf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_PROCESS_DUP_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_w32_OpenProcess
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_malloc
	movq	%rax, %r15
	movl	$65536, %ebx                    ## imm = 0x10000
	movl	$3221225476, %r14d              ## imm = 0xC0000004
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$16, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_w32_NtQuerySystemInformation
	cmpq	%r14, %rax
	jne	LBB0_7
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_realloc
	testq	%rax, %rax
	cmovneq	%rax, %r15
	jmp	LBB0_6
LBB0_7:
	testq	%rax, %rax
	jne	LBB0_20
## %bb.8:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, (%r15)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_30
## %bb.9:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_r_sys_perror
	jmp	LBB0_4
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
	callq	_r_sys_perror
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_CloseHandle
LBB0_4:
	movq	%r13, %rdi
	callq	_r_list_free
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	%rbx, %rdi
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	callq	_free
LBB0_28:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdi
	callq	_CloseHandle
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movslq	(%r15), %rax
	addq	$12, %r13
	cmpq	%rax, %r14
	jge	LBB0_30
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	8(%rax,%r13), %ecx
	movl	%ecx, -88(%rbp)
	movq	(%rax,%r13), %rax
	movq	%rax, -96(%rbp)
	movq	$0, -56(%rbp)
	cmpl	%r12d, %eax
	jne	LBB0_29
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$28, -92(%rbp)
	jne	LBB0_29
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_GetCurrentProcess
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rsi
	movl	%eax, %edx
	leaq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_w32_NtDuplicateObject
	testq	%rax, %rax
	jne	LBB0_29
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_malloc
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	movl	$2, %esi
	movq	%rax, %rdx
	movl	$4096, %ecx                     ## imm = 0x1000
	xorl	%r8d, %r8d
	callq	_w32_NtQueryObject
	testq	%rax, %rax
	jne	LBB0_28
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdi
	movl	$1, %esi
	movq	%rax, %rbx
	movq	%rax, %rdx
	movl	$4096, %ecx                     ## imm = 0x1000
	leaq	-60(%rbp), %r8
	callq	_w32_NtQueryObject
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-60(%rbp), %esi
	movq	%rbx, %rdi
	callq	_realloc
	testq	%rax, %rax
	cmovneq	%rax, %rbx
	movq	-56(%rbp), %rdi
	movl	-60(%rbp), %ecx
	movl	$1, %esi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_w32_NtQueryObject
	testq	%rax, %rax
	jne	LBB0_26
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rbx), %eax
	testl	%eax, %eax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%rbx), %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	leal	1(%rbx), %eax
	movslq	%eax, %rdi
	callq	_malloc
	movq	%rax, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	%rax, %rbx
	jmp	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%rcx), %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	incl	%eax
	movslq	%eax, %rdi
	movq	%rcx, %rbx
	callq	_malloc
	movl	8(%rbx), %esi
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	callq	_wcstombs
	movl	-88(%rbp), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$63, %ecx
	xorl	%r8d, %r8d
	callq	_r_debug_desc_new
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %rsi
	callq	_r_list_append
	movq	%rbx, %rdi
	callq	_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_27
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_24:
	movq	%rbx, %rdi
	callq	_free
LBB0_25:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_30:
	movq	%r15, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_CloseHandle
	movq	-104(%rbp), %rax                ## 8-byte Reload
LBB0_31:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"win_desc_list/r_list_new"

	.comm	_PROCESS_DUP_HANDLE,4,2         ## @PROCESS_DUP_HANDLE
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"win_desc_list/OpenProcess"

L_.str.2:                               ## @.str.2
	.asciz	"win_desc_list/NtQuerySystemInformation"

	.comm	_STATUS_INFO_LENGTH_MISMATCH,8,3 ## @STATUS_INFO_LENGTH_MISMATCH
	.comm	_SystemHandleInformation,4,2    ## @SystemHandleInformation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_desc_list                  ; -- Begin function w32_desc_list
	.p2align	2
_w32_desc_list:                         ; @w32_desc_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	x21, x0
Lloh0:
	adrp	x0, _free@GOTPAGE
Lloh1:
	ldr	x0, [x0, _free@GOTPAGEOFF]
	bl	_r_list_newf
	mov	x19, x0
	cbz	x0, LBB0_25
; %bb.1:
Lloh2:
	adrp	x8, _PROCESS_DUP_HANDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PROCESS_DUP_HANDLE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_w32_OpenProcess
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	mov	w23, #65536
	mov	w0, #65536
	bl	_malloc
	mov	x22, x0
	mov	w24, #4
	movk	w24, #49152, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #16
	mov	x1, x22
	mov	x2, x23
	mov	x3, #0
	bl	_w32_NtQuerySystemInformation
	cmp	x0, x24
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w23, w23, #1
	mov	x0, x22
	mov	x1, x23
	bl	_realloc
	cmp	x0, #0
	csel	x22, x22, x0, eq
	b	LBB0_3
LBB0_5:
	cbnz	x0, LBB0_9
; %bb.6:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.7:
	mov	x27, #0
	mov	x23, #0
	add	x8, sp, #32
	add	x26, x8, #8
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_14
LBB0_8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_r_sys_perror
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_r_sys_perror
	mov	x0, x20
	bl	_CloseHandle
LBB0_10:
	mov	x0, x19
	bl	_r_list_free
	mov	x19, #0
	b	LBB0_28
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_free
	mov	x0, x25
	bl	_free
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [sp, #24]
	bl	_CloseHandle
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x27, x27, #12
	cmp	x23, x8
	b.ge	LBB0_27
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	add	x8, x8, x27
	ldr	w9, [x8, #8]
	ldr	x8, [x8]
	stp	xzr, x8, [sp, #24]
	str	w9, [sp, #40]
	lsr	x9, x8, #32
	cmp	w8, w21
	ccmp	w9, #28, #0, eq
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_GetCurrentProcess
	mov	x2, x0
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x26
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_w32_NtDuplicateObject
	cbnz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #4096
	bl	_malloc
	mov	x24, x0
	ldr	x0, [sp, #24]
	mov	w1, #2
	mov	x2, x24
	mov	w3, #4096
	mov	x4, #0
	bl	_w32_NtQueryObject
	cbnz	x0, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #4096
	bl	_malloc
	cbz	x0, LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x25, x0
	ldr	x0, [sp, #24]
	add	x4, sp, #20
	mov	w1, #1
	mov	x2, x25
	mov	w3, #4096
	bl	_w32_NtQueryObject
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [sp, #20]
	mov	x0, x25
	bl	_realloc
	cmp	x0, #0
	csel	x25, x25, x0, eq
	ldr	x0, [sp, #24]
	ldr	w3, [sp, #20]
	mov	w1, #1
	mov	x2, x25
	mov	x4, #0
	bl	_w32_NtQueryObject
	cbnz	x0, LBB0_11
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x25]
	cbz	w8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x25, #4]
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w28, w8, #1
	add	w8, w28, #1
	sxtw	x0, w8
	bl	_malloc
	mov	x26, x0
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w28, [x24, #4]
	cmp	w28, #0
	cinc	w8, w28, lt
	asr	w8, w8, #1
	add	w8, w8, #1
	sxtw	x0, w8
	bl	_malloc
	mov	x26, x0
	ldr	w1, [x24, #8]
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x2, x28
	bl	_wcstombs
	ldr	w0, [sp, #40]
	mov	x1, x26
	mov	w2, #0
	mov	w3, #63
	mov	w4, #0
	bl	_r_debug_desc_new
	mov	x1, x0
	cbz	x0, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_r_list_append
	mov	x0, x26
	bl	_free
	mov	x0, x24
	bl	_free
	mov	x0, x25
	bl	_free
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_12
LBB0_25:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_28
LBB0_26:
	mov	x0, x26
	bl	_free
LBB0_27:
	mov	x0, x22
	bl	_free
	mov	x0, x20
	bl	_CloseHandle
LBB0_28:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"win_desc_list/r_list_new"

	.comm	_PROCESS_DUP_HANDLE,4,2         ; @PROCESS_DUP_HANDLE
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"win_desc_list/OpenProcess"

l_.str.2:                               ; @.str.2
	.asciz	"win_desc_list/NtQuerySystemInformation"

	.comm	_STATUS_INFO_LENGTH_MISMATCH,8,3 ; @STATUS_INFO_LENGTH_MISMATCH
	.comm	_SystemHandleInformation,4,2    ; @SystemHandleInformation
.subsections_via_symbols
