	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_V2_ReadDeviceConfiguration
_DAC960_V2_ReadDeviceConfiguration:     ## @DAC960_V2_ReadDeviceConfiguration
	.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, %r15
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_DAC960_V2_NewPhysicalDeviceInfo
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	xorl	%ebx, %ebx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r15
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r14
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	incl	%ebx
	incb	%r12b
	movq	16(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movzbl	%r12b, %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_DAC960_V2_NewPhysicalDeviceInfo
	testl	%eax, %eax
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	8(%r15), %rax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movzwl	%bx, %r13d
	movq	%r12, (%rax,%r13,8)
	movq	%r12, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r14), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	%r14, (%rax,%r13,8)
	movzbl	2(%rbx), %r12d
	movzbl	(%rbx), %r13d
	movzbl	1(%rbx), %edx
	movzbl	%r12b, %ecx
	movq	%r15, %rbx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_DAC960_V2_NewInquiryUnitSerialNumber
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	$31, 4(%r14)
	jmp	LBB0_10
LBB0_11:
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	callq	_kfree
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DAC960_Failure                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHYSICAL DEVICE ALLOCATION"

L_.str.1:                               ## @.str.1
	.asciz	"SERIAL NUMBER ALLOCATION"

	.no_dead_strip	_DAC960_V2_ReadDeviceConfiguration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_V2_ReadDeviceConfiguration
_DAC960_V2_ReadDeviceConfiguration:     ; @DAC960_V2_ReadDeviceConfiguration
	.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
	ldp	x21, x22, [x0, #16]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_DAC960_V2_NewPhysicalDeviceInfo
	cbz	w0, LBB0_8
; %bb.1:
	mov	w26, #0
Lloh0:
	adrp	x27, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _GFP_ATOMIC@GOTPAGEOFF]
	mov	w28, #31
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w26, w26, #1
	add	w8, w22, #1
	ldp	x21, x22, [x19, #16]
	and	w3, w8, #0xff
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_DAC960_V2_NewPhysicalDeviceInfo
	cbz	w0, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x27]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	x8, [x19, #8]
	and	x24, x26, #0xffff
	str	x0, [x8, x24, lsl #3]
	mov	x1, x22
	mov	w2, #8
	bl	_memcpy
	ldr	w1, [x27]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	x8, [x19]
	str	x0, [x8, x24, lsl #3]
	ldrb	w23, [x22]
	ldrb	w24, [x22, #1]
	ldrb	w22, [x22, #2]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	bl	_DAC960_V2_NewInquiryUnitSerialNumber
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	w28, [x25, #4]
	b	LBB0_3
LBB0_8:
	mov	w0, #1
	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
LBB0_9:
	mov	x0, x23
	bl	_kfree
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	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
	b	_DAC960_Failure
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHYSICAL DEVICE ALLOCATION"

l_.str.1:                               ; @.str.1
	.asciz	"SERIAL NUMBER ALLOCATION"

	.no_dead_strip	_DAC960_V2_ReadDeviceConfiguration
.subsections_via_symbols
