	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_find_memory_type        ## -- Begin function vulkan_find_memory_type
	.p2align	4, 0x90
_vulkan_find_memory_type:               ## @vulkan_find_memory_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_VK_MAX_MEMORY_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r8, %r8
	je	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %r8
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btl	%eax, %esi
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rcx
	movl	(%rcx,%rax,4), %ecx
	notl	%ecx
	testl	%ecx, %edx
	jne	LBB0_4
## %bb.6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_MAX_MEMORY_TYPES,4,2        ## @VK_MAX_MEMORY_TYPES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Vulkan]: Failed to find valid memory type. This should never happen."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_find_memory_type        ; -- Begin function vulkan_find_memory_type
	.p2align	2
_vulkan_find_memory_type:               ; @vulkan_find_memory_type
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _VK_MAX_MEMORY_TYPES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VK_MAX_MEMORY_TYPES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cbz	w9, LBB0_6
; %bb.1:
	mov	x8, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w10, w1, w8
	tbz	w10, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x0]
	ldr	w10, [x10, x8, lsl #2]
	bics	wzr, w2, w10
	b.ne	LBB0_2
; %bb.5:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_MAX_MEMORY_TYPES,4,2        ; @VK_MAX_MEMORY_TYPES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Vulkan]: Failed to find valid memory type. This should never happen."

.subsections_via_symbols
