	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PAGER_GetScrollRange
_PAGER_GetScrollRange:                  ## @PAGER_GetScrollRange
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 40(%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	(%r14), %rdi
	leaq	-56(%rbp), %rsi
	callq	_GetWindowRect
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_PAGER_CalcSize
LBB0_3:
	movq	_PGS_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_6
## %bb.4:
	movq	-56(%rbp), %r15
	subq	-48(%rbp), %r15
	leaq	16(%r14), %rax
	jmp	LBB0_7
LBB0_6:
	movq	-40(%rbp), %r15
	subq	-32(%rbp), %r15
	leaq	24(%r14), %rax
LBB0_7:
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_TRACE
	subq	%r15, %rbx
	jle	LBB0_9
## %bb.8:
	addq	32(%r14), %rbx
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	callq	_TRACE
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGS_HORZ,4,2                   ## @PGS_HORZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"childSize = %d,  wndSize = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"[%p] returns %d\n"

	.no_dead_strip	_PAGER_GetScrollRange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PAGER_GetScrollRange
_PAGER_GetScrollRange:                  ; @PAGER_GetScrollRange
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x1
	ldr	x0, [x19]
	mov	x1, sp
	bl	_GetWindowRect
	cbz	x20, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_PAGER_CalcSize
LBB0_3:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _PGS_HORZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PGS_HORZ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldp	x8, x9, [sp]
	sub	x20, x8, x9
	add	x8, x19, #16
	b	LBB0_6
LBB0_5:
	ldp	x8, x9, [sp, #16]
	sub	x20, x8, x9
	add	x8, x19, #24
LBB0_6:
	ldr	x21, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_TRACE
	subs	x8, x21, x20
	b.le	LBB0_8
; %bb.7:
	ldr	x9, [x19, #32]
	add	x20, x8, x9
	b	LBB0_9
LBB0_8:
	mov	x20, #0
LBB0_9:
	ldr	x1, [x19]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_TRACE
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PGS_HORZ,4,2                   ; @PGS_HORZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"childSize = %d,  wndSize = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"[%p] returns %d\n"

	.no_dead_strip	_PAGER_GetScrollRange
.subsections_via_symbols
