	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetItemPath                    ## -- Begin function GetItemPath
	.p2align	4, 0x90
_GetItemPath:                           ## @GetItemPath
	.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, %r12
	movq	%rsi, %r13
	movl	%edi, %r15d
	movl	$0, -48(%rbp)
	movq	$0, (%rdx)
	movq	_pathBuffer@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_HeapAlloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:
	movq	$0, (%rax)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapSize
	movl	%eax, -44(%rbp)
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.3:
	testq	%r13, %r13
	jne	LBB0_5
## %bb.4:
	movl	%r15d, %edi
	callq	_TreeView_GetSelection
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_get_item_path
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	(%r14), %rbx
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pathBuffer,8,3                 ## @pathBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetItemPath                    ; -- Begin function GetItemPath
	.p2align	2
_GetItemPath:                           ; @GetItemPath
	.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	x22, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	str	xzr, [x2]
Lloh0:
	adrp	x21, _pathBuffer@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pathBuffer@GOTPAGEOFF]
	ldr	x0, [x21]
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #1024
	bl	_HeapAlloc
	str	x0, [x21]
	cbz	x0, LBB0_7
LBB0_2:
	str	xzr, [x0]
	bl	_GetProcessHeap
	ldr	x2, [x21]
	mov	w1, #0
	bl	_HeapSize
	str	w0, [sp, #8]
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	cbnz	x22, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_TreeView_GetSelection
	mov	x22, x0
	cbz	x0, LBB0_7
LBB0_5:
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_get_item_path
	ldr	x8, [x21]
	cmp	w0, #0
	csel	x0, xzr, x8, eq
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pathBuffer,8,3                 ; @pathBuffer
.subsections_via_symbols
