	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScspChangeSoundCore            ## -- Begin function ScspChangeSoundCore
	.p2align	4, 0x90
_ScspChangeSoundCore:                   ## @ScspChangeSoundCore
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_SNDCore@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	*48(%rcx)
LBB0_2:
	movq	_SNDCORE_DEFAULT@GOTPCREL(%rip), %rdx
	movq	_SNDCoreList@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	cmpl	%ebx, (%rdx)
	jne	LBB0_3
## %bb.5:
	movq	%rcx, (%r14)
	testq	%rcx, %rcx
	jne	LBB0_9
	jmp	LBB0_13
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.4:
	addq	$8, %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rcx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rcx
	addq	$8, %rax
	testq	%rcx, %rcx
	jne	LBB0_7
LBB0_11:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_13:
	movq	_SNDDummy@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movl	$-1, %ebx
	jmp	LBB0_16
LBB0_8:
	movq	%rcx, (%r14)
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	*8(%rcx)
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.14:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	jne	LBB0_15
	jmp	LBB0_16
LBB0_10:
	movq	_YAB_ERR_CANNOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	40(%rax), %rsi
	callq	_YabSetError
	movq	_SNDDummy@GOTPCREL(%rip), %rcx
	movq	%rcx, (%r14)
LBB0_15:
	movq	_scsp_mute_flags@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpq	$0, (%rax)
	setne	%dl
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	*24(%rcx,%rdx,8)
	movq	(%r14), %rax
	movq	_scsp_volume@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	callq	*16(%rax)
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDCore,8,3                    ## @SNDCore
	.comm	_SNDCORE_DEFAULT,4,2            ## @SNDCORE_DEFAULT
	.comm	_SNDCoreList,8,3                ## @SNDCoreList
	.comm	_SNDDummy,56,3                  ## @SNDDummy
	.comm	_YAB_ERR_CANNOTINIT,4,2         ## @YAB_ERR_CANNOTINIT
	.comm	_scsp_mute_flags,8,3            ## @scsp_mute_flags
	.comm	_scsp_volume,4,2                ## @scsp_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScspChangeSoundCore            ; -- Begin function ScspChangeSoundCore
	.p2align	2
_ScspChangeSoundCore:                   ; @ScspChangeSoundCore
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _SNDCore@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SNDCore@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8, #48]
	blr	x8
LBB0_2:
Lloh2:
	adrp	x8, _SNDCORE_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDCORE_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
Lloh5:
	adrp	x8, _SNDCoreList@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDCoreList@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x8]
	ldr	x8, [x9]
	cmp	w10, w19
	b.ne	LBB0_4
; %bb.3:
	str	x8, [x20]
	cbnz	x8, LBB0_11
	b	LBB0_9
LBB0_4:
	cbz	x8, LBB0_8
; %bb.5:
	add	x9, x9, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	cmp	w10, w19
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x9], #8
	cbnz	x8, LBB0_6
LBB0_8:
	ldr	x8, [x20]
	cbnz	x8, LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _SNDDummy@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SNDDummy@GOTPAGEOFF]
	str	x8, [x20]
	mov	w0, #-1
	b	LBB0_16
LBB0_10:
	str	x8, [x20]
LBB0_11:
	ldr	x8, [x8, #8]
	blr	x8
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x20]
	cbnz	x8, LBB0_14
	b	LBB0_15
LBB0_13:
Lloh10:
	adrp	x8, _YAB_ERR_CANNOTINIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _YAB_ERR_CANNOTINIT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x1, [x8, #40]
	bl	_YabSetError
Lloh13:
	adrp	x8, _SNDDummy@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SNDDummy@GOTPAGEOFF]
	str	x8, [x20]
LBB0_14:
Lloh15:
	adrp	x9, _scsp_mute_flags@GOTPAGE
Lloh16:
	ldr	x9, [x9, _scsp_mute_flags@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x10, x8, #24
	add	x8, x8, #32
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	x8, [x8]
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
Lloh18:
	adrp	x9, _scsp_volume@GOTPAGE
Lloh19:
	ldr	x9, [x9, _scsp_volume@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
	blr	x8
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDCore,8,3                    ; @SNDCore
	.comm	_SNDCORE_DEFAULT,4,2            ; @SNDCORE_DEFAULT
	.comm	_SNDCoreList,8,3                ; @SNDCoreList
	.comm	_SNDDummy,56,3                  ; @SNDDummy
	.comm	_YAB_ERR_CANNOTINIT,4,2         ; @YAB_ERR_CANNOTINIT
	.comm	_scsp_mute_flags,8,3            ; @scsp_mute_flags
	.comm	_scsp_volume,4,2                ; @scsp_volume
.subsections_via_symbols
