	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_preview
_update_preview:                        ## @update_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_IDC_EDITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movq	_IDC_PREVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDlgItem
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_GetDC
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_make_dc
	movl	%eax, -104(%rbp)
	movq	_preview@GOTPCREL(%rip), %r13
	movups	44(%r13), %xmm0
	movups	%xmm0, -100(%rbp)
	movups	%xmm0, -56(%rbp)
	movq	_margins@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	shufps	$136, %xmm1, %xmm0              ## xmm0 = xmm0[0,2],xmm1[0,2]
	movdqu	-56(%rbp), %xmm1
	movdqa	%xmm1, %xmm2
	psubd	%xmm0, %xmm2
	paddd	%xmm1, %xmm0
	pblendw	$15, %xmm2, %xmm0               ## xmm0 = xmm2[0,1,2,3],xmm0[4,5,6,7]
	movdqu	%xmm0, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	40(%r13), %eax
	movl	%eax, -72(%rbp)
	movl	24(%r13), %r8d
	movl	28(%r13), %ecx
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SetRect
	movq	32(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_CreateCompatibleDC
	movq	%rax, 32(%r13)
	movl	24(%r13), %edx
	movl	28(%r13), %esi
	movl	%r12d, %edi
	callq	_CreateCompatibleBitmap
	movq	32(%r13), %rdi
	movl	%eax, %esi
	callq	_SelectObject
	movq	32(%r13), %rax
LBB0_2:
	movq	%rax, -80(%rbp)
	movq	8(%r13), %rcx
	leaq	-104(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	movl	%r15d, %edi
	callq	_draw_preview
	cmpl	$2, (%r13)
	jl	LBB0_6
## %bb.3:
	leaq	-100(%rbp), %rdx
	movq	16(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	%r12d, %edi
	callq	_CreateCompatibleDC
	movq	%rax, 16(%r13)
	movl	24(%r13), %edx
	movl	28(%r13), %esi
	movl	%r12d, %edi
	callq	_CreateCompatibleBitmap
	movq	16(%r13), %rdi
	movl	%eax, %esi
	callq	_SelectObject
	leaq	-100(%rbp), %rdx
	movq	16(%r13), %rax
LBB0_5:
	movq	%rax, -80(%rbp)
	movq	8(%r13), %rcx
	incq	%rcx
	leaq	-104(%rbp), %rsi
	movl	%r15d, %edi
	callq	_draw_preview
LBB0_6:
	movl	-104(%rbp), %edi
	callq	_DeleteDC
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_ReleaseDC
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_InvalidateRect
	movl	%ebx, %edi
	callq	_update_preview_buttons
	movl	%ebx, %edi
	callq	_update_preview_statusbar
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_EDITOR,4,2                 ## @IDC_EDITOR
	.comm	_IDC_PREVIEW,4,2                ## @IDC_PREVIEW
	.comm	_preview,64,3                   ## @preview
	.comm	_margins,32,3                   ## @margins
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_update_preview
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_preview
_update_preview:                        ; @update_preview
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _IDC_EDITOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_EDITOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x21, x0
Lloh3:
	adrp	x8, _IDC_PREVIEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_PREVIEW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x20, x0
	bl	_GetDC
	mov	x22, x0
	bl	_make_dc
	str	w0, [sp]
Lloh6:
	adrp	x24, _preview@GOTPAGE
Lloh7:
	ldr	x24, [x24, _preview@GOTPAGEOFF]
	ldur	q0, [x24, #44]
	stur	q0, [sp, #4]
	str	q0, [sp, #48]
Lloh8:
	adrp	x8, _margins@GOTPAGE
Lloh9:
	ldr	x8, [x8, _margins@GOTPAGEOFF]
	ldp	q1, q0, [x8]
	ldr	q2, [sp, #48]
	uzp1.4s	v0, v1, v0
	sub.4s	v1, v2, v0
	add.4s	v0, v2, v0
	mov.d	v1[1], v0[1]
	str	q1, [sp, #48]
	str	xzr, [sp, #40]
	ldr	w8, [x24, #40]
	str	w8, [sp, #32]
	ldp	w4, w3, [x24, #24]
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #0
	bl	_SetRect
	ldr	x8, [x24, #32]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_CreateCompatibleDC
	str	x0, [x24, #32]
	ldp	w2, w1, [x24, #24]
	mov	x0, x22
	bl	_CreateCompatibleBitmap
	mov	x1, x0
	ldr	x0, [x24, #32]
	bl	_SelectObject
	ldr	x8, [x24, #32]
LBB0_2:
	str	x8, [sp, #24]
	ldr	x3, [x24, #8]
	mov	x1, sp
	add	x2, sp, #64
	mov	x0, x21
	bl	_draw_preview
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.3:
	mov	x8, sp
	orr	x23, x8, #0x4
	ldr	x8, [x24, #16]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_CreateCompatibleDC
	str	x0, [x24, #16]
	ldp	w2, w1, [x24, #24]
	mov	x0, x22
	bl	_CreateCompatibleBitmap
	mov	x1, x0
	ldr	x0, [x24, #16]
	bl	_SelectObject
	ldr	x8, [x24, #16]
LBB0_5:
	str	x8, [sp, #24]
	ldr	x8, [x24, #8]
	add	x3, x8, #1
	mov	x1, sp
	mov	x0, x21
	mov	x2, x23
	bl	_draw_preview
LBB0_6:
	ldr	w0, [sp]
	bl	_DeleteDC
	mov	x0, x20
	mov	x1, x22
	bl	_ReleaseDC
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_InvalidateRect
	mov	x0, x19
	bl	_update_preview_buttons
	mov	x0, x19
	bl	_update_preview_statusbar
	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
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_EDITOR,4,2                 ; @IDC_EDITOR
	.comm	_IDC_PREVIEW,4,2                ; @IDC_PREVIEW
	.comm	_preview,64,3                   ; @preview
	.comm	_margins,32,3                   ; @margins
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_update_preview
.subsections_via_symbols
