	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cciss_add_controller_node
_cciss_add_controller_node:             ## @cciss_add_controller_node
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	_CTLR_LUNID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_cciss_add_gendisk
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r14d
	movq	16(%rbx), %rax
	movslq	%r14d, %r15
	movq	(%rax,%r15,8), %rax
	movabsq	$-4294966784, %rcx              ## imm = 0xFFFFFFFF00000200
	movq	%rcx, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movups	%xmm0, 32(%rax)
	movl	8(%rax), %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_cciss_add_disk
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cciss_free_gendisk
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cciss_free_drive_info
LBB0_4:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTLR_LUNID,4,2                 ## @CTLR_LUNID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not add disk 0.\n"

	.no_dead_strip	_cciss_add_controller_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cciss_add_controller_node
lCPI0_0:
	.long	512                             ; 0x200
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cciss_add_controller_node:             ; @cciss_add_controller_node
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x8, _CTLR_LUNID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTLR_LUNID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_cciss_add_gendisk
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	x8, [x19, #16]
	sbfiz	x21, x20, #3, #32
	ldr	x8, [x8, x21]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8, #16]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	ldr	w0, [x8, #8]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x21]
	mov	x0, x19
	mov	x2, x20
	bl	_cciss_add_disk
	cbz	x0, LBB0_1
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_cciss_free_gendisk
	mov	x0, x19
	mov	x1, x20
	bl	_cciss_free_drive_info
LBB0_5:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CTLR_LUNID,4,2                 ; @CTLR_LUNID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not add disk 0.\n"

	.no_dead_strip	_cciss_add_controller_node
.subsections_via_symbols
