	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwCreateWideStringFromUTF8Win32 ## -- Begin function _glfwCreateWideStringFromUTF8Win32
	.p2align	4, 0x90
__glfwCreateWideStringFromUTF8Win32:    ## @_glfwCreateWideStringFromUTF8Win32
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_CP_UTF8@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r15
	movl	(%r12), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$-1, %ecx
	movq	%rax, %r8
	movl	%ebx, %r9d
	callq	_MultiByteToWideChar
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputErrorWin32
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_4
LBB0_1:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputErrorWin32
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Win32: Failed to convert string from UTF-8"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwCreateWideStringFromUTF8Win32 ; -- Begin function _glfwCreateWideStringFromUTF8Win32
	.p2align	2
__glfwCreateWideStringFromUTF8Win32:    ; @_glfwCreateWideStringFromUTF8Win32
	.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
Lloh0:
	adrp	x22, _CP_UTF8@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CP_UTF8@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	mov	x2, x19
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	w1, #4
	bl	_calloc
	mov	x20, x0
	ldr	w0, [x22]
	mov	w1, #0
	mov	x2, x19
	mov	w3, #-1
	mov	x4, x20
	mov	x5, x21
	bl	_MultiByteToWideChar
	cbnz	w0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputErrorWin32
	mov	x0, x20
	bl	_free
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputErrorWin32
LBB0_4:
	mov	x20, #0
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Win32: Failed to convert string from UTF-8"

.subsections_via_symbols
