	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PAGER_UpdateBtns
_PAGER_UpdateBtns:                      ## @PAGER_UpdateBtns
	.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
	subq	$40, %rsp
	.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, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_PAGER_GetButtonRects
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_GetCursorPos
	movl	24(%r13), %edi
	movq	%r12, %rsi
	callq	_ScreenToClient
	cmpq	$0, 16(%r13)
	jle	LBB0_4
## %bb.1:
	movq	(%r13), %rax
	movq	_PGF_INVISIBLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_PGF_GRAYED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.9:
	testq	%r15, %r15
	jle	LBB0_10
LBB0_11:
	cmpq	%r15, 16(%r13)
	jge	LBB0_15
## %bb.12:
	movq	8(%r13), %rsi
	movq	_PGF_INVISIBLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rsi
	movq	%rbx, %r14
	je	LBB0_14
## %bb.13:
	movq	_PGF_GRAYED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	jne	LBB0_21
LBB0_14:
	movq	_PGF_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, 8(%r13)
	jmp	LBB0_21
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_5
LBB0_7:
	movq	_PGF_INVISIBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_PGF_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_15:
	testl	%r14d, %r14d
	je	LBB0_16
LBB0_18:
	movq	_PGF_INVISIBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_5:
	movl	-44(%rbp), %esi
	leaq	-52(%rbp), %rdi
	callq	_PtInRect
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_PGF_GRAYED@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, (%r13)
	testq	%r15, %r15
	jg	LBB0_11
LBB0_10:
	movq	_PGF_INVISIBLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r13)
LBB0_19:
	movq	(%rax), %rsi
	movq	%rsi, 8(%r13)
	movq	%rsi, %rcx
LBB0_20:
	movq	%rbx, %r14
LBB0_21:
	cmpq	%rcx, %r14
	setne	%al
	movq	(%r13), %rdx
	cmpq	%rcx, %rdx
	sete	%bl
	cmpb	%bl, %al
	je	LBB0_23
## %bb.22:
	cmpq	%rcx, -64(%rbp)                 ## 8-byte Folded Reload
	sete	%al
	cmpq	%rcx, %rsi
	sete	%cl
	cmpb	%cl, %al
	je	LBB0_24
LBB0_23:
	movq	_SWP_FRAMECHANGED@GOTPCREL(%rip), %rax
	movq	_SWP_NOSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SWP_NOMOVE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	24(%r13), %edi
	movq	_SWP_NOACTIVATE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rsp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_SetWindowPos
	movq	(%r13), %rdx
LBB0_24:
	cmpq	%rdx, %r14
	jne	LBB0_26
## %bb.25:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%r13), %rax
	je	LBB0_27
LBB0_26:
	movl	24(%r13), %edi
	movq	_WM_NCPAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	-44(%rbp), %esi
	leaq	-48(%rbp), %rdi
	callq	_PtInRect
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_PGF_GRAYED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, 8(%r13)
	movq	_PGF_INVISIBLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_PGF_INVISIBLE,8,3              ## @PGF_INVISIBLE
	.comm	_PGF_GRAYED,8,3                 ## @PGF_GRAYED
	.comm	_PGF_NORMAL,8,3                 ## @PGF_NORMAL
	.comm	_SWP_FRAMECHANGED,4,2           ## @SWP_FRAMECHANGED
	.comm	_SWP_NOSIZE,4,2                 ## @SWP_NOSIZE
	.comm	_SWP_NOMOVE,4,2                 ## @SWP_NOMOVE
	.comm	_SWP_NOZORDER,4,2               ## @SWP_NOZORDER
	.comm	_SWP_NOACTIVATE,4,2             ## @SWP_NOACTIVATE
	.comm	_WM_NCPAINT,4,2                 ## @WM_NCPAINT
	.no_dead_strip	_PAGER_UpdateBtns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PAGER_UpdateBtns
_PAGER_UpdateBtns:                      ; @PAGER_UpdateBtns
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x23, x22, [x0]
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_PAGER_GetButtonRects
	add	x0, sp, #12
	bl	_GetCursorPos
	ldr	w0, [x19, #24]
	add	x1, sp, #12
	bl	_ScreenToClient
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _PGF_INVISIBLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PGF_INVISIBLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _PGF_GRAYED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PGF_GRAYED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.2:
Lloh9:
	adrp	x8, _PGF_NORMAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PGF_NORMAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	cbz	w20, LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _PGF_INVISIBLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PGF_INVISIBLE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w1, [sp, #12]
	add	x0, sp, #8
	bl	_PtInRect
	cbz	x0, LBB0_4
; %bb.6:
Lloh13:
	adrp	x8, _PGF_GRAYED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PGF_GRAYED@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_8:
	cmp	x21, #0
	b.le	LBB0_12
; %bb.9:
	ldr	x8, [x19, #16]
	cmp	x8, x21
	b.ge	LBB0_13
; %bb.10:
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _PGF_INVISIBLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PGF_INVISIBLE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _PGF_GRAYED@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PGF_GRAYED@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_16
; %bb.11:
Lloh21:
	adrp	x8, _PGF_NORMAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PGF_NORMAL@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_16
LBB0_12:
Lloh24:
	adrp	x8, _PGF_INVISIBLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PGF_INVISIBLE@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19]
	b	LBB0_15
LBB0_13:
	cbz	w20, LBB0_23
LBB0_14:
Lloh26:
	adrp	x8, _PGF_INVISIBLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PGF_INVISIBLE@GOTPAGEOFF]
LBB0_15:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x9, x8
LBB0_16:
	cmp	x23, x9
	cset	w11, ne
	ldr	x10, [x19]
	cmp	x10, x9
	cset	w12, eq
	cmp	w11, w12
	b.eq	LBB0_18
; %bb.17:
	cmp	x22, x9
	cset	w11, eq
	cmp	x8, x9
	cset	w8, eq
	cmp	w11, w8
	b.eq	LBB0_19
LBB0_18:
Lloh28:
	adrp	x8, _SWP_FRAMECHANGED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SWP_FRAMECHANGED@GOTPAGEOFF]
	ldr	w0, [x19, #24]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _SWP_NOSIZE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SWP_NOSIZE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _SWP_NOMOVE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SWP_NOMOVE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh37:
	adrp	x9, _SWP_NOZORDER@GOTPAGE
Lloh38:
	ldr	x9, [x9, _SWP_NOZORDER@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _SWP_NOACTIVATE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _SWP_NOACTIVATE@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w6, w8, w9
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_SetWindowPos
	ldr	x10, [x19]
LBB0_19:
	cmp	x23, x10
	b.ne	LBB0_21
; %bb.20:
	ldr	x8, [x19, #8]
	cmp	x22, x8
	b.eq	LBB0_22
LBB0_21:
	ldr	w0, [x19, #24]
Lloh43:
	adrp	x8, _WM_NCPAINT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WM_NCPAINT@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
LBB0_22:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_23:
	ldr	w1, [sp, #12]
	add	x0, sp, #4
	bl	_PtInRect
	cbz	x0, LBB0_14
; %bb.24:
Lloh46:
	adrp	x8, _PGF_GRAYED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PGF_GRAYED@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh49:
	adrp	x9, _PGF_INVISIBLE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _PGF_INVISIBLE@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_PGF_INVISIBLE,8,3              ; @PGF_INVISIBLE
	.comm	_PGF_GRAYED,8,3                 ; @PGF_GRAYED
	.comm	_PGF_NORMAL,8,3                 ; @PGF_NORMAL
	.comm	_SWP_FRAMECHANGED,4,2           ; @SWP_FRAMECHANGED
	.comm	_SWP_NOSIZE,4,2                 ; @SWP_NOSIZE
	.comm	_SWP_NOMOVE,4,2                 ; @SWP_NOMOVE
	.comm	_SWP_NOZORDER,4,2               ; @SWP_NOZORDER
	.comm	_SWP_NOACTIVATE,4,2             ; @SWP_NOACTIVATE
	.comm	_WM_NCPAINT,4,2                 ; @WM_NCPAINT
	.no_dead_strip	_PAGER_UpdateBtns
.subsections_via_symbols
