	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_find_device_extensions
_vulkan_find_device_extensions:         ## @vulkan_find_device_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, %r15d
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_vkEnumerateDeviceExtensionProperties
	movq	_VK_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	shll	$2, %edi
	callq	_malloc
	movq	%rax, %r12
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	leaq	-44(%rbp), %rdx
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_vkEnumerateDeviceExtensionProperties
	movq	_VK_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.3:
	movl	-44(%rbp), %ecx
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_vulkan_find_extensions
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leal	(,%rbx,8), %edx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movl	16(%rbp), %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, (%r15)
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	$8, %r14
	decq	%rbx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_vulkan_find_extensions
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rax
	movl	(%r15), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%r15)
	movq	%rax, (%r13,%rcx,8)
	jmp	LBB0_9
LBB0_10:
	movl	$1, %r13d
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
LBB0_11:
	movq	%r12, %rdi
	callq	_free
LBB0_12:
	movl	%r13d, %eax
	addq	$40, %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 device extension. Will attempt without it.\n"

	.no_dead_strip	_vulkan_find_device_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_device_extensions
_vulkan_find_device_extensions:         ; @vulkan_find_device_extensions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x6
	mov	x20, x5
	mov	x24, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x26, x0
	add	x2, sp, #12
	mov	x1, #0
	mov	x3, #0
	bl	_vkEnumerateDeviceExtensionProperties
Lloh0:
	adrp	x27, _VK_SUCCESS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _VK_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [sp, #12]
	lsl	w0, w8, #2
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.2:
	add	x2, sp, #12
	mov	x0, x26
	mov	x1, #0
	mov	x3, x19
	bl	_vkEnumerateDeviceExtensionProperties
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.3:
	ldr	w3, [sp, #12]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x19
	bl	_vulkan_find_extensions
	cbz	x0, LBB0_11
; %bb.4:
	lsl	w2, w24, #3
	mov	x0, x22
	mov	x1, x25
	bl	_memcpy
	str	w24, [x21]
	cbz	w23, LBB0_10
; %bb.5:
	mov	w23, w23
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #8
	subs	x23, x23, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	w1, #1
	mov	x2, x19
	bl	_vulkan_find_extensions
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	ldr	w9, [x21]
	add	w10, w9, #1
	str	w10, [x21]
	str	x8, [x22, x9, lsl #3]
	b	LBB0_6
LBB0_9:
	mov	w20, #0
	b	LBB0_14
LBB0_10:
	mov	w20, #1
	b	LBB0_13
LBB0_11:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
LBB0_12:
	mov	w20, #0
LBB0_13:
	mov	x0, x19
	bl	_free
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	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 device extension. Will attempt without it.\n"

	.no_dead_strip	_vulkan_find_device_extensions
.subsections_via_symbols
