	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformCreateWindowSurface ## -- Begin function _glfwPlatformCreateWindowSurface
	.p2align	4, 0x90
__glfwPlatformCreateWindowSurface:      ## @_glfwPlatformCreateWindowSurface
	.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	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rsi
	callq	_vkGetInstanceProcAddr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	-56(%rbp), %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	(%r13), %eax
	movl	%eax, -56(%rbp)
	movl	%ebx, %edi
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	*%r14
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	__glfwGetVulkanResultString
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	__glfwInputError
	movq	%rbx, %r12
	jmp	LBB0_4
LBB0_1:
	movq	_GLFW_API_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	__glfwInputError
	movq	_VK_ERROR_EXTENSION_NOT_PRESENT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_4:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vkCreateWaylandSurfaceKHR"

	.comm	_GLFW_API_UNAVAILABLE,4,2       ## @GLFW_API_UNAVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"

	.comm	_VK_ERROR_EXTENSION_NOT_PRESENT,8,3 ## @VK_ERROR_EXTENSION_NOT_PRESENT
	.comm	_VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR,4,2 ## @VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR
	.comm	__glfw,4,2                      ## @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Wayland: Failed to create Vulkan surface: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformCreateWindowSurface ; -- Begin function _glfwPlatformCreateWindowSurface
	.p2align	2
__glfwPlatformCreateWindowSurface:      ; @_glfwPlatformCreateWindowSurface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vkGetInstanceProcAddr
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh2:
	adrp	x8, _VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh5:
	adrp	x8, __glfw@GOTPAGE
Lloh6:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x22]
	stp	w9, w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	blr	x23
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	x0, x19
	bl	__glfwGetVulkanResultString
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	__glfwInputError
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _GLFW_API_UNAVAILABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLFW_API_UNAVAILABLE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	__glfwInputError
Lloh18:
	adrp	x8, _VK_ERROR_EXTENSION_NOT_PRESENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VK_ERROR_EXTENSION_NOT_PRESENT@GOTPAGEOFF]
Lloh20:
	ldr	x19, [x8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vkCreateWaylandSurfaceKHR"

	.comm	_GLFW_API_UNAVAILABLE,4,2       ; @GLFW_API_UNAVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"

	.comm	_VK_ERROR_EXTENSION_NOT_PRESENT,8,3 ; @VK_ERROR_EXTENSION_NOT_PRESENT
	.comm	_VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR,4,2 ; @VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR
	.comm	__glfw,4,2                      ; @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Wayland: Failed to create Vulkan surface: %s"

.subsections_via_symbols
