	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PAGER_SetPos
_PAGER_SetPos:                          ## @PAGER_SetPos
	.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, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	%ecx, %esi
	callq	_PAGER_GetScrollRange
	movq	%rax, %r15
	movq	(%rbx), %r13
	cmpq	%r12, %rax
	movq	%r12, %rdx
	cmovbq	%rax, %rdx
	xorl	%eax, %eax
	testq	%r15, %r15
	cmovleq	%rax, %rdx
	testq	%r12, %r12
	cmovsq	%rax, %rdx
	movq	%rdx, (%rbx)
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rcx
	callq	_TRACE
	cmpq	%r13, (%rbx)
	je	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_PAGER_UpdateBtns
	movq	%rbx, %rdi
	callq	_PAGER_PositionChildWnd
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%p] pos=%d, oldpos=%d\n"

	.no_dead_strip	_PAGER_SetPos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PAGER_SetPos
_PAGER_SetPos:                          ; @PAGER_SetPos
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x1, x3
	bl	_PAGER_GetScrollRange
	mov	x21, x0
	ldr	x23, [x19]
	cmp	x0, x22
	csel	x8, x0, x22, lo
	cmp	x0, #1
	ccmp	x22, #0, #8, ge
	csel	x2, xzr, x8, lt
	str	x2, [x19]
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x23
	bl	_TRACE
	ldr	x8, [x19]
	cmp	x8, x23
	b.eq	LBB0_2
; %bb.1:
	cmp	w20, #0
	cset	w2, eq
	mov	x0, x19
	mov	x1, x21
	bl	_PAGER_UpdateBtns
	mov	x0, x19
	bl	_PAGER_PositionChildWnd
LBB0_2:
	mov	w0, #0
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%p] pos=%d, oldpos=%d\n"

	.no_dead_strip	_PAGER_SetPos
.subsections_via_symbols
