	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fragment_usse_alloc            ## -- Begin function fragment_usse_alloc
	.p2align	4, 0x90
_fragment_usse_alloc:                   ## @fragment_usse_alloc
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	$0, -40(%rbp)
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ALIGN
	movl	%eax, %ebx
	movq	_SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_sceKernelAllocMemBlock
	movl	%eax, (%r12)
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_sceKernelGetMemBlockBase
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movq	-40(%rbp), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_sceGxmMapFragmentUsseMemory
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	-40(%rbp), %r15
	jmp	LBB0_4
LBB0_2:
	xorl	%r15d, %r15d
LBB0_4:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fragment_usse"

	.comm	_SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE,4,2 ## @SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fragment_usse_alloc            ; -- Begin function fragment_usse_alloc
	.p2align	2
_fragment_usse_alloc:                   ; @fragment_usse_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	str	xzr, [sp, #8]
	mov	w1, #4096
	bl	_ALIGN
	mov	x20, x0
Lloh0:
	adrp	x8, _SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, #0
	bl	_sceKernelAllocMemBlock
	str	w0, [x21]
	add	x1, sp, #8
	bl	_sceKernelGetMemBlockBase
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_sceGxmMapFragmentUsseMemory
	ldr	x8, [sp, #8]
	cmp	x0, #0
	csel	x0, xzr, x8, lt
	b	LBB0_3
LBB0_2:
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fragment_usse"

	.comm	_SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE,4,2 ; @SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE
.subsections_via_symbols
