	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3dec_start                   ## -- Begin function mp3dec_start
	.p2align	4, 0x90
_mp3dec_start:                          ## @mp3dec_start
	.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	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_EXT_FM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_loaded_mp3@GOTPCREL(%rip), %r15
	cmpq	%rdi, (%r15)
	je	LBB0_10
## %bb.3:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%rbx, %rdi
	callq	_ftell
	cmpl	$2097153, %eax                  ## imm = 0x200001
	jl	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_PicoMessage
LBB0_5:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	_mp3_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MP3_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	movq	%rbx, %rcx
	callq	_fread
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_7:
	movq	%rbx, %rdi
	callq	_ftell
	movq	_shared_ctl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, (%r15)
	movq	_JOB940_MP3DECODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_CHECK_BUSY
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rbx), %edi
	callq	_wait_busy_940
LBB0_9:
	movq	_JOB940_INVALIDATE_DCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_add_job_940
	movq	_reset_timing@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_10:
	movq	_shared_ctl@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%r14d, 4(%rax)
	movq	$0, 8(%rax)
	movq	_JOB940_MP3RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_add_job_940
	movl	(%rbx), %edi
	callq	_CHECK_BUSY
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%rbx), %edi
	callq	_wait_busy_940
LBB0_12:
	movq	(%r15), %rax
	movl	4(%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	(%rax), %ecx
	jge	LBB0_14
## %bb.13:
	movq	_JOB940_MP3DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_add_job_940
	jmp	LBB0_14
LBB0_1:
	movl	$-1, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EXT_FM,4,2                ## @POPT_EXT_FM
	.comm	_loaded_mp3,8,3                 ## @loaded_mp3
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Loading MP3..."

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_mp3_mem,4,2                    ## @mp3_mem
	.comm	_MP3_SIZE_MAX,4,2               ## @MP3_SIZE_MAX
	.comm	_shared_ctl,8,3                 ## @shared_ctl
	.comm	_JOB940_MP3DECODE,4,2           ## @JOB940_MP3DECODE
	.comm	_JOB940_INVALIDATE_DCACHE,4,2   ## @JOB940_INVALIDATE_DCACHE
	.comm	_reset_timing,4,2               ## @reset_timing
	.comm	_JOB940_MP3RESET,4,2            ## @JOB940_MP3RESET
L_str:                                  ## @str
	.asciz	"Warning: mp3 was too large, not all data loaded."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3dec_start                   ; -- Begin function mp3dec_start
	.p2align	2
_mp3dec_start:                          ; @mp3dec_start
	.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	x8, _PicoOpt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _POPT_EXT_FM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POPT_EXT_FM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh6:
	adrp	x23, _loaded_mp3@GOTPAGE
Lloh7:
	ldr	x23, [x23, _loaded_mp3@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh8:
	adrp	x22, _shared_ctl@GOTPAGE
Lloh9:
	ldr	x22, [x22, _shared_ctl@GOTPAGEOFF]
Lloh10:
	adrp	x21, _JOB940_MP3DECODE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _JOB940_MP3DECODE@GOTPAGEOFF]
	cmp	x8, x0
	b.eq	LBB0_9
; %bb.2:
Lloh12:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_fseek
	mov	x0, x20
	bl	_ftell
	cmp	w0, #512, lsl #12               ; =2097152
	b.le	LBB0_4
; %bb.3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PicoMessage
LBB0_4:
Lloh17:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_fseek
Lloh20:
	adrp	x8, _mp3_mem@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mp3_mem@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _MP3_SIZE_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MP3_SIZE_MAX@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	w1, #1
	mov	x3, x20
	bl	_fread
	mov	x0, x20
	bl	_feof
	cbnz	w0, LBB0_6
; %bb.5:
Lloh26:
	adrp	x0, l_str@PAGE
Lloh27:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_6:
	mov	x0, x20
	bl	_ftell
	ldr	x8, [x22]
	str	w0, [x8]
	str	x20, [x23]
	ldr	w0, [x21]
	bl	_CHECK_BUSY
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x21]
	bl	_wait_busy_940
LBB0_8:
Lloh28:
	adrp	x8, _JOB940_INVALIDATE_DCACHE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _JOB940_INVALIDATE_DCACHE@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_add_job_940
Lloh31:
	adrp	x8, _reset_timing@GOTPAGE
Lloh32:
	ldr	x8, [x8, _reset_timing@GOTPAGEOFF]
	mov	w9, #1
Lloh33:
	str	w9, [x8]
LBB0_9:
	ldr	x8, [x22]
	str	w19, [x8, #4]
	str	xzr, [x8, #8]
Lloh34:
	adrp	x19, _JOB940_MP3RESET@GOTPAGE
Lloh35:
	ldr	x19, [x19, _JOB940_MP3RESET@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_add_job_940
	ldr	w0, [x19]
	bl	_CHECK_BUSY
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x19]
	bl	_wait_busy_940
LBB0_11:
	ldr	x8, [x22]
	ldp	w8, w9, [x8]
	cmp	w9, w8
	b.ge	LBB0_13
; %bb.12:
	ldr	w0, [x21]
	bl	_add_job_940
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EXT_FM,4,2                ; @POPT_EXT_FM
	.comm	_loaded_mp3,8,3                 ; @loaded_mp3
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Loading MP3..."

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_mp3_mem,4,2                    ; @mp3_mem
	.comm	_MP3_SIZE_MAX,4,2               ; @MP3_SIZE_MAX
	.comm	_shared_ctl,8,3                 ; @shared_ctl
	.comm	_JOB940_MP3DECODE,4,2           ; @JOB940_MP3DECODE
	.comm	_JOB940_INVALIDATE_DCACHE,4,2   ; @JOB940_INVALIDATE_DCACHE
	.comm	_reset_timing,4,2               ; @reset_timing
	.comm	_JOB940_MP3RESET,4,2            ; @JOB940_MP3RESET
l_str:                                  ; @str
	.asciz	"Warning: mp3 was too large, not all data loaded."

.subsections_via_symbols
