	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformInit              ## -- Begin function _glfwPlatformInit
	.p2align	4, 0x90
__glfwPlatformInit:                     ## @_glfwPlatformInit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_LC_CTYPE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_setlocale
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_setlocale
LBB0_2:
	xorl	%eax, %eax
	callq	_XInitThreads
	xorl	%eax, %eax
	callq	_XrmInitialize
	xorl	%edi, %edi
	callq	_XOpenDisplay
	movq	__glfw@GOTPCREL(%rip), %rbx
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	%eax, %edi
	callq	_DefaultScreen
	movl	%eax, 32(%rbx)
	movl	8(%rbx), %edi
	movl	%eax, %esi
	callq	_RootWindow
	movl	%eax, 36(%rbx)
	xorl	%eax, %eax
	callq	_XUniqueContext
	movl	%eax, 28(%rbx)
	leaq	24(%rbx), %rdi
	leaq	20(%rbx), %rsi
	callq	_getSystemContentScale
	xorl	%eax, %eax
	callq	_initExtensions
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	xorl	%eax, %eax
	callq	_createHelperWindow
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_createHiddenCursor
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	callq	_XSupportsLocale
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_XSetLocaleModifiers
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_XOpenIM
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_hasUsableInputMethodStyle
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rdi
	callq	_XCloseIM
	movq	$0, (%rbx)
LBB0_8:
	xorl	%eax, %eax
	callq	__glfwInitTimerPOSIX
	xorl	%eax, %eax
	callq	__glfwPollMonitorsX11
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	__glfwInputError
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	__glfwInputError
LBB0_13:
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"C"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	__glfw,40,3                     ## @_glfw
L_.str.2:                               ## @.str.2
	.asciz	"DISPLAY"

	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"X11: Failed to open display %s"

L_.str.4:                               ## @.str.4
	.asciz	"X11: The DISPLAY environment variable is missing"

	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformInit              ; -- Begin function _glfwPlatformInit
	.p2align	2
__glfwPlatformInit:                     ; @_glfwPlatformInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _LC_CTYPE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LC_CTYPE@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x1, #0
	bl	_setlocale
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_setlocale
LBB0_2:
	bl	_XInitThreads
	bl	_XrmInitialize
	mov	x0, #0
	bl	_XOpenDisplay
Lloh6:
	adrp	x19, __glfw@GOTPAGE
Lloh7:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	str	w0, [x19, #8]
	cbz	w0, LBB0_9
; %bb.3:
	bl	_DefaultScreen
	mov	x1, x0
	str	w0, [x19, #32]
	ldr	w0, [x19, #8]
	bl	_RootWindow
	str	w0, [x19, #36]
	bl	_XUniqueContext
	str	w0, [x19, #28]
	add	x0, x19, #24
	add	x1, x19, #20
	bl	_getSystemContentScale
	bl	_initExtensions
	cbz	w0, LBB0_13
; %bb.4:
	bl	_createHelperWindow
	str	w0, [x19, #16]
	bl	_createHiddenCursor
	str	w0, [x19, #12]
	bl	_XSupportsLocale
	cbz	x0, LBB0_8
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_XSetLocaleModifiers
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_XOpenIM
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.6:
	bl	_hasUsableInputMethodStyle
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19]
	bl	_XCloseIM
	str	xzr, [x19]
LBB0_8:
	bl	__glfwInitTimerPOSIX
	bl	__glfwPollMonitorsX11
Lloh10:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	mov	x8, x0
Lloh14:
	adrp	x9, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	cbz	x8, LBB0_11
; %bb.10:
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	bl	__glfwInputError
LBB0_13:
Lloh21:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"C"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	__glfw,40,3                     ; @_glfw
l_.str.2:                               ; @.str.2
	.asciz	"DISPLAY"

	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"X11: Failed to open display %s"

l_.str.4:                               ; @.str.4
	.asciz	"X11: The DISPLAY environment variable is missing"

	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
.subsections_via_symbols
