	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_FinalizeController
_DAC960_FinalizeController:             ## @DAC960_FinalizeController
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_5
## %bb.1:
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	28(%rbx), %rdi
	callq	_del_timer_sync
	movq	8(%rbx), %r14
	movq	_DAC960_V1_Controller@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DAC960_Notice
	cmpq	%r15, %r14
	jne	LBB0_4
## %bb.2:
	movq	_DAC960_V1_Flush@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_DAC960_V1_ExecuteType3
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DAC960_Notice
	movq	16(%rbx), %rax
	movq	_DAC960_PD_Controller@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movl	24(%rbx), %edi
	movl	$128, %esi
	callq	_release_region
	jmp	LBB0_5
LBB0_4:
	movq	_DAC960_V2_PauseDevice@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DAC960_V2_RAID_Controller@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_DAC960_V2_DeviceOperation
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DAC960_Notice
LBB0_5:
	movq	%rbx, %rdi
	callq	_DAC960_UnregisterBlockDevice
	movq	%rbx, %rdi
	callq	_DAC960_DestroyAuxiliaryStructures
	movq	%rbx, %rdi
	callq	_DAC960_DestroyProcEntries
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DAC960_DetectCleanup           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC960_V1_Controller,8,3       ## @DAC960_V1_Controller
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Flushing Cache..."

	.comm	_DAC960_V1_Flush,4,2            ## @DAC960_V1_Flush
L_.str.1:                               ## @.str.1
	.asciz	"done\n"

	.comm	_DAC960_PD_Controller,8,3       ## @DAC960_PD_Controller
	.comm	_DAC960_V2_PauseDevice,4,2      ## @DAC960_V2_PauseDevice
	.comm	_DAC960_V2_RAID_Controller,4,2  ## @DAC960_V2_RAID_Controller
	.no_dead_strip	_DAC960_FinalizeController
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_FinalizeController
_DAC960_FinalizeController:             ; @DAC960_FinalizeController
	.cfi_startproc
; %bb.0:
	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_5
; %bb.1:
	add	x20, x19, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x0, x19, #28
	bl	_del_timer_sync
	ldr	x20, [x19, #8]
Lloh0:
	adrp	x8, _DAC960_V1_Controller@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DAC960_V1_Controller@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DAC960_Notice
	cmp	x20, x21
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _DAC960_V1_Flush@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DAC960_V1_Flush@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_DAC960_V1_ExecuteType3
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DAC960_Notice
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x9, _DAC960_PD_Controller@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DAC960_PD_Controller@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x19, #24]
	mov	w1, #128
	bl	_release_region
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _DAC960_V2_PauseDevice@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DAC960_V2_PauseDevice@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _DAC960_V2_RAID_Controller@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DAC960_V2_RAID_Controller@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_DAC960_V2_DeviceOperation
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DAC960_Notice
LBB0_5:
	mov	x0, x19
	bl	_DAC960_UnregisterBlockDevice
	mov	x0, x19
	bl	_DAC960_DestroyAuxiliaryStructures
	mov	x0, x19
	bl	_DAC960_DestroyProcEntries
	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	_DAC960_DetectCleanup
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC960_V1_Controller,8,3       ; @DAC960_V1_Controller
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Flushing Cache..."

	.comm	_DAC960_V1_Flush,4,2            ; @DAC960_V1_Flush
l_.str.1:                               ; @.str.1
	.asciz	"done\n"

	.comm	_DAC960_PD_Controller,8,3       ; @DAC960_PD_Controller
	.comm	_DAC960_V2_PauseDevice,4,2      ; @DAC960_V2_PauseDevice
	.comm	_DAC960_V2_RAID_Controller,4,2  ; @DAC960_V2_RAID_Controller
	.no_dead_strip	_DAC960_FinalizeController
.subsections_via_symbols
