	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sound_Initialise               ## -- Begin function Sound_Initialise
	.p2align	4, 0x90
_Sound_Initialise:                      ## @Sound_Initialise
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	xorl	%eax, %eax
	callq	_audsrv_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_audsrv_get_error_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_Log_print
	jmp	LBB0_3
LBB0_2:
	movabsq	$189408057753608, %rax          ## imm = 0xAC4400000008
	movq	%rax, -16(%rbp)
	movl	$1, -8(%rbp)
	leaq	-16(%rbp), %rdi
	callq	_audsrv_set_format
	movq	_MAX_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_audsrv_set_volume
	movq	_POKEYSND_FREQ_17_EXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$44100, %esi                    ## imm = 0xAC44
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_POKEYSND_Init
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize audsrv: %s"

	.comm	_MAX_VOLUME,4,2                 ## @MAX_VOLUME
	.comm	_POKEYSND_FREQ_17_EXACT,4,2     ## @POKEYSND_FREQ_17_EXACT
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function Sound_Initialise
lCPI0_0:
	.long	8                               ; 0x8
	.long	44100                           ; 0xac44
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Sound_Initialise
	.p2align	2
_Sound_Initialise:                      ; @Sound_Initialise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	bl	_audsrv_init
	cbz	x0, LBB0_2
; %bb.1:
	bl	_audsrv_get_error_string
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_print
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp]
	mov	w8, #1
	str	w8, [sp, #8]
	mov	x0, sp
	bl	_audsrv_set_format
Lloh4:
	adrp	x8, _MAX_VOLUME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_VOLUME@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_audsrv_set_volume
Lloh7:
	adrp	x8, _POKEYSND_FREQ_17_EXACT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _POKEYSND_FREQ_17_EXACT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	w1, #44100
	mov	w2, #1
	mov	w3, #0
	bl	_POKEYSND_Init
LBB0_3:
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize audsrv: %s"

	.comm	_MAX_VOLUME,4,2                 ; @MAX_VOLUME
	.comm	_POKEYSND_FREQ_17_EXACT,4,2     ; @POKEYSND_FREQ_17_EXACT
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
