	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpg_free                       ## -- Begin function tpg_free
	.p2align	4, 0x90
_tpg_free:                              ## @tpg_free
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_TPG_MAX_PAT_LINES@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.6:
	movq	_TPG_MAX_PLANES@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%r13d, %r13d
	movl	%eax, %edx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %ecx
	movl	%eax, %edx
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movl	%ecx, %esi
	cmpq	%rsi, %r13
	jae	LBB0_2
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%edx, %edx
	movl	$0, %edx
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rdi
	callq	_vfree
	movq	32(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	$0, (%rax)
	movl	(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_vfree
	movq	32(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	$0, (%rax,%rbx,8)
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_vfree
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movq	_TPG_MAX_PLANES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_TPG_MAX_PLANES@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_vfree
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_vfree
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_vfree
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	8(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPG_MAX_PAT_LINES,4,2          ## @TPG_MAX_PAT_LINES
	.comm	_TPG_MAX_PLANES,4,2             ## @TPG_MAX_PLANES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpg_free                       ; -- Begin function tpg_free
	.p2align	2
_tpg_free:                              ; @tpg_free
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x21, _TPG_MAX_PAT_LINES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TPG_MAX_PAT_LINES@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	adrp	x20, _TPG_MAX_PLANES@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TPG_MAX_PLANES@GOTPAGEOFF]
	cbz	w9, LBB0_8
; %bb.1:
	mov	x22, #0
	ldr	w8, [x20]
	mov	x10, x8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x21]
	mov	x10, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, w9, uxtw
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cbz	w10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #32]
	lsl	x23, x22, #3
	ldr	x8, [x8, x23]
	ldr	x0, [x8]
	bl	_vfree
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x23]
	str	xzr, [x8]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lo	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #1
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x23]
	lsl	x25, x24, #3
	ldr	x0, [x8, x25]
	bl	_vfree
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x23]
	str	xzr, [x8, x25]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x23]
	ldr	x0, [x8, x25]
	bl	_vfree
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x23]
	str	xzr, [x8, x25]
	add	x24, x24, #1
	ldr	w8, [x20]
	cmp	x24, x8
	b.lo	LBB0_7
	b	LBB0_2
LBB0_8:
	ldr	w8, [x20]
LBB0_9:
	cbz	w8, LBB0_12
; %bb.10:
	mov	x21, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_vfree
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x22]
	bl	_vfree
	ldr	x8, [x19]
	ldr	x0, [x8, x22]
	bl	_vfree
	ldr	x8, [x19, #16]
	str	xzr, [x8, x22]
	ldr	x8, [x19, #8]
	str	xzr, [x8, x22]
	ldr	x8, [x19]
	str	xzr, [x8, x22]
	add	x21, x21, #1
	ldr	w8, [x20]
	cmp	x21, x8
	b.lo	LBB0_11
LBB0_12:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TPG_MAX_PAT_LINES,4,2          ; @TPG_MAX_PAT_LINES
	.comm	_TPG_MAX_PLANES,4,2             ; @TPG_MAX_PLANES
.subsections_via_symbols
