	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_create_buffer           ## -- Begin function vulkan_create_buffer
	.p2align	4, 0x90
_vulkan_create_buffer:                  ## @vulkan_create_buffer
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$0, -40(%rbp)
	movl	$0, -56(%rbp)
	movq	%rdx, -72(%rbp)
	movl	%ecx, -60(%rbp)
	movq	_VK_SHARING_MODE_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	(%rsi), %edi
	leaq	16(%rbx), %rcx
	leaq	-72(%rbp), %rsi
	xorl	%edx, %edx
	callq	_vkCreateBuffer
	movl	(%r15), %edi
	movl	16(%rbx), %esi
	leaq	-32(%rbp), %rdx
	callq	_vkGetBufferMemoryRequirements
	movl	-32(%rbp), %esi
	movl	-28(%rbp), %eax
	movl	%eax, -44(%rbp)
	leaq	4(%r15), %rdi
	movq	_VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT@GOTPCREL(%rip), %rax
	movq	_VK_MEMORY_PROPERTY_HOST_COHERENT_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_vulkan_find_memory_type
	movl	%eax, -48(%rbp)
	movl	(%r15), %edi
	leaq	12(%rbx), %rcx
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_vkAllocateMemory
	movl	(%r15), %edi
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	xorl	%ecx, %ecx
	callq	_vkBindBufferMemory
	movq	%r14, (%rbx)
	movl	(%r15), %edi
	movl	12(%rbx), %esi
	movq	%rbx, %r9
	addq	$8, %r9
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_vkMapMemory
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,4,2 ## @VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO
	.comm	_VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,4,2 ## @VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO
	.comm	_VK_SHARING_MODE_EXCLUSIVE,4,2  ## @VK_SHARING_MODE_EXCLUSIVE
	.comm	_VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT,4,2 ## @VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
	.comm	_VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,4,2 ## @VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vulkan_create_buffer           ; -- Begin function vulkan_create_buffer
	.p2align	2
_vulkan_create_buffer:                  ; @vulkan_create_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x21, x0
	mov	x20, x8
	str	wzr, [sp, #32]
	str	wzr, [sp, #16]
Lloh0:
	adrp	x8, _VK_SHARING_MODE_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VK_SHARING_MODE_EXCLUSIVE@GOTPAGEOFF]
	str	x1, [sp]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w2, [sp, #8]
	ldr	w0, [x0]
	add	x3, x20, #16
	mov	x1, sp
	mov	x2, #0
	bl	_vkCreateBuffer
	ldr	w0, [x21]
	ldr	w1, [x20, #16]
	add	x2, sp, #40
	bl	_vkGetBufferMemoryRequirements
	ldp	w1, w8, [sp, #40]
	str	w8, [sp, #28]
Lloh3:
	adrp	x8, _VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT@GOTPAGEOFF]
	add	x0, x21, #4
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VK_MEMORY_PROPERTY_HOST_COHERENT_BIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VK_MEMORY_PROPERTY_HOST_COHERENT_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_vulkan_find_memory_type
	str	w0, [sp, #24]
	ldr	w0, [x21]
	add	x3, x20, #12
	add	x1, sp, #24
	mov	x2, #0
	bl	_vkAllocateMemory
	ldr	w0, [x21]
	ldp	w2, w1, [x20, #12]
	mov	w3, #0
	bl	_vkBindBufferMemory
	str	x19, [x20]
	ldr	w0, [x21]
	add	x5, x20, #8
	ldr	w1, [x20, #12]
	mov	w2, #0
	mov	x3, x19
	mov	w4, #0
	bl	_vkMapMemory
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,4,2 ; @VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO
	.comm	_VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,4,2 ; @VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO
	.comm	_VK_SHARING_MODE_EXCLUSIVE,4,2  ; @VK_SHARING_MODE_EXCLUSIVE
	.comm	_VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT,4,2 ; @VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
	.comm	_VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,4,2 ; @VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
.subsections_via_symbols
