	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r12d
	movl	$1, %ecx
	cmpl	$2, %r12d
	jl	LBB0_23
## %bb.1:
	movq	%rsi, %rbx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %r14
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	incl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, (%rbx,%rcx,8)
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movq	_sound_enabled@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	cmpl	%r12d, %r13d
	jge	LBB0_22
## %bb.35:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r13), %r14d
	cmpl	%r12d, %r14d
	jge	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_Util_sscandec
	movq	_dsprate@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_RATE50KHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SNDBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	jmp	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RATE25KHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SNDBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	jmp	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RATE12KHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_dsprate@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_SNDBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_sndbufsize@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%r14d, %r13d
	jmp	LBB0_19
LBB0_20:
	movslq	%r13d, %rax
	movq	(%rbx,%rax,8), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_sound_enabled@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_34
LBB0_22:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	testl	%r15d, %r15d
	je	LBB0_25
## %bb.24:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_sound_enabled@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_33:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_34:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_sound_enabled@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_33
## %bb.26:
	leaq	-64(%rbp), %rsi
	movl	$68, %edi
	callq	_get_cookie
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	testb	$2, -64(%rbp)
	jne	LBB0_29
LBB0_28:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_33
LBB0_29:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_33
LBB0_31:
	movq	_sndbufsize@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	addl	%edi, %edi
	xorl	%esi, %esi
	callq	_Mxalloc
	movq	_dsp_buffer1@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_36
## %bb.32:
	movslq	(%r14), %rdx
	movq	%rax, %rcx
	addq	%rdx, %rcx
	movq	_dsp_endbuf1@GOTPCREL(%rip), %rsi
	movq	%rcx, (%rsi)
	movq	_dsp_buffer2@GOTPCREL(%rip), %rbx
	movq	%rcx, (%rbx)
	addq	%rdx, %rcx
	movq	_dsp_endbuf2@GOTPCREL(%rip), %rsi
	movq	%rcx, (%rsi)
	movq	%rax, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	(%rbx), %rdi
	movl	(%r14), %edx
	movl	$127, %esi
	callq	_memset
	movq	_POKEYSND_FREQ_17_EXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dsprate@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_POKEYSND_Init
	movq	_MFP_IRQ_on@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Supexec
	jmp	LBB0_33
LBB0_36:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-sound"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_sound_enabled,4,2              ## @sound_enabled
L_.str.1:                               ## @.str.1
	.asciz	"-nosound"

L_.str.2:                               ## @.str.2
	.asciz	"-dsprate"

	.comm	_dsprate,8,3                    ## @dsprate
	.comm	_RATE50KHZ,8,3                  ## @RATE50KHZ
	.comm	_SNDBUFSIZE,4,2                 ## @SNDBUFSIZE
	.comm	_sndbufsize,4,2                 ## @sndbufsize
	.comm	_RATE25KHZ,8,3                  ## @RATE25KHZ
	.comm	_RATE12KHZ,8,3                  ## @RATE12KHZ
L_.str.3:                               ## @.str.3
	.asciz	"-help"

L_.str.4:                               ## @.str.4
	.asciz	"\t-sound           Enable sound\n\t-nosound         Disable sound\n\t-dsprate <rate>  Set sample rate in Hz"

L_.str.5:                               ## @.str.5
	.asciz	"Missing argument for '%s'"

	.comm	_dsp_buffer1,8,3                ## @dsp_buffer1
	.comm	_dsp_endbuf1,8,3                ## @dsp_endbuf1
	.comm	_dsp_buffer2,8,3                ## @dsp_buffer2
	.comm	_dsp_endbuf2,8,3                ## @dsp_endbuf2
	.comm	_POKEYSND_FREQ_17_EXACT,4,2     ## @POKEYSND_FREQ_17_EXACT
	.comm	_MFP_IRQ_on,4,2                 ## @MFP_IRQ_on
L_str:                                  ## @str
	.asciz	"can't allocate sound buffer"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sound_Initialise               ; -- Begin function Sound_Initialise
	.p2align	2
_Sound_Initialise:                      ; @Sound_Initialise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x26, _FALSE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	ldr	w28, [x26]
	ldr	w24, [x0]
	cmp	w24, #2
	b.lt	LBB0_22
; %bb.1:
	mov	x20, x1
	mov	w27, #1
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	str	w28, [sp, #20]                  ; 4-byte Folded Spill
	mov	w23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, w23, sxtw #3]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x25, w23
	ldr	x0, [x20, x25, lsl #3]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x25, lsl #3]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x25, lsl #3]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Log_print
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, x25, lsl #3]
	str	x8, [x20, w27, sxtw #3]
	add	w27, w27, #1
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh18:
	adrp	x9, _sound_enabled@GOTPAGE
Lloh19:
	ldr	x9, [x9, _sound_enabled@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w28, LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	ldr	w24, [x19]
	cmp	w23, w24
	b.ge	LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w28, [x26]
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	cmp	w25, w24
	b.ge	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x25, lsl #3]
	bl	_Util_sscandec
Lloh21:
	adrp	x8, _dsprate@GOTPAGE
Lloh22:
	ldr	x8, [x8, _dsprate@GOTPAGEOFF]
Lloh23:
	str	x0, [x8]
Lloh24:
	adrp	x8, _RATE50KHZ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RATE50KHZ@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh27:
	adrp	x8, _SNDBUFSIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SNDBUFSIZE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh30:
	adrp	x8, _TRUE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh32:
	ldr	w28, [x8]
	b	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh33:
	adrp	x8, _RATE25KHZ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RATE25KHZ@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh36:
	adrp	x8, _SNDBUFSIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SNDBUFSIZE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh39:
	adrp	x8, _RATE12KHZ@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RATE12KHZ@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
Lloh42:
	adrp	x9, _dsprate@GOTPAGE
Lloh43:
	ldr	x9, [x9, _dsprate@GOTPAGEOFF]
Lloh44:
	str	x8, [x9]
Lloh45:
	adrp	x8, _SNDBUFSIZE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SNDBUFSIZE@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh48:
	adrp	x9, _sndbufsize@GOTPAGE
Lloh49:
	ldr	x9, [x9, _sndbufsize@GOTPAGEOFF]
Lloh50:
	str	w8, [x9]
	mov	x23, x25
	b	LBB0_11
LBB0_22:
	mov	w27, #1
	str	w27, [x19]
	cbz	w28, LBB0_28
LBB0_23:
	ldr	w8, [x26]
Lloh51:
	adrp	x9, _sound_enabled@GOTPAGE
Lloh52:
	ldr	x9, [x9, _sound_enabled@GOTPAGEOFF]
Lloh53:
	str	w8, [x9]
LBB0_24:
Lloh54:
	adrp	x8, _TRUE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	b	LBB0_26
LBB0_25:
	ldr	x8, [x20, w23, sxtw #3]
	str	x8, [sp]
Lloh57:
	adrp	x0, l_.str.5@PAGE
Lloh58:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Log_print
	ldr	w0, [x26]
Lloh59:
	adrp	x8, _sound_enabled@GOTPAGE
Lloh60:
	ldr	x8, [x8, _sound_enabled@GOTPAGEOFF]
Lloh61:
	str	w0, [x8]
LBB0_26:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_27:
	ldr	w28, [sp, #20]                  ; 4-byte Folded Reload
	str	w27, [x19]
	cbnz	w28, LBB0_23
LBB0_28:
Lloh62:
	adrp	x19, _sound_enabled@GOTPAGE
Lloh63:
	ldr	x19, [x19, _sound_enabled@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_24
; %bb.29:
	add	x1, sp, #24
	mov	w0, #68
	bl	_get_cookie
	cbz	x0, LBB0_31
; %bb.30:
	ldrb	w8, [sp, #24]
	tbnz	w8, #1, LBB0_32
LBB0_31:
	ldr	w8, [x26]
	str	w8, [x19]
	cbnz	w8, LBB0_33
	b	LBB0_24
LBB0_32:
	ldr	w8, [x19]
	cbz	w8, LBB0_24
LBB0_33:
Lloh64:
	adrp	x19, _sndbufsize@GOTPAGE
Lloh65:
	ldr	x19, [x19, _sndbufsize@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	w0, w8, #1
	mov	w1, #0
	bl	_Mxalloc
Lloh66:
	adrp	x8, _dsp_buffer1@GOTPAGE
Lloh67:
	ldr	x8, [x8, _dsp_buffer1@GOTPAGEOFF]
Lloh68:
	str	x0, [x8]
	cbz	x0, LBB0_35
; %bb.34:
	ldrsw	x2, [x19]
Lloh69:
	adrp	x8, _dsp_endbuf1@GOTPAGE
Lloh70:
	ldr	x8, [x8, _dsp_endbuf1@GOTPAGEOFF]
	add	x9, x0, x2
	add	x10, x9, x2
Lloh71:
	str	x9, [x8]
Lloh72:
	adrp	x20, _dsp_buffer2@GOTPAGE
Lloh73:
	ldr	x20, [x20, _dsp_buffer2@GOTPAGEOFF]
	str	x9, [x20]
Lloh74:
	adrp	x8, _dsp_endbuf2@GOTPAGE
Lloh75:
	ldr	x8, [x8, _dsp_endbuf2@GOTPAGEOFF]
Lloh76:
	str	x10, [x8]
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
	ldr	x0, [x20]
	ldr	w2, [x19]
	mov	w1, #127
	bl	_memset
Lloh77:
	adrp	x8, _POKEYSND_FREQ_17_EXACT@GOTPAGE
Lloh78:
	ldr	x8, [x8, _POKEYSND_FREQ_17_EXACT@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
Lloh80:
	adrp	x8, _dsprate@GOTPAGE
Lloh81:
	ldr	x8, [x8, _dsprate@GOTPAGEOFF]
Lloh82:
	ldr	x1, [x8]
	mov	w2, #1
	mov	w3, #0
	bl	_POKEYSND_Init
Lloh83:
	adrp	x8, _MFP_IRQ_on@GOTPAGE
Lloh84:
	ldr	x8, [x8, _MFP_IRQ_on@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
	bl	_Supexec
	b	LBB0_24
LBB0_35:
Lloh86:
	adrp	x0, l_str@PAGE
Lloh87:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotStr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotStr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotStr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotStr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh86, Lloh87
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-sound"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_sound_enabled,4,2              ; @sound_enabled
l_.str.1:                               ; @.str.1
	.asciz	"-nosound"

l_.str.2:                               ; @.str.2
	.asciz	"-dsprate"

	.comm	_dsprate,8,3                    ; @dsprate
	.comm	_RATE50KHZ,8,3                  ; @RATE50KHZ
	.comm	_SNDBUFSIZE,4,2                 ; @SNDBUFSIZE
	.comm	_sndbufsize,4,2                 ; @sndbufsize
	.comm	_RATE25KHZ,8,3                  ; @RATE25KHZ
	.comm	_RATE12KHZ,8,3                  ; @RATE12KHZ
l_.str.3:                               ; @.str.3
	.asciz	"-help"

l_.str.4:                               ; @.str.4
	.asciz	"\t-sound           Enable sound\n\t-nosound         Disable sound\n\t-dsprate <rate>  Set sample rate in Hz"

l_.str.5:                               ; @.str.5
	.asciz	"Missing argument for '%s'"

	.comm	_dsp_buffer1,8,3                ; @dsp_buffer1
	.comm	_dsp_endbuf1,8,3                ; @dsp_endbuf1
	.comm	_dsp_buffer2,8,3                ; @dsp_buffer2
	.comm	_dsp_endbuf2,8,3                ; @dsp_endbuf2
	.comm	_POKEYSND_FREQ_17_EXACT,4,2     ; @POKEYSND_FREQ_17_EXACT
	.comm	_MFP_IRQ_on,4,2                 ; @MFP_IRQ_on
l_str:                                  ; @str
	.asciz	"can't allocate sound buffer"

.subsections_via_symbols
