	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_create_descriptor_manager ## -- Begin function vulkan_create_descriptor_manager
	.p2align	4, 0x90
_vulkan_create_descriptor_manager:      ## @vulkan_create_descriptor_manager
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r13
	movl	%edi, %r12d
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_VULKAN_MAX_DESCRIPTOR_POOL_SIZES@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	setae	%dil
	callq	_retro_assert
	movl	-44(%rbp), %edi
	leal	(,%rbx,4), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movl	%ebx, -56(%rbp)
	movl	%r14d, -48(%rbp)
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_vulkan_alloc_descriptor_pool
	movl	%eax, -52(%rbp)
	movl	%eax, %edi
	callq	_retro_assert
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VULKAN_MAX_DESCRIPTOR_POOL_SIZES,4,2 ## @VULKAN_MAX_DESCRIPTOR_POOL_SIZES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_create_descriptor_manager ; -- Begin function vulkan_create_descriptor_manager
	.p2align	2
_vulkan_create_descriptor_manager:      ; @vulkan_create_descriptor_manager
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _VULKAN_MAX_DESCRIPTOR_POOL_SIZES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VULKAN_MAX_DESCRIPTOR_POOL_SIZES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, hs
	bl	_retro_assert
	ldr	w0, [sp, #20]
	lsl	w2, w20, #2
	mov	x1, x21
	bl	_memcpy
	str	w20, [sp, #8]
	str	w19, [sp, #16]
	add	x1, sp, #8
	mov	x0, x22
	bl	_vulkan_alloc_descriptor_pool
	str	w0, [sp, #12]
	bl	_retro_assert
	ldp	x0, x1, [sp, #8]
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VULKAN_MAX_DESCRIPTOR_POOL_SIZES,4,2 ; @VULKAN_MAX_DESCRIPTOR_POOL_SIZES
.subsections_via_symbols
