	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PAGER_CalcSize
_PAGER_CalcSize:                        ## @PAGER_CalcSize
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_ZeroMemory
	movl	4(%rbx), %edi
	movl	%edi, -32(%rbp)
	movq	_GWLP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongPtrW
	movl	%eax, -40(%rbp)
	movq	_PGN_CALCSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -36(%rbp)
	movq	_PGS_HORZ@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	andl	(%rbx), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_PGF_CALCHEIGHT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_PGF_CALCWIDTH@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, -28(%rbp)
	movl	12(%rbx), %ecx
	movl	%ecx, -44(%rbp)
	movl	8(%rbx), %ecx
	movl	%ecx, -48(%rbp)
	movl	16(%rbx), %edi
	movq	_WM_NOTIFY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_SendMessageW
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movl	-44(%rbp), %edx
	movl	%edx, 12(%rbx)
	movl	-48(%rbp), %ecx
	jmp	LBB0_6
LBB0_5:
	movl	-48(%rbp), %ecx
	movl	%ecx, 8(%rbx)
	movl	-44(%rbp), %edx
LBB0_6:
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GWLP_ID,4,2                    ## @GWLP_ID
	.comm	_PGN_CALCSIZE,4,2               ## @PGN_CALCSIZE
	.comm	_PGS_HORZ,4,2                   ## @PGS_HORZ
	.comm	_PGF_CALCWIDTH,4,2              ## @PGF_CALCWIDTH
	.comm	_PGF_CALCHEIGHT,4,2             ## @PGF_CALCHEIGHT
	.comm	_WM_NOTIFY,4,2                  ## @WM_NOTIFY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%p] PGN_CALCSIZE returns %dx%d\n"

	.no_dead_strip	_PAGER_CalcSize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PAGER_CalcSize
_PAGER_CalcSize:                        ; @PAGER_CalcSize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #24
	bl	_ZeroMemory
	ldr	w0, [x19, #4]
	str	w0, [sp, #24]
Lloh0:
	adrp	x8, _GWLP_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GWLP_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetWindowLongPtrW
	mov	x2, x0
Lloh3:
	adrp	x8, _PGN_CALCSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGN_CALCSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #16]
	ldr	w8, [x19]
Lloh6:
	adrp	x20, _PGS_HORZ@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PGS_HORZ@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh8:
	adrp	x10, _PGF_CALCWIDTH@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PGF_CALCWIDTH@GOTPAGEOFF]
Lloh10:
	adrp	x11, _PGF_CALCHEIGHT@GOTPAGE
Lloh11:
	ldr	x11, [x11, _PGF_CALCHEIGHT@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #28]
	ldr	d0, [x19, #8]
	str	d0, [sp, #8]
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x8, _WM_NOTIFY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM_NOTIFY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x3, sp, #8
	bl	_SendMessageW
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	w3, w2, [sp, #8]
	str	w2, [x19, #12]
	b	LBB0_3
LBB0_2:
	ldp	w3, w2, [sp, #8]
	str	w3, [x19, #8]
LBB0_3:
	ldr	w1, [x19, #4]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GWLP_ID,4,2                    ; @GWLP_ID
	.comm	_PGN_CALCSIZE,4,2               ; @PGN_CALCSIZE
	.comm	_PGS_HORZ,4,2                   ; @PGS_HORZ
	.comm	_PGF_CALCWIDTH,4,2              ; @PGF_CALCWIDTH
	.comm	_PGF_CALCHEIGHT,4,2             ; @PGF_CALCHEIGHT
	.comm	_WM_NOTIFY,4,2                  ; @WM_NOTIFY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%p] PGN_CALCSIZE returns %dx%d\n"

	.no_dead_strip	_PAGER_CalcSize
.subsections_via_symbols
