	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_local_decode                   ## -- Begin function local_decode
	.p2align	4, 0x90
_local_decode:                          ## @local_decode
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_shared_ctl@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	(%rax), %rbx
	movl	4(%rax), %r14d
	subl	%ebx, %r14d
	jle	LBB0_11
## %bb.1:
	movq	_mp3_data@GOTPCREL(%rip), %r12
	addq	(%r12), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_MP3FindSyncWord
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%eax, %ecx
	addq	%rcx, %rbx
	movq	%rbx, -40(%rbp)
	subl	%eax, %r14d
	movl	%r14d, -44(%rbp)
	movq	_shared_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	xorl	%r8d, %r8d
	callq	_MP3Decode
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_ERR_MP3_INDATA_UNDERFLOW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
LBB0_2:
	movq	(%r15), %rcx
	movl	4(%rcx), %eax
	jmp	LBB0_10
LBB0_4:
	movq	(%r15), %rcx
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %ecx
	addl	$12, %ecx
	cmpl	$6, %ecx
	ja	LBB0_8
## %bb.7:
	incq	-40(%rbp)
LBB0_8:
	movq	(%r15), %rcx
	incl	20(%rcx)
	movl	%eax, 16(%rcx)
LBB0_9:
	movl	-40(%rbp), %eax
	subl	(%r12), %eax
LBB0_10:
	movl	%eax, (%rcx)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_shared_ctl,8,3                 ## @shared_ctl
	.comm	_mp3_data,8,3                   ## @mp3_data
	.comm	_shared_data,8,3                ## @shared_data
	.comm	_ERR_MP3_INDATA_UNDERFLOW,4,2   ## @ERR_MP3_INDATA_UNDERFLOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_local_decode                   ; -- Begin function local_decode
	.p2align	2
_local_decode:                          ; @local_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x22, _shared_ctl@GOTPAGE
Lloh1:
	ldr	x22, [x22, _shared_ctl@GOTPAGEOFF]
	ldr	x9, [x22]
	ldp	w8, w9, [x9]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	w19, w9, w8
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.1:
Lloh2:
	adrp	x21, _mp3_data@GOTPAGE
Lloh3:
	ldr	x21, [x21, _mp3_data@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x20, x9, x8
	mov	x0, x20
	mov	x1, x19
	bl	_MP3FindSyncWord
	tbnz	w0, #31, LBB0_4
; %bb.2:
	add	x8, x20, w0, uxtw
	str	x8, [sp, #8]
	sub	w8, w19, w0
	str	w8, [sp, #4]
Lloh4:
	adrp	x8, _shared_data@GOTPAGE
Lloh5:
	ldr	x8, [x8, _shared_data@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x9, [x9, #8]
	ldr	w3, [x8, x9, lsl #2]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	w4, #0
	bl	_MP3Decode
	cbz	w0, LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _ERR_MP3_INDATA_UNDERFLOW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_MP3_INDATA_UNDERFLOW@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_4:
	ldr	x8, [x22]
	ldr	w9, [x8, #4]
	b	LBB0_10
LBB0_5:
	ldr	x8, [x22]
	b	LBB0_9
LBB0_6:
	add	w8, w0, #12
	cmp	w8, #6
	b.hi	LBB0_8
; %bb.7:
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [sp, #8]
LBB0_8:
	ldr	x8, [x22]
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	stp	w0, w9, [x8, #16]
LBB0_9:
	ldr	w9, [sp, #8]
	ldr	w10, [x21]
	sub	w9, w9, w10
LBB0_10:
	str	w9, [x8]
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_shared_ctl,8,3                 ; @shared_ctl
	.comm	_mp3_data,8,3                   ; @mp3_data
	.comm	_shared_data,8,3                ; @shared_data
	.comm	_ERR_MP3_INDATA_UNDERFLOW,4,2   ; @ERR_MP3_INDATA_UNDERFLOW
.subsections_via_symbols
