	.file	"extr_sound.c_update_value.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	update_value
	.type	update_value, @function
update_value:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, edx
	test	edi, edi
	jne	.L2
	cmp	esi, 4
	jg	.L3
	test	esi, esi
	js	.L1
	cmp	esi, 4
	ja	.L5
	lea	rdx, .L7[rip]
	mov	esi, esi
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L5-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	esi, 128
	je	.L11
	cmp	esi, 129
	jne	.L1
	mov	esi, 129
	mov	edi, 1
	call	update_value
	mov	edx, ebx
	mov	esi, 129
	mov	edi, 2
	call	update_value
.L13:
	mov	rax, QWORD PTR soundReg[rip]
	mov	edx, ebx
	sar	edx, 8
	mov	DWORD PTR 120[rax], edx
	mov	edx, DWORD PTR 52[rax]
	mov	DWORD PTR 124[rax], ebx
	mov	DWORD PTR NR33_REG[rip], edx
	mov	eax, DWORD PTR 56[rax]
	mov	DWORD PTR NR34_REG[rip], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 48[rax], ebx
	mov	eax, DWORD PTR 80[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR50_REG[rip], eax
	ret
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 36[rax], ebx
	mov	eax, DWORD PTR 88[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR52_REG[rip], eax
	ret
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 52[rax], ebx
	mov	eax, DWORD PTR 80[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR50_REG[rip], eax
	ret
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 40[rax], ebx
	mov	eax, DWORD PTR 80[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR50_REG[rip], eax
	ret
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 44[rax], ebx
	mov	eax, DWORD PTR 80[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR50_REG[rip], eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, 129
	mov	edi, 1
	call	current_value@PLT
	mov	esi, 129
	mov	edi, 1
	mov	edx, eax
	call	update_value
	mov	esi, 129
	mov	edi, 2
	call	current_value@PLT
	mov	esi, 129
	mov	edi, 2
	mov	edx, eax
	call	update_value
	mov	esi, 129
	mov	edi, 3
	call	current_value@PLT
	mov	esi, 129
	mov	edi, 3
	mov	edx, eax
	call	update_value
	mov	rax, QWORD PTR soundReg[rip]
	mov	edx, DWORD PTR 16[rax]
	mov	DWORD PTR 104[rax], 0
	mov	DWORD PTR 168[rax], 0
	mov	DWORD PTR NR14_REG[rip], edx
	mov	edx, DWORD PTR 36[rax]
	mov	DWORD PTR 132[rax], 0
	mov	DWORD PTR NR24_REG[rip], edx
	mov	edx, DWORD PTR 56[rax]
	mov	DWORD PTR NR34_REG[rip], edx
	mov	edx, DWORD PTR 76[rax]
	mov	DWORD PTR NR44_REG[rip], edx
	mov	DWORD PTR [rax], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	cmp	edi, 1
	jne	.L14
	cmp	esi, 12
	jg	.L15
	test	esi, esi
	js	.L1
	cmp	esi, 12
	ja	.L16
	lea	rdx, .L18[rip]
	mov	esi, esi
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L18:
	.long	.L16-.L18
	.long	.L29-.L18
	.long	.L28-.L18
	.long	.L27-.L18
	.long	.L26-.L18
	.long	.L25-.L18
	.long	.L24-.L18
	.long	.L23-.L18
	.long	.L22-.L18
	.long	.L21-.L18
	.long	.L20-.L18
	.long	.L19-.L18
	.long	.L17-.L18
	.text
.L19:
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 60[rax], ebx
	mov	eax, DWORD PTR 84[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR51_REG[rip], eax
	ret
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 56[rax], ebx
	mov	eax, DWORD PTR 84[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR51_REG[rip], eax
	ret
.L21:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 212[rax], ebx
	mov	eax, DWORD PTR 16[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR14_REG[rip], eax
	ret
	.p2align 4,,10
	.p2align 3
.L82:
	.cfi_restore_state
	cmp	esi, 129
	jne	.L1
.L22:
	mov	rax, QWORD PTR soundReg[rip]
	mov	edx, ebx
	sar	edx, 8
	mov	DWORD PTR 204[rax], edx
	mov	edx, DWORD PTR 12[rax]
	mov	DWORD PTR 208[rax], ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR13_REG[rip], edx
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR NR14_REG[rip], eax
	ret
.L23:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 200[rax], ebx
	mov	eax, DWORD PTR 8[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR12_REG[rip], eax
	ret
.L24:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 196[rax], ebx
	mov	eax, DWORD PTR 8[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR12_REG[rip], eax
	ret
.L25:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 192[rax], ebx
	mov	eax, DWORD PTR 8[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR12_REG[rip], eax
	ret
.L26:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 188[rax], ebx
	mov	eax, DWORD PTR 4[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR11_REG[rip], eax
	ret
.L27:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 184[rax], ebx
	mov	eax, DWORD PTR 4[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR11_REG[rip], eax
	ret
.L28:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 180[rax], ebx
	mov	eax, DWORD PTR [rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR10_REG[rip], eax
	ret
.L29:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 176[rax], ebx
	mov	eax, DWORD PTR [rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR10_REG[rip], eax
	ret
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 64[rax], ebx
	mov	eax, DWORD PTR 88[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR52_REG[rip], eax
	ret
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 172[rax], ebx
	mov	eax, DWORD PTR [rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR10_REG[rip], eax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmp	esi, 128
	jne	.L82
	mov	esi, 129
	mov	edi, 1
	call	current_value@PLT
	mov	esi, 129
	mov	edi, 1
	mov	edx, eax
	call	update_value
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 168[rax], 0
	mov	edx, DWORD PTR 16[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR14_REG[rip], edx
	ret
.L14:
	.cfi_restore_state
	cmp	edi, 2
	je	.L83
	cmp	edi, 3
	je	.L84
	cmp	edi, 4
	jne	.L1
	cmp	esi, 10
	jg	.L56
	test	esi, esi
	js	.L1
	cmp	esi, 10
	ja	.L57
	lea	rdx, .L59[rip]
	mov	esi, esi
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L59:
	.long	.L57-.L59
	.long	.L68-.L59
	.long	.L67-.L59
	.long	.L66-.L59
	.long	.L65-.L59
	.long	.L64-.L59
	.long	.L63-.L59
	.long	.L62-.L59
	.long	.L61-.L59
	.long	.L60-.L59
	.long	.L58-.L59
	.text
.L60:
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 96[rax], ebx
	mov	eax, DWORD PTR 84[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR51_REG[rip], eax
	ret
.L61:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 92[rax], ebx
	mov	eax, DWORD PTR 84[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR51_REG[rip], eax
	ret
.L62:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 32[rax], ebx
	mov	eax, DWORD PTR 76[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR44_REG[rip], eax
	ret
.L63:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 28[rax], ebx
	mov	eax, DWORD PTR 72[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR43_REG[rip], eax
	ret
.L64:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 24[rax], ebx
	mov	eax, DWORD PTR 72[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR43_REG[rip], eax
	ret
.L65:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 20[rax], ebx
	mov	eax, DWORD PTR 72[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR43_REG[rip], eax
	ret
.L66:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 16[rax], ebx
	mov	eax, DWORD PTR 68[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR42_REG[rip], eax
	ret
.L67:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 12[rax], ebx
	mov	eax, DWORD PTR 68[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR42_REG[rip], eax
	ret
.L68:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 8[rax], ebx
	mov	eax, DWORD PTR 68[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR42_REG[rip], eax
	ret
.L58:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 100[rax], ebx
	mov	eax, DWORD PTR 88[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR52_REG[rip], eax
	ret
.L57:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 4[rax], ebx
	mov	eax, DWORD PTR 64[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR41_REG[rip], eax
	ret
	.p2align 4,,10
	.p2align 3
.L83:
	.cfi_restore_state
	cmp	esi, 9
	jg	.L32
	test	esi, esi
	js	.L1
	cmp	esi, 9
	ja	.L33
	lea	rdx, .L35[rip]
	mov	esi, esi
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L35:
	.long	.L33-.L35
	.long	.L43-.L35
	.long	.L42-.L35
	.long	.L41-.L35
	.long	.L40-.L35
	.long	.L39-.L35
	.long	.L38-.L35
	.long	.L37-.L35
	.long	.L36-.L35
	.long	.L34-.L35
	.text
.L36:
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 72[rax], ebx
	mov	eax, DWORD PTR 84[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR51_REG[rip], eax
	ret
.L37:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 68[rax], ebx
	mov	eax, DWORD PTR 84[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR51_REG[rip], eax
	ret
.L38:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 164[rax], ebx
	mov	eax, DWORD PTR 36[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR24_REG[rip], eax
	ret
	.p2align 4,,10
	.p2align 3
.L85:
	.cfi_restore_state
	cmp	esi, 129
	jne	.L1
.L39:
	mov	rax, QWORD PTR soundReg[rip]
	mov	edx, ebx
	sar	edx, 8
	mov	DWORD PTR 156[rax], edx
	mov	edx, DWORD PTR 32[rax]
	mov	DWORD PTR 160[rax], ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR23_REG[rip], edx
	mov	eax, DWORD PTR 36[rax]
	mov	DWORD PTR NR24_REG[rip], eax
	ret
.L40:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 152[rax], ebx
	mov	eax, DWORD PTR 28[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR22_REG[rip], eax
	ret
.L41:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 148[rax], ebx
	mov	eax, DWORD PTR 28[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR22_REG[rip], eax
	ret
.L42:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 144[rax], ebx
	mov	eax, DWORD PTR 28[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR22_REG[rip], eax
	ret
.L43:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 140[rax], ebx
	mov	eax, DWORD PTR 24[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR21_REG[rip], eax
	ret
.L34:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 76[rax], ebx
	mov	eax, DWORD PTR 88[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR52_REG[rip], eax
	ret
.L33:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 136[rax], ebx
	mov	eax, DWORD PTR 24[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR21_REG[rip], eax
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	cmp	esi, 128
	jne	.L85
	mov	esi, 129
	mov	edi, 2
	call	current_value@PLT
	mov	esi, 129
	mov	edi, 2
	mov	edx, eax
	call	update_value
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 132[rax], 0
	mov	edx, DWORD PTR 36[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR24_REG[rip], edx
	ret
.L84:
	.cfi_restore_state
	cmp	esi, 7
	jg	.L46
	test	esi, esi
	js	.L1
	cmp	esi, 7
	ja	.L47
	lea	rdx, .L49[rip]
	mov	esi, esi
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L49:
	.long	.L47-.L49
	.long	.L54-.L49
	.long	.L53-.L49
	.long	.L13-.L49
	.long	.L52-.L49
	.long	.L51-.L49
	.long	.L50-.L49
	.long	.L48-.L49
	.text
.L50:
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR NR51_REG[rip], ebx
	mov	DWORD PTR 84[rax], ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L51:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 80[rax], ebx
	mov	eax, DWORD PTR 84[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR51_REG[rip], eax
	ret
.L52:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 128[rax], ebx
	mov	eax, DWORD PTR 56[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR34_REG[rip], eax
	ret
.L53:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 116[rax], ebx
	mov	eax, DWORD PTR 48[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR32_REG[rip], eax
	ret
.L54:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 112[rax], ebx
	mov	eax, DWORD PTR 44[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR31_REG[rip], eax
	ret
.L48:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR NR52_REG[rip], ebx
	mov	DWORD PTR 88[rax], ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L47:
	.cfi_restore_state
	mov	rax, QWORD PTR soundReg[rip]
	mov	DWORD PTR 108[rax], ebx
	mov	eax, DWORD PTR 40[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR30_REG[rip], eax
	ret
.L46:
	.cfi_restore_state
	cmp	esi, 128
	jne	.L86
	mov	esi, 129
	mov	edi, 3
	call	current_value@PLT
	mov	esi, 129
	mov	edi, 3
	mov	edx, eax
	call	update_value
	mov	rax, QWORD PTR soundReg[rip]
	mov	edx, DWORD PTR 56[rax]
	mov	DWORD PTR 104[rax], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR NR34_REG[rip], edx
	ret
.L86:
	.cfi_restore_state
	cmp	esi, 129
	je	.L13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L56:
	.cfi_restore_state
	cmp	esi, 128
	jne	.L1
	mov	rax, QWORD PTR soundReg[rip]
	mov	edx, DWORD PTR 76[rax]
	mov	DWORD PTR NR44_REG[rip], edx
	mov	DWORD PTR [rax], 0
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	update_value, .-update_value
	.comm	soundReg,8,8
	.comm	NR52_REG,4,4
	.comm	NR51_REG,4,4
	.comm	NR50_REG,4,4
	.comm	NR44_REG,4,4
	.comm	NR43_REG,4,4
	.comm	NR42_REG,4,4
	.comm	NR41_REG,4,4
	.comm	NR34_REG,4,4
	.comm	NR33_REG,4,4
	.comm	NR32_REG,4,4
	.comm	NR31_REG,4,4
	.comm	NR30_REG,4,4
	.comm	NR24_REG,4,4
	.comm	NR23_REG,4,4
	.comm	NR22_REG,4,4
	.comm	NR21_REG,4,4
	.comm	NR14_REG,4,4
	.comm	NR13_REG,4,4
	.comm	NR12_REG,4,4
	.comm	NR11_REG,4,4
	.comm	NR10_REG,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_update_value.c"
	.text
	.align	2
	.global	update_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_value, %function
update_value:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r0, #0
	mov	r4, r1
	mov	r6, r2
	bne	.L2
	cmp	r1, #4
	bgt	.L3
	cmp	r1, #0
	poplt	{r4, r5, r6, pc}
	sub	r4, r1, #1
	ldr	r3, .L90
	cmp	r4, #3
	ldrls	pc, [pc, r4, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L3:
	cmp	r1, #128
	beq	.L11
	cmp	r1, #129
	popne	{r4, r5, r6, pc}
	mov	r0, #1
	bl	update_value
	mov	r2, r6
	mov	r1, r4
	mov	r0, #2
	bl	update_value
.L13:
	ldr	r3, .L90
	ldr	ip, .L90+4
	ldr	r3, [r3]
	ldr	r1, .L90+8
	ldr	lr, [r3, #52]
	ldr	r0, [r3, #56]
	asr	r2, r6, #8
	str	r6, [r3, #124]
	str	r2, [r3, #120]
	str	lr, [ip]
	str	r0, [r1]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, [r3]
	ldr	r2, .L90+12
	ldr	r1, [r3, #80]
	str	r6, [r3, #48]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, [r3]
	ldr	r2, .L90+12
	ldr	r1, [r3, #80]
	str	r6, [r3, #52]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, [r3]
	ldr	r2, .L90+12
	ldr	r1, [r3, #80]
	str	r6, [r3, #40]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, [r3]
	ldr	r2, .L90+12
	ldr	r1, [r3, #80]
	str	r6, [r3, #44]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L11:
	mov	r1, #129
	mov	r0, #1
	bl	current_value
	mov	r1, #129
	mov	r2, r0
	mov	r0, #1
	bl	update_value
	mov	r1, #129
	mov	r0, #2
	bl	current_value
	mov	r1, #129
	mov	r2, r0
	mov	r0, #2
	bl	update_value
	mov	r1, #129
	mov	r0, #3
	bl	current_value
	mov	r1, #129
	mov	r2, r0
	mov	r0, #3
	bl	update_value
	ldr	r3, .L90
	ldr	r0, .L90+16
	ldr	r3, [r3]
	ldr	r2, .L90+20
	ldr	ip, [r3, #16]
	ldr	r1, [r3, #36]
	str	ip, [r0]
	str	r1, [r2]
	ldr	ip, [r3, #56]
	ldr	r0, .L90+8
	ldr	r1, [r3, #76]
	ldr	r2, .L90+24
	str	ip, [r0]
	str	r1, [r2]
	str	r5, [r3, #168]
	str	r5, [r3, #132]
	str	r5, [r3, #104]
	str	r5, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r5, #1
	bne	.L14
	cmp	r1, #12
	bgt	.L15
	cmp	r1, #0
	poplt	{r4, r5, r6, pc}
	sub	r4, r1, #1
	cmp	r4, #11
	ldrls	pc, [pc, r4, asl #2]
	b	.L16
.L18:
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L17
.L19:
	ldr	r3, .L90
	ldr	r2, .L90+28
	ldr	r3, [r3]
	ldr	r1, [r3, #84]
	str	r6, [r3, #60]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L20:
	ldr	r3, .L90
	ldr	r2, .L90+28
	ldr	r3, [r3]
	ldr	r1, [r3, #84]
	str	r6, [r3, #56]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L21:
	ldr	r3, .L90
	ldr	r2, .L90+16
	ldr	r3, [r3]
	ldr	r1, [r3, #16]
	str	r6, [r3, #212]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L85:
	cmp	r1, #129
	popne	{r4, r5, r6, pc}
.L22:
	ldr	r3, .L90
	ldr	ip, .L90+32
	ldr	r3, [r3]
	ldr	r1, .L90+16
	ldr	lr, [r3, #12]
	ldr	r0, [r3, #16]
	asr	r2, r6, #8
	str	r6, [r3, #208]
	str	r2, [r3, #204]
	str	lr, [ip]
	str	r0, [r1]
	pop	{r4, r5, r6, pc}
.L23:
	ldr	r3, .L90
	ldr	r2, .L90+36
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	str	r6, [r3, #200]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L24:
	ldr	r3, .L90
	ldr	r2, .L90+36
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	str	r6, [r3, #196]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L25:
	ldr	r3, .L90
	ldr	r2, .L90+36
	ldr	r3, [r3]
	ldr	r1, [r3, #8]
	str	r6, [r3, #192]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L26:
	ldr	r3, .L90
	ldr	r2, .L90+40
	ldr	r3, [r3]
	ldr	r1, [r3, #4]
	str	r6, [r3, #188]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L27:
	ldr	r3, .L90
	ldr	r2, .L90+40
	ldr	r3, [r3]
	ldr	r1, [r3, #4]
	str	r6, [r3, #184]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L28:
	ldr	r3, .L90
	ldr	r2, .L90+44
	ldr	r3, [r3]
	ldr	r1, [r3]
	str	r6, [r3, #180]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L29:
	ldr	r3, .L90
	ldr	r2, .L90+44
	ldr	r3, [r3]
	ldr	r1, [r3]
	str	r6, [r3, #176]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r3, .L90
	ldr	r2, .L90+48
	ldr	r3, [r3]
	ldr	r1, [r3, #88]
	str	r6, [r3, #64]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L15:
	cmp	r1, #128
	bne	.L85
	mov	r1, #129
	bl	current_value
	mov	r1, #129
	mov	r2, r0
	mov	r0, r5
	bl	update_value
	mov	r0, #0
	ldr	r3, .L90
	ldr	r2, .L90+16
	ldr	r3, [r3]
	ldr	r1, [r3, #16]
	str	r0, [r3, #168]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L14:
	cmp	r5, #2
	beq	.L86
	cmp	r5, #3
	beq	.L87
	cmp	r5, #4
	popne	{r4, r5, r6, pc}
	cmp	r1, #10
	bgt	.L56
	cmp	r1, #0
	poplt	{r4, r5, r6, pc}
	sub	r4, r1, #1
	ldr	r3, .L90
	cmp	r4, #9
	ldrls	pc, [pc, r4, asl #2]
	b	.L57
.L59:
	.word	.L68
	.word	.L67
	.word	.L66
	.word	.L65
	.word	.L64
	.word	.L63
	.word	.L62
	.word	.L61
	.word	.L60
	.word	.L58
.L60:
	ldr	r3, [r3]
	ldr	r2, .L90+28
	ldr	r1, [r3, #84]
	str	r6, [r3, #96]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L61:
	ldr	r3, [r3]
	ldr	r2, .L90+28
	ldr	r1, [r3, #84]
	str	r6, [r3, #92]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L62:
	ldr	r3, [r3]
	ldr	r2, .L90+24
	ldr	r1, [r3, #76]
	str	r6, [r3, #32]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L63:
	ldr	r3, [r3]
	ldr	r2, .L90+52
	ldr	r1, [r3, #72]
	str	r6, [r3, #28]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L64:
	ldr	r3, [r3]
	ldr	r2, .L90+52
	ldr	r1, [r3, #72]
	str	r6, [r3, #24]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L65:
	ldr	r3, [r3]
	ldr	r2, .L90+52
	ldr	r1, [r3, #72]
	str	r6, [r3, #20]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L66:
	ldr	r3, [r3]
	ldr	r2, .L90+56
	ldr	r1, [r3, #68]
	str	r6, [r3, #16]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L67:
	ldr	r3, [r3]
	ldr	r2, .L90+56
	ldr	r1, [r3, #68]
	str	r6, [r3, #12]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L68:
	ldr	r3, [r3]
	ldr	r2, .L90+56
	ldr	r1, [r3, #68]
	str	r6, [r3, #8]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L58:
	ldr	r3, [r3]
	ldr	r2, .L90+48
	ldr	r1, [r3, #88]
	str	r6, [r3, #100]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L86:
	cmp	r1, #9
	bgt	.L32
	cmp	r1, #0
	poplt	{r4, r5, r6, pc}
	sub	r4, r1, #1
	cmp	r4, #8
	ldrls	pc, [pc, r4, asl #2]
	b	.L33
.L35:
	.word	.L43
	.word	.L42
	.word	.L41
	.word	.L40
	.word	.L39
	.word	.L38
	.word	.L37
	.word	.L36
	.word	.L34
.L36:
	ldr	r3, .L90
	ldr	r2, .L90+28
	ldr	r3, [r3]
	ldr	r1, [r3, #84]
	str	r6, [r3, #72]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L37:
	ldr	r3, .L90
	ldr	r2, .L90+28
	ldr	r3, [r3]
	ldr	r1, [r3, #84]
	str	r6, [r3, #68]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L38:
	ldr	r3, .L90
	ldr	r2, .L90+20
	ldr	r3, [r3]
	ldr	r1, [r3, #36]
	str	r6, [r3, #164]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L88:
	cmp	r1, #129
	popne	{r4, r5, r6, pc}
.L39:
	ldr	r3, .L90
	ldr	ip, .L90+60
	ldr	r3, [r3]
	ldr	r1, .L90+20
	ldr	lr, [r3, #32]
	ldr	r0, [r3, #36]
	asr	r2, r6, #8
	str	r6, [r3, #160]
	str	r2, [r3, #156]
	str	lr, [ip]
	str	r0, [r1]
	pop	{r4, r5, r6, pc}
.L40:
	ldr	r3, .L90
	ldr	r2, .L90+64
	ldr	r3, [r3]
	ldr	r1, [r3, #28]
	str	r6, [r3, #152]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L41:
	ldr	r3, .L90
	ldr	r2, .L90+64
	ldr	r3, [r3]
	ldr	r1, [r3, #28]
	str	r6, [r3, #148]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L42:
	ldr	r3, .L90
	ldr	r2, .L90+64
	ldr	r3, [r3]
	ldr	r1, [r3, #28]
	str	r6, [r3, #144]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L43:
	ldr	r3, .L90
	ldr	r2, .L90+68
	ldr	r3, [r3]
	ldr	r1, [r3, #24]
	str	r6, [r3, #140]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L34:
	ldr	r3, .L90
	ldr	r2, .L90+48
	ldr	r3, [r3]
	ldr	r1, [r3, #88]
	str	r6, [r3, #76]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L32:
	cmp	r1, #128
	bne	.L88
	mov	r1, #129
	bl	current_value
	mov	r1, #129
	mov	r2, r0
	mov	r0, r5
	bl	update_value
	mov	r0, #0
	ldr	r3, .L90
	ldr	r2, .L90+20
	ldr	r3, [r3]
	ldr	r1, [r3, #36]
	str	r0, [r3, #132]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L87:
	cmp	r1, #7
	bgt	.L46
	cmp	r1, #0
	poplt	{r4, r5, r6, pc}
	sub	r4, r1, #1
	cmp	r4, #6
	ldrls	pc, [pc, r4, asl #2]
	b	.L47
.L49:
	.word	.L54
	.word	.L53
	.word	.L13
	.word	.L52
	.word	.L51
	.word	.L50
	.word	.L48
.L50:
	ldr	r3, .L90
	ldr	r2, .L90+28
	ldr	r3, [r3]
	str	r6, [r2]
	str	r6, [r3, #84]
	pop	{r4, r5, r6, pc}
.L51:
	ldr	r3, .L90
	ldr	r2, .L90+28
	ldr	r3, [r3]
	ldr	r1, [r3, #84]
	str	r6, [r3, #80]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L52:
	ldr	r3, .L90
	ldr	r2, .L90+8
	ldr	r3, [r3]
	ldr	r1, [r3, #56]
	str	r6, [r3, #128]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L53:
	ldr	r3, .L90
	ldr	r2, .L90+72
	ldr	r3, [r3]
	ldr	r1, [r3, #48]
	str	r6, [r3, #116]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L54:
	ldr	r3, .L90
	ldr	r2, .L90+76
	ldr	r3, [r3]
	ldr	r1, [r3, #44]
	str	r6, [r3, #112]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L48:
	ldr	r3, .L90
	ldr	r2, .L90+48
	ldr	r3, [r3]
	str	r6, [r2]
	str	r6, [r3, #88]
	pop	{r4, r5, r6, pc}
.L46:
	cmp	r1, #128
	bne	.L89
	mov	r1, #129
	bl	current_value
	mov	r1, #129
	mov	r2, r0
	mov	r0, r5
	bl	update_value
	mov	r0, #0
	ldr	r3, .L90
	ldr	r2, .L90+8
	ldr	r3, [r3]
	ldr	r1, [r3, #56]
	str	r0, [r3, #104]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L89:
	cmp	r1, #129
	popne	{r4, r5, r6, pc}
	b	.L13
.L56:
	cmp	r1, #128
	popne	{r4, r5, r6, pc}
	mov	r2, #0
	ldr	r3, .L90
	ldr	r1, .L90+24
	ldr	r3, [r3]
	ldr	r0, [r3, #76]
	str	r0, [r1]
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L57:
	ldr	r3, [r3]
	ldr	r2, .L90+80
	ldr	r1, [r3, #64]
	str	r6, [r3, #4]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L47:
	ldr	r3, .L90
	ldr	r2, .L90+84
	ldr	r3, [r3]
	ldr	r1, [r3, #40]
	str	r6, [r3, #108]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L33:
	ldr	r3, .L90
	ldr	r2, .L90+68
	ldr	r3, [r3]
	ldr	r1, [r3, #24]
	str	r6, [r3, #136]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, .L90
	ldr	r2, .L90+44
	ldr	r3, [r3]
	ldr	r1, [r3]
	str	r6, [r3, #172]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, [r3]
	ldr	r2, .L90+48
	ldr	r1, [r3, #88]
	str	r6, [r3, #36]
	str	r1, [r2]
	pop	{r4, r5, r6, pc}
.L91:
	.align	2
.L90:
	.word	soundReg
	.word	NR33_REG
	.word	NR34_REG
	.word	NR50_REG
	.word	NR14_REG
	.word	NR24_REG
	.word	NR44_REG
	.word	NR51_REG
	.word	NR13_REG
	.word	NR12_REG
	.word	NR11_REG
	.word	NR10_REG
	.word	NR52_REG
	.word	NR43_REG
	.word	NR42_REG
	.word	NR23_REG
	.word	NR22_REG
	.word	NR21_REG
	.word	NR32_REG
	.word	NR31_REG
	.word	NR41_REG
	.word	NR30_REG
	.size	update_value, .-update_value
	.comm	soundReg,4,4
	.comm	NR52_REG,4,4
	.comm	NR51_REG,4,4
	.comm	NR50_REG,4,4
	.comm	NR44_REG,4,4
	.comm	NR43_REG,4,4
	.comm	NR42_REG,4,4
	.comm	NR41_REG,4,4
	.comm	NR34_REG,4,4
	.comm	NR33_REG,4,4
	.comm	NR32_REG,4,4
	.comm	NR31_REG,4,4
	.comm	NR30_REG,4,4
	.comm	NR24_REG,4,4
	.comm	NR23_REG,4,4
	.comm	NR22_REG,4,4
	.comm	NR21_REG,4,4
	.comm	NR14_REG,4,4
	.comm	NR13_REG,4,4
	.comm	NR12_REG,4,4
	.comm	NR11_REG,4,4
	.comm	NR10_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
