	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_preview
_print_preview:                         ## @print_preview
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	-76(%rbp), %rsi
	callq	_BeginPaint
	movl	%eax, %r12d
	leaq	-112(%rbp), %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_GetClientRect
	movq	%r14, %rdi
	callq	_CreateRectRgnIndirect
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_preview@GOTPCREL(%rip), %r13
	movl	56(%r13), %r14d
	movq	_SB_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetScrollPos
	subl	%eax, %r14d
	movslq	60(%r13), %r15
	movq	_SB_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_GetScrollPos
	cltq
	subq	%rax, %r15
	movq	_PS_SOLID@GOTPCREL(%rip), %rax
	movq	_PS_INSIDEFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RGB
	movl	%ebx, %edi
	movl	$2, %esi
	movl	%eax, %edx
	callq	_CreatePen
	movl	%r12d, %edi
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_SelectObject
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leal	-2(%r14), %esi
	leal	-2(%r15), %edx
	movl	40(%r13), %eax
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	leal	2(%r14,%rax), %ecx
	movq	48(%r13), %rax
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	leaq	2(%rax,%r15), %r8
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	_SetRect
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-56(%rbp), %r8d
	movl	-52(%rbp), %ecx
	movl	%r12d, %edi
	callq	_Rectangle
	movq	%r14, %rdi
	callq	_CreateRectRgnIndirect
	movl	%eax, %r14d
	movq	_RGN_DIFF@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ebx, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_CombineRgn
	cmpl	$2, (%r13)
	jl	LBB0_2
## %bb.1:
	movl	56(%r13), %ecx
	addl	40(%r13), %ecx
	movl	-44(%rbp), %esi
	addl	%ecx, %esi
	movl	%esi, -44(%rbp)
	addl	-52(%rbp), %ecx
	movl	%ecx, -52(%rbp)
	movl	-56(%rbp), %r8d
	movl	-48(%rbp), %edx
	movl	%r12d, %edi
	callq	_Rectangle
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-56(%rbp), %r8d
	movl	-52(%rbp), %ecx
	movl	%r14d, %edi
	callq	_SetRectRgn
	movl	(%r15), %ecx
	movl	%ebx, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_CombineRgn
LBB0_2:
	movl	%r12d, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_SelectObject
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_DeleteObject
	movq	_GRAY_BRUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStockObject
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_FillRgn
	movl	%r14d, %edi
	callq	_DeleteObject
	movl	%ebx, %edi
	callq	_DeleteObject
	movl	40(%r13), %ecx
	movq	48(%r13), %r8
	movl	68(%r13), %r9d
	movl	24(%r13), %eax
	movl	28(%r13), %r10d
	movq	_SRCCOPY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	subq	$8, %rsp
	movl	%r12d, %edi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_StretchBlt
	addq	$48, %rsp
	movl	20(%r13), %ecx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_draw_margin_lines
	cmpl	$2, (%r13)
	jl	LBB0_6
## %bb.3:
	movl	64(%r13), %edi
	callq	_is_last_preview_page
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$-2, %esi
	movl	$-2, %edx
	callq	_InflateRect
	movq	_WHITE_BRUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStockObject
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_FillRect
	jmp	LBB0_6
LBB0_4:
	movl	40(%r13), %ecx
	addl	56(%r13), %r15d
	addl	%ecx, %r15d
	movq	48(%r13), %r8
	movl	32(%r13), %r9d
	movl	24(%r13), %r11d
	movl	28(%r13), %r10d
	movq	_SRCCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_StretchBlt
	addq	$48, %rsp
	movl	20(%r13), %ecx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_draw_margin_lines
LBB0_6:
	movups	-112(%rbp), %xmm0
	movups	%xmm0, 4(%r13)
	leaq	-76(%rbp), %rsi
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_EndPaint
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_preview,72,3                   ## @preview
	.comm	_SB_HORZ,4,2                    ## @SB_HORZ
	.comm	_SB_VERT,4,2                    ## @SB_VERT
	.comm	_PS_SOLID,4,2                   ## @PS_SOLID
	.comm	_PS_INSIDEFRAME,4,2             ## @PS_INSIDEFRAME
	.comm	_RGN_DIFF,4,2                   ## @RGN_DIFF
	.comm	_GRAY_BRUSH,4,2                 ## @GRAY_BRUSH
	.comm	_SRCCOPY,4,2                    ## @SRCCOPY
	.comm	_WHITE_BRUSH,4,2                ## @WHITE_BRUSH
	.no_dead_strip	_print_preview
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_preview
_print_preview:                         ; @print_preview
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	add	x1, sp, #12
	bl	_BeginPaint
	mov	x20, x0
	add	x1, sp, #32
	mov	x0, x19
	bl	_GetClientRect
	add	x0, sp, #32
	bl	_CreateRectRgnIndirect
	mov	x23, x0
Lloh0:
	adrp	x27, _preview@GOTPAGE
Lloh1:
	ldr	x27, [x27, _preview@GOTPAGEOFF]
	ldr	w21, [x27, #56]
Lloh2:
	adrp	x8, _SB_HORZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SB_HORZ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetScrollPos
	sub	w22, w21, w0
	ldrsw	x21, [x27, #60]
Lloh5:
	adrp	x8, _SB_VERT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SB_VERT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetScrollPos
Lloh8:
	adrp	x8, _PS_SOLID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PS_SOLID@GOTPAGEOFF]
	sub	x21, x21, w0, sxtw
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PS_INSIDEFRAME@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PS_INSIDEFRAME@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w24, w9, w8
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_RGB
	mov	x2, x0
	mov	x0, x24
	mov	w1, #2
	bl	_CreatePen
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	bl	_SelectObject
	mov	x25, x0
	sub	w1, w22, #2
	sub	w2, w21, #2
	ldr	w8, [x27, #40]
	add	w8, w22, w8
	add	w3, w8, #2
	ldr	x8, [x27, #48]
	add	x8, x21, x8
	add	x4, x8, #2
	add	x0, sp, #16
	bl	_SetRect
	ldp	w2, w1, [sp, #24]
	ldp	w4, w3, [sp, #16]
	mov	x0, x20
	bl	_Rectangle
	add	x0, sp, #16
	bl	_CreateRectRgnIndirect
	mov	x26, x0
Lloh14:
	adrp	x28, _RGN_DIFF@GOTPAGE
Lloh15:
	ldr	x28, [x28, _RGN_DIFF@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, x23
	mov	x1, x23
	mov	x2, x26
	bl	_CombineRgn
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x27, #40]
	ldr	w9, [x27, #56]
	ldp	w2, w10, [sp, #24]
	add	w8, w9, w8
	add	w1, w10, w8
	ldp	w4, w9, [sp, #16]
	add	w3, w9, w8
	str	w1, [sp, #28]
	str	w3, [sp, #20]
	mov	x0, x20
	bl	_Rectangle
	ldp	w2, w1, [sp, #24]
	ldp	w4, w3, [sp, #16]
	mov	x0, x26
	bl	_SetRectRgn
	ldr	w3, [x28]
	mov	x0, x23
	mov	x1, x23
	mov	x2, x26
	bl	_CombineRgn
LBB0_2:
	mov	x0, x20
	mov	x1, x25
	bl	_SelectObject
	mov	x0, x24
	bl	_DeleteObject
Lloh16:
	adrp	x8, _GRAY_BRUSH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GRAY_BRUSH@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_GetStockObject
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_FillRgn
	mov	x0, x26
	bl	_DeleteObject
	mov	x0, x23
	bl	_DeleteObject
	ldr	w3, [x27, #40]
	ldr	x4, [x27, #48]
	ldr	w5, [x27, #68]
	ldp	w9, w8, [x27, #24]
Lloh19:
	adrp	x23, _SRCCOPY@GOTPAGE
Lloh20:
	ldr	x23, [x23, _SRCCOPY@GOTPAGEOFF]
	ldr	w10, [x23]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	w6, #0
	mov	w7, #0
	bl	_StretchBlt
	ldr	w3, [x27, #20]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_draw_margin_lines
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.3:
	ldr	w0, [x27, #64]
	bl	_is_last_preview_page
	cbz	w0, LBB0_5
; %bb.4:
	add	x0, sp, #16
	mov	w1, #-2
	mov	w2, #-2
	bl	_InflateRect
Lloh21:
	adrp	x8, _WHITE_BRUSH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WHITE_BRUSH@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_GetStockObject
	mov	x2, x0
	add	x1, sp, #16
	mov	x0, x20
	bl	_FillRect
	b	LBB0_6
LBB0_5:
	ldr	w8, [x27, #56]
	ldr	w3, [x27, #40]
	add	w8, w8, w22
	add	w22, w8, w3
	ldr	x4, [x27, #48]
	ldp	w8, w5, [x27, #28]
	ldr	w9, [x27, #24]
	ldr	w10, [x23]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	w6, #0
	mov	w7, #0
	bl	_StretchBlt
	ldr	w3, [x27, #20]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_draw_margin_lines
LBB0_6:
	ldr	q0, [sp, #32]
	stur	q0, [x27, #4]
	add	x1, sp, #12
	mov	x0, x19
	bl	_EndPaint
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_preview,72,3                   ; @preview
	.comm	_SB_HORZ,4,2                    ; @SB_HORZ
	.comm	_SB_VERT,4,2                    ; @SB_VERT
	.comm	_PS_SOLID,4,2                   ; @PS_SOLID
	.comm	_PS_INSIDEFRAME,4,2             ; @PS_INSIDEFRAME
	.comm	_RGN_DIFF,4,2                   ; @RGN_DIFF
	.comm	_GRAY_BRUSH,4,2                 ; @GRAY_BRUSH
	.comm	_SRCCOPY,4,2                    ; @SRCCOPY
	.comm	_WHITE_BRUSH,4,2                ; @WHITE_BRUSH
	.no_dead_strip	_print_preview
.subsections_via_symbols
