	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_Probe
_DAC960_Probe:                          ## @DAC960_Probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DAC960_ControllerCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_DAC960_MaxControllers@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_DAC960_Error
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	callq	_DAC960_DetectController
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_DAC960_InitializeController
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	_DAC960_MaxLogicalDrives@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_disk_size
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_set_capacity
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_add_disk
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_DAC960_CreateProcEntries
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	%r14, %rdi
	callq	_DAC960_FinalizeController
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC960_ControllerCount,8,3     ## @DAC960_ControllerCount
	.comm	_DAC960_MaxControllers,8,3      ## @DAC960_MaxControllers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"More than %d DAC960 Controllers detected - ignoring from Controller at\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DAC960_MaxLogicalDrives,4,2    ## @DAC960_MaxLogicalDrives
	.no_dead_strip	_DAC960_Probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_Probe
_DAC960_Probe:                          ; @DAC960_Probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _DAC960_ControllerCount@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DAC960_ControllerCount@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
Lloh3:
	adrp	x8, _DAC960_MaxControllers@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DAC960_MaxControllers@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	bl	_DAC960_Error
	b	LBB0_9
LBB0_2:
	bl	_DAC960_DetectController
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	bl	_DAC960_InitializeController
	cbz	w0, LBB0_8
; %bb.4:
Lloh8:
	adrp	x22, _DAC960_MaxLogicalDrives@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DAC960_MaxLogicalDrives@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	lsl	x23, x20, #2
	ldr	w21, [x8, x23]
	mov	x0, x19
	mov	x1, x20
	bl	_disk_size
	mov	x1, x0
	mov	x0, x21
	bl	_set_capacity
	ldr	x8, [x19]
	ldr	w0, [x8, x23]
	bl	_add_disk
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x19
	bl	_DAC960_CreateProcEntries
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_DAC960_FinalizeController
LBB0_9:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC960_ControllerCount,8,3     ; @DAC960_ControllerCount
	.comm	_DAC960_MaxControllers,8,3      ; @DAC960_MaxControllers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"More than %d DAC960 Controllers detected - ignoring from Controller at\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DAC960_MaxLogicalDrives,4,2    ; @DAC960_MaxLogicalDrives
	.no_dead_strip	_DAC960_Probe
.subsections_via_symbols
