	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vita2d_texture_set_alloc_memblock_type ## -- Begin function vita2d_texture_set_alloc_memblock_type
	.p2align	4, 0x90
_vita2d_texture_set_alloc_memblock_type: ## @vita2d_texture_set_alloc_memblock_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_2:
	movq	_MemBlockType@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW,8,3 ## @SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW
	.comm	_MemBlockType,8,3               ## @MemBlockType
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vita2d_texture_set_alloc_memblock_type ; -- Begin function vita2d_texture_set_alloc_memblock_type
	.p2align	2
_vita2d_texture_set_alloc_memblock_type: ; @vita2d_texture_set_alloc_memblock_type
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x8, x8, x0, eq
Lloh3:
	adrp	x9, _MemBlockType@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MemBlockType@GOTPAGEOFF]
Lloh5:
	str	x8, [x9]
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW,8,3 ; @SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW
	.comm	_MemBlockType,8,3               ; @MemBlockType
.subsections_via_symbols
