	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CleanupResult
_CleanupResult:                         ## @CleanupResult
	.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
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movl	%edi, %r14d
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	callq	_dlg_del_window
LBB0_2:
	xorl	%eax, %eax
	callq	_dlg_mouse_free_regions
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_free
LBB0_4:
	movq	%r15, %rdi
	callq	_dlg_restore_vars
	movq	_MAX_DAYS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_cached_days@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_free
	movq	(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	_MAX_MONTHS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	movq	_cached_months@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_free
	movq	(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DAYS,4,2                   ## @MAX_DAYS
	.comm	_cached_days,8,3                ## @cached_days
	.comm	_MAX_MONTHS,4,2                 ## @MAX_MONTHS
	.comm	_cached_months,8,3              ## @cached_months
	.no_dead_strip	_CleanupResult
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CleanupResult
_CleanupResult:                         ; @CleanupResult
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x1
	bl	_dlg_del_window
LBB0_2:
	bl	_dlg_mouse_free_regions
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_free
LBB0_4:
	mov	x0, x20
	bl	_dlg_restore_vars
Lloh0:
	adrp	x20, _MAX_DAYS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_DAYS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
Lloh2:
	adrp	x22, _cached_days@GOTPAGE
Lloh3:
	ldr	x22, [x22, _cached_days@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x23, x21, #3
	ldr	x0, [x8, x23]
	bl	_free
	ldr	x8, [x22]
	str	xzr, [x8, x23]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
Lloh4:
	adrp	x20, _MAX_MONTHS@GOTPAGE
Lloh5:
	ldr	x20, [x20, _MAX_MONTHS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x21, #0
Lloh6:
	adrp	x22, _cached_months@GOTPAGE
Lloh7:
	ldr	x22, [x22, _cached_months@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x23, x21, #3
	ldr	x0, [x8, x23]
	bl	_free
	ldr	x8, [x22]
	str	xzr, [x8, x23]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_9
LBB0_10:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DAYS,4,2                   ; @MAX_DAYS
	.comm	_cached_days,8,3                ; @cached_days
	.comm	_MAX_MONTHS,4,2                 ; @MAX_MONTHS
	.comm	_cached_months,8,3              ; @cached_months
	.no_dead_strip	_CleanupResult
.subsections_via_symbols
