	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_open
_DAC960_open:                           ## @DAC960_open
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rcx
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movq	(%rcx), %rbx
	movq	(%rbx), %rcx
	movq	_DAC960_V1_Controller@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	24(%rbx), %rcx
	movslq	%eax, %r14
	movq	(%rcx,%r14,8), %rax
	movq	_DAC960_V1_LogicalDrive_Offline@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movq	16(%rbx), %rcx
	movslq	%eax, %r14
	movq	(%rcx,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%rax), %rax
	movq	_DAC960_V2_LogicalDevice_Offline@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_5:
	callq	_check_disk_change
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_get_capacity
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC960_V1_Controller,8,3       ## @DAC960_V1_Controller
	.comm	_DAC960_V1_LogicalDrive_Offline,8,3 ## @DAC960_V1_LogicalDrive_Offline
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_DAC960_V2_LogicalDevice_Offline,8,3 ## @DAC960_V2_LogicalDevice_Offline
	.no_dead_strip	_DAC960_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_open
_DAC960_open:                           ; @DAC960_open
	.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
	ldr	x8, [x0]
	ldp	x8, x9, [x8]
	ldr	x19, [x9]
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _DAC960_V1_Controller@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DAC960_V1_Controller@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x19, #24]
	sbfiz	x10, x8, #3, #32
	ldr	x9, [x9, x10]
Lloh3:
	adrp	x10, _DAC960_V1_LogicalDrive_Offline@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DAC960_V1_LogicalDrive_Offline@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x9, [x19, #16]
	sbfiz	x10, x8, #3, #32
	ldr	x9, [x9, x10]
	cbz	x9, LBB0_7
; %bb.3:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _DAC960_V2_LogicalDevice_Offline@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DAC960_V2_LogicalDevice_Offline@GOTPAGEOFF]
LBB0_4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.5:
	sxtw	x20, w8
	bl	_check_disk_change
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_get_capacity
	cbz	w0, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC960_V1_Controller,8,3       ; @DAC960_V1_Controller
	.comm	_DAC960_V1_LogicalDrive_Offline,8,3 ; @DAC960_V1_LogicalDrive_Offline
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_DAC960_V2_LogicalDevice_Offline,8,3 ; @DAC960_V2_LogicalDevice_Offline
	.no_dead_strip	_DAC960_open
.subsections_via_symbols
