	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_top_item
_fix_top_item:                          ## @fix_top_item
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movslq	%edx, %r14
	movl	(%rax,%r14,4), %r12d
	movl	%r14d, %edx
	callq	_index2row
	movq	%r13, %rdi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%ebx, %r14d
	movl	%eax, %ebx
	callq	_index2row
	movl	%ebx, %ecx
	subl	%eax, %ecx
	jl	LBB0_3
## %bb.1:
	movl	(%r13), %eax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	cmpl	%eax, %ecx
	jl	LBB0_3
## %bb.2:
	movl	%ebx, %esi
	subl	%eax, %esi
	incl	%esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_row2index
	movl	%eax, %r15d
LBB0_3:
	cmpl	(%r13), %ebx
	jge	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_row2index
	movl	%eax, %r15d
LBB0_5:
	movl	%r14d, %edi
	callq	_mySide
	movslq	%r15d, %rbx
	movq	%rbx, %rdi
	callq	_DLG_TRACE
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_top_item                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fix_top_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_top_item
_fix_top_item:                          ; @fix_top_item
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #8]
	ldr	w23, [x8, w2, sxtw #2]
	bl	_index2row
	mov	x22, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_index2row
	subs	w8, w22, w0
	b.lt	LBB0_3
; %bb.1:
	ldr	w9, [x20]
	mov	x21, x23
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.2:
	sub	w8, w22, w9
	add	w1, w8, #1
	mov	x0, x20
	mov	x2, x19
	bl	_row2index
	mov	x21, x0
LBB0_3:
	ldr	w8, [x20]
	cmp	w22, w8
	b.ge	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_row2index
	mov	x21, x0
LBB0_5:
	mov	x0, x19
	bl	_mySide
	sxtw	x0, w21
	bl	_DLG_TRACE
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_set_top_item
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fix_top_item
.subsections_via_symbols
