	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glad_vk_get_extensions
_glad_vk_get_extensions:                ## @glad_vk_get_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	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_vkEnumerateInstanceExtensionProperties
	movq	_VK_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.1:
	xorl	%eax, %eax
	testq	%r13, %r13
	je	LBB0_4
## %bb.2:
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_vkEnumerateDeviceExtensionProperties
	movq	_VK_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.3:
	movl	-48(%rbp), %eax
LBB0_4:
	movl	-44(%rbp), %ebx
	cmpl	%eax, %ebx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmovgl	%ebx, %eax
	movslq	%eax, %rdi
	shlq	$2, %rdi
	callq	_malloc
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_21
## %bb.5:
	movq	%rax, %r12
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	movq	%rax, %rdx
	callq	_vkEnumerateInstanceExtensionProperties
	movq	_VK_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	addl	%ebx, %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r14
	cmpl	$0, -44(%rbp)
	jle	LBB0_11
## %bb.9:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r13,4), %r15d
	movl	%r15d, %edi
	callq	_strlen
	incl	%eax
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, (%r14,%r13,8)
	movq	%rax, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_memcpy
	incq	%r13
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r13
	jl	LBB0_10
LBB0_11:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.12:
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_vkEnumerateDeviceExtensionProperties
	movq	_VK_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.17:
	cmpl	$0, -48(%rbp)
	jle	LBB0_20
## %bb.18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %r15d
	movl	%r15d, %edi
	callq	_strlen
	incl	%eax
	movslq	%eax, %r13
	movq	%r13, %rdi
	callq	_malloc
	movslq	-44(%rbp), %rcx
	addq	%rbx, %rcx
	movq	%rax, (%r14,%rcx,8)
	movq	%rax, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_memcpy
	incq	%rbx
	movslq	-48(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_19
LBB0_20:
	movq	%r12, %rdi
	callq	_free
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	$1, %r15d
	jmp	LBB0_21
LBB0_6:
	movq	%r12, %rdi
	callq	_free
LBB0_21:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	cmpl	$0, -44(%rbp)
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_free
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_free
	xorl	%r15d, %r15d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_SUCCESS,8,3                 ## @VK_SUCCESS
	.no_dead_strip	_glad_vk_get_extensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glad_vk_get_extensions
_glad_vk_get_extensions:                ; @glad_vk_get_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	x19, x2
	mov	x20, x1
	mov	x23, x0
	str	xzr, [sp, #8]
	add	x1, sp, #12
	mov	x0, #0
	mov	x2, #0
	bl	_vkEnumerateInstanceExtensionProperties
	mov	x8, x0
	mov	w0, #0
Lloh0:
	adrp	x27, _VK_SUCCESS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _VK_SUCCESS@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.1:
	cbz	x23, LBB0_4
; %bb.2:
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, #0
	mov	x3, #0
	bl	_vkEnumerateDeviceExtensionProperties
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.3:
	ldr	w21, [sp, #8]
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	w24, [sp, #12]
	cmp	w24, w21
	csel	w8, w24, w21, gt
	sbfiz	x0, x8, #2, #32
	bl	_malloc
	cbz	x0, LBB0_20
; %bb.6:
	mov	x22, x0
	add	x1, sp, #12
	mov	x0, #0
	mov	x2, x22
	bl	_vkEnumerateInstanceExtensionProperties
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.7:
	add	w24, w21, w24
	mov	x0, x24
	mov	w1, #8
	bl	_calloc
	cbz	x0, LBB0_17
; %bb.8:
	mov	x21, x0
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x28, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x22, x28, lsl #2]
	mov	x0, x25
	bl	_strlen
	add	w8, w0, #1
	sxtw	x26, w8
	mov	x0, x26
	bl	_malloc
	str	x0, [x21, x28, lsl #3]
	mov	x1, x25
	mov	x2, x26
	bl	_memcpy
	add	x28, x28, #1
	ldrsw	x8, [sp, #12]
	cmp	x28, x8
	b.lt	LBB0_10
LBB0_11:
	cbz	x23, LBB0_16
; %bb.12:
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, #0
	mov	x3, x22
	bl	_vkEnumerateDeviceExtensionProperties
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.13:
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x26, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x22, x26, lsl #2]
	mov	x0, x23
	bl	_strlen
	add	w8, w0, #1
	sxtw	x25, w8
	mov	x0, x25
	bl	_malloc
	ldrsw	x8, [sp, #12]
	add	x8, x26, x8
	str	x0, [x21, x8, lsl #3]
	mov	x1, x23
	mov	x2, x25
	bl	_memcpy
	add	x26, x26, #1
	ldrsw	x8, [sp, #8]
	cmp	x26, x8
	b.lt	LBB0_15
LBB0_16:
	mov	x0, x22
	bl	_free
	str	w24, [x20]
	str	x21, [x19]
	mov	w0, #1
	b	LBB0_20
LBB0_17:
	mov	x0, x22
LBB0_18:
	bl	_free
LBB0_19:
	mov	w0, #0
LBB0_20:
	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
LBB0_21:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.22:
	mov	x19, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, x19, lsl #3]
	bl	_free
	add	x19, x19, #1
	ldrsw	x8, [sp, #12]
	cmp	x19, x8
	b.lt	LBB0_23
LBB0_24:
	mov	x0, x21
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_SUCCESS,8,3                 ; @VK_SUCCESS
	.no_dead_strip	_glad_vk_get_extensions
.subsections_via_symbols
