	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_free                   ## -- Begin function chassis_free
	.p2align	4, 0x90
_chassis_free:                          ## @chassis_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_23
## %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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	80(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %r15
	movq	8(%r15), %rdi
	callq	_g_assert
	movl	(%r15), %edi
	callq	*8(%r15)
	incq	%rbx
	movq	80(%r14), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_3
LBB0_4:
	movl	8(%r14), %edi
	callq	_chassis_shutdown_hooks_call
	movq	80(%r14), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_chassis_plugin_free
	incq	%rbx
	movq	80(%r14), %rdi
	cmpq	(%rdi), %rbx
	jb	LBB0_6
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_g_ptr_array_free
	movq	72(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_g_free
LBB0_9:
	movq	64(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_g_free
LBB0_11:
	movq	56(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_g_free
LBB0_13:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_chassis_stats_free
LBB0_15:
	xorl	%edi, %edi
	callq	_chassis_timestamps_global_free
	movq	40(%r14), %r12
	testq	%r12, %r12
	je	LBB0_20
## %bb.16:
	cmpq	$0, (%r12)
	je	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_chassis_event_thread_free
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_18
LBB0_19:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_g_ptr_array_free
LBB0_20:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_g_free
LBB0_22:
	movq	16(%r14), %rdi
	callq	_g_free
	movl	8(%r14), %edi
	callq	_chassis_shutdown_hooks_free
	movl	4(%r14), %edi
	callq	_lua_scope_free
	movl	(%r14), %edi
	callq	_network_backends_free
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_g_free                         ## TAILCALL
LBB0_23:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_free                   ; -- Begin function chassis_free
	.p2align	2
_chassis_free:                          ; @chassis_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_23
; %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, #80]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x21, [x8, x20, lsl #3]
	ldr	x0, [x21, #8]
	bl	_g_assert
	ldr	x8, [x21, #8]
	ldr	w0, [x21]
	blr	x8
	add	x20, x20, #1
	ldr	x8, [x19, #80]
	ldr	x9, [x8]
	cmp	x20, x9
	b.lo	LBB0_3
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_chassis_shutdown_hooks_call
	ldr	x0, [x19, #80]
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	ldr	x0, [x8, x20, lsl #3]
	bl	_chassis_plugin_free
	add	x20, x20, #1
	ldr	x0, [x19, #80]
	ldr	x8, [x0]
	cmp	x20, x8
	b.lo	LBB0_6
LBB0_7:
Lloh0:
	adrp	x21, _TRUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_g_ptr_array_free
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_g_free
LBB0_9:
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_g_free
LBB0_11:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_g_free
LBB0_13:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_chassis_stats_free
LBB0_15:
	mov	x0, #0
	bl	_chassis_timestamps_global_free
	ldr	x20, [x19, #40]
	cbz	x20, LBB0_20
; %bb.16:
	ldr	x8, [x20]
	cbz	x8, LBB0_19
; %bb.17:
	mov	x22, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22, lsl #3]
	bl	_chassis_event_thread_free
	add	x22, x22, #1
	ldr	x8, [x20]
	cmp	x22, x8
	b.lo	LBB0_18
LBB0_19:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_g_ptr_array_free
LBB0_20:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_g_free
LBB0_22:
	ldr	x0, [x19, #16]
	bl	_g_free
	ldr	w0, [x19, #8]
	bl	_chassis_shutdown_hooks_free
	ldr	w0, [x19, #4]
	bl	_lua_scope_free
	ldr	w0, [x19]
	bl	_network_backends_free
	mov	x0, 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	_g_free
LBB0_23:
	.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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
