	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function Item_ListBox_Paint
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0xbf800000                      ## float -1
LCPI0_2:
	.long	0xc0000000                      ## float -2
LCPI0_3:
	.long	0x40800000                      ## float 4
LCPI0_4:
	.long	0x40000000                      ## float 2
LCPI0_5:
	.long	0xc0800000                      ## float -4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Item_ListBox_Paint
	.p2align	4, 0x90
_Item_ListBox_Paint:                    ## @Item_ListBox_Paint
	.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
	movq	%rdi, %r15
	movq	56(%rdi), %r12
	movq	_DC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	48(%rdi), %edi
	callq	*(%rax)
	movss	%xmm0, -60(%rbp)                ## 4-byte Spill
	movq	_WINDOW_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	12(%r15), %eax
	testl	%ecx, 4(%r15)
	je	LBB0_10
## %bb.1:
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	20(%r15), %eax
	addl	16(%r15), %eax
	movq	_SCROLLBAR_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%edi, %ecx
	notl	%ecx
	addl	%eax, %ecx
	cvtsi2ss	%ecx, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movq	56(%rax), %rdx
	movl	%edi, %esi
	callq	*40(%rax)
	movl	(%r14), %esi
	leal	-1(%rsi), %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	addss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	leal	(%rsi,%rsi), %eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	movss	24(%r15), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	movss	%xmm2, -48(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm1
	cvttss2si	%xmm1, %edi
	movq	64(%rax), %rdx
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
                                        ## kill: def $esi killed $esi killed $rsi
	callq	*40(%rax)
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_1(%rip), %xmm0
	addss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movl	(%r14), %edi
	movq	72(%rax), %rdx
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movl	%edi, %esi
	callq	*40(%rax)
	movq	%r15, %rdi
	callq	_Item_ListBox_ThumbDrawPosition
	movl	(%r14), %edi
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edi, %xmm1
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	addss	LCPI0_1(%rip), %xmm2
	minss	%xmm0, %xmm2
	movaps	%xmm2, %xmm0
	movq	(%rbx), %rax
	movq	80(%rax), %rdx
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movl	%edi, %esi
	callq	*40(%rax)
	movss	4(%r12), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, (%r12)
	movq	8(%r12), %rax
	movq	_LISTBOX_IMAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
## %bb.2:
	movss	-60(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_36
## %bb.3:
	movl	16(%r15), %eax
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movl	12(%r15), %eax
	incl	%eax
	xorps	%xmm2, %xmm2
	cvtsi2ss	%eax, %xmm2
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	movss	24(%r15), %xmm4                 ## xmm4 = mem[0],zero,zero,zero
	addss	LCPI0_2(%rip), %xmm4
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	addss	%xmm0, %xmm2
	movss	%xmm2, -64(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm4, -52(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movl	48(%r15), %edi
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movaps	%xmm1, %xmm0
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rcx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm0
	movl	16(%r12), %edi
	movl	20(%r12), %esi
	addl	$-2, %edi
	addl	$-2, %esi
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movq	%rax, %rdx
	callq	*40(%rcx)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	(%r15), %xmm1
	jne	LBB0_8
	jp	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movl	16(%r12), %edi
	movl	20(%r12), %esi
	decl	%edi
	decl	%esi
	movl	32(%r15), %ecx
	movl	36(%r15), %edx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	*48(%rax)
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssl	16(%r12), %xmm0
	movss	-52(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm4
	ucomiss	%xmm4, %xmm0
	ja	LBB0_35
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm2
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm0
	movss	%xmm0, (%r12)
	addss	%xmm2, %xmm1
	movss	-60(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	ja	LBB0_4
	jmp	LBB0_36
LBB0_10:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movq	_SCROLLBAR_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	cvtsi2ss	%edi, %xmm1
	addss	24(%r15), %xmm0
	subss	%xmm1, %xmm0
	movl	16(%r15), %eax
	incl	%eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	addss	LCPI0_1(%rip), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movq	88(%rax), %rdx
	movl	%edi, %esi
	callq	*40(%rax)
	movl	(%r14), %edi
	leal	-1(%rdi), %eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	movss	4(%r12), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r12)
	movl	20(%r15), %eax
	subl	%edi, %eax
	subl	%edi, %eax
	cvtsi2ss	%eax, %xmm2
	movss	%xmm2, -48(%rbp)                ## 4-byte Spill
	addss	-52(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm0
	cvttss2si	%xmm0, %esi
	movq	64(%rax), %rdx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*40(%rax)
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	LCPI0_1(%rip), %xmm1
	addss	-52(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movl	(%r14), %edi
	movq	96(%rax), %rdx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%edi, %esi
	callq	*40(%rax)
	movq	%r15, %rdi
	callq	_Item_ListBox_ThumbDrawPosition
	movl	(%r14), %edi
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edi, %xmm1
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	addss	LCPI0_1(%rip), %xmm2
	minss	%xmm0, %xmm2
	movaps	%xmm2, %xmm1
	movq	(%rbx), %rax
	movq	80(%rax), %rdx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%edi, %esi
	callq	*40(%rax)
	movl	20(%r15), %eax
	addl	$-2, %eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	movq	8(%r12), %rax
	movq	_LISTBOX_IMAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.11:
	movss	4(%r12), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	-60(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_36
## %bb.12:
	movl	12(%r15), %eax
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movl	16(%r15), %eax
	incl	%eax
	cvtsi2ss	%eax, %xmm3
	movss	%xmm3, -44(%rbp)                ## 4-byte Spill
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	addss	%xmm0, %xmm3
	movss	%xmm3, -56(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movss	%xmm1, -64(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movl	48(%r15), %edi
	movss	%xmm2, -48(%rbp)                ## 4-byte Spill
	movaps	%xmm2, %xmm0
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rbx), %rcx
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm1
	movl	16(%r12), %edi
	movl	20(%r12), %esi
	addl	$-2, %edi
	addl	$-2, %esi
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%rax, %rdx
	callq	*40(%rcx)
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	ucomiss	(%r15), %xmm2
	jne	LBB0_17
	jp	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rbx), %rax
	movl	16(%r12), %edi
	movl	20(%r12), %esi
	decl	%edi
	decl	%esi
	movl	32(%r15), %ecx
	movl	36(%r15), %edx
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	*48(%rax)
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm0
	movss	%xmm0, (%r12)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	16(%r12), %xmm0
	xorps	%xmm4, %xmm4
	cvtsi2ssl	20(%r12), %xmm4
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	ucomiss	%xmm1, %xmm4
	ja	LBB0_34
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm4, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	addss	%xmm3, %xmm2
	movss	-60(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	ja	LBB0_13
	jmp	LBB0_36
LBB0_19:
	movss	4(%r12), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	-60(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_36
## %bb.20:
	movl	12(%r15), %eax
	movl	16(%r15), %ecx
	incl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	LCPI0_3(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm2
	movss	%xmm2, -48(%rbp)                ## 4-byte Spill
	addss	LCPI0_4(%rip), %xmm0
	movss	%xmm0, -76(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	movss	%xmm1, -64(%rbp)                ## 4-byte Spill
	cmpq	$0, 32(%r12)
	jle	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_1(%rip), %xmm0
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	(%r14), %rax
	movq	40(%r12), %rcx
	movl	20(%r12), %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edi, %xmm1
	movss	(%rcx,%r13), %xmm0              ## xmm0 = mem[0],zero,zero,zero
	addss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	-52(%rbp), %xmm1                ## 4-byte Folded Reload
	movl	4(%rcx,%r13), %edi
	movl	%edi, %esi
	callq	*40(%rax)
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=2
	incq	%rbx
	addq	$12, %r13
	cmpq	%rbx, 32(%r12)
	jle	LBB0_31
LBB0_23:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_DC@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	48(%r15), %edi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%ebx, %esi
	leaq	-72(%rbp), %rdx
	callq	*16(%rax)
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	jns	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=2
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	_DC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	40(%r12), %rcx
	movss	(%rcx,%r13), %xmm0              ## xmm0 = mem[0],zero,zero,zero
	addss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	xorps	%xmm1, %xmm1
	cvtsi2ssl	20(%r12), %xmm1
	addss	-56(%rbp), %xmm1                ## 4-byte Folded Reload
	movl	44(%r15), %edi
	movl	8(%rcx,%r13), %r8d
	movl	28(%r15), %esi
	movl	40(%r15), %r9d
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	*32(%r10)
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	(%rbx), %rax
	movl	48(%r15), %edi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	xorl	%esi, %esi
	leaq	-72(%rbp), %rdx
	callq	*16(%rax)
	cmpq	$0, -72(%rbp)
	jns	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_21 Depth=1
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_DC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	xorps	%xmm1, %xmm1
	cvtsi2ssl	20(%r12), %xmm1
	addss	-56(%rbp), %xmm1                ## 4-byte Folded Reload
	movl	44(%r15), %edi
	movl	28(%r15), %esi
	movl	40(%r15), %r9d
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	*32(%rbx)
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_21 Depth=1
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	(%r15), %xmm0
	movq	_DC@GOTPCREL(%rip), %rbx
	movq	_SCROLLBAR_SIZE@GOTPCREL(%rip), %rcx
	jne	LBB0_33
	jp	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	(%rbx), %rax
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%rcx), %xmm0
	addss	LCPI0_4(%rip), %xmm1
	movss	24(%r15), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm2
	addss	LCPI0_5(%rip), %xmm2
	xorps	%xmm3, %xmm3
	cvtsi2ssl	20(%r12), %xmm3
	movl	8(%r15), %edi
	movss	-76(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	*24(%rax)
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=1
	xorps	%xmm4, %xmm4
	cvtsi2ssl	20(%r12), %xmm4
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm4, %xmm1
	ucomiss	%xmm1, %xmm4
	ja	LBB0_34
## %bb.37:                              ##   in Loop: Header=BB0_21 Depth=1
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm0
	movss	%xmm0, (%r12)
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm4, %xmm0
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm2
	movss	-60(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	ucomiss	%xmm2, %xmm0
	ja	LBB0_21
	jmp	LBB0_36
LBB0_34:
	subss	%xmm1, %xmm4
LBB0_35:
	movss	%xmm4, 24(%r12)
LBB0_36:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC,8,3                         ## @DC
	.comm	_WINDOW_HORIZONTAL,4,2          ## @WINDOW_HORIZONTAL
	.comm	_SCROLLBAR_SIZE,4,2             ## @SCROLLBAR_SIZE
	.comm	_LISTBOX_IMAGE,8,3              ## @LISTBOX_IMAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_ListBox_Paint             ; -- Begin function Item_ListBox_Paint
	.p2align	2
_Item_ListBox_Paint:                    ; @Item_ListBox_Paint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d15, d14, [sp, #16]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
	.cfi_offset b14, -120
	.cfi_offset b15, -128
	mov	x19, x0
	ldr	x21, [x0, #56]
Lloh0:
	adrp	x22, _DC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DC@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w0, [x0, #48]
	blr	x8
	fmov	s8, s0
	ldr	w9, [x19, #4]
Lloh2:
	adrp	x8, _WINDOW_HORIZONTAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINDOW_HORIZONTAL@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
	ldr	w8, [x19, #12]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.1:
	add	w8, w8, #1
	scvtf	s10, w8
	ldp	w8, w9, [x19, #16]
Lloh5:
	adrp	x20, _SCROLLBAR_SIZE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SCROLLBAR_SIZE@GOTPAGEOFF]
	ldr	w0, [x20]
	mvn	w10, w0
	add	w8, w9, w8
	add	w8, w8, w10
	scvtf	s9, w8
	ldr	x8, [x22]
	ldr	x9, [x8, #40]
	ldr	x2, [x8, #56]
	fmov	s0, s10
	fmov	s1, s9
	mov	x1, x0
	blr	x9
	ldr	w1, [x20]
	sub	w8, w1, #1
	scvtf	s0, w8
	fadd	s10, s10, s0
	ldr	s0, [x19, #24]
	lsl	w8, w1, #1
	scvtf	s1, w8
	fsub	s11, s0, s1
	ldr	x8, [x22]
	ldr	x9, [x8, #40]
	fmov	s0, #1.00000000
	fadd	s0, s11, s0
	fcvtzs	w0, s0
	ldr	x2, [x8, #64]
	fmov	s0, s10
	fmov	s1, s9
	blr	x9
	fmov	s12, #-1.00000000
	fadd	s0, s11, s12
	fadd	s10, s10, s0
	ldr	x8, [x22]
	ldr	x9, [x8, #40]
	ldr	w0, [x20]
	ldr	x2, [x8, #72]
	fmov	s0, s10
	fmov	s1, s9
	mov	x1, x0
	blr	x9
	mov	x0, x19
	bl	_Item_ListBox_ThumbDrawPosition
	ldr	w0, [x20]
	scvtf	s1, w0
	fsub	s1, s10, s1
	fadd	s1, s1, s12
	fcmp	s0, s1
	fcsel	s0, s1, s0, gt
	ldr	x8, [x22]
	ldr	x9, [x8, #40]
	ldr	x2, [x8, #80]
	fmov	s1, s9
	mov	x1, x0
	blr	x9
	ldr	s9, [x21, #4]
	str	s9, [x21]
	ldr	x8, [x21, #8]
Lloh7:
	adrp	x9, _LISTBOX_IMAGE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LISTBOX_IMAGE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_37
; %bb.2:
	fcmp	s9, s8
	b.pl	LBB0_37
; %bb.3:
	ldp	w9, w8, [x19, #12]
	add	w8, w8, #1
	scvtf	s10, w8
	add	w8, w9, #1
	scvtf	s11, w8
	ldr	s0, [x19, #24]
	fmov	s1, #-2.00000000
	fadd	s13, s0, s1
	fmov	s14, #1.00000000
	fadd	s12, s10, s14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #48]
	fmov	s0, s9
	blr	x8
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
	ldr	x8, [x22]
	ldr	x8, [x8, #40]
	fadd	s0, s11, s14
	ldp	w9, w10, [x21, #16]
	sub	w0, w9, #2
	sub	w1, w10, #2
	fmov	s1, s12
	blr	x8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	s0, [x19]
	fcmp	s9, s0
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #48]
	ldp	w9, w10, [x21, #16]
	sub	w0, w9, #1
	sub	w1, w10, #1
	ldp	w3, w2, [x19, #32]
	fmov	s0, s11
	fmov	s1, s10
	blr	x8
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	s0, [x21, #16]
	scvtf	s0, s0
	fsub	s13, s13, s0
	fcmp	s13, s0
	b.mi	LBB0_36
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	fadd	s11, s11, s0
	ldr	s0, [x21]
	fadd	s0, s0, s14
	str	s0, [x21]
	fadd	s9, s9, s14
	fcmp	s9, s8
	b.mi	LBB0_4
	b	LBB0_37
LBB0_10:
	scvtf	s0, w8
	ldr	s1, [x19, #24]
	fadd	s0, s1, s0
Lloh10:
	adrp	x23, _SCROLLBAR_SIZE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SCROLLBAR_SIZE@GOTPAGEOFF]
	ldr	w0, [x23]
	scvtf	s1, w0
	fsub	s0, s0, s1
	fmov	s11, #-1.00000000
	fadd	s9, s0, s11
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	scvtf	s10, w8
	ldr	x8, [x22]
	ldr	x9, [x8, #40]
	ldr	x2, [x8, #88]
	fmov	s0, s9
	fmov	s1, s10
	mov	x1, x0
	blr	x9
	ldr	w0, [x23]
	sub	w8, w0, #1
	scvtf	s0, w8
	fadd	s10, s10, s0
	ldr	s0, [x21, #4]
	str	s0, [x21]
	ldr	w8, [x19, #20]
	sub	w8, w8, w0, lsl #1
	scvtf	s12, w8
	ldr	x8, [x22]
	ldr	x9, [x8, #40]
	fmov	s0, #1.00000000
	fadd	s0, s12, s0
	fcvtzs	w1, s0
	ldr	x2, [x8, #64]
	fmov	s0, s9
	fmov	s1, s10
	blr	x9
	fadd	s0, s12, s11
	fadd	s10, s10, s0
	ldr	x8, [x22]
	ldr	x9, [x8, #40]
	ldr	w0, [x23]
	ldr	x2, [x8, #96]
	fmov	s0, s9
	fmov	s1, s10
	mov	x1, x0
	blr	x9
	mov	x0, x19
	bl	_Item_ListBox_ThumbDrawPosition
	ldr	w0, [x23]
	scvtf	s1, w0
	fsub	s1, s10, s1
	fadd	s1, s1, s11
	fcmp	s0, s1
	fcsel	s1, s1, s0, gt
	ldr	x8, [x22]
	ldr	x9, [x8, #40]
	ldr	x2, [x8, #80]
	fmov	s0, s9
	mov	x1, x0
	blr	x9
	ldr	w8, [x19, #20]
	sub	w8, w8, #2
	scvtf	s13, w8
	ldr	x8, [x21, #8]
Lloh12:
	adrp	x9, _LISTBOX_IMAGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LISTBOX_IMAGE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.11:
	ldr	s9, [x21, #4]
	fcmp	s9, s8
	b.pl	LBB0_37
; %bb.12:
	ldp	w8, w9, [x19, #12]
	add	w8, w8, #1
	scvtf	s10, w8
	add	w8, w9, #1
	scvtf	s11, w8
	fmov	s14, #1.00000000
	fadd	s12, s10, s14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #48]
	fmov	s0, s9
	blr	x8
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x2, x0
	ldr	x8, [x22]
	ldr	x8, [x8, #40]
	fadd	s1, s11, s14
	ldp	w9, w10, [x21, #16]
	sub	w0, w9, #2
	sub	w1, w10, #2
	fmov	s0, s12
	blr	x8
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	s0, [x19]
	fcmp	s9, s0
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #48]
	ldp	w9, w10, [x21, #16]
	sub	w0, w9, #1
	sub	w1, w10, #1
	ldp	w3, w2, [x19, #32]
	fmov	s0, s10
	fmov	s1, s11
	blr	x8
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	s0, [x21]
	fadd	s0, s0, s14
	str	s0, [x21]
	ldp	s0, s1, [x21, #16]
	scvtf	s0, s0
	fsub	s13, s13, s0
	scvtf	s0, s1
	fcmp	s13, s0
	b.mi	LBB0_35
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	fadd	s11, s11, s0
	fadd	s9, s9, s14
	fcmp	s9, s8
	b.mi	LBB0_13
	b	LBB0_37
LBB0_19:
	ldr	s9, [x21, #4]
	fcmp	s9, s8
	b.pl	LBB0_37
; %bb.20:
	ldp	w9, w8, [x19, #12]
	add	w8, w8, #1
	scvtf	s12, w8
	add	w8, w9, #1
	scvtf	s0, w8
	fmov	s1, #4.00000000
	fadd	s10, s0, s1
	fmov	s1, #2.00000000
	fadd	s11, s0, s1
	fmov	s15, #1.00000000
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	ldr	x8, [x21, #32]
	cmp	x8, #1
	b.lt	LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x24, #0
	mov	x20, #0
	fmov	s0, #-1.00000000
	fadd	s14, s12, s0
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, #40]
	ldr	x9, [x21, #40]
	add	x9, x9, x24
	ldr	s0, [x9]
	fadd	s0, s10, s0
	ldr	w10, [x21, #20]
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	scvtf	s1, w10
	fadd	s1, s14, s1
	ldr	w0, [x9, #4]
	mov	x1, x0
	blr	x8
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	add	x20, x20, #1
	ldr	x8, [x21, #32]
	add	x24, x24, #12
	cmp	x8, x20
	b.le	LBB0_31
LBB0_25:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w0, [x19, #48]
	add	x2, sp, #8
	fmov	s0, s9
	mov	x1, x20
	blr	x8
	ldr	x2, [sp, #8]
	tbz	x2, #63, LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	mov	x8, x0
	cbz	x0, LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=2
	ldr	x9, [x22]
	ldr	x9, [x9, #32]
	ldr	x10, [x21, #40]
	add	x10, x10, x24
	ldr	s0, [x10]
	fadd	s0, s10, s0
	ldr	s1, [x21, #20]
	scvtf	s1, s1
	fadd	s1, s12, s1
	ldr	w1, [x19, #28]
	ldr	w4, [x10, #8]
	ldp	w5, w0, [x19, #40]
	mov	x2, x8
	mov	w3, #0
	blr	x9
	b	LBB0_24
LBB0_28:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w0, [x19, #48]
	add	x2, sp, #8
	fmov	s0, s9
	mov	w1, #0
	blr	x8
	ldr	x8, [sp, #8]
	tbz	x8, #63, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x2, x0
	cbz	x0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #32]
	ldr	s0, [x21, #20]
	scvtf	s0, s0
	fadd	s1, s12, s0
	ldr	w1, [x19, #28]
	ldp	w5, w0, [x19, #40]
	fmov	s0, s10
	mov	w3, #0
	mov	w4, #0
	blr	x8
LBB0_31:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	s0, [x19]
	fcmp	s9, s0
	b.ne	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	fmov	s0, #2.00000000
	fadd	s1, s12, s0
	ldr	s0, [x19, #24]
	ldr	s2, [x23]
	scvtf	s2, s2
	fsub	s0, s0, s2
	fmov	s2, #-4.00000000
	fadd	s2, s0, s2
	ldr	s0, [x21, #20]
	scvtf	s3, s0
	ldr	w0, [x19, #8]
	fmov	s0, s11
	blr	x8
LBB0_33:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	s0, [x21, #20]
	scvtf	s0, s0
	fsub	s13, s13, s0
	fcmp	s13, s0
	b.mi	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	s1, [x21]
	fadd	s1, s1, s15
	str	s1, [x21]
	fadd	s12, s12, s0
	fadd	s9, s9, s15
	fcmp	s9, s8
	b.mi	LBB0_21
	b	LBB0_37
LBB0_35:
	fsub	s13, s0, s13
LBB0_36:
	str	s13, [x21, #24]
LBB0_37:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DC,8,3                         ; @DC
	.comm	_WINDOW_HORIZONTAL,4,2          ; @WINDOW_HORIZONTAL
	.comm	_SCROLLBAR_SIZE,4,2             ; @SCROLLBAR_SIZE
	.comm	_LISTBOX_IMAGE,8,3              ; @LISTBOX_IMAGE
.subsections_via_symbols
