	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AppPageCleanup                 ## -- Begin function AppPageCleanup
	.p2align	4, 0x90
_AppPageCleanup:                        ## @AppPageCleanup
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_hApplicationPageListCtrl@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ListView_GetItemCount
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	leaq	-64(%rbp), %r14
	movq	_LVIF_PARAM@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)
	movl	%ebx, -64(%rbp)
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_ListView_GetItem
	movq	-56(%rbp), %r13
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_HeapFree
	incl	%ebx
	movl	(%r15), %edi
	callq	_ListView_GetItemCount
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hApplicationPageListCtrl,4,2   ## @hApplicationPageListCtrl
	.comm	_LVIF_PARAM,4,2                 ## @LVIF_PARAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AppPageCleanup                 ; -- Begin function AppPageCleanup
	.p2align	2
_AppPageCleanup:                        ; @AppPageCleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _hApplicationPageListCtrl@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hApplicationPageListCtrl@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ListView_GetItemCount
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, #0
Lloh2:
	adrp	x22, _LVIF_PARAM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LVIF_PARAM@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x22]
	str	w8, [sp, #24]
	str	w21, [sp, #8]
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_ListView_GetItem
	ldr	x19, [sp, #16]
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x19
	bl	_HeapFree
	add	w21, w21, #1
	ldr	w0, [x20]
	bl	_ListView_GetItemCount
	cmp	w21, w0
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_hApplicationPageListCtrl,4,2   ; @hApplicationPageListCtrl
	.comm	_LVIF_PARAM,4,2                 ; @LVIF_PARAM
.subsections_via_symbols
