	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_DestroyAuxiliaryStructures
_DAC960_DestroyAuxiliaryStructures:     ## @DAC960_DestroyAuxiliaryStructures
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_DAC960_V2_Controller@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	40(%r13), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	80(%r13), %rcx
	movq	$0, 72(%r13)
	movl	8(%r13), %eax
	testl	%eax, %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	64(%r13), %rax
	movq	$0, (%rax,%r15,8)
	movl	8(%r13), %eax
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_18
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	64(%r13), %rcx
	movq	(%rcx,%r15,8), %r12
	testq	%r12, %r12
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	movq	_DAC960_V1_Controller@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	48(%r12), %rcx
	leaq	40(%r12), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	32(%r12), %rcx
	leaq	24(%r12), %rax
	movq	16(%r12), %rbx
	movl	8(%r12), %r14d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_pool_free
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_pci_pool_free
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %eax
	cltd
	idivl	12(%r13)
	cmpl	$1, %edx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	56(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r13)
LBB0_20:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_pci_pool_destroy
LBB0_22:
	movq	(%r13), %rax
	movq	_DAC960_V1_Controller@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_31
## %bb.23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_pci_pool_destroy
LBB0_25:
	movq	_DAC960_MaxLogicalDrives@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_28
## %bb.26:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	movq	32(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_27
LBB0_28:
	movq	_DAC960_V2_MaxPhysicalDevices@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_31
## %bb.29:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	movq	24(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	movq	16(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_30
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC960_V2_Controller,8,3       ## @DAC960_V2_Controller
	.comm	_DAC960_V1_Controller,8,3       ## @DAC960_V1_Controller
	.comm	_DAC960_MaxLogicalDrives,4,2    ## @DAC960_MaxLogicalDrives
	.comm	_DAC960_V2_MaxPhysicalDevices,4,2 ## @DAC960_V2_MaxPhysicalDevices
	.no_dead_strip	_DAC960_DestroyAuxiliaryStructures
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_DestroyAuxiliaryStructures
_DAC960_DestroyAuxiliaryStructures:     ; @DAC960_DestroyAuxiliaryStructures
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DAC960_V2_Controller@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DAC960_V2_Controller@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x20, [x19, #40]
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
	ldr	x21, [x19, #80]
	str	xzr, [x19, #72]
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x25, _DAC960_V1_Controller@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DAC960_V1_Controller@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.4:
	mov	x26, #0
	mov	x22, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #64]
	str	xzr, [x8, x26, lsl #3]
	ldr	w8, [x19, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_17
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #64]
	ldr	x27, [x9, x26, lsl #3]
	cbz	x27, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, #0
	mov	w24, #0
	add	x9, x27, #48
	add	x8, x27, #40
	ldr	x1, [x9]
	cbnz	x1, LBB0_11
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x27, #32
	add	x8, x27, #24
	ldr	x23, [x27, #16]
	ldr	w24, [x27, #8]
	ldr	x1, [x9]
	cbz	x1, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x8]
	mov	x0, x21
	bl	_pci_pool_free
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x23, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_pci_pool_free
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x19, #12]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_kfree
	mov	x22, x27
	b	LBB0_5
LBB0_16:
	mov	x22, #0
LBB0_17:
	mov	x0, x22
	bl	_kfree
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_kfree
	stp	xzr, xzr, [x19, #48]
LBB0_19:
	cbz	x21, LBB0_21
; %bb.20:
	mov	x0, x21
	bl	_pci_pool_destroy
LBB0_21:
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_30
; %bb.22:
	cbz	x20, LBB0_24
; %bb.23:
	mov	x0, x20
	bl	_pci_pool_destroy
LBB0_24:
Lloh5:
	adrp	x20, _DAC960_MaxLogicalDrives@GOTPAGE
Lloh6:
	ldr	x20, [x20, _DAC960_MaxLogicalDrives@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.25:
	mov	x21, #0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19, #32]
	str	xzr, [x8, x22]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_26
LBB0_27:
Lloh7:
	adrp	x20, _DAC960_V2_MaxPhysicalDevices@GOTPAGE
Lloh8:
	ldr	x20, [x20, _DAC960_V2_MaxPhysicalDevices@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:
	mov	x21, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19, #24]
	str	xzr, [x8, x22]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19, #16]
	str	xzr, [x8, x22]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_29
LBB0_30:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC960_V2_Controller,8,3       ; @DAC960_V2_Controller
	.comm	_DAC960_V1_Controller,8,3       ; @DAC960_V1_Controller
	.comm	_DAC960_MaxLogicalDrives,4,2    ; @DAC960_MaxLogicalDrives
	.comm	_DAC960_V2_MaxPhysicalDevices,4,2 ; @DAC960_V2_MaxPhysicalDevices
	.no_dead_strip	_DAC960_DestroyAuxiliaryStructures
.subsections_via_symbols
