	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CleanupHub                     ## -- Begin function CleanupHub
	.p2align	4, 0x90
_CleanupHub:                            ## @CleanupHub
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	testq	%r14, %r14
	je	LBB0_14
## %bb.1:
	movq	104(%r14), %rdx
	movl	%ebx, %esi
	callq	_StrCpy
	cmpq	$0, 144(%r14)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_StopHubWatchDog
LBB0_3:
	movq	%r14, %rdi
	callq	_FreeAccessList
	movq	136(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_Free
	movl	128(%r14), %edi
	callq	_FreeBuf
LBB0_5:
	movq	%r14, %rdi
	callq	_ReleaseAllLink
	movl	124(%r14), %edi
	callq	_DeleteHubDb
	movl	120(%r14), %edi
	callq	_ReleaseCedar
	movl	116(%r14), %edi
	callq	_DeleteLock
	movl	112(%r14), %edi
	callq	_DeleteLock
	movq	104(%r14), %rdi
	callq	_Free
	movl	96(%r14), %edi
	callq	_ReleaseList
	movl	92(%r14), %edi
	callq	_ReleaseHashList
	movl	88(%r14), %edi
	callq	_ReleaseList
	movl	84(%r14), %edi
	callq	_ReleaseList
	movl	80(%r14), %edi
	callq	_ReleaseList
	movl	76(%r14), %edi
	callq	_DeleteCounter
	movl	72(%r14), %edi
	callq	_DeleteCounter
	movl	68(%r14), %edi
	callq	_DeleteCounter
	movl	64(%r14), %edi
	callq	_DeleteCounter
	movl	60(%r14), %edi
	callq	_FreeTraffic
	movl	56(%r14), %edi
	callq	_FreeTraffic
	movq	48(%r14), %rdi
	callq	_Free
	movq	40(%r14), %rdi
	callq	_Free
	movl	36(%r14), %edi
	callq	_DeleteLock
	movl	32(%r14), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r14), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %rdi
	callq	_Free
	incq	%rbx
	movl	32(%r14), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movl	32(%r14), %edi
	callq	_ReleaseList
	movl	28(%r14), %edi
	callq	_DeleteLock
	movl	24(%r14), %edi
	callq	_FreeLog
	movl	20(%r14), %edi
	callq	_FreeLog
	movl	16(%r14), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	callq	_LIST_DATA
	movq	%rax, %rdi
	callq	_Free
	incq	%rbx
	movl	16(%r14), %edi
	callq	_LIST_NUM
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movl	16(%r14), %edi
	callq	_ReleaseList
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_Free
LBB0_13:
	movl	(%r14), %edi
	callq	_FreeUserList
	movq	%r14, %rdi
	callq	_Free
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CleanupHub                     ; -- Begin function CleanupHub
	.p2align	2
_CleanupHub:                            ; @CleanupHub
	.cfi_startproc
; %bb.0:
	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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x0, x8, x9
	mov	sp, x0
	cbz	x19, LBB0_14
; %bb.1:
	ldr	x2, [x19, #104]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_StrCpy
	ldr	x8, [x19, #144]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_StopHubWatchDog
LBB0_3:
	mov	x0, x19
	bl	_FreeAccessList
	ldr	x0, [x19, #136]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_Free
	ldr	w0, [x19, #128]
	bl	_FreeBuf
LBB0_5:
	mov	x0, x19
	bl	_ReleaseAllLink
	ldr	w0, [x19, #124]
	bl	_DeleteHubDb
	ldr	w0, [x19, #120]
	bl	_ReleaseCedar
	ldr	w0, [x19, #116]
	bl	_DeleteLock
	ldr	w0, [x19, #112]
	bl	_DeleteLock
	ldr	x0, [x19, #104]
	bl	_Free
	ldr	w0, [x19, #96]
	bl	_ReleaseList
	ldr	w0, [x19, #92]
	bl	_ReleaseHashList
	ldr	w0, [x19, #88]
	bl	_ReleaseList
	ldr	w0, [x19, #84]
	bl	_ReleaseList
	ldr	w0, [x19, #80]
	bl	_ReleaseList
	ldr	w0, [x19, #76]
	bl	_DeleteCounter
	ldr	w0, [x19, #72]
	bl	_DeleteCounter
	ldr	w0, [x19, #68]
	bl	_DeleteCounter
	ldr	w0, [x19, #64]
	bl	_DeleteCounter
	ldr	w0, [x19, #60]
	bl	_FreeTraffic
	ldr	w0, [x19, #56]
	bl	_FreeTraffic
	ldr	x0, [x19, #48]
	bl	_Free
	ldr	x0, [x19, #40]
	bl	_Free
	ldr	w0, [x19, #36]
	bl	_DeleteLock
	ldr	w0, [x19, #32]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_LIST_DATA
	bl	_Free
	add	x20, x20, #1
	ldr	w0, [x19, #32]
	bl	_LIST_NUM
	cmp	x20, x0
	b.lt	LBB0_7
LBB0_8:
	ldr	w0, [x19, #32]
	bl	_ReleaseList
	ldr	w0, [x19, #28]
	bl	_DeleteLock
	ldr	w0, [x19, #24]
	bl	_FreeLog
	ldr	w0, [x19, #20]
	bl	_FreeLog
	ldr	w0, [x19, #16]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x20, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_LIST_DATA
	bl	_Free
	add	x20, x20, #1
	ldr	w0, [x19, #16]
	bl	_LIST_NUM
	cmp	x20, x0
	b.lt	LBB0_10
LBB0_11:
	ldr	w0, [x19, #16]
	bl	_ReleaseList
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_Free
LBB0_13:
	ldr	w0, [x19]
	bl	_FreeUserList
	mov	x0, x19
	bl	_Free
LBB0_14:
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
.subsections_via_symbols
