	.file	"extr_sound.c_Sound_Initialise.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"-sound"
.LC1:
	.string	"-nosound"
.LC2:
	.string	"-dsprate"
.LC3:
	.string	"-audio16"
.LC4:
	.string	"-audio8"
.LC5:
	.string	"snd-fragsize"
.LC6:
	.string	"-help"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"\t-sound               Enable sound"
	.align 8
.LC8:
	.string	"\t-nosound             Disable sound"
	.align 8
.LC9:
	.string	"\t-dsprate <rate>      Set sound output frequency in Hz"
	.align 8
.LC10:
	.string	"\t-audio16             Set sound output format to 16-bit"
	.align 8
.LC11:
	.string	"\t-audio8              Set sound output format to 8-bit"
	.align 8
.LC12:
	.string	"\t-snd-fragsize <num>  Set size of the hardware sound buffer (fragment size)"
	.section	.rodata.str1.1
.LC13:
	.string	"Missing argument for '%s'"
.LC14:
	.string	"Invalid argument for '%s'"
	.text
	.p2align 4
	.globl	Sound_Initialise
	.type	Sound_Initialise, @function
Sound_Initialise:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	ebp, DWORD PTR FALSE[rip]
	mov	r13d, DWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rdi
	mov	QWORD PTR [rsp], rsi
	mov	DWORD PTR 28[rsp], ebp
	mov	DWORD PTR 24[rsp], 1
	cmp	r13d, 1
	jle	.L2
	mov	r14d, 1
	lea	r15, .LC0[rip]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L27:
	mov	DWORD PTR Sound_enabled[rip], 1
	mov	eax, ebp
.L4:
	test	eax, eax
	jne	.L25
.L14:
	test	ebp, ebp
	jne	.L26
	mov	rax, QWORD PTR 8[rsp]
	add	r14d, 1
	mov	r13d, DWORD PTR [rax]
	cmp	r13d, r14d
	jle	.L2
	mov	ebp, DWORD PTR FALSE[rip]
.L17:
	mov	rax, QWORD PTR [rsp]
	movsx	rbx, r14d
	mov	rsi, r15
	sal	rbx, 3
	lea	r12, [rax+rbx]
	mov	rdi, QWORD PTR [r12]
	call	strcmp@PLT
	test	rax, rax
	je	.L27
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L5
	mov	DWORD PTR Sound_enabled[rip], 0
	mov	eax, ebp
	test	eax, eax
	je	.L14
.L25:
	mov	rax, QWORD PTR [rsp]
	movsx	rdx, r14d
	lea	rdi, .LC13[rip]
	mov	rsi, QWORD PTR [rax+rdx*8]
	xor	eax, eax
	call	Log_print@PLT
	mov	eax, DWORD PTR FALSE[rip]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r12]
	lea	eax, 1[r14]
	lea	rsi, .LC2[rip]
	mov	DWORD PTR 20[rsp], eax
	call	strcmp@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR TRUE[rip]
	cmp	DWORD PTR 20[rsp], r13d
	jge	.L4
	mov	rax, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 8[rax+rbx]
	call	Util_sscandec@PLT
	mov	r14d, DWORD PTR 20[rsp]
	cmp	eax, -1
	mov	DWORD PTR Sound_desired[rip], eax
	mov	eax, ebp
	sete	bpl
	movzx	ebp, bpl
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 24[rsp]
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jne	.L28
.L18:
	mov	eax, DWORD PTR TRUE[rip]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L8
	mov	DWORD PTR Sound_desired[rip+4], 2
	mov	eax, ebp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR [rsp]
	lea	edx, -1[r14]
	lea	rdi, .LC14[rip]
	movsx	rdx, edx
	mov	rsi, QWORD PTR [rax+rdx*8]
	xor	eax, eax
	call	Log_print@PLT
	mov	eax, DWORD PTR FALSE[rip]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR Sound_enabled[rip], eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC4[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L9
	mov	DWORD PTR Sound_desired[rip+4], 1
	mov	eax, ebp
	jmp	.L4
.L9:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC5[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR TRUE[rip]
	cmp	DWORD PTR 20[rsp], r13d
	jge	.L4
	mov	rax, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 8[rax+rbx]
	call	Util_sscandec@PLT
	cmp	eax, -1
	je	.L29
	mov	DWORD PTR Sound_desired[rip+8], eax
	mov	r14d, DWORD PTR 20[rsp]
	mov	eax, ebp
	jmp	.L4
.L10:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC6[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L30
.L13:
	movsx	rax, DWORD PTR 24[rsp]
	mov	rcx, QWORD PTR [r12]
	mov	rsi, QWORD PTR [rsp]
	mov	rdx, rax
	mov	QWORD PTR [rsi+rax*8], rcx
	lea	ecx, 1[rdx]
	mov	eax, ebp
	mov	DWORD PTR 24[rsp], ecx
	jmp	.L4
.L30:
	mov	eax, DWORD PTR TRUE[rip]
	lea	rdi, .LC7[rip]
	mov	DWORD PTR 28[rsp], eax
	xor	eax, eax
	call	Log_print@PLT
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	Log_print@PLT
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	Log_print@PLT
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	Log_print@PLT
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	Log_print@PLT
	lea	rdi, .LC12[rip]
	xor	eax, eax
	call	Log_print@PLT
	jmp	.L13
.L29:
	mov	eax, ebp
	mov	r14d, DWORD PTR 20[rsp]
	mov	ebp, DWORD PTR TRUE[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	Sound_Initialise, .-Sound_Initialise
	.comm	TRUE,4,4
	.comm	Sound_latency,8,8
	.comm	Sound_enabled,4,4
	.comm	Sound_desired,12,8
	.comm	FALSE,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_sound.c_Sound_Initialise.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"-sound\000"
	.align	2
.LC1:
	.ascii	"-nosound\000"
	.align	2
.LC2:
	.ascii	"-dsprate\000"
	.align	2
.LC3:
	.ascii	"-audio16\000"
	.align	2
.LC4:
	.ascii	"-audio8\000"
	.align	2
.LC5:
	.ascii	"snd-fragsize\000"
	.align	2
.LC6:
	.ascii	"-help\000"
	.align	2
.LC7:
	.ascii	"\011-sound               Enable sound\000"
	.align	2
.LC8:
	.ascii	"\011-nosound             Disable sound\000"
	.align	2
.LC9:
	.ascii	"\011-dsprate <rate>      Set sound output frequency"
	.ascii	" in Hz\000"
	.align	2
.LC10:
	.ascii	"\011-audio16             Set sound output format to"
	.ascii	" 16-bit\000"
	.align	2
.LC11:
	.ascii	"\011-audio8              Set sound output format to"
	.ascii	" 8-bit\000"
	.align	2
.LC12:
	.ascii	"\011-snd-fragsize <num>  Set size of the hardware s"
	.ascii	"ound buffer (fragment size)\000"
	.align	2
.LC13:
	.ascii	"Missing argument for '%s'\000"
	.align	2
.LC14:
	.ascii	"Invalid argument for '%s'\000"
	.text
	.align	2
	.global	Sound_Initialise
	.syntax unified
	.arm
	.fpu softvfp
	.type	Sound_Initialise, %function
Sound_Initialise:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L32
	ldr	r6, [r0]
	ldr	r4, [r7]
	sub	sp, sp, #20
	cmp	r6, #1
	mov	fp, r0
	str	r4, [sp, #12]
	ble	.L19
	mov	r10, #1
	mov	r5, r1
	mov	fp, r10
	str	r10, [sp, #8]
	ldr	r8, .L32+4
	mov	r10, r0
	b	.L17
.L28:
	mov	r0, #1
	mov	r1, r4
	ldr	r2, .L32+8
	str	r0, [r2]
.L4:
	cmp	r1, #0
	bne	.L26
.L14:
	cmp	r4, #0
	bne	.L27
	ldr	r6, [r10]
	add	fp, fp, #1
	cmp	r6, fp
	ble	.L23
	ldr	r4, [r7]
.L17:
	ldr	r9, [r5, fp, lsl #2]
	mov	r1, r8
	mov	r0, r9
	bl	strcmp
	add	r3, r5, fp, lsl #2
	cmp	r0, #0
	str	r3, [sp]
	beq	.L28
	mov	r0, r9
	ldr	r1, .L32+12
	bl	strcmp
	cmp	r0, #0
	bne	.L5
	mov	r1, r4
	ldr	r2, .L32+8
	cmp	r1, #0
	str	r0, [r2]
	beq	.L14
.L26:
	ldr	r1, [r5, fp, lsl #2]
	ldr	r0, .L32+16
	bl	Log_print
	ldr	r0, [r7]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r0, r9
	ldr	r1, .L32+20
	bl	strcmp
	add	r3, fp, #1
	cmp	r0, #0
	str	r3, [sp, #4]
	bne	.L6
	cmp	r3, r6
	blt	.L29
.L11:
	ldr	r2, .L32+24
	ldr	r1, [r2]
	b	.L4
.L6:
	mov	r0, r9
	ldr	r1, .L32+28
	bl	strcmp
	cmp	r0, #0
	bne	.L8
	mov	r0, #2
	ldr	r2, .L32+32
	mov	r1, r4
	str	r0, [r2, #4]
	b	.L4
.L8:
	mov	r0, r9
	ldr	r1, .L32+36
	bl	strcmp
	cmp	r0, #0
	bne	.L9
	mov	r0, #1
	ldr	r2, .L32+32
	mov	r1, r4
	str	r0, [r2, #4]
	b	.L4
.L9:
	mov	r0, r9
	ldr	r1, .L32+40
	bl	strcmp
	cmp	r0, #0
	beq	.L30
	mov	r0, r9
	ldr	r1, .L32+44
	bl	strcmp
	cmp	r0, #0
	beq	.L31
.L13:
	ldr	r3, [sp, #8]
	mov	r1, r4
	str	r9, [r5, r3, lsl #2]
	add	r3, r3, #1
	str	r3, [sp, #8]
	b	.L4
.L29:
	ldr	r3, [sp]
	ldr	r0, [r3, #4]
	bl	Util_sscandec
	ldr	r2, .L32+32
	cmn	r0, #1
	mov	r1, r4
	ldr	fp, [sp, #4]
	movne	r4, #0
	moveq	r4, #1
	str	r0, [r2]
	b	.L4
.L27:
	sub	r3, fp, #1
	ldr	r1, [r5, r3, lsl #2]
	ldr	r0, .L32+48
	bl	Log_print
	ldr	r0, [r7]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	mov	fp, r10
.L2:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ldr	r3, [sp, #8]
	str	r3, [fp]
	ldrne	r2, [r7]
	ldrne	r3, .L32+8
	strne	r2, [r3]
	ldr	r3, .L32+24
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	ldr	r3, [sp, #4]
	cmp	r3, r6
	bge	.L11
	ldr	r3, [sp]
	ldr	r0, [r3, #4]
	bl	Util_sscandec
	cmn	r0, #1
	ldreq	r2, .L32+24
	ldrne	r2, .L32+32
	moveq	r1, r4
	movne	r1, r4
	ldreq	fp, [sp, #4]
	ldreq	r4, [r2]
	ldrne	fp, [sp, #4]
	strne	r0, [r2, #8]
	b	.L4
.L31:
	ldr	r2, .L32+24
	ldr	r0, .L32+52
	ldr	r3, [r2]
	str	r3, [sp, #12]
	bl	Log_print
	ldr	r0, .L32+56
	bl	Log_print
	ldr	r0, .L32+60
	bl	Log_print
	ldr	r0, .L32+64
	bl	Log_print
	ldr	r0, .L32+68
	bl	Log_print
	ldr	r0, .L32+72
	bl	Log_print
	lsl	r3, fp, #2
	ldr	r9, [r5, r3]
	b	.L13
.L19:
	mov	r3, #1
	str	r3, [sp, #8]
	b	.L2
.L33:
	.align	2
.L32:
	.word	FALSE
	.word	.LC0
	.word	Sound_enabled
	.word	.LC1
	.word	.LC13
	.word	.LC2
	.word	TRUE
	.word	.LC3
	.word	Sound_desired
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC14
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	Sound_Initialise, .-Sound_Initialise
	.comm	TRUE,4,4
	.comm	Sound_latency,4,4
	.comm	Sound_enabled,4,4
	.comm	Sound_desired,12,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
