	.file	"extr_scsp2.c_ScspChangeSoundCore.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ScspChangeSoundCore
	.type	ScspChangeSoundCore, @function
ScspChangeSoundCore:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR SNDCore[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, edi
	test	rdx, rdx
	je	.L2
	xor	eax, eax
	call	[QWORD PTR 48[rdx]]
.L2:
	mov	rax, QWORD PTR SNDCoreList[rip]
	cmp	DWORD PTR SNDCORE_DEFAULT[rip], ebx
	mov	rdx, QWORD PTR [rax]
	je	.L3
	add	rax, 8
	test	rdx, rdx
	jne	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR [rax]
	add	rax, 8
	test	rdx, rdx
	je	.L5
.L9:
	cmp	DWORD PTR [rdx], ebx
	jne	.L7
	mov	QWORD PTR SNDCore[rip], rdx
.L8:
	xor	eax, eax
	call	[QWORD PTR 8[rdx]]
	cmp	eax, -1
	je	.L24
	mov	rdx, QWORD PTR SNDCore[rip]
	xor	eax, eax
	test	rdx, rdx
	je	.L1
.L12:
	xor	eax, eax
	cmp	QWORD PTR scsp_mute_flags[rip], 0
	je	.L13
	call	[QWORD PTR 32[rdx]]
.L14:
	mov	rax, QWORD PTR SNDCore[rip]
	mov	edi, DWORD PTR scsp_volume[rip]
	call	[QWORD PTR 16[rax]]
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	[QWORD PTR 24[rdx]]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR SNDCore[rip], rdx
.L6:
	test	rdx, rdx
	jne	.L8
	lea	rax, SNDDummy[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	QWORD PTR SNDCore[rip], rax
	mov	eax, -1
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdx, QWORD PTR SNDCore[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rax, QWORD PTR SNDCore[rip]
	mov	edi, DWORD PTR YAB_ERR_CANNOTINIT[rip]
	mov	rsi, QWORD PTR 40[rax]
	call	YabSetError@PLT
	lea	rdx, SNDDummy[rip]
	mov	QWORD PTR SNDCore[rip], rdx
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	ScspChangeSoundCore, .-ScspChangeSoundCore
	.comm	scsp_volume,4,4
	.comm	scsp_mute_flags,8,8
	.comm	YAB_ERR_CANNOTINIT,4,4
	.comm	SNDDummy,56,32
	.comm	SNDCoreList,8,8
	.comm	SNDCore,8,8
	.comm	SNDCORE_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_scsp2.c_ScspChangeSoundCore.c"
	.text
	.align	2
	.global	ScspChangeSoundCore
	.syntax unified
	.arm
	.fpu softvfp
	.type	ScspChangeSoundCore, %function
ScspChangeSoundCore:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L26
	mov	r4, r0
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3, #24]
	blx	r3
.L2:
	ldr	r3, .L26+4
	ldr	r2, .L26+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r4
	ldr	r3, [r2]
	bne	.L21
	b	.L3
.L9:
	ldr	r1, [r3]
	cmp	r1, r4
	beq	.L23
	ldr	r3, [r2, #4]!
.L21:
	cmp	r3, #0
	bne	.L9
	ldr	r3, [r5]
.L6:
	cmp	r3, #0
	beq	.L24
	ldr	r3, [r3, #4]
	blx	r3
	cmn	r0, #1
	beq	.L25
.L11:
	ldr	r0, [r5]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	cmp	r3, #0
	ldrne	r3, [r0, #16]
	ldreq	r3, [r0, #12]
	blx	r3
	ldr	r3, [r5]
	ldr	r2, .L26+16
	ldr	r3, [r3, #8]
	ldr	r0, [r2]
	blx	r3
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	str	r3, [r5]
	b	.L6
.L23:
	str	r3, [r5]
	ldr	r3, [r3, #4]
	blx	r3
	cmn	r0, #1
	bne	.L11
.L25:
	ldr	r2, [r5]
	ldr	r3, .L26+20
	ldr	r1, [r2, #20]
	ldr	r0, [r3]
	bl	YabSetError
	ldr	r0, .L26+24
	str	r0, [r5]
	b	.L12
.L24:
	ldr	r3, .L26+24
	mvn	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L27:
	.align	2
.L26:
	.word	SNDCore
	.word	SNDCORE_DEFAULT
	.word	SNDCoreList
	.word	scsp_mute_flags
	.word	scsp_volume
	.word	YAB_ERR_CANNOTINIT
	.word	SNDDummy
	.size	ScspChangeSoundCore, .-ScspChangeSoundCore
	.comm	scsp_volume,4,4
	.comm	scsp_mute_flags,4,4
	.comm	YAB_ERR_CANNOTINIT,4,4
	.comm	SNDDummy,28,4
	.comm	SNDCoreList,4,4
	.comm	SNDCore,4,4
	.comm	SNDCORE_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
