	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_preview
_draw_preview:                          ## @draw_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	_preview@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.3:
	cmpl	%r13d, 8(%r14)
	jg	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r14), %rdx
	movl	8(%r14), %ecx
	shll	$3, %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapReAlloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	shll	8(%r14)
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_1:
	movl	$32, 8(%r14)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	8(%r14), %edx
	shll	$2, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	movl	8(%r15), %ebx
	movq	_WHITE_BRUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStockObject
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_FillRect
	leal	-1(%r13), %r12d
	xorl	%eax, %eax
	cmpl	$2, %r13d
	jl	LBB0_9
## %bb.7:
	movl	%r12d, %edi
	callq	_is_last_preview_page
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r14), %rax
	addl	$-2, %r13d
	movl	(%rax,%r13,4), %eax
LBB0_9:
	movl	%eax, 4(%r15)
	movl	(%r15), %ebx
	movq	_EM_FORMATRANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	%r15d, %ecx
	callq	_SendMessageW
	movq	(%r14), %rcx
	movslq	%r12d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	%ebx, (%r15)
	movq	_EM_FORMATRANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SendMessageW                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_preview,16,3                   ## @preview
	.comm	_WHITE_BRUSH,4,2                ## @WHITE_BRUSH
	.comm	_EM_FORMATRANGE,4,2             ## @EM_FORMATRANGE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_draw_preview
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_preview
_draw_preview:                          ; @draw_preview
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _preview@GOTPAGE
Lloh1:
	ldr	x24, [x24, _preview@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x24, #8]
	cmp	w8, w21
	b.gt	LBB0_5
; %bb.2:
	bl	_GetProcessHeap
	ldr	x2, [x24]
	ldr	w8, [x24, #8]
	lsl	w3, w8, #3
	mov	w1, #0
	bl	_HeapReAlloc
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [x24, #8]
	lsl	w8, w8, #1
	str	w8, [x24, #8]
	str	x0, [x24]
	b	LBB0_5
LBB0_4:
	mov	w8, #32
	str	w8, [x24, #8]
	bl	_GetProcessHeap
	ldr	w8, [x24, #8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x24]
	cbz	x0, LBB0_7
LBB0_5:
	ldr	w23, [x20, #8]
Lloh2:
	adrp	x8, _WHITE_BRUSH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WHITE_BRUSH@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_GetStockObject
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_FillRect
	sub	w22, w21, #1
	subs	w21, w21, #2
	b.lt	LBB0_8
; %bb.6:
	mov	x0, x22
	bl	_is_last_preview_page
	cbz	x0, LBB0_9
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w8, #0
	b	LBB0_10
LBB0_9:
	ldr	x8, [x24]
	ldr	w8, [x8, w21, uxtw #2]
LBB0_10:
	str	w8, [x20, #4]
	ldr	w21, [x20]
Lloh5:
	adrp	x23, _EM_FORMATRANGE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _EM_FORMATRANGE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_SendMessageW
	ldr	x8, [x24]
	str	w0, [x8, w22, sxtw #2]
	str	w21, [x20]
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_SendMessageW
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_preview,16,3                   ; @preview
	.comm	_WHITE_BRUSH,4,2                ; @WHITE_BRUSH
	.comm	_EM_FORMATRANGE,4,2             ; @EM_FORMATRANGE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_draw_preview
.subsections_via_symbols
