	.file	"extr_ColorsPanel.c_ColorsPanel_eventHandler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ColorsPanel_eventHandler, @function
ColorsPanel_eventHandler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR IGNORED[rip]
	call	Panel_getSelectedIndex@PLT
	mov	r12d, eax
	cmp	ebx, 32
	jg	.L2
	cmp	ebx, 9
	jle	.L3
	movabs	rax, 4294976512
	bt	rax, rbx
	jc	.L4
.L3:
	cmp	QWORD PTR HANDLED[rip], r13
	je	.L14
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	add	ebx, -128
	cmp	ebx, 2
	ja	.L3
.L4:
	mov	rax, QWORD PTR ColorSchemeNames[rip]
	xor	ebx, ebx
	cmp	QWORD PTR [rax], 0
	je	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, ebx
	mov	rdi, rbp
	add	rbx, 1
	call	Panel_get@PLT
	xor	esi, esi
	mov	rdi, rax
	call	CheckItem_set@PLT
	mov	rax, QWORD PTR ColorSchemeNames[rip]
	cmp	QWORD PTR [rax+rbx*8], 0
	jne	.L5
.L7:
	mov	esi, r12d
	mov	rdi, rbp
	call	Panel_get@PLT
	mov	esi, 1
	mov	rdi, rax
	call	CheckItem_set@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	r13, QWORD PTR HANDLED[rip]
	mov	DWORD PTR [rax], r12d
.L6:
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, r12d
	mov	rbx, QWORD PTR 16[rax]
	call	CRT_setColors@PLT
	xor	eax, eax
	call	clear@PLT
	mov	rax, QWORD PTR 0[rbp]
	xor	esi, esi
	mov	edi, DWORD PTR 12[rax]
	call	Vector_get@PLT
	mov	rdi, rbx
	mov	r12, rax
	call	Header_draw@PLT
	mov	rdx, QWORD PTR PANEL_HEADER_FOCUS[rip]
	mov	rax, QWORD PTR CRT_colors[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+rdx*4]
	call	RichString_setAttr@PLT
	mov	rdx, QWORD PTR PANEL_HEADER_UNFOCUS[rip]
	mov	rax, QWORD PTR CRT_colors[rip]
	mov	rdi, r12
	mov	esi, DWORD PTR [rax+rdx*4]
	call	RichString_setAttr@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR [rbx]
	mov	ecx, DWORD PTR 4[rdi]
	mov	esi, DWORD PTR 8[rdi]
	mov	r8d, DWORD PTR [rdi]
	call	ScreenManager_resize@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ColorsPanel_eventHandler, .-ColorsPanel_eventHandler
	.comm	PANEL_HEADER_UNFOCUS,8,8
	.comm	PANEL_HEADER_FOCUS,8,8
	.comm	IGNORED,8,8
	.comm	HANDLED,8,8
	.comm	ColorSchemeNames,8,8
	.comm	CRT_colors,8,8
	.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_ColorsPanel.c_ColorsPanel_eventHandler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ColorsPanel_eventHandler, %function
ColorsPanel_eventHandler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L14
	mov	r4, r1
	sub	sp, sp, #8
	mov	r5, r0
	ldr	r7, [r3]
	bl	Panel_getSelectedIndex
	cmp	r4, #32
	mov	r6, r0
	bgt	.L2
	cmp	r4, #9
	ble	.L3
	mov	r2, #1
	ldr	r3, .L14+4
	sub	r1, r4, #10
	ands	r3, r3, r2, lsl r1
	bne	.L4
.L3:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L13
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	sub	r1, r4, #128
	cmp	r1, #2
	bhi	.L3
.L4:
	ldr	r7, .L14+12
	ldr	r3, [r7]
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r4, #0
	beq	.L7
.L5:
	mov	r1, r4
	mov	r0, r5
	bl	Panel_get
	mov	r1, #0
	bl	CheckItem_set
	ldr	r3, [r7]
	add	r4, r4, #1
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	bne	.L5
.L7:
	mov	r1, r6
	mov	r0, r5
	bl	Panel_get
	mov	r1, #1
	bl	CheckItem_set
	ldr	r2, .L14+8
	ldr	r3, [r5, #4]
	ldr	r7, [r2]
	str	r6, [r3]
.L6:
	mov	r1, #1
	ldr	r2, [r5]
	mov	r0, r6
	str	r1, [r3, #4]
	ldr	r6, [r2, #16]
	bl	CRT_setColors
	bl	clear
	ldr	r3, [r5]
	mov	r1, #0
	ldr	r0, [r3, #12]
	bl	Vector_get
	mov	r4, r0
	mov	r0, r6
	bl	Header_draw
	ldr	r8, .L14+16
	ldr	r2, .L14+20
	ldr	r3, [r8]
	ldr	r2, [r2]
	mov	r0, r5
	ldr	r1, [r3, r2, lsl #2]
	bl	RichString_setAttr
	ldr	r2, .L14+24
	ldr	r3, [r8]
	ldr	r2, [r2]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	bl	RichString_setAttr
	ldr	r0, [r5]
	ldr	r2, [r6]
	ldr	ip, [r0]
	ldr	r3, [r0, #4]
	ldr	r1, [r0, #8]
	str	ip, [sp]
	bl	ScreenManager_resize
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, [r5, #4]
	b	.L6
.L15:
	.align	2
.L14:
	.word	IGNORED
	.word	4194313
	.word	HANDLED
	.word	ColorSchemeNames
	.word	CRT_colors
	.word	PANEL_HEADER_FOCUS
	.word	PANEL_HEADER_UNFOCUS
	.size	ColorsPanel_eventHandler, .-ColorsPanel_eventHandler
	.comm	PANEL_HEADER_UNFOCUS,4,4
	.comm	PANEL_HEADER_FOCUS,4,4
	.comm	IGNORED,4,4
	.comm	HANDLED,4,4
	.comm	ColorSchemeNames,4,4
	.comm	CRT_colors,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
