	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_MakeItemVisible
_LISTBOX_MakeItemVisible:               ## @LISTBOX_MakeItemVisible
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_TRACE
	movq	(%r14), %rsi
	cmpq	%rbx, %rsi
	jge	LBB0_22
## %bb.1:
	movl	8(%r14), %eax
	movq	_LBS_MULTICOLUMN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.2:
	movslq	24(%r14), %rdi
	leaq	-1(%rdi), %rax
	xorl	%ecx, %ecx
	testq	%r15, %r15
	cmoveq	%rax, %rcx
	addq	16(%r14), %rcx
	movl	$1, %eax
	cmpq	%rdi, %rcx
	jl	LBB0_6
## %bb.3:
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	jmp	LBB0_6
LBB0_8:
	movq	_LBS_OWNERDRAWVARIABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.9:
	testq	%r15, %r15
	je	LBB0_10
## %bb.11:
	movq	48(%r14), %rax
	movslq	(%rax,%rbx,4), %rax
	jmp	LBB0_12
LBB0_16:
	movq	32(%r14), %rax
	addq	%rax, %rsi
	cmpq	%rbx, %rsi
	jg	LBB0_23
## %bb.17:
	testq	%r15, %r15
	jne	LBB0_20
## %bb.18:
	cmpq	%rbx, %rsi
	jne	LBB0_20
## %bb.19:
	movslq	40(%r14), %rcx
	movslq	44(%r14), %rdx
	imulq	%rax, %rdx
	cmpq	%rcx, %rdx
	jl	LBB0_23
LBB0_20:
	subq	%rax, %rbx
	jmp	LBB0_21
LBB0_4:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movq	32(%r14), %rcx
	movq	%rcx, %rdx
	imulq	%rax, %rdx
	addq	%rsi, %rdx
	cmpq	%rbx, %rdx
	jle	LBB0_7
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	decq	%rax
	imulq	%rax, %rcx
	subq	%rcx, %rbx
	jmp	LBB0_22
LBB0_10:
	movl	$1, %eax
LBB0_12:
	cmpq	%rbx, %rsi
	movq	%rbx, %rcx
	cmovlq	%rsi, %rcx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rbx
	jle	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	48(%r14), %rdx
	movslq	-4(%rdx,%rbx,4), %rdx
	decq	%rbx
	addq	%rdx, %rax
	movslq	40(%r14), %rdx
	cmpq	%rdx, %rax
	jle	LBB0_13
LBB0_21:
	incq	%rbx
	jmp	LBB0_22
LBB0_14:
	movq	%rcx, %rbx
LBB0_22:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LISTBOX_SetTopItem             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"current top item %d, index %d, fully %d\n"

	.comm	_LBS_MULTICOLUMN,4,2            ## @LBS_MULTICOLUMN
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ## @LBS_OWNERDRAWVARIABLE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_LISTBOX_MakeItemVisible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_MakeItemVisible
_LISTBOX_MakeItemVisible:               ; @LISTBOX_MakeItemVisible
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_TRACE
	ldr	x8, [x19]
	cmp	x8, x20
	b.ge	LBB0_22
; %bb.1:
	ldr	w9, [x19, #8]
Lloh2:
	adrp	x10, _LBS_MULTICOLUMN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LBS_MULTICOLUMN@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	x10, [x19, #16]
	ldrsw	x9, [x19, #24]
	sub	x11, x9, #1
	cmp	x21, #0
	csel	x11, x11, xzr, eq
	add	x10, x10, x11
	cmp	x10, x9
	b.ge	LBB0_7
; %bb.3:
	mov	w9, #1
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x10, _LBS_OWNERDRAWVARIABLE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _LBS_OWNERDRAWVARIABLE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.5:
	cbz	x21, LBB0_16
; %bb.6:
	ldr	x9, [x19, #48]
	ldrsw	x9, [x9, x20, lsl #2]
	b	LBB0_17
LBB0_7:
	sdiv	x9, x10, x9
LBB0_8:
	ldr	x10, [x19, #32]
	madd	x8, x10, x9, x8
	cmp	x8, x20
	b.le	LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	sub	x8, x9, #1
	msub	x20, x10, x8, x20
	b	LBB0_22
LBB0_11:
	ldr	x9, [x19, #32]
	add	x8, x9, x8
	cmp	x8, x20
	b.gt	LBB0_9
; %bb.12:
	cbnz	x21, LBB0_15
; %bb.13:
	cmp	x8, x20
	b.ne	LBB0_15
; %bb.14:
	ldpsw	x8, x10, [x19, #40]
	mul	x10, x9, x10
	cmp	x10, x8
	b.lt	LBB0_9
LBB0_15:
	sub	x8, x20, x9
	add	x20, x8, #1
	b	LBB0_22
LBB0_16:
	mov	w9, #1
LBB0_17:
	cmp	x8, x20
	csel	x10, x8, x20, lt
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	cmp	x20, x8
	b.le	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x12, [x19, #48]
	sub	x11, x20, #1
	add	x12, x12, x20, lsl #2
	ldursw	x12, [x12, #-4]
	ldrsw	x13, [x19, #40]
	add	x9, x9, x12
	cmp	x9, x13
	mov	x20, x11
	b.le	LBB0_18
; %bb.20:
	add	x20, x11, #1
	b	LBB0_22
LBB0_21:
	mov	x20, x10
LBB0_22:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_LISTBOX_SetTopItem
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"current top item %d, index %d, fully %d\n"

	.comm	_LBS_MULTICOLUMN,4,2            ; @LBS_MULTICOLUMN
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ; @LBS_OWNERDRAWVARIABLE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_LISTBOX_MakeItemVisible
.subsections_via_symbols
