	.file	"extr_listbox.c_LISTBOX_HandleKeyDown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	LISTBOX_HandleKeyDown, @function
LISTBOX_HandleKeyDown:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, DWORD PTR TRUE[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	call	IS_MULTISELECT@PLT
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR 4[rbp]
	cmp	DWORD PTR 0[rbp], eax
	je	.L2
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR LBS_WANTKEYBOARDINPUT[rip], eax
	jne	.L4
.L18:
	lea	esi, -128[rbx]
	cmp	esi, 8
	ja	.L5
	lea	rdx, .L7[rip]
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L15-.L7
	.long	.L14-.L7
	.long	.L13-.L7
	.long	.L12-.L7
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r13d, DWORD PTR FALSE[rip]
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR LBS_WANTKEYBOARDINPUT[rip], eax
	je	.L18
.L4:
	mov	r14d, DWORD PTR 4[rbp]
	mov	edi, ebx
	mov	r12, QWORD PTR 40[rbp]
	call	LOWORD@PLT
	mov	edi, eax
	mov	esi, r14d
	call	MAKEWPARAM@PLT
	mov	edi, DWORD PTR 56[rbp]
	mov	esi, DWORD PTR WM_VKEYTOITEM[rip]
	mov	ecx, r12d
	mov	edx, eax
	call	SendMessageW@PLT
	mov	r12d, eax
	cmp	eax, -2
	je	.L50
	cmp	eax, -1
	je	.L18
.L19:
	test	r13d, r13d
	je	.L21
.L31:
	mov	r12d, DWORD PTR 4[rbp]
.L21:
	test	r12d, r12d
	js	.L50
.L20:
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR LBS_EXTENDEDSEL[rip], eax
	je	.L36
	mov	edi, DWORD PTR VK_SHIFT[rip]
	call	GetKeyState@PLT
	test	ah, -128
	je	.L34
.L36:
	mov	rdi, rbp
	call	IS_MULTISELECT@PLT
	test	rax, rax
	jne	.L35
.L34:
	mov	DWORD PTR 28[rbp], r12d
.L35:
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, r12d
	mov	rdi, rbp
	call	LISTBOX_MoveCaret@PLT
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR LBS_MULTIPLESEL[rip], eax
	je	.L37
	mov	DWORD PTR 0[rbp], r12d
.L38:
	test	DWORD PTR LBS_NOTIFY[rip], eax
	je	.L50
	cmp	QWORD PTR 32[rbp], 0
	je	.L40
	mov	rdi, QWORD PTR 40[rbp]
	call	IsWindowVisible@PLT
	test	rax, rax
	je	.L40
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR CBF_NOROLLUP[rip]
	or	DWORD PTR [rax], edx
.L40:
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	jne	.L67
.L50:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L67:
	.cfi_restore_state
	mov	esi, DWORD PTR LBN_SELCHANGE[rip]
	mov	rdi, rbp
	call	SEND_NOTIFICATION@PLT
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L9:
	test	r13d, r13d
	jne	.L31
	xor	r12d, r12d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 16[rbp]
	lea	r12d, -1[rax]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 16[rbp]
.L25:
	add	r12d, 1
	lea	eax, -1[rdx]
	cmp	r12d, edx
	cmovge	r12d, eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12d, DWORD PTR 4[rbp]
.L22:
	sub	r12d, 1
	mov	eax, 0
	cmovs	r12d, eax
.L24:
	test	r13d, r13d
	jne	.L31
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR LBS_EXTENDEDSEL[rip], eax
	jne	.L68
	test	DWORD PTR LBS_MULTIPLESEL[rip], eax
	je	.L23
	movsx	rdx, DWORD PTR 4[rbp]
	xor	ecx, ecx
	test	DWORD PTR LBS_NOTIFY[rip], eax
	mov	rdi, rbp
	mov	rax, QWORD PTR 48[rbp]
	setne	cl
	mov	rsi, rdx
	mov	edx, DWORD PTR [rax+rdx*4]
	test	edx, edx
	sete	dl
	movzx	edx, dl
	call	LISTBOX_SetSelection@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r12d, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR LBS_MULTICOLUMN[rip], eax
	je	.L25
	add	r12d, DWORD PTR 12[rbp]
	mov	r13d, DWORD PTR FALSE[rip]
	cmp	r12d, edx
	jl	.L19
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR 4[rbp]
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR LBS_MULTICOLUMN[rip], eax
	je	.L26
	mov	eax, DWORD PTR 20[rbp]
	cdq
	idiv	DWORD PTR 24[rbp]
	mov	edx, 1
	test	eax, eax
	cmovle	eax, edx
	imul	eax, DWORD PTR 12[rbp]
	sub	r12d, eax
	add	r12d, 1
.L27:
	test	r12d, r12d
	mov	eax, 0
	cmovs	r12d, eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ebx, DWORD PTR 4[rbp]
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR LBS_MULTICOLUMN[rip], eax
	je	.L28
	mov	eax, DWORD PTR 20[rbp]
	cdq
	idiv	DWORD PTR 24[rbp]
	mov	edx, 1
	test	eax, eax
	cmovle	eax, edx
	imul	eax, DWORD PTR 12[rbp]
	lea	r12d, -1[rbx+rax]
.L29:
	mov	eax, DWORD PTR 16[rbp]
	lea	edx, -1[rax]
	cmp	eax, r12d
	cmovle	r12d, edx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, DWORD PTR 4[rbp]
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR LBS_MULTICOLUMN[rip], eax
	je	.L22
	mov	eax, DWORD PTR 12[rbp]
	mov	r13d, DWORD PTR FALSE[rip]
	cmp	eax, r12d
	jg	.L23
	sub	r12d, eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L37:
	mov	ecx, DWORD PTR FALSE[rip]
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, r12d
	mov	rdi, rbp
	call	LISTBOX_SetSelection@PLT
	mov	eax, DWORD PTR 8[rbp]
	jmp	.L38
.L5:
	mov	r13d, DWORD PTR FALSE[rip]
.L23:
	test	r13d, r13d
	jne	.L31
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L68:
	mov	r12d, DWORD PTR 4[rbp]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rbp
	call	LISTBOX_GetCurrentPageSize@PLT
	lea	r12d, -1[rbx+rax]
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, rbp
	call	LISTBOX_GetCurrentPageSize@PLT
	sub	r12d, eax
	add	r12d, 1
	jmp	.L27
	.cfi_endproc
.LFE0:
	.size	LISTBOX_HandleKeyDown, .-LISTBOX_HandleKeyDown
	.comm	WM_VKEYTOITEM,4,4
	.comm	VK_SHIFT,4,4
	.comm	TRUE,4,4
	.comm	LBS_WANTKEYBOARDINPUT,4,4
	.comm	LBS_NOTIFY,4,4
	.comm	LBS_MULTIPLESEL,4,4
	.comm	LBS_MULTICOLUMN,4,4
	.comm	LBS_EXTENDEDSEL,4,4
	.comm	LBN_SELCHANGE,4,4
	.comm	FALSE,4,4
	.comm	CBF_NOROLLUP,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_listbox.c_LISTBOX_HandleKeyDown.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	LISTBOX_HandleKeyDown, %function
LISTBOX_HandleKeyDown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L74
	mov	r6, r1
	mov	r4, r0
	ldr	r8, [r7]
	bl	IS_MULTISELECT
	cmp	r0, #0
	bne	.L2
	ldm	r4, {r2, r3}
	cmp	r2, r3
	beq	.L2
.L3:
	ldr	r3, .L74+4
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L4
.L18:
	sub	r1, r6, #128
	cmp	r1, #8
	ldrls	pc, [pc, r1, asl #2]
	b	.L5
.L7:
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L2:
	ldr	r3, .L74+8
	ldr	r8, [r3]
	b	.L3
.L4:
	ldr	r3, .L74+12
	mov	r0, r6
	ldr	r9, [r3]
	ldr	r5, [r4, #44]
	bl	LOWORD
	ldr	r1, [r4, #4]
	bl	MAKEWPARAM
	mov	r1, r9
	mov	r2, r0
	ldr	r3, [r4, #36]
	mov	r0, r5
	bl	SendMessageW
	cmn	r0, #2
	mov	r5, r0
	beq	.L59
	cmn	r0, #1
	beq	.L18
.L19:
	cmp	r8, #0
	beq	.L21
.L31:
	ldr	r5, [r4, #4]
.L21:
	cmp	r5, #0
	blt	.L59
.L20:
	ldr	r3, .L74+16
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L36
	ldr	r3, .L74+20
	ldr	r0, [r3]
	bl	GetKeyState
	tst	r0, #32768
	beq	.L34
.L36:
	mov	r0, r4
	bl	IS_MULTISELECT
	cmp	r0, #0
	bne	.L35
.L34:
	str	r5, [r4, #28]
.L35:
	ldr	r2, [r7]
	mov	r1, r5
	mov	r0, r4
	bl	LISTBOX_MoveCaret
	ldr	r2, .L74+24
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	tst	r3, r2
	strne	r5, [r4]
	beq	.L71
.L38:
	ldr	r2, .L74+28
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L59
	ldr	r3, [r4, #32]
	cmp	r3, #0
	beq	.L40
	ldr	r0, [r4, #36]
	bl	IsWindowVisible
	cmp	r0, #0
	beq	.L40
	ldr	r2, [r4, #32]
	ldr	r1, .L74+32
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
.L40:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L72
.L59:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L72:
	ldr	r3, .L74+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	SEND_NOTIFICATION
	b	.L59
.L8:
	ldr	r5, [r4, #16]
	sub	r5, r5, #1
	b	.L19
.L6:
	ldr	r5, [r4, #4]
	ldr	r3, [r4, #16]
.L25:
	add	r5, r5, #1
	cmp	r5, r3
	blt	.L19
.L69:
	sub	r5, r3, #1
	b	.L19
.L15:
	ldr	r5, [r4, #4]
.L22:
	sub	r5, r5, #1
	bic	r5, r5, r5, asr #31
.L24:
	cmp	r8, #0
	bne	.L31
	b	.L20
.L14:
	ldr	r2, .L74+16
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L73
	ldr	r2, .L74+24
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L23
	ldr	r1, [r4, #4]
	ldr	r2, [r4, #40]
	ldr	r0, .L74+28
	ldr	r2, [r2, r1, lsl #2]
	ldr	r0, [r0]
	clz	r2, r2
	tst	r3, r0
	movne	r3, #1
	moveq	r3, #0
	mov	r0, r4
	lsr	r2, r2, #5
	bl	LISTBOX_SetSelection
	b	.L23
.L13:
	ldr	r3, .L74+40
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r5, [r4, #4]
	tst	r2, r3
	ldr	r3, [r4, #16]
	beq	.L25
	ldr	r1, [r4, #12]
	ldr	r2, .L74+8
	add	r5, r5, r1
	cmp	r5, r3
	ldr	r8, [r2]
	blt	.L19
	b	.L23
.L12:
	ldr	r3, .L74+40
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r6, [r4, #4]
	tst	r2, r3
	beq	.L26
	ldr	r1, [r4, #24]
	ldr	r0, [r4, #20]
	bl	__aeabi_idiv
	cmp	r0, #1
	movge	r5, r0
	movlt	r5, #1
	ldr	r0, [r4, #12]
	mul	r5, r0, r5
	sub	r5, r6, r5
	add	r5, r5, #1
.L27:
	bic	r5, r5, r5, asr #31
	b	.L24
.L11:
	ldr	r3, .L74+40
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r5, [r4, #4]
	tst	r2, r3
	beq	.L28
	ldr	r1, [r4, #24]
	ldr	r0, [r4, #20]
	bl	__aeabi_idiv
	cmp	r0, #1
	movlt	r0, #1
	ldr	r1, [r4, #12]
	mla	r5, r1, r0, r5
	sub	r5, r5, #1
.L29:
	ldr	r3, [r4, #16]
	cmp	r3, r5
	bgt	.L19
	b	.L69
.L10:
	ldr	r3, .L74+40
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r5, [r4, #4]
	tst	r2, r3
	beq	.L22
	ldr	r1, [r4, #12]
	ldr	r3, .L74+8
	cmp	r1, r5
	ldr	r8, [r3]
	suble	r5, r5, r1
	ble	.L24
.L23:
	cmp	r8, #0
	bne	.L31
	b	.L59
.L9:
	cmp	r8, #0
	bne	.L31
	mov	r5, r8
	b	.L20
.L71:
	ldr	r3, .L74+8
	mov	r1, r5
	ldr	r3, [r3]
	mov	r0, r4
	ldr	r2, [r7]
	bl	LISTBOX_SetSelection
	ldr	r3, [r4, #8]
	b	.L38
.L73:
	ldr	r5, [r4, #4]
	b	.L19
.L28:
	mov	r0, r4
	bl	LISTBOX_GetCurrentPageSize
	add	r5, r0, r5
	sub	r5, r5, #1
	b	.L29
.L26:
	mov	r0, r4
	bl	LISTBOX_GetCurrentPageSize
	sub	r5, r6, r0
	add	r5, r5, #1
	b	.L27
.L5:
	ldr	r3, .L74+8
	ldr	r8, [r3]
	b	.L23
.L75:
	.align	2
.L74:
	.word	TRUE
	.word	LBS_WANTKEYBOARDINPUT
	.word	FALSE
	.word	WM_VKEYTOITEM
	.word	LBS_EXTENDEDSEL
	.word	VK_SHIFT
	.word	LBS_MULTIPLESEL
	.word	LBS_NOTIFY
	.word	CBF_NOROLLUP
	.word	LBN_SELCHANGE
	.word	LBS_MULTICOLUMN
	.size	LISTBOX_HandleKeyDown, .-LISTBOX_HandleKeyDown
	.comm	WM_VKEYTOITEM,4,4
	.comm	VK_SHIFT,4,4
	.comm	TRUE,4,4
	.comm	LBS_WANTKEYBOARDINPUT,4,4
	.comm	LBS_NOTIFY,4,4
	.comm	LBS_MULTIPLESEL,4,4
	.comm	LBS_MULTICOLUMN,4,4
	.comm	LBS_EXTENDEDSEL,4,4
	.comm	LBN_SELCHANGE,4,4
	.comm	FALSE,4,4
	.comm	CBF_NOROLLUP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
