	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_DrawOneTic
_TRACKBAR_DrawOneTic:                   ## @TRACKBAR_DrawOneTic
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %eax
	subl	12(%rbx), %eax
	movl	16(%rbx), %esi
	movl	%eax, %r8d
	shrl	$31, %r8d
	addl	%eax, %r8d
	sarl	%r8d
	addl	$-2, %esi
	movl	24(%rbx), %edx
	addl	%r8d, %edx
	movl	20(%rbx), %ecx
	addl	$2, %ecx
	notl	%r8d
	addl	28(%rbx), %r8d
	jmp	LBB0_3
LBB0_2:
	movl	20(%rbx), %eax
	subl	16(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	32(%rbx), %esi
	addl	%ecx, %esi
	movl	8(%rbx), %r8d
	movl	12(%rbx), %edx
	addl	$-2, %edx
	notl	%ecx
	addl	36(%rbx), %ecx
	addl	$2, %r8d
LBB0_3:
	leaq	-72(%rbp), %rdi
	callq	_SetRect
	movq	_TBS_TOP@GOTPCREL(%rip), %rax
	movq	_TBS_LEFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	%r15d, %ecx
	xorl	%r9d, %r9d
	movl	%ecx, %eax
	negl	%eax
	movl	$0, %r12d
	sbbl	%r12d, %r12d
	testl	%ecx, %ecx
	movl	-72(%rbp), %r8d
	movl	-68(%rbp), %r10d
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edx
	movl	%r10d, %r11d
	cmovel	%edx, %r11d
	movl	%r8d, %eax
	cmovel	%esi, %eax
	movl	(%rbx), %ecx
	movl	4(%rbx), %ebx
	subl	%ebx, %ecx
	cmpl	$2, %ecx
	movl	$1, %edi
	cmovgel	%ecx, %edi
	movq	_TIC_SELECTIONMARK@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_TIC_SELECTIONMARKMIN@GOTPCREL(%rip), %r9
	xorl	%ecx, %ecx
	testl	%r15d, (%r9)
	sete	%cl
	leal	-2(,%rcx,4), %r9d
	movl	$3, %r14d
	jmp	LBB0_6
LBB0_5:
	movq	_TIC_EDGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	cmpl	$1, %ecx
	movl	$4, %r14d
	sbbl	$0, %r14d
LBB0_6:
	orl	$1, %r12d
	movq	_TBS_VERT@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	je	LBB0_8
## %bb.7:
	subl	%r10d, %edx
	movl	%eax, %esi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%ebx, %eax
	imull	%edx, %eax
	cltd
	idivl	%edi
	movl	%eax, %r11d
	addl	%r10d, %r11d
	jmp	LBB0_9
LBB0_8:
	subl	%r8d, %esi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%ebx, %eax
	imull	%esi, %eax
	cltd
	idivl	%edi
	movl	%eax, %esi
	addl	%r8d, %esi
LBB0_9:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	%r11d, %edx
	xorl	%ecx, %ecx
	movl	%r11d, %ebx
	movl	%esi, %r15d
	callq	_MoveToEx
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %eax
	imull	%r12d, %r14d
	testl	%eax, %eax
	movl	%r13d, %edi
	movl	$0, %r13d
	cmovel	%r14d, %r13d
	cmovel	%eax, %r14d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	addl	%ebx, %r13d
	movl	%edx, %ebx
	addl	%r15d, %r14d
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_LineTo
	movq	_TIC_SELECTIONMARK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movl	$0, %ecx
	cmovel	%r12d, %ecx
	cmovnel	%r12d, %eax
	subl	%ecx, %r13d
	subl	%eax, %r14d
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_MoveToEx
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmovnel	%eax, %ebx
	movl	$0, %esi
	cmovel	%eax, %esi
	addl	%r13d, %ebx
	addl	%r14d, %esi
	movl	%r12d, %edi
	movl	%ebx, %edx
	callq	_LineTo
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_LineTo
LBB0_11:
	addq	$40, %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_TOP,4,2                    ## @TBS_TOP
	.comm	_TBS_LEFT,4,2                   ## @TBS_LEFT
	.comm	_TIC_SELECTIONMARK,4,2          ## @TIC_SELECTIONMARK
	.comm	_TIC_SELECTIONMARKMIN,4,2       ## @TIC_SELECTIONMARKMIN
	.comm	_TIC_EDGE,4,2                   ## @TIC_EDGE
	.no_dead_strip	_TRACKBAR_DrawOneTic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_DrawOneTic
_TRACKBAR_DrawOneTic:                   ; @TRACKBAR_DrawOneTic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _TBS_VERT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TBS_VERT@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	ldp	w8, w9, [x22, #8]
	sub	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldp	w9, w10, [x22, #16]
	sub	w1, w9, #2
	ldp	w9, w11, [x22, #24]
	add	w2, w9, w8
	add	w3, w10, #2
	mvn	w8, w8
	add	w4, w11, w8
	b	LBB0_3
LBB0_2:
	ldp	w9, w8, [x22, #16]
	sub	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldp	w9, w10, [x22, #32]
	add	w1, w8, w9
	mvn	w8, w8
	add	w3, w10, w8
	ldp	w9, w8, [x22, #8]
	sub	w2, w8, #2
	add	w4, w9, #2
LBB0_3:
	mov	x0, sp
	bl	_SetRect
Lloh2:
	adrp	x8, _TBS_TOP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TBS_TOP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _TBS_LEFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TBS_LEFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, w8
	ldp	w9, w8, [sp]
	ldp	w13, w12, [sp, #8]
	tst	w10, w20
	mov	w10, #1
	cneg	w26, w10, ne
	csel	w10, w12, w8, eq
	csel	w11, w13, w9, eq
	ldp	w14, w15, [x22]
	sub	w14, w14, w15
	cmp	w14, #1
	csinc	w14, w14, wzr, gt
Lloh8:
	adrp	x28, _TIC_SELECTIONMARK@GOTPAGE
Lloh9:
	ldr	x28, [x28, _TIC_SELECTIONMARK@GOTPAGEOFF]
	ldr	w16, [x28]
	tst	w16, w20
	b.eq	LBB0_5
; %bb.4:
Lloh10:
	adrp	x16, _TIC_SELECTIONMARKMIN@GOTPAGE
Lloh11:
	ldr	x16, [x16, _TIC_SELECTIONMARKMIN@GOTPAGEOFF]
Lloh12:
	ldr	w16, [x16]
	tst	w16, w20
	mov	w16, #2
	cneg	w27, w16, ne
	mov	w23, #3
	b	LBB0_6
LBB0_5:
	mov	w27, #0
Lloh13:
	adrp	x16, _TIC_EDGE@GOTPAGE
Lloh14:
	ldr	x16, [x16, _TIC_EDGE@GOTPAGEOFF]
Lloh15:
	ldr	w16, [x16]
	tst	w16, w20
	mov	w16, #3
	cinc	w23, w16, ne
LBB0_6:
	ldr	w16, [x25]
	sub	w13, w13, w9
	sub	w15, w21, w15
	mul	w13, w15, w13
	sdiv	w13, w13, w14
	add	w9, w13, w9
	sub	w12, w12, w8
	mul	w12, w15, w12
	sdiv	w12, w12, w14
	add	w8, w12, w8
	tst	w16, w20
	csel	w21, w10, w8, eq
	csel	w22, w9, w11, eq
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	bl	_MoveToEx
	ldr	w8, [x25]
	mul	w9, w23, w26
	tst	w8, w20
	csel	w8, w9, wzr, eq
	add	w23, w8, w21
	csel	w8, wzr, w9, eq
	add	w24, w8, w22
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_LineTo
	ldr	w8, [x28]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x25]
	tst	w8, w20
	csel	w8, w26, wzr, eq
	csel	w9, wzr, w26, eq
	sub	w23, w23, w8
	sub	w24, w24, w9
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	w3, #0
	bl	_MoveToEx
	ldr	w8, [x25]
	tst	w8, w20
	csel	w8, wzr, w27, eq
	add	w2, w8, w23
	csel	w8, w27, wzr, eq
	add	w1, w8, w24
	mov	x0, x19
	bl	_LineTo
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_LineTo
LBB0_8:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TBS_VERT,4,2                   ; @TBS_VERT
	.comm	_TBS_TOP,4,2                    ; @TBS_TOP
	.comm	_TBS_LEFT,4,2                   ; @TBS_LEFT
	.comm	_TIC_SELECTIONMARK,4,2          ; @TIC_SELECTIONMARK
	.comm	_TIC_SELECTIONMARKMIN,4,2       ; @TIC_SELECTIONMARKMIN
	.comm	_TIC_EDGE,4,2                   ; @TIC_EDGE
	.no_dead_strip	_TRACKBAR_DrawOneTic
.subsections_via_symbols
