	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_FillThumb
_TRACKBAR_FillThumb:                    ## @TRACKBAR_FillThumb
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%rdi), %eax
	movq	_TBS_BOTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	addq	$4, %rsi
	movl	%r14d, %edi
	callq	_FillRect
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_TBS_VERT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:
	movl	4(%rsi), %ecx
	movl	8(%rsi), %r11d
	movl	%ecx, %edi
	subl	%r11d, %edi
	movl	%edi, %ebx
	shrl	$31, %ebx
	addl	%edi, %ebx
	sarl	%ebx
	movq	_TBS_LEFT@GOTPCREL(%rip), %r8
	movl	12(%rsi), %edi
	testl	%eax, (%r8)
	je	LBB0_5
## %bb.4:
	decl	%edi
	movl	%edi, -96(%rbp)
	movl	%r11d, -92(%rbp)
	movl	%edi, -88(%rbp)
	decl	%ecx
	movl	%ecx, -84(%rbp)
	movl	16(%rsi), %eax
	leal	(%rax,%rbx), %r10d
	movl	%r10d, -80(%rbp)
	movl	%ecx, -76(%rbp)
	movl	%eax, -72(%rbp)
	leal	(%rbx,%r11), %esi
	jmp	LBB0_9
LBB0_6:
	movl	12(%rsi), %r9d
	movl	16(%rsi), %r10d
	movl	%r9d, %ecx
	subl	%r10d, %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	movq	_TBS_TOP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	leal	(%rbx,%r10), %edi
	movl	%edi, -96(%rbp)
	movl	8(%rsi), %eax
	leal	1(%rax), %r8d
	movl	%r8d, -92(%rbp)
	decl	%r9d
	movl	%r9d, -88(%rbp)
	leal	(%rax,%rbx), %r11d
	incl	%r11d
	movl	%r11d, -84(%rbp)
	movl	%r9d, -80(%rbp)
	movl	4(%rsi), %esi
	decl	%esi
	movl	%esi, -76(%rbp)
	movl	%r10d, -72(%rbp)
	jmp	LBB0_10
LBB0_5:
	movl	%edi, -96(%rbp)
	leal	(%rbx,%r11), %r8d
	movl	%r8d, -92(%rbp)
	movl	%edi, %r10d
	subl	%ebx, %r10d
	movl	%r10d, -88(%rbp)
	decl	%ecx
	movl	%ecx, -84(%rbp)
	movl	16(%rsi), %eax
	movl	%eax, -80(%rbp)
	movl	%ecx, -76(%rbp)
	movl	%eax, -72(%rbp)
	movl	%r11d, %esi
	jmp	LBB0_10
LBB0_8:
	decl	%r9d
	movl	%r9d, -96(%rbp)
	movl	8(%rsi), %r11d
	movl	%r11d, -92(%rbp)
	movl	%r9d, -88(%rbp)
	movl	4(%rsi), %eax
	movl	%ebx, %esi
	notl	%esi
	addl	%eax, %esi
	movl	%esi, -84(%rbp)
	leal	(%rbx,%r10), %ecx
	movl	%ecx, -80(%rbp)
	decl	%eax
	movl	%eax, -76(%rbp)
	movl	%r10d, -72(%rbp)
	movl	%r9d, %edi
LBB0_9:
	movl	%r11d, %r8d
LBB0_10:
	movl	%esi, -68(%rbp)
	movl	%r10d, -64(%rbp)
	movl	%r11d, -60(%rbp)
	movl	%edi, -56(%rbp)
	movl	%r8d, -52(%rbp)
	movl	%r14d, %edi
	movl	%edx, %esi
	callq	_SelectObject
	movl	%eax, %r15d
	movq	_WINDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SetPolyFillMode
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_Polygon
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_SelectObject
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TBS_BOTH,4,2                   ## @TBS_BOTH
	.comm	_TBS_VERT,4,2                   ## @TBS_VERT
	.comm	_TBS_LEFT,4,2                   ## @TBS_LEFT
	.comm	_TBS_TOP,4,2                    ## @TBS_TOP
	.comm	_WINDING,4,2                    ## @WINDING
	.no_dead_strip	_TRACKBAR_FillThumb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_FillThumb
_TRACKBAR_FillThumb:                    ; @TRACKBAR_FillThumb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x1, x0
	ldr	w11, [x1], #4
Lloh3:
	adrp	x8, _TBS_BOTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TBS_BOTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w11
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_FillRect
	mov	w20, #0
	b	LBB0_11
LBB0_2:
Lloh6:
	adrp	x8, _TBS_VERT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TBS_VERT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w11
	b.eq	LBB0_5
; %bb.3:
	ldp	w12, w10, [x0, #4]
	sub	w8, w12, w10
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w20, w8, #1
Lloh9:
	adrp	x8, _TBS_LEFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TBS_LEFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	ldr	w8, [x0, #12]
	tst	w9, w11
	b.eq	LBB0_7
; %bb.4:
	sub	w8, w8, #1
	stp	w8, w10, [sp, #8]
	sub	w11, w12, #1
	stp	w8, w11, [sp, #16]
	ldr	w12, [x0, #16]
	add	w9, w12, w20
	stp	w9, w11, [sp, #24]
	str	w12, [sp, #32]
	add	w12, w20, w10
	b	LBB0_9
LBB0_5:
	ldp	w10, w9, [x0, #12]
	sub	w8, w10, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w20, w8, #1
Lloh12:
	adrp	x8, _TBS_TOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TBS_TOP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w11
	b.eq	LBB0_8
; %bb.6:
	add	w8, w20, w9
	ldp	w12, w11, [x0, #4]
	add	w11, w11, #1
	stp	w8, w11, [sp, #8]
	sub	w13, w10, #1
	add	w10, w11, w20
	stp	w13, w10, [sp, #16]
	sub	w12, w12, #1
	stp	w13, w12, [sp, #24]
	str	w9, [sp, #32]
	b	LBB0_10
LBB0_7:
	add	w11, w20, w10
	stp	w8, w11, [sp, #8]
	sub	w9, w8, w20
	sub	w12, w12, #1
	stp	w9, w12, [sp, #16]
	ldr	w13, [x0, #16]
	stp	w13, w12, [sp, #24]
	str	w13, [sp, #32]
	mov	x12, x10
	b	LBB0_10
LBB0_8:
	sub	w8, w10, #1
	ldp	w11, w10, [x0, #4]
	stp	w8, w10, [sp, #8]
	mvn	w12, w20
	add	w12, w11, w12
	stp	w8, w12, [sp, #16]
	add	w13, w20, w9
	sub	w11, w11, #1
	stp	w13, w11, [sp, #24]
	str	w9, [sp, #32]
LBB0_9:
	mov	x11, x10
LBB0_10:
	stp	w12, w9, [sp, #36]
	stp	w10, w8, [sp, #44]
	str	w11, [sp, #52]
	mov	x0, x19
	mov	x1, x2
	bl	_SelectObject
	mov	x21, x0
Lloh15:
	adrp	x8, _WINDING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WINDING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SetPolyFillMode
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_Polygon
	mov	x0, x19
	mov	x1, x21
	bl	_SelectObject
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TBS_BOTH,4,2                   ; @TBS_BOTH
	.comm	_TBS_VERT,4,2                   ; @TBS_VERT
	.comm	_TBS_LEFT,4,2                   ; @TBS_LEFT
	.comm	_TBS_TOP,4,2                    ; @TBS_TOP
	.comm	_WINDING,4,2                    ; @WINDING
	.no_dead_strip	_TRACKBAR_FillThumb
.subsections_via_symbols
