	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_reopen_file                ## -- Begin function mp3_reopen_file
	.p2align	4, 0x90
_mp3_reopen_file:                       ## @mp3_reopen_file
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_mp3_fname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_lprintf
	movq	_mp3_handle@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	js	LBB0_3
## %bb.2:
	callq	_sceIoClose
LBB0_3:
	movq	(%rbx), %rdi
	movq	_PSP_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_sceIoOpen
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	movq	_mp3_src_pos@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PSP_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_sceIoLseek32
	movq	(%r14), %rax
LBB0_5:
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmovnsq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lprintf                        ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mp3_fname,8,3                  ## @mp3_fname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mp3_reopen_file(%s)\n"

	.comm	_mp3_handle,8,3                 ## @mp3_handle
	.comm	_PSP_O_RDONLY,4,2               ## @PSP_O_RDONLY
	.comm	_mp3_src_pos,4,2                ## @mp3_src_pos
	.comm	_PSP_SEEK_SET,4,2               ## @PSP_SEEK_SET
L_.str.1:                               ## @.str.1
	.asciz	"mp3_reopen_file %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"ok"

L_.str.3:                               ## @.str.3
	.asciz	"failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_reopen_file                ; -- Begin function mp3_reopen_file
	.p2align	2
_mp3_reopen_file:                       ; @mp3_reopen_file
	.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
Lloh0:
	adrp	x20, _mp3_fname@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mp3_fname@GOTPAGEOFF]
	ldr	x1, [x20]
	cbz	x1, LBB0_6
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lprintf
Lloh4:
	adrp	x19, _mp3_handle@GOTPAGE
Lloh5:
	ldr	x19, [x19, _mp3_handle@GOTPAGEOFF]
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_3
; %bb.2:
	bl	_sceIoClose
LBB0_3:
	ldr	x0, [x20]
Lloh6:
	adrp	x8, _PSP_O_RDONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSP_O_RDONLY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #511
	bl	_sceIoOpen
	str	x0, [x19]
	tbnz	x0, #63, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _mp3_src_pos@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mp3_src_pos@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _PSP_SEEK_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PSP_SEEK_SET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_sceIoLseek32
	ldr	x0, [x19]
LBB0_5:
Lloh15:
	adrp	x8, l_.str.3@PAGE
Lloh16:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh17:
	adrp	x9, l_.str.2@PAGE
Lloh18:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, ge
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lprintf
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mp3_fname,8,3                  ; @mp3_fname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mp3_reopen_file(%s)\n"

	.comm	_mp3_handle,8,3                 ; @mp3_handle
	.comm	_PSP_O_RDONLY,4,2               ; @PSP_O_RDONLY
	.comm	_mp3_src_pos,4,2                ; @mp3_src_pos
	.comm	_PSP_SEEK_SET,4,2               ; @PSP_SEEK_SET
l_.str.1:                               ; @.str.1
	.asciz	"mp3_reopen_file %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"ok"

l_.str.3:                               ; @.str.3
	.asciz	"failed"

.subsections_via_symbols
