	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_CalcThumb
_TRACKBAR_CalcThumb:                    ## @TRACKBAR_CalcThumb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %eax
	movl	8(%rdi), %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	orl	$1, %ebx
	subl	4(%rdi), %eax
	movl	$1, %r13d
	cmovnel	%eax, %r13d
	movl	32(%rdi), %edi
	leaq	-56(%rbp), %rsi
	callq	_GetClientRect
	movl	12(%r12), %ecx
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.1:
	movl	16(%r12), %eax
	movl	20(%r12), %esi
	subl	%ebx, %eax
	subl	%esi, %eax
	movq	_TBS_BOTH@GOTPCREL(%rip), %rdx
	movq	_TBS_LEFT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rdx), %edi
	testl	%ecx, %edi
	je	LBB0_4
## %bb.2:
	movq	_TBS_NOTICKS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_3
LBB0_4:
	movl	$2, %ecx
	jmp	LBB0_5
LBB0_6:
	movl	24(%r12), %eax
	movl	28(%r12), %esi
	subl	%ebx, %eax
	subl	%esi, %eax
	subl	4(%r12), %r15d
	imull	%eax, %r15d
	movl	%r15d, %eax
	cltd
	idivl	%r13d
	addl	%esi, %eax
	movl	%eax, (%r14)
	addl	%ebx, %eax
	movl	%eax, 4(%r14)
	movq	_TBS_BOTH@GOTPCREL(%rip), %rax
	movq	_TBS_TOP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	testl	%ecx, %edx
	je	LBB0_9
## %bb.7:
	movq	_TBS_NOTICKS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_8
LBB0_9:
	movl	$2, %eax
	jmp	LBB0_10
LBB0_3:
	movl	$10, %ecx
LBB0_5:
	movl	%ecx, (%r14)
	addl	8(%r12), %ecx
	movl	%ecx, 4(%r14)
	subl	4(%r12), %r15d
	imull	%eax, %r15d
	movl	%r15d, %eax
	cltd
	idivl	%r13d
	addl	%esi, %eax
	movl	%eax, 8(%r14)
	addl	%ebx, %eax
	jmp	LBB0_11
LBB0_8:
	movl	$10, %eax
LBB0_10:
	movl	%eax, 8(%r14)
	addl	8(%r12), %eax
LBB0_11:
	movl	%eax, 12(%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBS_VERT,4,2                   ## @TBS_VERT
	.comm	_TBS_BOTH,4,2                   ## @TBS_BOTH
	.comm	_TBS_LEFT,4,2                   ## @TBS_LEFT
	.comm	_TBS_NOTICKS,4,2                ## @TBS_NOTICKS
	.comm	_TBS_TOP,4,2                    ## @TBS_TOP
	.no_dead_strip	_TRACKBAR_CalcThumb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_CalcThumb
_TRACKBAR_CalcThumb:                    ; @TRACKBAR_CalcThumb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldp	w8, w9, [x0]
	ldr	w10, [x0, #8]
	cmp	w10, #0
	cinc	w10, w10, lt
	subs	w8, w8, w9
	asr	w9, w10, #1
	orr	w22, w9, #0x1
	csinc	w23, w8, wzr, ne
	ldr	w0, [x0, #32]
	mov	x1, sp
	bl	_GetClientRect
	ldr	w8, [x20, #12]
Lloh0:
	adrp	x9, _TBS_VERT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBS_VERT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldp	w10, w9, [x20, #16]
	add	w11, w22, w9
	sub	w10, w10, w11
Lloh3:
	adrp	x11, _TBS_BOTH@GOTPAGE
Lloh4:
	ldr	x11, [x11, _TBS_BOTH@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, _TBS_LEFT@GOTPAGE
Lloh7:
	ldr	x12, [x12, _TBS_LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w11, w8
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x11, _TBS_NOTICKS@GOTPAGE
Lloh10:
	ldr	x11, [x11, _TBS_NOTICKS@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_7
LBB0_3:
	mov	w8, #2
	b	LBB0_8
LBB0_4:
	ldp	w9, w10, [x20, #24]
	add	w11, w22, w10
	sub	w9, w9, w11
	ldr	w11, [x20, #4]
	sub	w11, w21, w11
	mul	w9, w11, w9
	sdiv	w9, w9, w23
	add	w9, w9, w10
	add	w10, w9, w22
	stp	w9, w10, [x19]
Lloh12:
	adrp	x9, _TBS_BOTH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TBS_BOTH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _TBS_TOP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TBS_TOP@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x9, _TBS_NOTICKS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TBS_NOTICKS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_6:
	mov	w8, #2
	b	LBB0_10
LBB0_7:
	mov	w8, #10
LBB0_8:
	str	w8, [x19]
	ldr	w11, [x20, #8]
	add	w8, w11, w8
	str	w8, [x19, #4]
	ldr	w8, [x20, #4]
	sub	w8, w21, w8
	mul	w8, w8, w10
	sdiv	w8, w8, w23
	add	w9, w8, w9
	add	w8, w9, w22
	str	w9, [x19, #8]
	b	LBB0_11
LBB0_9:
	mov	w8, #10
LBB0_10:
	str	w8, [x19, #8]
	ldr	w9, [x20, #8]
	add	w8, w9, w8
LBB0_11:
	str	w8, [x19, #12]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TBS_VERT,4,2                   ; @TBS_VERT
	.comm	_TBS_BOTH,4,2                   ; @TBS_BOTH
	.comm	_TBS_LEFT,4,2                   ; @TBS_LEFT
	.comm	_TBS_NOTICKS,4,2                ; @TBS_NOTICKS
	.comm	_TBS_TOP,4,2                    ; @TBS_TOP
	.no_dead_strip	_TRACKBAR_CalcThumb
.subsections_via_symbols
