	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function SNDDXSetVolume
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
LCPI0_1:
	.quad	0x409f400000000000              ## double 2000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SNDDXSetVolume
	.p2align	4, 0x90
_SNDDXSetVolume:                        ## @SNDDXSetVolume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	cvtsi2sd	%edi, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	callq	_log10
	mulsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_DSBVOLUME_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_3:
	movq	_soundvolume@GOTPCREL(%rip), %rax
	movq	%rsi, (%rax)
	movq	_issoundmuted@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:
	popq	%rbp
	retq
LBB0_5:
	movq	_lpDSB2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_IDirectSoundBuffer8_SetVolume  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSBVOLUME_MIN,8,3              ## @DSBVOLUME_MIN
	.comm	_soundvolume,8,3                ## @soundvolume
	.comm	_issoundmuted,4,2               ## @issoundmuted
	.comm	_lpDSB2,4,2                     ## @lpDSB2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDXSetVolume                 ; -- Begin function SNDDXSetVolume
	.p2align	2
_SNDDXSetVolume:                        ; @SNDDXSetVolume
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w0, LBB0_2
; %bb.1:
	scvtf	d0, w0
	mov	x8, #4636737291354636288
	fmov	d1, x8
	fdiv	d0, d0, d1
	bl	_log10
	mov	x8, #70368744177664
	movk	x8, #16543, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvtzs	x1, d0
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _DSBVOLUME_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSBVOLUME_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
LBB0_3:
Lloh3:
	adrp	x8, _soundvolume@GOTPAGE
Lloh4:
	ldr	x8, [x8, _soundvolume@GOTPAGEOFF]
Lloh5:
	str	x1, [x8]
Lloh6:
	adrp	x8, _issoundmuted@GOTPAGE
Lloh7:
	ldr	x8, [x8, _issoundmuted@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh9:
	adrp	x8, _lpDSB2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _lpDSB2@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_IDirectSoundBuffer8_SetVolume
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DSBVOLUME_MIN,8,3              ; @DSBVOLUME_MIN
	.comm	_soundvolume,8,3                ; @soundvolume
	.comm	_issoundmuted,4,2               ; @issoundmuted
	.comm	_lpDSB2,4,2                     ; @lpDSB2
.subsections_via_symbols
