	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function textdupTtoW
_textdupTtoW:                           ## @textdupTtoW
	.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
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_1
LBB0_5:
	movq	_LPSTR_TEXTCALLBACKW@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_debugstr_w
	movq	%rax, %rsi
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_is_text
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_CP_ACP@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	movl	%eax, %r15d
	leal	(,%r15,4), %edi
	callq	_Alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r12
	movl	(%r13), %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$-1, %ecx
	movq	%rax, %r8
	movl	%r15d, %r9d
	callq	_MultiByteToWideChar
	movq	%r12, %r14
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %r14
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"   wstr=%s\n"

	.comm	_LPSTR_TEXTCALLBACKW,8,3        ## @LPSTR_TEXTCALLBACKW
L_.str.1:                               ## @.str.1
	.asciz	"(callback)"

	.no_dead_strip	_textdupTtoW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function textdupTtoW
_textdupTtoW:                           ; @textdupTtoW
	.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, x0
	mov	x20, x0
	cbz	w1, LBB0_5
LBB0_1:
Lloh0:
	adrp	x8, _LPSTR_TEXTCALLBACKW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LPSTR_TEXTCALLBACKW@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_debugstr_w
	mov	x1, x0
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	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
LBB0_5:
	mov	x0, x19
	bl	_is_text
	cbz	x0, LBB0_8
; %bb.6:
Lloh7:
	adrp	x22, _CP_ACP@GOTPAGE
Lloh8:
	ldr	x22, [x22, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	mov	x2, x19
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	mov	x21, x0
	lsl	w0, w0, #2
	bl	_Alloc
	mov	x20, x0
	cbz	x0, LBB0_1
; %bb.7:
	ldr	w0, [x22]
	mov	w1, #0
	mov	x2, x19
	mov	w3, #-1
	mov	x4, x20
	mov	x5, x21
	bl	_MultiByteToWideChar
	b	LBB0_1
LBB0_8:
	mov	x20, x19
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"   wstr=%s\n"

	.comm	_LPSTR_TEXTCALLBACKW,8,3        ; @LPSTR_TEXTCALLBACKW
l_.str.1:                               ; @.str.1
	.asciz	"(callback)"

	.no_dead_strip	_textdupTtoW
.subsections_via_symbols
