	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function close_preview
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_close_preview
	.p2align	4, 0x90
_close_preview:                         ## @close_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_IDC_PREVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r14d
	xorps	%xmm0, %xmm0
	movq	_preview@GOTPCREL(%rip), %rbx
	movups	%xmm0, 48(%rbx)
	movq	$0, 64(%rbx)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	40(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	cmpq	$0, (%rbx)
	jle	LBB0_2
## %bb.1:
	movl	24(%rbx), %eax
	movl	%eax, 28(%rbx)
LBB0_2:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	_OBJ_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetCurrentObject
	movl	%eax, %r12d
	movq	16(%rbx), %rdi
	callq	_DeleteDC
	movl	%r12d, %edi
	callq	_DeleteObject
	movq	$0, 16(%rbx)
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_OBJ_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetCurrentObject
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	callq	_DeleteDC
	movl	%r12d, %edi
	callq	_DeleteObject
	movq	$0, 8(%rbx)
LBB0_6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_preview_bar_show
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DestroyWindow                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_PREVIEW,4,2                ## @IDC_PREVIEW
	.comm	_preview,72,3                   ## @preview
	.comm	_OBJ_BITMAP,4,2                 ## @OBJ_BITMAP
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_preview                  ; -- Begin function close_preview
	.p2align	2
_close_preview:                         ; @close_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	x19, x0
Lloh0:
	adrp	x8, _IDC_PREVIEW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_PREVIEW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
Lloh3:
	adrp	x22, _preview@GOTPAGE
Lloh4:
	ldr	x22, [x22, _preview@GOTPAGEOFF]
	stp	xzr, xzr, [x22, #56]
	str	xzr, [x22, #48]
	bl	_GetProcessHeap
	ldr	x2, [x22, #40]
	mov	w1, #0
	bl	_HeapFree
	stp	xzr, xzr, [x22, #32]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x22, #24]
	str	w8, [x22, #28]
LBB0_2:
	ldr	x0, [x22, #16]
Lloh5:
	adrp	x23, _OBJ_BITMAP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _OBJ_BITMAP@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x23]
	bl	_GetCurrentObject
	mov	x21, x0
	ldr	x0, [x22, #16]
	bl	_DeleteDC
	mov	x0, x21
	bl	_DeleteObject
	str	xzr, [x22, #16]
LBB0_4:
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x23]
	bl	_GetCurrentObject
	mov	x21, x0
	ldr	x0, [x22, #8]
	bl	_DeleteDC
	mov	x0, x21
	bl	_DeleteObject
	str	xzr, [x22, #8]
LBB0_6:
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_preview_bar_show
	mov	x0, x20
	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	_DestroyWindow
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_PREVIEW,4,2                ; @IDC_PREVIEW
	.comm	_preview,72,3                   ; @preview
	.comm	_OBJ_BITMAP,4,2                 ; @OBJ_BITMAP
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
