	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cciss_update_drive_info
_cciss_update_drive_info:               ## @cciss_update_drive_info
	.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
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$80, %edi
	callq	_kmalloc
	movq	%rax, %rbx
	movl	(%r14), %esi
	movl	$80, %edi
	callq	_kzalloc
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.1:
	testq	%r15, %r15
	je	LBB0_24
## %bb.2:
	movq	(%r12), %rax
	movq	_CCISS_READ_16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_cciss_read_capacity_16
	jmp	LBB0_5
LBB0_24:
	movq	8(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_23
LBB0_4:
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_cciss_read_capacity
	movq	_CCISS_READ_10@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_CCISS_WRITE_10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
LBB0_5:
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_cciss_geometry_inquiry
	movl	-48(%rbp), %eax
	movl	%eax, (%r15)
	movl	-44(%rbp), %eax
	incl	%eax
	movl	%eax, 4(%r15)
	movl	52(%r15), %edx
	movl	44(%r15), %r8d
	movl	48(%r15), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_cciss_get_device_descr
	movl	56(%r15), %edx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$4, %ecx
	callq	_cciss_get_serial_no
	movl	72(%r15), %edi
	movq	24(%r12), %rax
	movslq	%r13d, %r14
	movq	(%rax,%r14,8), %rax
	movl	72(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rax
	cmpl	$-1, 8(%rax)
	je	LBB0_13
## %bb.6:
	movl	56(%r15), %edi
	movl	56(%rax), %esi
	movl	$16, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rax
	jmp	LBB0_13
LBB0_8:
	movl	(%r15), %ecx
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_13
## %bb.9:
	movl	4(%r15), %ecx
	cmpl	4(%rax), %ecx
	jne	LBB0_13
## %bb.10:
	movq	16(%r15), %rcx
	cmpq	16(%rax), %rcx
	jne	LBB0_13
## %bb.11:
	movq	24(%r15), %rcx
	cmpq	24(%rax), %rcx
	jne	LBB0_13
## %bb.12:
	movq	32(%r15), %rcx
	cmpq	32(%rax), %rcx
	je	LBB0_22
LBB0_13:
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.14:
	cmpl	$-1, 8(%rax)
	je	LBB0_18
## %bb.15:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_warn
	movl	%r13d, %ebx
	leaq	40(%r12), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movl	$1, 40(%rax)
	movq	%r13, %rdi
	movl	%ebx, %r13d
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_deregister_disk
	testl	%eax, %eax
	jne	LBB0_22
## %bb.16:
	movq	24(%r12), %rcx
	movq	(%rcx,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_17
LBB0_18:
	movl	%r13d, %ebx
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	movl	4(%r15), %ecx
	movl	%ecx, 4(%rax)
	movups	16(%r15), %xmm0
	movups	%xmm0, 16(%rax)
	movq	32(%r15), %rcx
	movq	%rcx, 32(%rax)
	movl	8(%r15), %ecx
	movl	%ecx, 8(%rax)
	movl	56(%rax), %edi
	movl	56(%r15), %esi
	movl	$16, %edx
	callq	_memcpy
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movl	52(%rax), %edi
	movl	52(%r15), %esi
	movq	_VENDOR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	incl	%edx
	callq	_memcpy
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movl	48(%rax), %edi
	movl	48(%r15), %esi
	movq	_MODEL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	incl	%edx
	callq	_memcpy
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movl	44(%rax), %edi
	movl	44(%r15), %esi
	movq	_REV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	incl	%edx
	callq	_memcpy
LBB0_19:
	incl	16(%r12)
	movq	24(%r12), %rax
	movq	32(%r12), %rcx
	movq	(%rcx,%r14,8), %r13
	movq	(%rax,%r14,8), %rax
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_set_capacity
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cciss_sysfs_stat_inquiry
	orl	%ebx, -64(%rbp)                 ## 4-byte Folded Spill
	je	LBB0_22
## %bb.20:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_cciss_add_disk
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cciss_free_gendisk
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cciss_free_drive_info
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
	decl	16(%r12)
LBB0_22:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	$0, 64(%r15)
	movq	%r15, (%rcx,%r14,8)
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CCISS_READ_16,8,3              ## @CCISS_READ_16
	.comm	_CCISS_WRITE_16,4,2             ## @CCISS_WRITE_16
	.comm	_CCISS_READ_10,8,3              ## @CCISS_READ_10
	.comm	_CCISS_WRITE_10,4,2             ## @CCISS_WRITE_10
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disk %d has changed.\n"

	.comm	_VENDOR_LEN,4,2                 ## @VENDOR_LEN
	.comm	_MODEL_LEN,4,2                  ## @MODEL_LEN
	.comm	_REV_LEN,4,2                    ## @REV_LEN
L_.str.1:                               ## @.str.1
	.asciz	"could not update disk %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"out of memory\n"

	.no_dead_strip	_cciss_update_drive_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cciss_update_drive_info
_cciss_update_drive_info:               ; @cciss_update_drive_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #80
	bl	_kmalloc
	mov	x19, x0
	ldr	w1, [x20]
	mov	w0, #80
	bl	_kzalloc
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x21, #8]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_21
LBB0_2:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _CCISS_READ_16@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CCISS_READ_16@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_cciss_read_capacity_16
	b	LBB0_5
LBB0_4:
	bl	_cciss_read_capacity
Lloh7:
	adrp	x8, _CCISS_READ_10@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CCISS_READ_10@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh10:
	adrp	x8, _CCISS_WRITE_10@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CCISS_WRITE_10@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #44]
LBB0_5:
	ldp	w2, w3, [sp, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x4, x19
	mov	x5, x20
	bl	_cciss_geometry_inquiry
	ldr	w8, [sp, #12]
	str	w8, [x20]
	ldr	w8, [sp, #8]
	add	w8, w8, #1
	str	w8, [x20, #4]
	ldp	w3, w2, [x20, #48]
	ldr	w4, [x20, #44]
	mov	x0, x21
	mov	x1, x22
	bl	_cciss_get_device_descr
	ldr	w2, [x20, #56]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #4
	bl	_cciss_get_serial_no
	ldr	w0, [x20, #72]
	ldr	x8, [x21, #24]
	sxtw	x26, w22
	sbfiz	x25, x22, #3, #32
	ldr	x8, [x8, x25]
	ldr	w1, [x8, #72]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x25]
	ldr	w9, [x8, #8]
	cmn	w9, #1
	b.eq	LBB0_13
; %bb.6:
	ldr	w0, [x20, #56]
	ldr	w1, [x8, #56]
	mov	w2, #16
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x26, lsl #3]
	b	LBB0_13
LBB0_8:
	ldr	w9, [x20]
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x26, lsl #3]
	ldr	w10, [x8]
	cmp	w9, w10
	b.ne	LBB0_13
; %bb.9:
	ldr	w9, [x20, #4]
	ldr	w10, [x8, #4]
	cmp	w9, w10
	b.ne	LBB0_13
; %bb.10:
	ldr	x9, [x20, #16]
	ldr	x10, [x8, #16]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.11:
	ldr	x9, [x20, #24]
	ldr	x10, [x8, #24]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:
	ldr	x9, [x20, #32]
	ldr	x10, [x8, #32]
	cmp	x9, x10
	b.eq	LBB0_21
LBB0_13:
	lsl	x27, x26, #3
	cbz	w22, LBB0_17
; %bb.14:
	ldr	w9, [x8, #8]
	cmn	w9, #1
	b.eq	LBB0_17
; %bb.15:
	ldr	x0, [x21, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
	add	x25, x21, #40
	mov	x0, x25
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x26, lsl #3]
	mov	w9, #1
	str	w9, [x8, #40]
	mov	x0, x25
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x3, x24
	bl	_deregister_disk
	cbnz	w0, LBB0_21
; %bb.16:
	ldr	x9, [x21, #24]
	ldr	x8, [x9, x26, lsl #3]
	cbz	x8, LBB0_22
LBB0_17:
	ldr	d0, [x20]
	str	d0, [x8]
	ldr	q0, [x20, #16]
	str	q0, [x8, #16]
	ldr	x9, [x20, #32]
	str	x9, [x8, #32]
	ldr	w9, [x20, #8]
	str	w9, [x8, #8]
	ldr	w0, [x8, #56]
	ldr	w1, [x20, #56]
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x27]
	ldr	w0, [x8, #52]
	ldr	w1, [x20, #52]
Lloh15:
	adrp	x8, _VENDOR_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VENDOR_LEN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w2, w8, #1
	bl	_memcpy
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x27]
	ldr	w0, [x8, #48]
	ldr	w1, [x20, #48]
Lloh18:
	adrp	x8, _MODEL_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MODEL_LEN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w2, w8, #1
	bl	_memcpy
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x27]
	ldr	w0, [x8, #44]
	ldr	w1, [x20, #44]
Lloh21:
	adrp	x8, _REV_LEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REV_LEN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	add	w2, w8, #1
	bl	_memcpy
LBB0_18:
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
	ldp	x9, x8, [x21, #24]
	ldr	x24, [x8, x27]
	ldr	x8, [x9, x27]
	ldr	w1, [x8, #4]
	mov	x0, x24
	bl	_set_capacity
	ldr	x8, [x21, #24]
	ldr	x2, [x8, x27]
	mov	x0, x21
	mov	x1, x22
	bl	_cciss_sysfs_stat_inquiry
	orr	w8, w23, w22
	cbz	w8, LBB0_21
; %bb.19:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	bl	_cciss_add_disk
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x21
	mov	x1, x22
	bl	_cciss_free_gendisk
	mov	x0, x21
	mov	x1, x22
	bl	_cciss_free_drive_info
	ldr	x0, [x21, #8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
	ldr	w8, [x21, #16]
	sub	w8, w8, #1
	str	w8, [x21, #16]
LBB0_21:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
	str	xzr, [x20, #64]
	str	x20, [x9, x26, lsl #3]
	mov	x20, #0
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CCISS_READ_16,8,3              ; @CCISS_READ_16
	.comm	_CCISS_WRITE_16,4,2             ; @CCISS_WRITE_16
	.comm	_CCISS_READ_10,8,3              ; @CCISS_READ_10
	.comm	_CCISS_WRITE_10,4,2             ; @CCISS_WRITE_10
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disk %d has changed.\n"

	.comm	_VENDOR_LEN,4,2                 ; @VENDOR_LEN
	.comm	_MODEL_LEN,4,2                  ; @MODEL_LEN
	.comm	_REV_LEN,4,2                    ; @REV_LEN
l_.str.1:                               ; @.str.1
	.asciz	"could not update disk %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"out of memory\n"

	.no_dead_strip	_cciss_update_drive_info
.subsections_via_symbols
