	.file	"extr_trackbar.c_TRACKBAR_CalcThumb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	TRACKBAR_CalcThumb, @function
TRACKBAR_CalcThumb:
.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	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r14d, DWORD PTR 8[rdi]
	mov	r12d, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	mov	eax, r14d
	shr	eax, 31
	add	eax, r14d
	sar	eax
	or	eax, 1
	sub	r12d, DWORD PTR 4[rdi]
	mov	edi, DWORD PTR 32[rdi]
	mov	r14d, eax
	mov	eax, 1
	cmove	r12d, eax
	call	GetClientRect@PLT
	mov	ecx, DWORD PTR 12[rbx]
	test	DWORD PTR TBS_VERT[rip], ecx
	je	.L3
	mov	r8d, DWORD PTR 20[rbx]
	mov	eax, DWORD PTR 16[rbx]
	mov	edi, 2
	mov	edx, DWORD PTR TBS_BOTH[rip]
	or	edx, DWORD PTR TBS_LEFT[rip]
	sub	eax, r8d
	sub	eax, r14d
	test	edx, ecx
	jne	.L16
.L4:
	sub	ebp, DWORD PTR 4[rbx]
	mov	DWORD PTR 0[r13], edi
	imul	eax, ebp
	add	edi, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[r13], edi
	cdq
	idiv	r12d
	lea	ebp, [rax+r8]
	lea	eax, 0[rbp+r14]
	mov	DWORD PTR 8[r13], ebp
	mov	DWORD PTR 12[r13], eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 28[rbx]
	mov	eax, DWORD PTR 24[rbx]
	sub	ebp, DWORD PTR 4[rbx]
	sub	eax, esi
	sub	eax, r14d
	imul	eax, ebp
	cdq
	idiv	r12d
	mov	edx, DWORD PTR TBS_BOTH[rip]
	or	edx, DWORD PTR TBS_TOP[rip]
	add	eax, esi
	mov	DWORD PTR 0[r13], eax
	add	eax, r14d
	mov	DWORD PTR 4[r13], eax
	mov	eax, 2
	test	edx, ecx
	je	.L6
	and	ecx, DWORD PTR TBS_NOTICKS[rip]
	cmp	ecx, 1
	sbb	eax, eax
	and	eax, 8
	add	eax, 2
.L6:
	mov	DWORD PTR 8[r13], eax
	add	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 12[r13], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	and	ecx, DWORD PTR TBS_NOTICKS[rip]
	cmp	ecx, 1
	sbb	edi, edi
	and	edi, 8
	add	edi, 2
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	TRACKBAR_CalcThumb, .-TRACKBAR_CalcThumb
	.comm	TBS_VERT,4,4
	.comm	TBS_TOP,4,4
	.comm	TBS_NOTICKS,4,4
	.comm	TBS_LEFT,4,4
	.comm	TBS_BOTH,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_trackbar.c_TRACKBAR_CalcThumb.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	TRACKBAR_CalcThumb, %function
TRACKBAR_CalcThumb:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r7, [r0]
	sub	sp, sp, #24
	subs	r7, r7, r3
	ldr	r3, .L16
	ldr	r5, [r0, #8]
	mov	r8, r1
	ldr	r0, [r0, #32]
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	moveq	r7, #1
	mov	r6, r2
	bl	GetClientRect
	ldr	r3, .L16+4
	ldr	r9, [r4, #12]
	ldr	r3, [r3]
	add	r5, r5, r5, lsr #31
	asr	r5, r5, #1
	tst	r9, r3
	orr	r5, r5, #1
	beq	.L3
	ldr	r2, .L16+8
	ldr	r3, .L16+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r10, [r4, #20]
	orr	r2, r2, r3
	ldr	r3, [r4, #16]
	tst	r2, r9
	sub	r3, r3, r10
	moveq	r1, #2
	sub	r3, r3, r5
	bne	.L14
.L4:
	ldmib	r4, {r0, r2}
	add	r2, r2, r1
	sub	r0, r8, r0
	str	r1, [r6]
	mul	r0, r3, r0
	mov	r1, r7
	str	r2, [r6, #4]
	bl	__aeabi_idiv
	add	r0, r0, r10
	add	r5, r0, r5
	str	r5, [r6, #12]
	str	r0, [r6, #8]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r10, [r4, #28]
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #4]
	sub	r3, r3, r10
	sub	r3, r3, r5
	sub	r0, r8, r0
	mul	r0, r3, r0
	mov	r1, r7
	bl	__aeabi_idiv
	ldr	r3, .L16+8
	ldr	r2, .L16+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r10, r0, r10
	orr	r3, r3, r2
	add	r5, r10, r5
	tst	r3, r9
	moveq	r2, #2
	str	r5, [r6, #4]
	str	r10, [r6]
	beq	.L6
	ldr	r3, .L16+20
	ldr	r3, [r3]
	tst	r9, r3
	movne	r2, #2
	moveq	r2, #10
.L6:
	ldr	r3, [r4, #8]
	str	r2, [r6, #8]
	add	r3, r3, r2
	str	r3, [r6, #12]
	b	.L1
.L14:
	ldr	r2, .L16+20
	ldr	r2, [r2]
	tst	r9, r2
	movne	r1, #2
	moveq	r1, #10
	b	.L4
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	TBS_VERT
	.word	TBS_BOTH
	.word	TBS_LEFT
	.word	TBS_TOP
	.word	TBS_NOTICKS
	.size	TRACKBAR_CalcThumb, .-TRACKBAR_CalcThumb
	.comm	TBS_VERT,4,4
	.comm	TBS_TOP,4,4
	.comm	TBS_NOTICKS,4,4
	.comm	TBS_LEFT,4,4
	.comm	TBS_BOTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
