	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function createMonitor
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_createMonitor:                         ## @createMonitor
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	testq	%rsi, %rsi
	movq	%rsi, %rax
	cmoveq	%rdi, %rax
	movl	8(%rax), %edi
	callq	__glfwCreateUTF8FromWideStringWin32
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	4(%r12), %esi
	leaq	l_.str.1(%rip), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CreateDCW
	movl	%eax, %ebx
	movq	_HORZSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDeviceCaps
	movl	%eax, %r15d
	movq	_VERTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDeviceCaps
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	__glfwAllocMonitor
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_DeleteDC
	movq	%r13, %rdi
	callq	_free
	movq	_DISPLAY_DEVICE_MODESPRUNED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_4:
	movl	12(%r15), %edi
	movl	4(%r12), %esi
	callq	_wcscpy
	movq	_CP_UTF8@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	4(%r12), %edx
	movl	8(%r15), %r8d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	$-1, %ecx
	movl	$4, %r9d
	callq	_WideCharToMultiByte
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	4(%r15), %edi
	movl	4(%r14), %esi
	callq	_wcscpy
	movl	(%rbx), %edi
	movl	4(%r14), %edx
	movl	(%r15), %r8d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	$-1, %ecx
	movl	$4, %r9d
	callq	_WideCharToMultiByte
	jmp	LBB0_6
LBB0_1:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputError
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Win32: Failed to convert string to UTF-8"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	68                              ## 0x44
	.long	73                              ## 0x49
	.long	83                              ## 0x53
	.long	80                              ## 0x50
	.long	76                              ## 0x4c
	.long	65                              ## 0x41
	.long	89                              ## 0x59
	.long	0                               ## 0x0

	.comm	_HORZSIZE,4,2                   ## @HORZSIZE
	.comm	_VERTSIZE,4,2                   ## @VERTSIZE
	.comm	_DISPLAY_DEVICE_MODESPRUNED,4,2 ## @DISPLAY_DEVICE_MODESPRUNED
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.no_dead_strip	_createMonitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createMonitor
_createMonitor:                         ; @createMonitor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	cmp	x1, #0
	csel	x8, x0, x1, eq
	ldr	w0, [x8, #8]
	bl	__glfwCreateUTF8FromWideStringWin32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	w1, [x21, #4]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, #0
	mov	x3, #0
	bl	_CreateDCW
	mov	x23, x0
Lloh2:
	adrp	x8, _HORZSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HORZSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_GetDeviceCaps
	mov	x20, x0
Lloh5:
	adrp	x8, _VERTSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VERTSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_GetDeviceCaps
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	__glfwAllocMonitor
	mov	x20, x0
	mov	x0, x23
	bl	_DeleteDC
	mov	x0, x22
	bl	_free
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _DISPLAY_DEVICE_MODESPRUNED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DISPLAY_DEVICE_MODESPRUNED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #16]
LBB0_3:
	ldr	w0, [x20, #12]
	ldr	w1, [x21, #4]
	bl	_wcscpy
Lloh14:
	adrp	x22, _CP_UTF8@GOTPAGE
Lloh15:
	ldr	x22, [x22, _CP_UTF8@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w2, [x21, #4]
	ldr	w4, [x20, #8]
	mov	w1, #0
	mov	w3, #-1
	mov	w5, #4
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	cbz	x19, LBB0_6
; %bb.4:
	ldr	w0, [x20, #4]
	ldr	w1, [x19, #4]
	bl	_wcscpy
	ldr	w0, [x22]
	ldr	w2, [x19, #4]
	ldr	w4, [x20]
	mov	w1, #0
	mov	w3, #-1
	mov	w5, #4
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputError
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Win32: Failed to convert string to UTF-8"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	68                              ; 0x44
	.long	73                              ; 0x49
	.long	83                              ; 0x53
	.long	80                              ; 0x50
	.long	76                              ; 0x4c
	.long	65                              ; 0x41
	.long	89                              ; 0x59
	.long	0                               ; 0x0

	.comm	_HORZSIZE,4,2                   ; @HORZSIZE
	.comm	_VERTSIZE,4,2                   ; @VERTSIZE
	.comm	_DISPLAY_DEVICE_MODESPRUNED,4,2 ; @DISPLAY_DEVICE_MODESPRUNED
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.no_dead_strip	_createMonitor
.subsections_via_symbols
