	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Dict_Free                 ## -- Begin function HPDF_Dict_Free
	.p2align	4, 0x90
_HPDF_Dict_Free:                        ## @HPDF_Dict_Free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	40(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	*%rax
LBB0_3:
	movq	16(%r14), %rdi
	cmpq	$0, (%rdi)
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	16(%r14), %rdi
	cmpq	(%rdi), %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_HPDF_List_ItemAt
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%eax, %r15
	movl	(%r14), %edi
	movl	32(%r15), %esi
	callq	_HPDF_Obj_Free
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_HPDF_FreeMem
	jmp	LBB0_7
LBB0_8:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
	callq	_HPDF_Stream_Free
	movq	16(%r14), %rdi
LBB0_10:
	callq	_HPDF_List_Free
	movq	$0, 8(%r14)
	movl	(%r14), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_FreeMem                   ## TAILCALL
LBB0_11:
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Dict_Free                 ; -- Begin function HPDF_Dict_Free
	.p2align	2
_HPDF_Dict_Free:                        ; @HPDF_Dict_Free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_11
; %bb.1:
	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
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x20, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	cmp	x20, x8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	bl	_HPDF_List_ItemAt
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x21, w0
	ldr	w0, [x19]
	ldr	w1, [x21, #32]
	bl	_HPDF_Obj_Free
	ldr	w0, [x19]
	mov	x1, x21
	bl	_HPDF_FreeMem
	b	LBB0_5
LBB0_8:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x8
	bl	_HPDF_Stream_Free
	ldr	x0, [x19, #16]
LBB0_10:
	bl	_HPDF_List_Free
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	mov	x1, x19
	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
	b	_HPDF_FreeMem
LBB0_11:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
