	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glad_vk_find_core_vulkan
_glad_vk_find_core_vulkan:              ## @glad_vk_find_core_vulkan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$1, %ebx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	-24(%rbp), %rsi
	callq	_vkGetPhysicalDeviceProperties
	movl	-24(%rbp), %edi
	callq	_VK_VERSION_MAJOR
	movq	%rax, %r14
	movl	-24(%rbp), %edi
	callq	_VK_VERSION_MINOR
	movq	%rax, %rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
	movl	$1, %r14d
LBB0_3:
	xorl	%eax, %eax
	cmpl	$2, %r14d
	setge	%al
	testl	%esi, %esi
	movl	%eax, %ecx
	cmovnsl	%ebx, %ecx
	cmovlel	%eax, %ebx
	cmpl	$1, %r14d
	cmovnel	%eax, %ecx
	movq	_GLAD_VK_VERSION_1_0@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	cmovnel	%eax, %ebx
	movq	_GLAD_VK_VERSION_1_1@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	%r14d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_GLAD_MAKE_VERSION
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLAD_VK_VERSION_1_0,4,2        ## @GLAD_VK_VERSION_1_0
	.comm	_GLAD_VK_VERSION_1_1,4,2        ## @GLAD_VK_VERSION_1_1
	.comm	_VK_SUCCESS,8,3                 ## @VK_SUCCESS
	.no_dead_strip	_glad_vk_find_core_vulkan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glad_vk_find_core_vulkan
_glad_vk_find_core_vulkan:              ; @glad_vk_find_core_vulkan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, sp, #8
	bl	_vkGetPhysicalDeviceProperties
	ldr	w0, [sp, #8]
	bl	_VK_VERSION_MAJOR
	mov	x19, x0
	ldr	w0, [sp, #8]
	bl	_VK_VERSION_MINOR
	mov	x1, x0
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w19, #1
LBB0_3:
	cmp	w19, #1
	cset	w8, eq
	cset	w9, gt
	cmp	w1, #0
	cset	w10, ge
	cset	w11, gt
	tst	w8, w10
	csinc	w10, w9, wzr, eq
Lloh0:
	adrp	x12, _GLAD_VK_VERSION_1_0@GOTPAGE
Lloh1:
	ldr	x12, [x12, _GLAD_VK_VERSION_1_0@GOTPAGEOFF]
Lloh2:
	str	w10, [x12]
	tst	w8, w11
	csinc	w8, w9, wzr, eq
Lloh3:
	adrp	x9, _GLAD_VK_VERSION_1_1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GLAD_VK_VERSION_1_1@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_GLAD_MAKE_VERSION
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GLAD_VK_VERSION_1_0,4,2        ; @GLAD_VK_VERSION_1_0
	.comm	_GLAD_VK_VERSION_1_1,4,2        ; @GLAD_VK_VERSION_1_1
	.comm	_VK_SUCCESS,8,3                 ; @VK_SUCCESS
	.no_dead_strip	_glad_vk_find_core_vulkan
.subsections_via_symbols
