	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_alloc_descriptor_pool
_vulkan_alloc_descriptor_pool:          ## @vulkan_alloc_descriptor_pool
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movl	$0, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -52(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	_VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	%r13, %rcx
	addq	$8, %rcx
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_vkCreateDescriptorPool
	movl	8(%r13), %eax
	movl	%eax, -80(%rbp)
	movl	$1, -96(%rbp)
	movq	%r15, -88(%rbp)
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-96(%rbp), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdx
	addq	%rbx, %rdx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_vkAllocateDescriptorSets
	incq	%r12
	movq	_VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jb	LBB0_4
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
LBB0_5:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO,4,2 ## @VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO
	.comm	_VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO,4,2 ## @VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO
	.comm	_VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS,4,2 ## @VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS
	.comm	_VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT,4,2 ## @VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT
	.no_dead_strip	_vulkan_alloc_descriptor_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vulkan_alloc_descriptor_pool
_vulkan_alloc_descriptor_pool:          ; @vulkan_alloc_descriptor_pool
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #40]
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	mov	w23, #1
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x22, _VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS@GOTPAGEOFF]
	ldr	w8, [x22]
	ldur	d0, [x21, #4]
	str	d0, [sp, #32]
Lloh2:
	adrp	x9, _VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
	add	x3, x20, #8
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, #0
	bl	_vkCreateDescriptorPool
	ldr	w8, [x20, #8]
	str	w8, [sp, #16]
	str	w23, [sp]
	str	x21, [sp, #8]
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x21, #0
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x2, x8, x21
	mov	x1, sp
	mov	x0, x19
	bl	_vkAllocateDescriptorSets
	add	x23, x23, #1
	ldr	w8, [x22]
	add	x21, x21, #4
	cmp	x23, x8
	b.lo	LBB0_3
LBB0_4:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO,4,2 ; @VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO
	.comm	_VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO,4,2 ; @VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO
	.comm	_VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS,4,2 ; @VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS
	.comm	_VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT,4,2 ; @VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT
	.no_dead_strip	_vulkan_alloc_descriptor_pool
.subsections_via_symbols
