	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_check_scrolled             ## -- Begin function dlg_check_scrolled
	.p2align	4, 0x90
_dlg_check_scrolled:                    ## @dlg_check_scrolled
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	addl	$-128, %edi
	cmpl	$5, %edi
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rdi
	addq	%rax, %rdi
	jmpq	*%rdi
LBB0_9:
	movl	(%r8), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	subl	%edx, %eax
	xorl	%esi, %esi
	testl	%eax, %eax
	cmovgl	%eax, %esi
	jmp	LBB0_13
LBB0_11:
	movl	(%r8), %edi
	xorl	%eax, %eax
	cmpl	%esi, %edi
	jge	LBB0_15
## %bb.12:
	addl	%edx, %edi
	cmpl	%esi, %edi
	cmovll	%edi, %esi
	jmp	LBB0_13
LBB0_4:
	xorl	%eax, %eax
	cmpl	%esi, (%r8)
	jl	LBB0_13
LBB0_15:
	popq	%rbp
	retq
LBB0_3:
	xorl	%esi, %esi
	cmpl	$0, (%r8)
	movl	$0, %eax
	jg	LBB0_13
	jmp	LBB0_15
LBB0_5:
	movl	(%r8), %esi
	testl	%esi, %esi
	jle	LBB0_14
## %bb.6:
	decl	%esi
	jmp	LBB0_13
LBB0_7:
	movl	(%r8), %edx
	xorl	%eax, %eax
	cmpl	%esi, %edx
	jge	LBB0_15
## %bb.8:
	incl	%edx
	movl	%edx, %esi
LBB0_13:
	movl	%esi, (%r8)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
LBB0_14:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_check_scrolled             ; -- Begin function dlg_check_scrolled
	.p2align	2
_dlg_check_scrolled:                    ; @dlg_check_scrolled
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #128
Lloh0:
	adrp	x9, _FALSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x3]
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.3:
	sub	w8, w8, w2
	cmp	w8, #0
	csel	w1, w8, wzr, gt
	b	LBB0_13
LBB0_4:
	mov	w0, #-1
	ret
LBB0_5:
	ldr	w8, [x4]
	cmp	w8, w1
	b.ge	LBB0_14
; %bb.6:
	add	w8, w8, w2
	cmp	w8, w1
	csel	w1, w8, w1, lt
	b	LBB0_13
LBB0_7:
	ldr	w8, [x4]
	cmp	w8, w1
	b.lt	LBB0_13
	b	LBB0_14
LBB0_8:
	mov	w1, #0
	mov	w0, #0
	ldr	w8, [x4]
	cmp	w8, #0
	b.gt	LBB0_13
; %bb.9:
	ret
LBB0_10:
	ldr	w8, [x4]
	subs	w1, w8, #1
	b.ge	LBB0_13
	b	LBB0_14
LBB0_11:
	ldr	w8, [x4]
	cmp	w8, w1
	b.ge	LBB0_14
; %bb.12:
	add	w1, w8, #1
LBB0_13:
	mov	w0, #0
	str	w1, [x4]
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x3]
	ret
LBB0_14:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
