	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%edi, %edi
	callq	_wl_display_connect
	movq	__glfw@GOTPCREL(%rip), %rbx
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %edi
	callq	_wl_display_get_registry
	movl	%eax, 52(%rbx)
	movq	_registryListener@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_wl_registry_add_listener
	movl	$4, %edi
	movl	$8, %esi
	callq	_calloc
	movl	%eax, 48(%rbx)
	movl	$4, (%rbx)
	xorl	%edi, %edi
	callq	_xkb_context_new
	movl	%eax, 44(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	40(%rbx), %edi
	callq	_wl_display_roundtrip
	movl	40(%rbx), %edi
	callq	_wl_display_roundtrip
	xorl	%eax, %eax
	callq	__glfwInitContextAPI
	movq	_GL_FALSE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	xorl	%eax, %eax
	callq	__glfwInitTimer
	xorl	%eax, %eax
	callq	__glfwInitJoysticks
	cmpq	$0, 32(%rbx)
	movq	_GL_TRUE@GOTPCREL(%rip), %r15
	je	LBB0_13
## %bb.7:
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.8:
	xorl	%edi, %edi
	movl	$32, %esi
	callq	_wl_cursor_theme_load
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_wl_cursor_theme_get_cursor
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	4(%rbx), %edi
	callq	_wl_compositor_create_surface
	movl	%eax, 8(%rbx)
LBB0_13:
	movq	%r15, %r14
	jmp	LBB0_14
LBB0_1:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	__glfwInputError
	movq	_GL_FALSE@GOTPCREL(%rip), %r14
LBB0_14:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	__glfwInputError
	jmp	LBB0_14
LBB0_11:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	__glfwInputError
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,56,3                     ## @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wayland: Failed to connect to display"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_registryListener,4,2           ## @registryListener
L_.str.1:                               ## @.str.1
	.asciz	"Wayland: Failed to initialize xkb context"

L_.str.2:                               ## @.str.2
	.asciz	"Wayland: Unable to load default cursor theme\n"

L_.str.3:                               ## @.str.3
	.asciz	"left_ptr"

L_.str.4:                               ## @.str.4
	.asciz	"Wayland: Unable to load default left pointer\n"

	.comm	_GL_TRUE,4,2                    ## @GL_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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x0, #0
	bl	_wl_display_connect
Lloh0:
	adrp	x19, __glfw@GOTPAGE
Lloh1:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	str	w0, [x19, #40]
	cbz	w0, LBB0_8
; %bb.1:
	bl	_wl_display_get_registry
	str	w0, [x19, #52]
Lloh2:
	adrp	x1, _registryListener@GOTPAGE
Lloh3:
	ldr	x1, [x1, _registryListener@GOTPAGEOFF]
	mov	x2, #0
	bl	_wl_registry_add_listener
	mov	w20, #4
	mov	w0, #4
	mov	w1, #8
	bl	_calloc
	str	w0, [x19, #48]
	str	w20, [x19]
	mov	w0, #0
	bl	_xkb_context_new
	str	w0, [x19, #44]
	cbz	w0, LBB0_9
; %bb.2:
	ldr	w0, [x19, #40]
	bl	_wl_display_roundtrip
	ldr	w0, [x19, #40]
	bl	_wl_display_roundtrip
	bl	__glfwInitContextAPI
	cbz	w0, LBB0_11
; %bb.3:
	bl	__glfwInitTimer
	bl	__glfwInitJoysticks
	ldr	x9, [x19, #32]
Lloh4:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
	cbz	x9, LBB0_12
; %bb.4:
	ldr	x2, [x19, #24]
	cbz	x2, LBB0_12
; %bb.5:
	mov	x0, #0
	mov	w1, #32
	bl	_wl_cursor_theme_load
	str	w0, [x19, #16]
	cbz	w0, LBB0_13
; %bb.6:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wl_cursor_theme_get_cursor
	str	w0, [x19, #12]
	cbz	w0, LBB0_14
; %bb.7:
	ldr	w0, [x19, #4]
	bl	_wl_compositor_create_surface
	str	w0, [x19, #8]
Lloh8:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh10:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	bl	__glfwInputError
LBB0_11:
Lloh20:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh22:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_14:
Lloh27:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,56,3                     ; @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wayland: Failed to connect to display"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_registryListener,4,2           ; @registryListener
l_.str.1:                               ; @.str.1
	.asciz	"Wayland: Failed to initialize xkb context"

l_.str.2:                               ; @.str.2
	.asciz	"Wayland: Unable to load default cursor theme\n"

l_.str.3:                               ; @.str.3
	.asciz	"left_ptr"

l_.str.4:                               ; @.str.4
	.asciz	"Wayland: Unable to load default left pointer\n"

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
.subsections_via_symbols
