	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_process_name_from_pid
_get_process_name_from_pid:             ## @get_process_name_from_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %edx
	movq	_PROCESS_QUERY_INFORMATION@GOTPCREL(%rip), %rax
	movq	_PROCESS_VM_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_OpenProcess
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	movl	%eax, %edi
	movl	$4, %edx
	callq	_EnumProcessModules
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	-36(%rbp), %esi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_GetModuleBaseNameW
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_CloseHandle
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.5:
	movq	_FALSE@GOTPCREL(%rip), %r12
	jmp	LBB0_6
LBB0_2:
	movl	%ebx, %edi
	callq	_CloseHandle
	jmp	LBB0_6
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %r12
LBB0_6:
	movl	(%r12), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_get_process_name_from_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_process_name_from_pid
_get_process_name_from_pid:             ; @get_process_name_from_pid
	.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, x2
	mov	x20, x1
	mov	x2, x0
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	x22, _FALSE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_OpenProcess
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x1, sp, #12
	add	x3, sp, #8
	mov	w2, #4
	bl	_EnumProcessModules
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_GetModuleBaseNameW
	mov	x19, x0
	mov	x0, x21
	bl	_CloseHandle
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cmp	w19, #0
	csel	x22, x22, x8, eq
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_CloseHandle
Lloh10:
	adrp	x22, _FALSE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.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
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_get_process_name_from_pid
.subsections_via_symbols
