	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_context_init            ## -- Begin function vulkan_context_init
	.p2align	4, 0x90
_vulkan_context_init:                   ## @vulkan_context_init
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -96(%rbp)
	movq	_VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movups	%xmm0, -152(%rbp)
	movups	%xmm0, -168(%rbp)
	movq	$0, -136(%rbp)
	movq	_VK_STRUCTURE_TYPE_APPLICATION_INFO@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -176(%rbp)
	xorl	%eax, %eax
	callq	_video_driver_get_context_negotiation_interface
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	8(%r12), %rax
	movq	_RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	callq	_RARCH_WARN
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -80(%rbp)
	addl	$-128, %ebx
	movl	$1, %r15d
	cmpl	$9, %ebx
	ja	LBB0_10
## %bb.8:
	movl	$1007, %eax                     ## imm = 0x3EF
	btl	%ebx, %eax
	jae	LBB0_10
## %bb.9:
	movslq	%ebx, %rax
	leaq	l_reltable.vulkan_context_init(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%rax, -72(%rbp)
	movl	$2, %r15d
LBB0_10:
	movq	_vulkan_library@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_13
## %bb.11:
	leaq	L_.str.12(%rip), %rdi
	callq	_dylib_load
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_12
LBB0_13:
	leaq	L_.str.14(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movq	(%rbx), %rdi
	leaq	L_.str.15(%rip), %rsi
	callq	_dylib_proc
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %rdi
	callq	_vulkan_symbol_wrapper_init
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_vulkan_symbol_wrapper_load_global_symbols
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	leaq	-80(%rbp), %rdi
	movl	%r15d, %esi
	callq	_vulkan_find_instance_extensions
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_MSG_PROGRAM@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_msg_hash_to_str
	movq	%rax, -144(%rbp)
	movq	$0, -152(%rbp)
	movl	(%r13), %edi
	callq	_msg_hash_to_str
	movq	%rax, -160(%rbp)
	movq	$0, -168(%rbp)
	xorl	%ebx, %ebx
	movl	$1, %edi
	xorl	%esi, %esi
	movl	$18, %edx
	callq	_VK_MAKE_VERSION
	movq	%rax, -176(%rbp)
	leaq	-176(%rbp), %r13
	movq	%r13, -104(%rbp)
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovel	%eax, %r15d
	movl	%r15d, -128(%rbp)
	leaq	-80(%rbp), %rax
	cmovneq	%rax, %rbx
	movq	%rbx, -120(%rbp)
	testq	%r12, %r12
	je	LBB0_23
## %bb.18:
	movq	16(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.19:
	xorl	%eax, %eax
	callq	*%rcx
	movq	%rax, %rbx
	movq	%rax, -104(%rbp)
	movq	32(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.20:
	movq	24(%rbx), %rdx
	leaq	L_.str.18(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_LOG
LBB0_21:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.22:
	movq	8(%rbx), %rdx
	leaq	L_.str.19(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_LOG
LBB0_23:
	movq	_cached_instance_vk@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.24:
	movq	%rcx, (%r14)
	movq	$0, (%rax)
	movq	_VK_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_26
LBB0_14:
	leaq	L_.str.16(%rip), %rdi
	jmp	LBB0_35
LBB0_16:
	leaq	L_.str.17(%rip), %rdi
	jmp	LBB0_35
LBB0_12:
	leaq	L_.str.13(%rip), %rdi
	jmp	LBB0_34
LBB0_25:
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_vkCreateInstance
LBB0_26:
	movq	_VK_ERROR_INCOMPATIBLE_DRIVER@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_30
## %bb.27:
	movl	$1, %ebx
	leaq	-128(%rbp), %r15
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, -104(%rbp)
	movl	$1, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_VK_MAKE_VERSION
	movq	%rax, -176(%rbp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_vkCreateInstance
	cmpl	$2, %ebx
	ja	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	incl	%ebx
	cmpq	(%r12), %rax
	je	LBB0_28
LBB0_30:
	movq	_VK_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.32:
	movq	%r14, %rdi
	callq	_vulkan_load_instance_symbols
	movl	$1, %r13d
	testl	%eax, %eax
	jne	LBB0_36
## %bb.33:
	leaq	L_.str.21(%rip), %rdi
LBB0_34:
	xorl	%r13d, %r13d
LBB0_35:
	xorl	%eax, %eax
	callq	_RARCH_ERR
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	movl	%r13d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	leaq	L_.str.20(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_RARCH_ERR
	jmp	LBB0_36
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,4,2 ## @VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO
	.comm	_VK_STRUCTURE_TYPE_APPLICATION_INFO,4,2 ## @VK_STRUCTURE_TYPE_APPLICATION_INFO
	.comm	_RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN,8,3 ## @RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Vulkan]: Got HW context negotiation interface, but it's the wrong API.\n"

	.comm	_RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN_VERSION,8,3 ## @RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"[Vulkan]: Got HW context negotiation interface, but it's the wrong interface version.\n"

L_.str.2:                               ## @.str.2
	.asciz	"VK_KHR_surface"

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

L_.str.4:                               ## @.str.4
	.asciz	"VK_KHR_android_surface"

L_.str.5:                               ## @.str.5
	.asciz	"VK_KHR_win32_surface"

L_.str.6:                               ## @.str.6
	.asciz	"VK_KHR_xlib_surface"

L_.str.7:                               ## @.str.7
	.asciz	"VK_KHR_xcb_surface"

L_.str.8:                               ## @.str.8
	.asciz	"VK_KHR_mir_surface"

L_.str.9:                               ## @.str.9
	.asciz	"VK_KHR_display"

L_.str.10:                              ## @.str.10
	.asciz	"VK_MVK_macos_surface"

L_.str.11:                              ## @.str.11
	.asciz	"VK_MVK_ios_surface"

	.comm	_vulkan_library,8,3             ## @vulkan_library
L_.str.12:                              ## @.str.12
	.asciz	"libMoltenVK.dylib"

L_.str.13:                              ## @.str.13
	.asciz	"[Vulkan]: Failed to open Vulkan loader.\n"

L_.str.14:                              ## @.str.14
	.asciz	"Vulkan dynamic library loaded.\n"

L_.str.15:                              ## @.str.15
	.asciz	"vkGetInstanceProcAddr"

L_.str.16:                              ## @.str.16
	.asciz	"[Vulkan]: Failed to load vkGetInstanceProcAddr symbol, broken loader?\n"

L_.str.17:                              ## @.str.17
	.asciz	"[Vulkan]: Failed to load global Vulkan symbols, broken loader?\n"

	.comm	_MSG_PROGRAM,4,2                ## @MSG_PROGRAM
L_.str.18:                              ## @.str.18
	.asciz	"[Vulkan]: App: %s (version %u)\n"

L_.str.19:                              ## @.str.19
	.asciz	"[Vulkan]: Engine: %s (version %u)\n"

	.comm	_cached_instance_vk,8,3         ## @cached_instance_vk
	.comm	_VK_SUCCESS,8,3                 ## @VK_SUCCESS
	.comm	_VK_ERROR_INCOMPATIBLE_DRIVER,8,3 ## @VK_ERROR_INCOMPATIBLE_DRIVER
L_.str.20:                              ## @.str.20
	.asciz	"Failed to create Vulkan instance (%d).\n"

L_.str.21:                              ## @.str.21
	.asciz	"[Vulkan]: Failed to load instance symbols.\n"

	.comm	_VK_DEBUG_REPORT_ERROR_BIT_EXT,4,2 ## @VK_DEBUG_REPORT_ERROR_BIT_EXT
	.comm	_VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT,4,2 ## @VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT
	.comm	_VK_DEBUG_REPORT_WARNING_BIT_EXT,4,2 ## @VK_DEBUG_REPORT_WARNING_BIT_EXT
	.comm	_VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT,4,2 ## @VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT
	.comm	_vulkan_debug_cb,4,2            ## @vulkan_debug_cb
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.vulkan_context_init
l_reltable.vulkan_context_init:
	.long	L_.str.6-l_reltable.vulkan_context_init
	.long	L_.str.7-l_reltable.vulkan_context_init
	.long	L_.str.5-l_reltable.vulkan_context_init
	.long	L_.str.3-l_reltable.vulkan_context_init
	.long	L_.str.3-l_reltable.vulkan_context_init
	.long	L_.str.10-l_reltable.vulkan_context_init
	.long	L_.str.11-l_reltable.vulkan_context_init
	.long	L_.str.8-l_reltable.vulkan_context_init
	.long	L_.str.9-l_reltable.vulkan_context_init
	.long	L_.str.4-l_reltable.vulkan_context_init

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_context_init            ; -- Begin function vulkan_context_init
	.p2align	2
_vulkan_context_init:                   ; @vulkan_context_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	movi.2d	v0, #0000000000000000
	str	xzr, [sp, #96]
	stp	q0, q0, [sp, #64]
Lloh3:
	adrp	x8, _VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	str	xzr, [sp, #56]
	stur	q0, [sp, #40]
	stur	q0, [sp, #24]
Lloh6:
	adrp	x8, _VK_STRUCTURE_TYPE_APPLICATION_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VK_STRUCTURE_TYPE_APPLICATION_INFO@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	str	x8, [sp, #16]
	bl	_video_driver_get_context_negotiation_interface
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN_VERSION@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_RARCH_WARN
	mov	x20, #0
LBB0_6:
Lloh19:
	adrp	x8, l_.str.2@PAGE
Lloh20:
	add	x8, x8, l_.str.2@PAGEOFF
	stur	x8, [x29, #-88]
	sub	w8, w21, #128
	cmp	w8, #9
	b.hi	LBB0_8
; %bb.7:
	mov	w9, #1007
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_9
LBB0_8:
	mov	w21, #1
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x9, l_switch.table.vulkan_context_init@PAGE
Lloh22:
	add	x9, x9, l_switch.table.vulkan_context_init@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	stur	x8, [x29, #-80]
	mov	w21, #2
LBB0_10:
Lloh23:
	adrp	x22, _vulkan_library@GOTPAGE
Lloh24:
	ldr	x22, [x22, _vulkan_library@GOTPAGEOFF]
	ldr	x8, [x22]
	cbnz	x8, LBB0_12
; %bb.11:
Lloh25:
	adrp	x0, l_.str.12@PAGE
Lloh26:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_dylib_load
	str	x0, [x22]
	cbz	x0, LBB0_24
LBB0_12:
Lloh27:
	adrp	x0, l_.str.14@PAGE
Lloh28:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_RARCH_LOG
	ldr	x0, [x22]
Lloh29:
	adrp	x1, l_.str.15@PAGE
Lloh30:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_dylib_proc
	cbz	x0, LBB0_22
; %bb.13:
	bl	_vulkan_symbol_wrapper_init
	bl	_vulkan_symbol_wrapper_load_global_symbols
	cbz	w0, LBB0_23
; %bb.14:
	sub	x23, x29, #88
	sub	x0, x29, #88
	mov	x1, x21
	bl	_vulkan_find_instance_extensions
	mov	x22, x0
Lloh31:
	adrp	x24, _MSG_PROGRAM@GOTPAGE
Lloh32:
	ldr	x24, [x24, _MSG_PROGRAM@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_msg_hash_to_str
	stp	xzr, x0, [sp, #40]
	ldr	w0, [x24]
	bl	_msg_hash_to_str
	stp	xzr, x0, [sp, #24]
	mov	w0, #1
	mov	w1, #0
	mov	w2, #18
	bl	_VK_MAKE_VERSION
	str	x0, [sp, #16]
	add	x8, sp, #16
	cmp	w22, #0
	csel	w9, wzr, w21, eq
	str	w9, [sp, #64]
	csel	x9, xzr, x23, eq
	str	x8, [sp, #88]
	str	x9, [sp, #72]
	cbz	x20, LBB0_20
; %bb.15:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_20
; %bb.16:
	blr	x8
	mov	x20, x0
	str	x0, [sp, #88]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x9, [x20, #24]
	stp	x8, x9, [sp]
Lloh33:
	adrp	x0, l_.str.18@PAGE
Lloh34:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_RARCH_LOG
LBB0_18:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	x9, [x20, #8]
	stp	x8, x9, [sp]
Lloh35:
	adrp	x0, l_.str.19@PAGE
Lloh36:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_RARCH_LOG
LBB0_20:
Lloh37:
	adrp	x8, _cached_instance_vk@GOTPAGE
Lloh38:
	ldr	x8, [x8, _cached_instance_vk@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh39:
	adrp	x20, _VK_SUCCESS@GOTPAGE
Lloh40:
	ldr	x20, [x20, _VK_SUCCESS@GOTPAGEOFF]
	cbz	x9, LBB0_25
; %bb.21:
	str	x9, [x19]
	str	xzr, [x8]
	ldr	x0, [x20]
	b	LBB0_26
LBB0_22:
Lloh41:
	adrp	x0, l_.str.16@PAGE
Lloh42:
	add	x0, x0, l_.str.16@PAGEOFF
	b	LBB0_35
LBB0_23:
Lloh43:
	adrp	x0, l_.str.17@PAGE
Lloh44:
	add	x0, x0, l_.str.17@PAGEOFF
	b	LBB0_35
LBB0_24:
Lloh45:
	adrp	x0, l_.str.13@PAGE
Lloh46:
	add	x0, x0, l_.str.13@PAGEOFF
	b	LBB0_35
LBB0_25:
	add	x0, sp, #64
	mov	x1, #0
	mov	x2, x19
	bl	_vkCreateInstance
LBB0_26:
Lloh47:
	adrp	x21, _VK_ERROR_INCOMPATIBLE_DRIVER@GOTPAGE
Lloh48:
	ldr	x21, [x21, _VK_ERROR_INCOMPATIBLE_DRIVER@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_30
; %bb.27:
	add	x22, sp, #16
	str	x22, [sp, #88]
	mov	w0, #1
	mov	w1, #0
	mov	w2, #1
	bl	_VK_MAKE_VERSION
	str	x0, [sp, #16]
	add	x0, sp, #64
	mov	x1, #0
	mov	x2, x19
	bl	_vkCreateInstance
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_30
; %bb.28:
	str	x22, [sp, #88]
	mov	w0, #1
	mov	w1, #0
	mov	w2, #2
	bl	_VK_MAKE_VERSION
	str	x0, [sp, #16]
	add	x0, sp, #64
	mov	x1, #0
	mov	x2, x19
	bl	_vkCreateInstance
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_30
; %bb.29:
	add	x8, sp, #16
	str	x8, [sp, #88]
	mov	w0, #1
	mov	w1, #0
	mov	w2, #3
	bl	_VK_MAKE_VERSION
	str	x0, [sp, #16]
	add	x0, sp, #64
	mov	x1, #0
	mov	x2, x19
	bl	_vkCreateInstance
LBB0_30:
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_33
; %bb.31:
	mov	x0, x19
	bl	_vulkan_load_instance_symbols
	cbz	w0, LBB0_34
; %bb.32:
	mov	w0, #1
	b	LBB0_36
LBB0_33:
	str	x0, [sp]
Lloh49:
	adrp	x0, l_.str.20@PAGE
Lloh50:
	add	x0, x0, l_.str.20@PAGEOFF
	b	LBB0_35
LBB0_34:
Lloh51:
	adrp	x0, l_.str.21@PAGE
Lloh52:
	add	x0, x0, l_.str.21@PAGEOFF
LBB0_35:
	bl	_RARCH_ERR
	mov	w0, #0
LBB0_36:
	ldur	x8, [x29, #-56]
Lloh53:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh54:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.37:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,4,2 ; @VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO
	.comm	_VK_STRUCTURE_TYPE_APPLICATION_INFO,4,2 ; @VK_STRUCTURE_TYPE_APPLICATION_INFO
	.comm	_RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN,8,3 ; @RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Vulkan]: Got HW context negotiation interface, but it's the wrong API.\n"

	.comm	_RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN_VERSION,8,3 ; @RETRO_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_VULKAN_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"[Vulkan]: Got HW context negotiation interface, but it's the wrong interface version.\n"

l_.str.2:                               ; @.str.2
	.asciz	"VK_KHR_surface"

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

l_.str.4:                               ; @.str.4
	.asciz	"VK_KHR_android_surface"

l_.str.5:                               ; @.str.5
	.asciz	"VK_KHR_win32_surface"

l_.str.6:                               ; @.str.6
	.asciz	"VK_KHR_xlib_surface"

l_.str.7:                               ; @.str.7
	.asciz	"VK_KHR_xcb_surface"

l_.str.8:                               ; @.str.8
	.asciz	"VK_KHR_mir_surface"

l_.str.9:                               ; @.str.9
	.asciz	"VK_KHR_display"

l_.str.10:                              ; @.str.10
	.asciz	"VK_MVK_macos_surface"

l_.str.11:                              ; @.str.11
	.asciz	"VK_MVK_ios_surface"

	.comm	_vulkan_library,8,3             ; @vulkan_library
l_.str.12:                              ; @.str.12
	.asciz	"libMoltenVK.dylib"

l_.str.13:                              ; @.str.13
	.asciz	"[Vulkan]: Failed to open Vulkan loader.\n"

l_.str.14:                              ; @.str.14
	.asciz	"Vulkan dynamic library loaded.\n"

l_.str.15:                              ; @.str.15
	.asciz	"vkGetInstanceProcAddr"

l_.str.16:                              ; @.str.16
	.asciz	"[Vulkan]: Failed to load vkGetInstanceProcAddr symbol, broken loader?\n"

l_.str.17:                              ; @.str.17
	.asciz	"[Vulkan]: Failed to load global Vulkan symbols, broken loader?\n"

	.comm	_MSG_PROGRAM,4,2                ; @MSG_PROGRAM
l_.str.18:                              ; @.str.18
	.asciz	"[Vulkan]: App: %s (version %u)\n"

l_.str.19:                              ; @.str.19
	.asciz	"[Vulkan]: Engine: %s (version %u)\n"

	.comm	_cached_instance_vk,8,3         ; @cached_instance_vk
	.comm	_VK_SUCCESS,8,3                 ; @VK_SUCCESS
	.comm	_VK_ERROR_INCOMPATIBLE_DRIVER,8,3 ; @VK_ERROR_INCOMPATIBLE_DRIVER
l_.str.20:                              ; @.str.20
	.asciz	"Failed to create Vulkan instance (%d).\n"

l_.str.21:                              ; @.str.21
	.asciz	"[Vulkan]: Failed to load instance symbols.\n"

	.comm	_VK_DEBUG_REPORT_ERROR_BIT_EXT,4,2 ; @VK_DEBUG_REPORT_ERROR_BIT_EXT
	.comm	_VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT,4,2 ; @VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT
	.comm	_VK_DEBUG_REPORT_WARNING_BIT_EXT,4,2 ; @VK_DEBUG_REPORT_WARNING_BIT_EXT
	.comm	_VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT,4,2 ; @VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT
	.comm	_vulkan_debug_cb,4,2            ; @vulkan_debug_cb
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.vulkan_context_init
l_switch.table.vulkan_context_init:
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.5
	.quad	l_.str.3
	.quad	l_.str.3
	.quad	l_.str.10
	.quad	l_.str.11
	.quad	l_.str.8
	.quad	l_.str.9
	.quad	l_.str.4

.subsections_via_symbols
