	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctr_free
_ctr_free:                              ## @ctr_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$84, %rdi
	callq	_aptUnhook
	movq	_GSPGPU_EVENT_VBlank0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_gspSetEventCallback
	leaq	80(%rbx), %rdi
	callq	_shaderProgramFree
	movl	76(%rbx), %edi
	callq	_DVLB_Free
	movl	72(%rbx), %edi
	callq	_vramFree
	movq	64(%rbx), %rdi
	callq	_linearFree
	movq	56(%rbx), %rdi
	callq	_linearFree
	movq	48(%rbx), %rdi
	callq	_linearFree
	movq	40(%rbx), %rdi
	callq	_linearFree
	movq	32(%rbx), %rdi
	callq	_linearFree
	movq	24(%rbx), %rdi
	callq	_linearFree
	movq	16(%rbx), %rdi
	callq	_linearFree
	movq	8(%rbx), %rdi
	callq	_linearFree
	movq	(%rbx), %rdi
	callq	_linearFree
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_linearFree                     ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSPGPU_EVENT_VBlank0,4,2       ## @GSPGPU_EVENT_VBlank0
	.no_dead_strip	_ctr_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctr_free
_ctr_free:                              ; @ctr_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #84
	bl	_aptUnhook
Lloh0:
	adrp	x8, _GSPGPU_EVENT_VBlank0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSPGPU_EVENT_VBlank0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, #0
	mov	w3, #1
	bl	_gspSetEventCallback
	add	x0, x19, #80
	bl	_shaderProgramFree
	ldr	w0, [x19, #76]
	bl	_DVLB_Free
	ldr	w0, [x19, #72]
	bl	_vramFree
	ldr	x0, [x19, #64]
	bl	_linearFree
	ldr	x0, [x19, #56]
	bl	_linearFree
	ldr	x0, [x19, #48]
	bl	_linearFree
	ldr	x0, [x19, #40]
	bl	_linearFree
	ldr	x0, [x19, #32]
	bl	_linearFree
	ldr	x0, [x19, #24]
	bl	_linearFree
	ldr	x0, [x19, #16]
	bl	_linearFree
	ldr	x0, [x19, #8]
	bl	_linearFree
	ldr	x0, [x19]
	bl	_linearFree
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_linearFree
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GSPGPU_EVENT_VBlank0,4,2       ; @GSPGPU_EVENT_VBlank0
	.no_dead_strip	_ctr_free
.subsections_via_symbols
