	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d12_create_buffer            ## -- Begin function d3d12_create_buffer
	.p2align	4, 0x90
_d3d12_create_buffer:                   ## @d3d12_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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	_D3D12_HEAP_TYPE_UPLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_D3D12_CPU_PAGE_PROPERTY_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_D3D12_MEMORY_POOL_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -52(%rbp)
	movl	$0, -16(%rbp)
	movl	%esi, -20(%rbp)
	movq	%rax, -40(%rbp)
	movl	$1, -32(%rbp)
	movl	$1, -24(%rbp)
	movq	_D3D12_TEXTURE_LAYOUT_ROW_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_D3D12_HEAP_FLAG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_D3D12_RESOURCE_STATE_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, (%rsp)
	leaq	-64(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	xorl	%r9d, %r9d
	callq	_D3D12CreateCommittedResource
	movl	(%rbx), %edi
	callq	_D3D12GetGPUVirtualAddress
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3D12_HEAP_TYPE_UPLOAD,4,2     ## @D3D12_HEAP_TYPE_UPLOAD
	.comm	_D3D12_CPU_PAGE_PROPERTY_UNKNOWN,4,2 ## @D3D12_CPU_PAGE_PROPERTY_UNKNOWN
	.comm	_D3D12_MEMORY_POOL_UNKNOWN,4,2  ## @D3D12_MEMORY_POOL_UNKNOWN
	.comm	_D3D12_RESOURCE_DIMENSION_BUFFER,4,2 ## @D3D12_RESOURCE_DIMENSION_BUFFER
	.comm	_D3D12_TEXTURE_LAYOUT_ROW_MAJOR,4,2 ## @D3D12_TEXTURE_LAYOUT_ROW_MAJOR
	.comm	_D3D12_HEAP_FLAG_NONE,4,2       ## @D3D12_HEAP_FLAG_NONE
	.comm	_D3D12_RESOURCE_STATE_GENERIC_READ,4,2 ## @D3D12_RESOURCE_STATE_GENERIC_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d12_create_buffer            ; -- Begin function d3d12_create_buffer
	.p2align	2
_d3d12_create_buffer:                   ; @d3d12_create_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
Lloh0:
	adrp	x8, _D3D12_HEAP_TYPE_UPLOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3D12_HEAP_TYPE_UPLOAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _D3D12_CPU_PAGE_PROPERTY_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _D3D12_CPU_PAGE_PROPERTY_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
Lloh6:
	adrp	x8, _D3D12_MEMORY_POOL_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D3D12_MEMORY_POOL_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	movi.2s	v0, #1
	stur	d0, [sp, #52]
	stp	w1, wzr, [sp, #28]
	str	d0, [sp, #8]
	mov	w8, #1
	str	w8, [sp, #24]
Lloh9:
	adrp	x9, _D3D12_TEXTURE_LAYOUT_ROW_MAJOR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _D3D12_TEXTURE_LAYOUT_ROW_MAJOR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh12:
	adrp	x8, _D3D12_HEAP_FLAG_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D3D12_HEAP_FLAG_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _D3D12_RESOURCE_STATE_GENERIC_READ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _D3D12_RESOURCE_STATE_GENERIC_READ@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	add	x1, sp, #40
	add	x3, sp, #8
	mov	x5, #0
	mov	x6, x19
	bl	_D3D12CreateCommittedResource
	ldr	w0, [x19]
	bl	_D3D12GetGPUVirtualAddress
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D3D12_HEAP_TYPE_UPLOAD,4,2     ; @D3D12_HEAP_TYPE_UPLOAD
	.comm	_D3D12_CPU_PAGE_PROPERTY_UNKNOWN,4,2 ; @D3D12_CPU_PAGE_PROPERTY_UNKNOWN
	.comm	_D3D12_MEMORY_POOL_UNKNOWN,4,2  ; @D3D12_MEMORY_POOL_UNKNOWN
	.comm	_D3D12_RESOURCE_DIMENSION_BUFFER,4,2 ; @D3D12_RESOURCE_DIMENSION_BUFFER
	.comm	_D3D12_TEXTURE_LAYOUT_ROW_MAJOR,4,2 ; @D3D12_TEXTURE_LAYOUT_ROW_MAJOR
	.comm	_D3D12_HEAP_FLAG_NONE,4,2       ; @D3D12_HEAP_FLAG_NONE
	.comm	_D3D12_RESOURCE_STATE_GENERIC_READ,4,2 ; @D3D12_RESOURCE_STATE_GENERIC_READ
.subsections_via_symbols
