	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PAGER_NCPaint
_PAGER_NCPaint:                         ## @PAGER_NCPaint
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_WS_MINIMIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_WM_NCPAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_DefWindowProcW
	movl	4(%rbx), %edi
	movq	_DCX_USESTYLE@GOTPCREL(%rip), %rax
	movq	_DCX_WINDOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%esi, %esi
	callq	_GetDCEx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r14d
	movq	_FALSE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_PAGER_GetButtonRects
	movl	-36(%rbp), %edx
	movq	_PGS_HORZ@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	andl	(%rbx), %ecx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	12(%rbx), %esi
	movl	16(%rbx), %r9d
	movl	%r14d, %edi
	callq	_PAGER_DrawButton
	movl	8(%rbx), %r9d
	movl	12(%rbx), %esi
	movl	-40(%rbp), %edx
	movl	(%r12), %ecx
	andl	(%rbx), %ecx
	movl	(%r15), %r8d
	movl	%r14d, %edi
	callq	_PAGER_DrawButton
	movl	4(%rbx), %edi
	movl	%r14d, %esi
	callq	_ReleaseDC
LBB0_3:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_MINIMIZE,4,2                ## @WS_MINIMIZE
	.comm	_WM_NCPAINT,4,2                 ## @WM_NCPAINT
	.comm	_DCX_USESTYLE,4,2               ## @DCX_USESTYLE
	.comm	_DCX_WINDOW,4,2                 ## @DCX_WINDOW
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PGS_HORZ,4,2                   ## @PGS_HORZ
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_PAGER_NCPaint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PAGER_NCPaint
_PAGER_NCPaint:                         ; @PAGER_NCPaint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WS_MINIMIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WS_MINIMIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x2, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh3:
	adrp	x8, _WM_NCPAINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM_NCPAINT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #0
	bl	_DefWindowProcW
Lloh6:
	adrp	x8, _DCX_USESTYLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCX_USESTYLE@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DCX_WINDOW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DCX_WINDOW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w1, #0
	bl	_GetDCEx
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
Lloh12:
	adrp	x21, _FALSE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x19
	bl	_PAGER_GetButtonRects
	ldr	w2, [sp, #8]
	ldr	w8, [x19]
Lloh14:
	adrp	x22, _PGS_HORZ@GOTPAGE
Lloh15:
	ldr	x22, [x22, _PGS_HORZ@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w3, w9, w8
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	ldp	w1, w5, [x19, #12]
	mov	x0, x20
	bl	_PAGER_DrawButton
	ldr	w2, [sp, #12]
	ldr	w8, [x19]
	ldr	w9, [x22]
	and	w3, w9, w8
	ldr	w4, [x21]
	ldp	w5, w1, [x19, #8]
	mov	x0, x20
	bl	_PAGER_DrawButton
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_ReleaseDC
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_MINIMIZE,4,2                ; @WS_MINIMIZE
	.comm	_WM_NCPAINT,4,2                 ; @WM_NCPAINT
	.comm	_DCX_USESTYLE,4,2               ; @DCX_USESTYLE
	.comm	_DCX_WINDOW,4,2                 ; @DCX_WINDOW
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PGS_HORZ,4,2                   ; @PGS_HORZ
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_PAGER_NCPaint
.subsections_via_symbols
