	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __build_debug_pid
___build_debug_pid:                     ## @__build_debug_pid
	.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	%rdx, %r15
	movl	%edi, %r14d
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	___resolve_path
	movq	%rax, %r12
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edi
	callq	_ProcessIdToSessionId
	cmpq	$1, %rax
	sbbl	%ebx, %ebx
	orl	-44(%rbp), %ebx
	testq	%r12, %r12
	jne	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_r_sys_conv_win_to_utf8
	movq	%rax, %r12
LBB0_6:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$115, %ecx
	xorl	%r8d, %r8d
	callq	_r_debug_pid_new
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_free
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	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	%r14d, %edx
	callq	_w32_OpenProcess
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	___resolve_path
	movq	%rax, %r12
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_ProcessIdToSessionId
	cmpq	$1, %rax
	sbbl	%ebx, %ebx
	orl	-48(%rbp), %ebx
	movq	%r13, %rdi
	callq	_CloseHandle
	testq	%r12, %r12
	jne	LBB0_6
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ## @PROCESS_QUERY_INFORMATION
	.comm	_PROCESS_VM_READ,4,2            ## @PROCESS_VM_READ
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	___build_debug_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __build_debug_pid
___build_debug_pid:                     ; @__build_debug_pid
	.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	x20, x2
	mov	x19, x0
	cbz	x1, LBB0_5
; %bb.1:
	mov	x0, x1
	mov	x1, #0
	bl	___resolve_path
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_ProcessIdToSessionId
	ldr	w8, [sp, #8]
	cmp	x0, #0
	csinv	w22, w8, wzr, ne
	cbnz	x21, LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_r_sys_conv_win_to_utf8
	mov	x21, x0
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	w3, #115
	mov	w4, #0
	bl	_r_debug_pid_new
	mov	x19, x0
	mov	x0, x21
	bl	_free
LBB0_4:
	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
LBB0_5:
Lloh0:
	adrp	x8, _PROCESS_QUERY_INFORMATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROCESS_QUERY_INFORMATION@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PROCESS_VM_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PROCESS_VM_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_w32_OpenProcess
	cbz	x0, LBB0_7
; %bb.6:
	mov	x23, x0
	mov	x1, #0
	bl	___resolve_path
	mov	x21, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_ProcessIdToSessionId
	ldr	w8, [sp, #12]
	cmp	x0, #0
	csinv	w22, w8, wzr, ne
	mov	x0, x23
	bl	_CloseHandle
	cbnz	x21, LBB0_3
	b	LBB0_2
LBB0_7:
	mov	x19, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCESS_QUERY_INFORMATION,4,2  ; @PROCESS_QUERY_INFORMATION
	.comm	_PROCESS_VM_READ,4,2            ; @PROCESS_VM_READ
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	___build_debug_pid
.subsections_via_symbols
