	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_deinit                     ## -- Begin function mp3_deinit
	.p2align	4, 0x90
_mp3_deinit:                            ## @mp3_deinit
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_initialized@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_lprintf
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.1:
	movq	_thread_exit@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_thread_busy_sem@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_psp_sem_lock
	movl	(%r12), %edi
	callq	_psp_sem_unlock
	movq	_thread_job_sem@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_sceKernelSignalSema
	movl	$100000, %edi                   ## imm = 0x186A0
	callq	_sceKernelDelayThread
	movq	_mp3_handle@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_3
## %bb.2:
	callq	_sceIoClose
LBB0_3:
	movl	$-1, (%rbx)
	movq	_mp3_fname@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	(%r12), %edi
	callq	_sceKernelDeleteSema
	movl	$-1, (%r12)
	movl	(%r15), %edi
	callq	_sceKernelDeleteSema
	movl	$-1, (%r15)
	movq	_mp3_codec_struct@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sceAudiocodecReleaseEDRAM
	movq	$0, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mp3_deinit, initialized=%i\n"

	.comm	_initialized,8,3                ## @initialized
	.comm	_thread_exit,4,2                ## @thread_exit
	.comm	_thread_busy_sem,4,2            ## @thread_busy_sem
	.comm	_thread_job_sem,4,2             ## @thread_job_sem
	.comm	_mp3_handle,4,2                 ## @mp3_handle
	.comm	_mp3_fname,8,3                  ## @mp3_fname
	.comm	_mp3_codec_struct,4,2           ## @mp3_codec_struct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_deinit                     ; -- Begin function mp3_deinit
	.p2align	2
_mp3_deinit:                            ; @mp3_deinit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _initialized@GOTPAGE
Lloh1:
	ldr	x19, [x19, _initialized@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lprintf
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _thread_exit@GOTPAGE
Lloh5:
	ldr	x8, [x8, _thread_exit@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
Lloh7:
	adrp	x20, _thread_busy_sem@GOTPAGE
Lloh8:
	ldr	x20, [x20, _thread_busy_sem@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_psp_sem_lock
	ldr	w0, [x20]
	bl	_psp_sem_unlock
Lloh9:
	adrp	x21, _thread_job_sem@GOTPAGE
Lloh10:
	ldr	x21, [x21, _thread_job_sem@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #1
	bl	_sceKernelSignalSema
	mov	w0, #34464
	movk	w0, #1, lsl #16
	bl	_sceKernelDelayThread
Lloh11:
	adrp	x22, _mp3_handle@GOTPAGE
Lloh12:
	ldr	x22, [x22, _mp3_handle@GOTPAGEOFF]
	ldr	w0, [x22]
	tbnz	w0, #31, LBB0_3
; %bb.2:
	bl	_sceIoClose
LBB0_3:
	mov	w23, #-1
	str	w23, [x22]
Lloh13:
	adrp	x8, _mp3_fname@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mp3_fname@GOTPAGEOFF]
Lloh15:
	str	xzr, [x8]
	ldr	w0, [x20]
	bl	_sceKernelDeleteSema
	str	w23, [x20]
	ldr	w0, [x21]
	bl	_sceKernelDeleteSema
	str	w23, [x21]
Lloh16:
	adrp	x8, _mp3_codec_struct@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mp3_codec_struct@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_sceAudiocodecReleaseEDRAM
	str	xzr, [x19]
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mp3_deinit, initialized=%i\n"

	.comm	_initialized,8,3                ; @initialized
	.comm	_thread_exit,4,2                ; @thread_exit
	.comm	_thread_busy_sem,4,2            ; @thread_busy_sem
	.comm	_thread_job_sem,4,2             ; @thread_job_sem
	.comm	_mp3_handle,4,2                 ; @mp3_handle
	.comm	_mp3_fname,8,3                  ; @mp3_fname
	.comm	_mp3_codec_struct,4,2           ; @mp3_codec_struct
.subsections_via_symbols
