	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Main940                        ## -- Begin function Main940
	.p2align	4, 0x90
_Main940:                               ## @Main940
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_shared_data@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addq	$16, %rax
	movq	_ym2612_940@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movq	_shared_ctl@GOTPCREL(%rip), %r13
	leaq	LJTI0_0(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rax), %rcx
	movl	$65535, (%rcx)                  ## imm = 0xFFFF
	movq	8(%rax), %rcx
	movl	$65535, (%rcx)                  ## imm = 0xFFFF
	movl	28(%rax), %esi
	movl	32(%rax), %edi
	callq	_YM2612Init_
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_MP3InitDecoder
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	incl	24(%rax)
	xorl	%eax, %eax
	callq	_dcache_clean
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_wait_get_job
	movl	%eax, %ebx
	movq	(%r13), %rax
	movl	%ebx, (%rax)
	leal	-128(%rbx), %ecx
	cmpl	$9, %ecx
	ja	LBB0_15
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r14,%rcx,4), %rcx
	addq	%r14, %rcx
	jmpq	*%rcx
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ym_update
	jmp	LBB0_15
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_YM2612ResetChip_
	jmp	LBB0_15
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_YM2612PicoStateSave2
	movq	(%r13), %rax
	movq	8(%rax), %rdi
	movq	(%r12), %rax
	movq	(%rax), %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	__memcpy
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_ym_flush_writes
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx), %rdi
	movq	8(%rax), %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	__memcpy
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_YM2612PicoStateLoad2
	jmp	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_YM2612PicoStateLoad_
	jmp	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	callq	_MP3FreeDecoder
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_mp3_decode
	jmp	LBB0_15
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_drain_wb
	xorl	%eax, %eax
	callq	_dcache_clean_flush
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_shared_data,8,3                ## @shared_data
	.comm	_ym2612_940,8,3                 ## @ym2612_940
	.comm	_shared_ctl,8,3                 ## @shared_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Main940                        ; -- Begin function Main940
	.p2align	2
_Main940:                               ; @Main940
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	w19, #0
Lloh0:
	adrp	x21, _shared_data@GOTPAGE
Lloh1:
	ldr	x21, [x21, _shared_data@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x20, [x8], #16
Lloh2:
	adrp	x22, _ym2612_940@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ym2612_940@GOTPAGEOFF]
	str	x8, [x22]
Lloh4:
	adrp	x23, _shared_ctl@GOTPAGE
Lloh5:
	ldr	x23, [x23, _shared_ctl@GOTPAGEOFF]
Lloh6:
	adrp	x24, lJTI0_0@PAGE
Lloh7:
	add	x24, x24, lJTI0_0@PAGEOFF
	mov	w25, #65535
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x10, x9, [x8, #8]
	str	w25, [x9]
	str	w25, [x10]
	ldp	w1, w0, [x8, #28]
	bl	_YM2612Init_
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_MP3InitDecoder
	ldr	x8, [x21]
	str	x0, [x8, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	ldr	w9, [x8, #24]
	add	w9, w9, #1
	str	w9, [x8, #24]
	bl	_dcache_clean
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_wait_get_job
	mov	x19, x0
	ldr	x8, [x23]
	str	w0, [x8]
	sub	w9, w0, #128
	cmp	w9, #9
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x10, LBB0_1
	ldrb	w11, [x24, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_ym_update
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_YM2612ResetChip_
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	mov	w1, #0
	bl	_YM2612PicoStateSave2
	ldr	x8, [x23]
	ldr	x0, [x8, #8]
	ldr	x8, [x22]
	ldr	x1, [x8]
	mov	w2, #512
	bl	__memcpy
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_ym_flush_writes
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x22]
	ldr	x0, [x9]
	ldr	x1, [x8, #8]
	mov	w2, #512
	bl	__memcpy
	mov	w0, #0
	mov	w1, #0
	bl	_YM2612PicoStateLoad2
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_YM2612PicoStateLoad_
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_MP3FreeDecoder
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_mp3_decode
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_drain_wb
	bl	_dcache_clean_flush
	b	LBB0_3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_15-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
                                        ; -- End function
	.comm	_shared_data,8,3                ; @shared_data
	.comm	_ym2612_940,8,3                 ; @ym2612_940
	.comm	_shared_ctl,8,3                 ; @shared_ctl
.subsections_via_symbols
