	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__init_vita_heap                ## -- Begin function _init_vita_heap
	.p2align	4, 0x90
__init_vita_heap:                       ## @_init_vita_heap
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__newlib_vm_size_user@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_sceKernelAllocMemBlockForVM
	movq	__newlib_vm_memblock@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	__newlib_sbrk_mutex@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sceKernelCreateLwMutex
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movl	$8, -32(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_sceKernelGetFreeMemorySize
	movq	__newlib_heap_size_user@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%ebx, %edx
	movq	__newlib_heap_size@GOTPCREL(%rip), %r15
	movl	%edx, (%r15)
	leaq	L_.str.2(%rip), %rdi
	movl	$203477088, %esi                ## imm = 0xC20D060
	xorl	%ecx, %ecx
	callq	_sceKernelAllocMemBlock
	movq	__newlib_heap_memblock@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_5
## %bb.3:
	movq	__newlib_heap_base@GOTPCREL(%rip), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_sceKernelGetMemBlockBase
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	movl	(%rbx), %eax
	movl	(%r15), %ecx
	addl	%eax, %ecx
	movq	__newlib_heap_end@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	jmp	LBB0_6
LBB0_5:
	movq	$0, (%r14)
	movq	__newlib_heap_memblock@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	__newlib_heap_base@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
LBB0_6:
	movq	__newlib_heap_cur@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__newlib_vm_size_user,4,2       ## @_newlib_vm_size_user
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"code"

	.comm	__newlib_vm_memblock,8,3        ## @_newlib_vm_memblock
	.comm	__newlib_sbrk_mutex,8,3         ## @_newlib_sbrk_mutex
L_.str.1:                               ## @.str.1
	.asciz	"sbrk mutex"

	.comm	__newlib_heap_size_user,4,2     ## @_newlib_heap_size_user
	.comm	__newlib_heap_size,4,2          ## @_newlib_heap_size
L_.str.2:                               ## @.str.2
	.asciz	"Newlib heap"

	.comm	__newlib_heap_memblock,8,3      ## @_newlib_heap_memblock
	.comm	__newlib_heap_base,4,2          ## @_newlib_heap_base
	.comm	__newlib_heap_end,4,2           ## @_newlib_heap_end
	.comm	__newlib_heap_cur,4,2           ## @_newlib_heap_cur
	.comm	_RAM_THRESHOLD,4,2              ## @RAM_THRESHOLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__init_vita_heap                ; -- Begin function _init_vita_heap
	.p2align	2
__init_vita_heap:                       ; @_init_vita_heap
	.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
Lloh0:
	adrp	x8, __newlib_vm_size_user@GOTPAGE
Lloh1:
	ldr	x8, [x8, __newlib_vm_size_user@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_sceKernelAllocMemBlockForVM
Lloh5:
	adrp	x20, __newlib_vm_memblock@GOTPAGE
Lloh6:
	ldr	x20, [x20, __newlib_vm_memblock@GOTPAGEOFF]
	str	x0, [x20]
Lloh7:
	adrp	x21, __newlib_heap_memblock@GOTPAGE
Lloh8:
	ldr	x21, [x21, __newlib_heap_memblock@GOTPAGEOFF]
	tbnz	x0, #63, LBB0_5
; %bb.1:
Lloh9:
	adrp	x8, __newlib_sbrk_mutex@GOTPAGE
Lloh10:
	ldr	x8, [x8, __newlib_sbrk_mutex@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_sceKernelCreateLwMutex
	tbnz	x0, #63, LBB0_5
; %bb.2:
	mov	w8, #8
	str	w8, [sp, #8]
	add	x0, sp, #8
	bl	_sceKernelGetFreeMemorySize
Lloh14:
	adrp	x8, __newlib_heap_size_user@GOTPAGE
Lloh15:
	ldr	x8, [x8, __newlib_heap_size_user@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	sub	w2, w8, w19
Lloh17:
	adrp	x22, __newlib_heap_size@GOTPAGE
Lloh18:
	ldr	x22, [x22, __newlib_heap_size@GOTPAGEOFF]
	str	w2, [x22]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #53344
	movk	w1, #3104, lsl #16
	mov	w3, #0
	bl	_sceKernelAllocMemBlock
	str	x0, [x21]
	tbnz	x0, #63, LBB0_5
; %bb.3:
Lloh21:
	adrp	x19, __newlib_heap_base@GOTPAGE
Lloh22:
	ldr	x19, [x19, __newlib_heap_base@GOTPAGEOFF]
	mov	x1, x19
	bl	_sceKernelGetMemBlockBase
	tbnz	x0, #63, LBB0_5
; %bb.4:
	ldr	w8, [x19]
	ldr	w9, [x22]
	add	w9, w9, w8
Lloh23:
	adrp	x10, __newlib_heap_end@GOTPAGE
Lloh24:
	ldr	x10, [x10, __newlib_heap_end@GOTPAGEOFF]
Lloh25:
	str	w9, [x10]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
Lloh26:
	adrp	x9, __newlib_heap_base@GOTPAGE
Lloh27:
	ldr	x9, [x9, __newlib_heap_base@GOTPAGEOFF]
	str	xzr, [x20]
	str	xzr, [x21]
Lloh28:
	str	wzr, [x9]
LBB0_6:
Lloh29:
	adrp	x9, __newlib_heap_cur@GOTPAGE
Lloh30:
	ldr	x9, [x9, __newlib_heap_cur@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	__newlib_vm_size_user,4,2       ; @_newlib_vm_size_user
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"code"

	.comm	__newlib_vm_memblock,8,3        ; @_newlib_vm_memblock
	.comm	__newlib_sbrk_mutex,8,3         ; @_newlib_sbrk_mutex
l_.str.1:                               ; @.str.1
	.asciz	"sbrk mutex"

	.comm	__newlib_heap_size_user,4,2     ; @_newlib_heap_size_user
	.comm	__newlib_heap_size,4,2          ; @_newlib_heap_size
l_.str.2:                               ; @.str.2
	.asciz	"Newlib heap"

	.comm	__newlib_heap_memblock,8,3      ; @_newlib_heap_memblock
	.comm	__newlib_heap_base,4,2          ; @_newlib_heap_base
	.comm	__newlib_heap_end,4,2           ; @_newlib_heap_end
	.comm	__newlib_heap_cur,4,2           ; @_newlib_heap_cur
	.comm	_RAM_THRESHOLD,4,2              ; @RAM_THRESHOLD
.subsections_via_symbols
