	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_MemStream_FreeData        ## -- Begin function HPDF_MemStream_FreeData
	.p2align	4, 0x90
_HPDF_MemStream_FreeData:               ## @HPDF_MemStream_FreeData
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	(%r14), %rax
	movq	_HPDF_STREAM_MEMORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	24(%r14), %r12
	movq	32(%r12), %rdi
	cmpq	$0, (%rdi)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %r15d
	movq	%rbx, %rsi
	callq	_HPDF_List_ItemAt
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_HPDF_FreeMem
	incq	%rbx
	movq	32(%r12), %rdi
	cmpq	(%rdi), %rbx
	jl	LBB0_4
LBB0_5:
	callq	_HPDF_List_Clear
	movq	$0, 8(%r14)
	movl	24(%r12), %eax
	movl	%eax, 28(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	$0, 16(%r12)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_MemStream_FreeData\n"

	.comm	_HPDF_STREAM_MEMORY,8,3         ## @HPDF_STREAM_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_MemStream_FreeData        ; -- Begin function HPDF_MemStream_FreeData
	.p2align	2
_HPDF_MemStream_FreeData:               ; @HPDF_MemStream_FreeData
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x19, LBB0_6
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _HPDF_STREAM_MEMORY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HPDF_STREAM_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x22, [x19, #24]
	ldr	x0, [x22, #32]
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #16]
	mov	x1, x20
	bl	_HPDF_List_ItemAt
	mov	x1, x0
	mov	x0, x21
	bl	_HPDF_FreeMem
	add	x20, x20, #1
	ldr	x0, [x22, #32]
	ldr	x8, [x0]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	bl	_HPDF_List_Clear
	str	xzr, [x19, #8]
	ldr	w8, [x22, #24]
	str	w8, [x22, #28]
	stp	xzr, xzr, [x22, #8]
	str	xzr, [x22]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_MemStream_FreeData\n"

	.comm	_HPDF_STREAM_MEMORY,8,3         ; @HPDF_STREAM_MEMORY
.subsections_via_symbols
