	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_GetMaxTopIndex
_LISTBOX_GetMaxTopIndex:                ## @LISTBOX_GetMaxTopIndex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LBS_MULTICOLUMN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	24(%rdi), %rcx
	movq	32(%rdi), %rsi
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_4
LBB0_5:
	movslq	16(%rdi), %rax
	movslq	40(%rdi), %rcx
	subq	%rcx, %rax
	popq	%rbp
	retq
LBB0_2:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	cmpq	%rcx, %rsi
	movl	$1, %ecx
	cmovbeq	%rax, %rcx
	movl	16(%rdi), %eax
	movslq	40(%rdi), %rsi
	addl	%esi, %eax
	decl	%eax
	cltd
	idivl	%esi
	cltq
	subq	%rcx, %rax
	imulq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ## @LBS_OWNERDRAWVARIABLE
	.comm	_LBS_MULTICOLUMN,4,2            ## @LBS_MULTICOLUMN
	.no_dead_strip	_LISTBOX_GetMaxTopIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_GetMaxTopIndex
_LISTBOX_GetMaxTopIndex:                ; @LISTBOX_GetMaxTopIndex
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LBS_MULTICOLUMN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_MULTICOLUMN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	x8, x9, [x0, #24]
	udiv	x10, x8, x9
	cmp	x9, x8
	csinc	x8, x10, xzr, ls
	ldr	w9, [x0, #16]
	ldrsw	x10, [x0, #40]
	add	w9, w9, w10
	sub	w9, w9, #1
	sdiv	w9, w9, w10
	sxtw	x9, w9
	sub	x8, x9, x8
	mul	x0, x8, x10
	ret
LBB0_2:
	ldrsw	x8, [x0, #16]
	ldrsw	x9, [x0, #40]
	sub	x0, x8, x9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ; @LBS_OWNERDRAWVARIABLE
	.comm	_LBS_MULTICOLUMN,4,2            ; @LBS_MULTICOLUMN
	.no_dead_strip	_LISTBOX_GetMaxTopIndex
.subsections_via_symbols
