	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_attach                     ## -- Begin function w32_attach
	.p2align	4, 0x90
_w32_attach:                            ## @w32_attach
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %r14d
	jmp	LBB0_10
LBB0_2:
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_w32_PROCESS_ALL_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_w32_OpenProcess
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r15
	movq	_W32_ATTACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rdi
	movq	(%rdi), %rcx
	movl	%eax, 8(%rcx)
	movl	%r12d, (%rcx)
	callq	_w32dbg_wrap_wait_ret
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_r_list_new
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_w32_thread_list
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.9:
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %r14d
	movq	%rax, %rdi
	callq	_r_list_free
	movq	%r15, 8(%rbx)
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_w32_dbg_wait
	jmp	LBB0_10
LBB0_4:
	callq	_w32dbgw_err
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_perror
	jmp	LBB0_6
LBB0_8:
	movq	%rax, %rdi
	callq	_r_list_free
LBB0_6:
	movq	%r15, %rdi
	callq	_CloseHandle
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_w32_PROCESS_ALL_ACCESS,4,2     ## @w32_PROCESS_ALL_ACCESS
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_W32_ATTACH,4,2                 ## @W32_ATTACH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DebugActiveProcess"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_w32_attach                     ; -- Begin function w32_attach
	.p2align	2
_w32_attach:                            ; @w32_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x23, [x0]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w22, [x23]
	b	LBB0_11
LBB0_2:
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _w32_PROCESS_ALL_ACCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _w32_PROCESS_ALL_ACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_w32_OpenProcess
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x8, _W32_ATTACH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _W32_ATTACH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x0, [x23, #16]
	ldr	x9, [x0]
	str	w8, [x9, #8]
	str	w19, [x9]
	bl	_w32dbg_wrap_wait_ret
	ldr	x0, [x23, #16]
	ldr	x8, [x0]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_7
; %bb.4:
	bl	_r_list_new
	cbz	x0, LBB0_9
; %bb.5:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_w32_thread_list
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w22, [x8]
	bl	_r_list_free
	str	x20, [x23, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_w32_dbg_wait
	b	LBB0_11
LBB0_7:
	bl	_w32dbgw_err
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_sys_perror
	b	LBB0_9
LBB0_8:
	bl	_r_list_free
LBB0_9:
	mov	x0, x20
	bl	_CloseHandle
LBB0_10:
	mov	w22, #-1
LBB0_11:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_w32_PROCESS_ALL_ACCESS,4,2     ; @w32_PROCESS_ALL_ACCESS
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_W32_ATTACH,4,2                 ; @W32_ATTACH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DebugActiveProcess"

.subsections_via_symbols
