	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_audio_Stop                  ## -- Begin function gx_audio_Stop
	.p2align	4, 0x90
_gx_audio_Stop:                         ## @gx_audio_Stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_DSP_Unhalt
	xorl	%eax, %eax
	callq	_ASND_Init
	xorl	%edi, %edi
	callq	_ASND_Pause
	movq	_Bg_music_ogg@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_Shutdown@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	callq	_PauseOgg
	movq	(%rbx), %rdi
	movq	_Bg_music_ogg_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OGG_INFINITE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_PlayOgg
	movq	_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1374389535, %rax, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$37, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_SetVolumeOgg                   ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Bg_music_ogg,8,3               ## @Bg_music_ogg
	.comm	_Shutdown,4,2                   ## @Shutdown
	.comm	_Bg_music_ogg_size,4,2          ## @Bg_music_ogg_size
	.comm	_OGG_INFINITE_TIME,4,2          ## @OGG_INFINITE_TIME
	.comm	_config,8,3                     ## @config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_audio_Stop                  ; -- Begin function gx_audio_Stop
	.p2align	2
_gx_audio_Stop:                         ; @gx_audio_Stop
	.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
	bl	_DSP_Unhalt
	bl	_ASND_Init
	mov	w0, #0
	bl	_ASND_Pause
Lloh0:
	adrp	x19, _Bg_music_ogg@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Bg_music_ogg@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _Shutdown@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Shutdown@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #0
	bl	_PauseOgg
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _Bg_music_ogg_size@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Bg_music_ogg_size@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _OGG_INFINITE_TIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OGG_INFINITE_TIME@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	w2, #0
	bl	_PlayOgg
Lloh11:
	adrp	x8, _config@GOTPAGE
Lloh12:
	ldr	x8, [x8, _config@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	w9, w8, #8
	sub	w8, w9, w8
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SetVolumeOgg
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Bg_music_ogg,8,3               ; @Bg_music_ogg
	.comm	_Shutdown,4,2                   ; @Shutdown
	.comm	_Bg_music_ogg_size,4,2          ; @Bg_music_ogg_size
	.comm	_OGG_INFINITE_TIME,4,2          ; @OGG_INFINITE_TIME
	.comm	_config,8,3                     ; @config
.subsections_via_symbols
