	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_find_instance_extensions
_vulkan_find_instance_extensions:       ## @vulkan_find_instance_extensions
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_vkEnumerateInstanceExtensionProperties
	movq	_VK_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.1:
	movl	-44(%rbp), %edi
	shll	$2, %edi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r15, %rdx
	callq	_vkEnumerateInstanceExtensionProperties
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.3:
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_vulkan_find_extensions
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_free
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_SUCCESS,8,3                 ## @VK_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Vulkan]: Could not find instance extensions. Will attempt without them.\n"

	.no_dead_strip	_vulkan_find_instance_extensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vulkan_find_instance_extensions
_vulkan_find_instance_extensions:       ; @vulkan_find_instance_extensions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #12
	mov	x0, #0
	mov	x2, #0
	bl	_vkEnumerateInstanceExtensionProperties
Lloh0:
	adrp	x22, _VK_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VK_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
	lsl	w0, w8, #2
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.2:
	add	x1, sp, #12
	mov	x0, #0
	mov	x2, x19
	bl	_vkEnumerateInstanceExtensionProperties
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	w3, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_vulkan_find_extensions
	cbz	w0, LBB0_6
; %bb.4:
	mov	w20, #1
	b	LBB0_8
LBB0_5:
	mov	w20, #0
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_free
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_SUCCESS,8,3                 ; @VK_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Vulkan]: Could not find instance extensions. Will attempt without them.\n"

	.no_dead_strip	_vulkan_find_instance_extensions
.subsections_via_symbols
