	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PAGER_PositionChildWnd
_PAGER_PositionChildWnd:                ## @PAGER_PositionChildWnd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 32(%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movq	8(%rdi), %rax
	movq	_PGF_GRAYED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	addl	48(%rbx), %r14d
LBB0_3:
	movl	40(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	_GetClientRect
	movq	_PGS_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_7
## %bb.4:
	movq	-24(%rbp), %rsi
	subq	-32(%rbp), %rsi
	xorl	%edi, %edi
	callq	_max
	movl	20(%rbx), %edx
	cmpl	%eax, %edx
	jge	LBB0_6
## %bb.5:
	movl	%eax, 20(%rbx)
	movl	%eax, %edx
LBB0_6:
	movl	24(%rbx), %ecx
	movl	40(%rbx), %esi
	negl	%r14d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_TRACE
	movq	32(%rbx), %rdi
	movq	_HWND_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %r8d
	movl	24(%rbx), %r9d
	movl	$0, (%rsp)
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_7:
	movq	-40(%rbp), %rsi
	subq	-48(%rbp), %rsi
	xorl	%edi, %edi
	callq	_max
	movl	24(%rbx), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_9
## %bb.8:
	movl	%eax, 24(%rbx)
	movl	%eax, %ecx
LBB0_9:
	movl	20(%rbx), %edx
	movl	40(%rbx), %esi
	negl	%r14d
	leaq	L_.str(%rip), %rdi
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	callq	_TRACE
	movq	32(%rbx), %rdi
	movq	_HWND_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %r8d
	movl	24(%rbx), %r9d
	movl	$0, (%rsp)
	xorl	%edx, %edx
	movl	%r14d, %ecx
LBB0_10:
	callq	_SetWindowPos
	movq	32(%rbx), %rdi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_InvalidateRect
LBB0_11:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGF_GRAYED,8,3                 ## @PGF_GRAYED
	.comm	_PGS_HORZ,4,2                   ## @PGS_HORZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%p] SWP %dx%d at (%d,%d)\n"

	.comm	_HWND_TOP,4,2                   ## @HWND_TOP
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_PAGER_PositionChildWnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PAGER_PositionChildWnd
_PAGER_PositionChildWnd:                ; @PAGER_PositionChildWnd
	.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
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w20, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _PGF_GRAYED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PGF_GRAYED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #48]
	add	w20, w20, w8
LBB0_3:
	ldr	w0, [x19, #40]
	mov	x1, sp
	bl	_GetClientRect
	ldr	w8, [x19, #16]
Lloh3:
	adrp	x9, _PGS_HORZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PGS_HORZ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldp	x9, x8, [sp, #16]
	sub	x1, x8, x9
	mov	w0, #0
	bl	_max
	ldr	w2, [x19, #20]
	cmp	w2, w0
	b.ge	LBB0_6
; %bb.5:
	str	w0, [x19, #20]
	mov	x2, x0
LBB0_6:
	ldr	w1, [x19, #40]
	ldr	w3, [x19, #24]
	neg	w20, w20
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x4, x20
	mov	w5, #0
	bl	_TRACE
	ldr	x0, [x19, #32]
Lloh8:
	adrp	x8, _HWND_TOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HWND_TOP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	w4, w5, [x19, #20]
	mov	x2, x20
	mov	w3, #0
	b	LBB0_10
LBB0_7:
	ldp	x9, x8, [sp]
	sub	x1, x8, x9
	mov	w0, #0
	bl	_max
	ldr	w3, [x19, #24]
	cmp	w3, w0
	b.ge	LBB0_9
; %bb.8:
	str	w0, [x19, #24]
	mov	x3, x0
LBB0_9:
	ldr	w1, [x19, #40]
	ldr	w2, [x19, #20]
	neg	w20, w20
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	w4, #0
	mov	x5, x20
	bl	_TRACE
	ldr	x0, [x19, #32]
Lloh13:
	adrp	x8, _HWND_TOP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HWND_TOP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldp	w4, w5, [x19, #20]
	mov	w2, #0
	mov	x3, x20
LBB0_10:
	mov	w6, #0
	bl	_SetWindowPos
	ldr	x0, [x19, #32]
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_InvalidateRect
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PGF_GRAYED,8,3                 ; @PGF_GRAYED
	.comm	_PGS_HORZ,4,2                   ; @PGS_HORZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%p] SWP %dx%d at (%d,%d)\n"

	.comm	_HWND_TOP,4,2                   ; @HWND_TOP
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_PAGER_PositionChildWnd
.subsections_via_symbols
