	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_init_command_buffers
_vulkan_init_command_buffers:           ## @vulkan_init_command_buffers
	.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
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r12
	movl	$4, %ebx
	xorl	%r13d, %r13d
	movq	_VK_COMMAND_BUFFER_LEVEL_PRIMARY@GOTPCREL(%rip), %r14
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -64(%rbp)
	movq	_VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -52(%rbp)
	movl	$0, -44(%rbp)
	movq	16(%r12), %rax
	movl	4(%rax), %ecx
	movl	%ecx, -68(%rbp)
	movq	_VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)
	movl	(%rax), %edi
	movq	8(%r12), %rcx
	addq	%rbx, %rcx
	leaq	-72(%rbp), %rsi
	xorl	%edx, %edx
	callq	_vkCreateCommandPool
	movq	8(%r12), %rax
	movl	(%rax,%rbx), %ecx
	movl	%ecx, -48(%rbp)
	movl	(%r14), %ecx
	movl	%ecx, -52(%rbp)
	movl	$1, -56(%rbp)
	movq	16(%r12), %rcx
	movl	(%rcx), %edi
	leaq	(%rax,%rbx), %rdx
	addq	$-4, %rdx
	movq	%r15, %rsi
	callq	_vkAllocateCommandBuffers
	incq	%r13
	movl	(%r12), %eax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jb	LBB0_2
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO,4,2 ## @VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO
	.comm	_VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,4,2 ## @VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO
	.comm	_VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT,4,2 ## @VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT
	.comm	_VK_COMMAND_BUFFER_LEVEL_PRIMARY,4,2 ## @VK_COMMAND_BUFFER_LEVEL_PRIMARY
	.no_dead_strip	_vulkan_init_command_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vulkan_init_command_buffers
_vulkan_init_command_buffers:           ; @vulkan_init_command_buffers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x21, _VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO@GOTPAGEOFF]
	mov	w22, #4
Lloh2:
	adrp	x23, _VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _VK_COMMAND_BUFFER_LEVEL_PRIMARY@GOTPAGE
Lloh5:
	ldr	x24, [x24, _VK_COMMAND_BUFFER_LEVEL_PRIMARY@GOTPAGEOFF]
	mov	w25, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #24]
	ldr	w8, [x21]
	stp	w8, wzr, [sp]
	str	xzr, [sp, #8]
	ldp	x9, x8, [x19, #8]
	ldr	w10, [x8, #4]
	ldr	w11, [x23]
	stp	w11, w10, [sp, #16]
	ldr	w0, [x8]
	add	x3, x9, x22
	add	x1, sp, #16
	mov	x2, #0
	bl	_vkCreateCommandPool
	ldp	x8, x9, [x19, #8]
	add	x2, x8, x22
	ldr	w8, [x2], #-4
	str	w8, [sp, #8]
	ldr	w8, [x24]
	stp	w25, w8, [sp]
	ldr	w0, [x9]
	mov	x1, sp
	bl	_vkAllocateCommandBuffers
	add	x20, x20, #1
	ldr	w8, [x19]
	add	x22, x22, #8
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO,4,2 ; @VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO
	.comm	_VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,4,2 ; @VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO
	.comm	_VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT,4,2 ; @VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT
	.comm	_VK_COMMAND_BUFFER_LEVEL_PRIMARY,4,2 ; @VK_COMMAND_BUFFER_LEVEL_PRIMARY
	.no_dead_strip	_vulkan_init_command_buffers
.subsections_via_symbols
