	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_start_play                 ## -- Begin function mp3_start_play
	.p2align	4, 0x90
_mp3_start_play:                        ## @mp3_start_play
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$2072, %rsp                     ## imm = 0x818
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_mp3_file_pos@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	movq	_mp3_file_len@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_mp3_current_file@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_cdda_out_pos@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_decoder_active@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_EN_MCD_CDDA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	je	LBB0_13
## %bb.2:
	movq	%rdi, %r12
	movl	%esi, -2100(%rbp)               ## 4-byte Spill
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseek
	movq	%r12, %rdi
	callq	_ftell
	movl	%eax, (%rbx)
	movl	(%r13), %esi
	cmpl	$131071, %esi                   ## imm = 0x1FFFF
	jg	LBB0_8
## %bb.3:
	movq	_SEEK_SET@GOTPCREL(%rip), %r14
	leaq	-2096(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_fseek
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$2048, %edx                     ## imm = 0x800
	movq	%r12, %rcx
	callq	_fread
	cmpl	$4, %eax
	jl	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mp3_find_sync_word
	testl	%eax, %eax
	jns	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %eax
	leal	(%rbx,%rax), %esi
	addl	$-3, %esi
	movl	%esi, (%r13)
	cmpl	$131072, %esi                   ## imm = 0x20000
	jl	LBB0_4
	jmp	LBB0_8
LBB0_6:
	addl	%eax, (%r13)
LBB0_8:
	movl	-2100(%rbp), %edx               ## 4-byte Reload
	testl	%edx, %edx
	je	LBB0_9
## %bb.10:
	movq	_mp3_file_len@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	movslq	(%r13), %rcx
	subq	%rcx, %rax
	movslq	%edx, %rsi
	imulq	%rax, %rsi
	shrq	$10, %rsi
	addl	%ecx, %esi
	movl	%esi, (%r13)
	jmp	LBB0_11
LBB0_9:
	movl	(%r13), %esi
	movq	_mp3_file_len@GOTPCREL(%rip), %rbx
LBB0_11:
	movq	_mp3_current_file@GOTPCREL(%rip), %r14
	movq	_decoder_active@GOTPCREL(%rip), %r15
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mp3dec_start
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r12, (%r14)
	movl	$1, (%r15)
	movl	(%rbx), %edx
	movq	_mp3_file_pos@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_mp3dec_decode
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$2072, %rsp                     ## imm = 0x818
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mp3_file_pos,4,2               ## @mp3_file_pos
	.comm	_mp3_file_len,4,2               ## @mp3_file_len
	.comm	_mp3_current_file,8,3           ## @mp3_current_file
	.comm	_cdda_out_pos,8,3               ## @cdda_out_pos
	.comm	_decoder_active,4,2             ## @decoder_active
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EN_MCD_CDDA,4,2           ## @POPT_EN_MCD_CDDA
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp3_start_play                 ; -- Begin function mp3_start_play
	.p2align	2
_mp3_start_play:                        ; @mp3_start_play
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #2064
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _mp3_file_pos@GOTPAGE
Lloh4:
	ldr	x25, [x25, _mp3_file_pos@GOTPAGEOFF]
	str	wzr, [x25]
Lloh5:
	adrp	x22, _mp3_file_len@GOTPAGE
Lloh6:
	ldr	x22, [x22, _mp3_file_len@GOTPAGEOFF]
	str	wzr, [x22]
Lloh7:
	adrp	x23, _mp3_current_file@GOTPAGE
Lloh8:
	ldr	x23, [x23, _mp3_current_file@GOTPAGEOFF]
	str	xzr, [x23]
Lloh9:
	adrp	x8, _cdda_out_pos@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cdda_out_pos@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
Lloh12:
	adrp	x24, _decoder_active@GOTPAGE
Lloh13:
	ldr	x24, [x24, _decoder_active@GOTPAGEOFF]
	str	wzr, [x24]
	cbz	x0, LBB0_13
; %bb.1:
Lloh14:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _POPT_EN_MCD_CDDA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _POPT_EN_MCD_CDDA@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_13
; %bb.2:
	mov	x20, x1
	mov	x19, x0
Lloh20:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
	mov	x0, x19
	bl	_ftell
	str	w0, [x22]
	ldr	w1, [x25]
	cmp	w1, #32, lsl #12                ; =131072
	b.ge	LBB0_7
; %bb.3:
Lloh23:
	adrp	x26, _SEEK_SET@GOTPAGE
Lloh24:
	ldr	x26, [x26, _SEEK_SET@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x26]
	mov	x0, x19
	bl	_fseek
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #2048
	mov	x3, x19
	bl	_fread
	cmp	w0, #4
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	add	x0, sp, #8
	mov	x1, x21
	bl	_mp3_find_sync_word
	tbz	w0, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	add	w8, w21, w8
	sub	w1, w8, #3
	str	w1, [x25]
	cmp	w1, #32, lsl #12                ; =131072
	b.lt	LBB0_4
LBB0_7:
	cbz	w20, LBB0_10
LBB0_8:
	ldrsw	x8, [x22]
	ldrsw	x9, [x25]
	sub	x8, x8, x9
	sxtw	x10, w20
	mul	x8, x8, x10
	lsr	x8, x8, #10
	add	w1, w9, w8
	str	w1, [x25]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x25]
	add	w8, w8, w0
	str	w8, [x25]
	cbnz	w20, LBB0_8
LBB0_10:
	ldr	w1, [x25]
LBB0_11:
	mov	x0, x19
	bl	_mp3dec_start
	cbnz	w0, LBB0_13
; %bb.12:
	str	x19, [x23]
	mov	w8, #1
	str	w8, [x24]
	ldr	w2, [x22]
Lloh25:
	adrp	x1, _mp3_file_pos@GOTPAGE
Lloh26:
	ldr	x1, [x1, _mp3_file_pos@GOTPAGEOFF]
	mov	x0, x19
	bl	_mp3dec_decode
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #2064
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_mp3_file_pos,4,2               ; @mp3_file_pos
	.comm	_mp3_file_len,4,2               ; @mp3_file_len
	.comm	_mp3_current_file,8,3           ; @mp3_current_file
	.comm	_cdda_out_pos,8,3               ; @cdda_out_pos
	.comm	_decoder_active,4,2             ; @decoder_active
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EN_MCD_CDDA,4,2           ; @POPT_EN_MCD_CDDA
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
