	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function TREEVIEW_TVItemFromItem
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_TREEVIEW_TVItemFromItem:               ## @TREEVIEW_TVItemFromItem
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, (%rdx)
	movq	%rcx, 56(%rdx)
	movl	32(%rcx), %eax
	movl	%eax, 48(%rdx)
	movq	$0, 40(%rdx)
	movups	16(%rcx), %xmm0
	movups	%xmm0, 24(%rdx)
	movq	_TVIF_TEXT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%rcx, %r14
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.3:
	movq	8(%r14), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_5
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	jmp	LBB0_5
LBB0_2:
	movq	_CP_ACP@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	(%r14), %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_WideCharToMultiByte
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_heap_alloc
	movq	%rax, 8(%rbx)
	movl	(%r15), %edi
	movq	(%r14), %rdx
	movq	16(%rbx), %r9
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	$-1, %ecx
	movq	%rax, %r8
	callq	_WideCharToMultiByte
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TVIF_TEXT,4,2                  ## @TVIF_TEXT
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.no_dead_strip	_TREEVIEW_TVItemFromItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TREEVIEW_TVItemFromItem
_TREEVIEW_TVItemFromItem:               ; @TREEVIEW_TVItemFromItem
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	str	w1, [x2]
	str	x3, [x2, #56]
	ldr	w8, [x3, #32]
	str	w8, [x2, #48]
	str	xzr, [x2, #40]
	ldr	q0, [x3, #16]
	stur	q0, [x2, #24]
Lloh0:
	adrp	x8, _TVIF_TEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVIF_TEXT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x3
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.2:
	ldp	x9, x8, [x20]
	stp	x9, x8, [x19, #8]
	b	LBB0_5
LBB0_3:
	stp	xzr, xzr, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x21, _CP_ACP@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x2, [x20]
	mov	w1, #0
	mov	w3, #-1
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	str	x0, [x19, #16]
	bl	_heap_alloc
	mov	x4, x0
	str	x0, [x19, #8]
	ldr	w0, [x21]
	ldr	x2, [x20]
	ldr	x5, [x19, #16]
	mov	w1, #0
	mov	w3, #-1
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TVIF_TEXT,4,2                  ; @TVIF_TEXT
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.no_dead_strip	_TREEVIEW_TVItemFromItem
.subsections_via_symbols
