	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cciss_get_serial_no
_cciss_get_serial_no:                   ## @cciss_get_serial_no
	.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	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$16, %ecx
	movl	$16, %ebx
	cmovll	%ecx, %ebx
	movq	%rdx, %rdi
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_log_unit_to_scsi3addr
	movq	_CISS_INQUIRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TYPE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	$64, %ecx
	movl	$131, %r8d
	leaq	-56(%rbp), %r9
	callq	_sendcmd_withirq
	movq	_IO_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_3:
	movq	%r15, %rdi
	callq	_kfree
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CISS_INQUIRY,4,2               ## @CISS_INQUIRY
	.comm	_TYPE_CMD,4,2                   ## @TYPE_CMD
	.comm	_IO_OK,4,2                      ## @IO_OK
	.comm	_PAGE_83_INQ_BYTES,4,2          ## @PAGE_83_INQ_BYTES
	.no_dead_strip	_cciss_get_serial_no
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cciss_get_serial_no
_cciss_get_serial_no:                   ; @cciss_get_serial_no
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	w8, #16
	cmp	w3, #16
	csel	w20, w3, w8, lt
	mov	x0, x2
	mov	w1, #255
	mov	x2, x20
	bl	_memset
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	mov	x1, sp
	mov	x0, x21
	mov	x2, x23
	bl	_log_unit_to_scsi3addr
Lloh6:
	adrp	x8, _CISS_INQUIRY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CISS_INQUIRY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TYPE_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TYPE_CMD@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	mov	x5, sp
	mov	x0, x21
	mov	x2, x22
	mov	w3, #64
	mov	w4, #131
	bl	_sendcmd_withirq
Lloh12:
	adrp	x8, _IO_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IO_OK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	add	x1, x22, #8
	mov	x0, x19
	mov	x2, x20
	bl	_memcpy
LBB0_3:
	mov	x0, x22
	bl	_kfree
LBB0_4:
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CISS_INQUIRY,4,2               ; @CISS_INQUIRY
	.comm	_TYPE_CMD,4,2                   ; @TYPE_CMD
	.comm	_IO_OK,4,2                      ; @IO_OK
	.comm	_PAGE_83_INQ_BYTES,4,2          ; @PAGE_83_INQ_BYTES
	.no_dead_strip	_cciss_get_serial_no
.subsections_via_symbols
