	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_DetectCleanup
_DAC960_DetectCleanup:                  ## @DAC960_DetectCleanup
	.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, %r15
	movl	24(%rdi), %edi
	leaq	60(%r15), %rsi
	callq	_free_dma_loaf
	cmpq	$0, 48(%r15)
	je	LBB0_10
## %bb.1:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_9
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movl	56(%r15), %edi
	callq	_DAC960_PD_DisableInterrupts
	jmp	LBB0_9
LBB0_7:
	movl	56(%r15), %edi
	callq	_DAC960_PG_DisableInterrupts
	jmp	LBB0_9
LBB0_5:
	movl	56(%r15), %edi
	callq	_DAC960_LP_DisableInterrupts
	jmp	LBB0_9
LBB0_6:
	movl	56(%r15), %edi
	callq	_DAC960_LA_DisableInterrupts
	jmp	LBB0_9
LBB0_3:
	movl	56(%r15), %edi
	callq	_DAC960_GEM_DisableInterrupts
	jmp	LBB0_9
LBB0_4:
	movl	56(%r15), %edi
	callq	_DAC960_BA_DisableInterrupts
LBB0_9:
	movq	48(%r15), %rdi
	callq	_iounmap
LBB0_10:
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movq	%r15, %rsi
	callq	_free_irq
LBB0_12:
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	movl	$128, %esi
	callq	_release_region
LBB0_14:
	movl	24(%r15), %edi
	callq	_pci_disable_device
	movq	_DAC960_MaxLogicalDrives@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_18
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	callq	_put_disk
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_18:
	movq	_DAC960_Controllers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_DAC960_MaxLogicalDrives,4,2    ## @DAC960_MaxLogicalDrives
	.comm	_DAC960_Controllers,8,3         ## @DAC960_Controllers
	.no_dead_strip	_DAC960_DetectCleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_DetectCleanup
_DAC960_DetectCleanup:                  ; @DAC960_DetectCleanup
	.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	w0, [x0, #24]
	add	x1, x19, #60
	bl	_free_dma_loaf
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_10
; %bb.1:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_9
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w0, [x19, #56]
	bl	_DAC960_PD_DisableInterrupts
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19, #56]
	bl	_DAC960_PG_DisableInterrupts
	b	LBB0_9
LBB0_5:
	ldr	w0, [x19, #56]
	bl	_DAC960_LP_DisableInterrupts
	b	LBB0_9
LBB0_6:
	ldr	w0, [x19, #56]
	bl	_DAC960_LA_DisableInterrupts
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #56]
	bl	_DAC960_GEM_DisableInterrupts
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #56]
	bl	_DAC960_BA_DisableInterrupts
LBB0_9:
	ldr	x0, [x19, #48]
	bl	_iounmap
LBB0_10:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_12
; %bb.11:
	mov	x1, x19
	bl	_free_irq
LBB0_12:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_14
; %bb.13:
	mov	w1, #128
	bl	_release_region
LBB0_14:
	ldr	w0, [x19, #24]
	bl	_pci_disable_device
Lloh2:
	adrp	x20, _DAC960_MaxLogicalDrives@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DAC960_MaxLogicalDrives@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.15:
	mov	x21, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_put_disk
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_16
LBB0_18:
Lloh4:
	adrp	x8, _DAC960_Controllers@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DAC960_Controllers@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	xzr, [x8, x9, lsl #3]
	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	_kfree
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_DAC960_MaxLogicalDrives,4,2    ; @DAC960_MaxLogicalDrives
	.comm	_DAC960_Controllers,8,3         ; @DAC960_Controllers
	.no_dead_strip	_DAC960_DetectCleanup
.subsections_via_symbols
