	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_RegisterBlockDevice
_DAC960_RegisterBlockDevice:            ## @DAC960_RegisterBlockDevice
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_DAC960_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rdi), %edi
	addl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_register_blkdev
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_DAC960_MaxLogicalDrives@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	$0, (%rcx)
	jle	LBB0_9
## %bb.3:
	leaq	24(%r13), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	movq	16(%r13), %rax
	movq	%r15, (%rax,%rbx,8)
	movl	12(%r13), %esi
	movq	%r15, %rdi
	callq	_blk_queue_bounce_limit
	movq	%r13, (%r15)
	movl	8(%r13), %esi
	movq	%r15, %rdi
	callq	_blk_queue_max_segments
	movl	4(%r13), %esi
	movq	%r15, %rdi
	callq	_blk_queue_max_hw_sectors
	movq	%r15, 24(%r14)
	movl	16(%r14), %edi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %ecx
	callq	_sprintf
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	movq	_DAC960_MaxPartitionsBits@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%ebx, %eax
	shll	%cl, %eax
	movl	%eax, 4(%r14)
	movq	_DAC960_BlockDeviceOperations@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	_DAC960_MaxLogicalDrives@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %r14
	movq	_DAC960_RequestFunction@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_blk_init_queue
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC960_MAJOR,4,2               ## @DAC960_MAJOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dac960"

	.comm	_DAC960_MaxLogicalDrives,4,2    ## @DAC960_MaxLogicalDrives
	.comm	_DAC960_RequestFunction,4,2     ## @DAC960_RequestFunction
L_.str.1:                               ## @.str.1
	.asciz	"DAC960: failure to allocate request queue\n"

L_.str.2:                               ## @.str.2
	.asciz	"rd/c%dd%d"

	.comm	_DAC960_MaxPartitionsBits,4,2   ## @DAC960_MaxPartitionsBits
	.comm	_DAC960_BlockDeviceOperations,4,2 ## @DAC960_BlockDeviceOperations
	.no_dead_strip	_DAC960_RegisterBlockDevice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_RegisterBlockDevice
_DAC960_RegisterBlockDevice:            ; @DAC960_RegisterBlockDevice
	.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
Lloh0:
	adrp	x8, _DAC960_MAJOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DAC960_MAJOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	add	w20, w9, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_register_blkdev
	tbnz	x0, #63, LBB0_8
; %bb.1:
Lloh5:
	adrp	x26, _DAC960_MaxLogicalDrives@GOTPAGE
Lloh6:
	ldr	x26, [x26, _DAC960_MaxLogicalDrives@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
	add	x22, x19, #24
Lloh7:
	adrp	x27, _DAC960_RequestFunction@GOTPAGE
Lloh8:
	ldr	x27, [x27, _DAC960_RequestFunction@GOTPAGEOFF]
Lloh9:
	adrp	x23, _DAC960_BlockDeviceOperations@GOTPAGE
Lloh10:
	ldr	x23, [x23, _DAC960_BlockDeviceOperations@GOTPAGEOFF]
Lloh11:
	adrp	x24, l_.str.2@PAGE
Lloh12:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	ldr	x8, [x19, #16]
	str	x0, [x8, x21, lsl #3]
	ldr	w1, [x19, #12]
	bl	_blk_queue_bounce_limit
	str	x19, [x25]
	ldr	w1, [x19, #8]
	mov	x0, x25
	bl	_blk_queue_max_segments
	ldr	w1, [x19, #4]
	mov	x0, x25
	bl	_blk_queue_max_hw_sectors
	str	x25, [x28, #24]
	ldr	w0, [x28, #16]
	ldr	w2, [x19]
	mov	x1, x24
	mov	x3, x21
	bl	_sprintf
	str	w20, [x28]
Lloh13:
	adrp	x8, _DAC960_MaxPartitionsBits@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DAC960_MaxPartitionsBits@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w8, w21, w8
	str	w8, [x28, #4]
	str	x23, [x28, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x26]
	cmp	x21, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x28, [x8, x21, lsl #3]
	ldr	w0, [x27]
	mov	x1, x22
	bl	_blk_init_queue
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	b	LBB0_4
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC960_MAJOR,4,2               ; @DAC960_MAJOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dac960"

	.comm	_DAC960_MaxLogicalDrives,4,2    ; @DAC960_MaxLogicalDrives
	.comm	_DAC960_RequestFunction,4,2     ; @DAC960_RequestFunction
l_.str.1:                               ; @.str.1
	.asciz	"DAC960: failure to allocate request queue\n"

l_.str.2:                               ; @.str.2
	.asciz	"rd/c%dd%d"

	.comm	_DAC960_MaxPartitionsBits,4,2   ; @DAC960_MaxPartitionsBits
	.comm	_DAC960_BlockDeviceOperations,4,2 ; @DAC960_BlockDeviceOperations
	.no_dead_strip	_DAC960_RegisterBlockDevice
.subsections_via_symbols
