	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psp_free
_psp_free:                              ## @psp_free
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_15
## %bb.2:
	xorl	%eax, %eax
	callq	_sceDisplayWaitVblankStart
	movq	_GU_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sceGuDisplay
	xorl	%eax, %eax
	callq	_sceGuTerm
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_free
LBB0_6:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_TO_CACHED_PTR
	movq	%rax, %rdi
	callq	_free
LBB0_8:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_TO_CACHED_PTR
	movq	%rax, %rdi
	callq	_free
LBB0_10:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_free
LBB0_12:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_free
LBB0_14:
	movq	%rbx, %rdi
	callq	_free
	movq	_PSP_VBLANK_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_sceKernelDisableSubIntr
	movl	(%rbx), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sceKernelReleaseSubIntrHandler ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GU_FALSE,4,2                   ## @GU_FALSE
	.comm	_PSP_VBLANK_INT,4,2             ## @PSP_VBLANK_INT
	.no_dead_strip	_psp_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psp_free
_psp_free:                              ; @psp_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_15
; %bb.2:
	bl	_sceDisplayWaitVblankStart
Lloh0:
	adrp	x8, _GU_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GU_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sceGuDisplay
	bl	_sceGuTerm
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
LBB0_4:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_free
LBB0_6:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_TO_CACHED_PTR
	bl	_free
LBB0_8:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_TO_CACHED_PTR
	bl	_free
LBB0_10:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_free
LBB0_12:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_free
LBB0_14:
	mov	x0, x19
	bl	_free
Lloh3:
	adrp	x19, _PSP_VBLANK_INT@GOTPAGE
Lloh4:
	ldr	x19, [x19, _PSP_VBLANK_INT@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #0
	bl	_sceKernelDisableSubIntr
	ldr	w0, [x19]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sceKernelReleaseSubIntrHandler
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GU_FALSE,4,2                   ; @GU_FALSE
	.comm	_PSP_VBLANK_INT,4,2             ; @PSP_VBLANK_INT
	.no_dead_strip	_psp_free
.subsections_via_symbols
