	.file	"267330.c"
	.intel_syntax noprefix
	.text
	.globl	CISS_DRIVER_VERSION
	.bss
	.align 4
	.type	CISS_DRIVER_VERSION, @object
	.size	CISS_DRIVER_VERSION, 4
CISS_DRIVER_VERSION:
	.zero	4
	.globl	EINVAL
	.align 4
	.type	EINVAL, @object
	.size	EINVAL, 4
EINVAL:
	.zero	4
	.globl	EIO
	.align 4
	.type	EIO, @object
	.size	EIO, 4
EIO:
	.zero	4
	.globl	ENOIOCTL
	.align 4
	.type	ENOIOCTL, @object
	.size	ENOIOCTL, 4
ENOIOCTL:
	.zero	4
	.section	.rodata
.LC0:
	.string	"unknown ioctl 0x%lx"
.LC1:
	.string	"CCISS_GETPCIINFO:   0x%lx"
.LC2:
	.string	"CCISS_GETINTINFO:   0x%lx"
.LC3:
	.string	"CCISS_SETINTINFO:   0x%lx"
.LC4:
	.string	"CCISS_GETNODENAME:  0x%lx"
.LC5:
	.string	"CCISS_SETNODENAME:  0x%lx"
.LC6:
	.string	"CCISS_GETHEARTBEAT: 0x%lx"
.LC7:
	.string	"CCISS_GETBUSTYPES:  0x%lx"
.LC8:
	.string	"CCISS_GETFIRMVER:   0x%lx"
.LC9:
	.string	"CCISS_GETDRIVERVER: 0x%lx"
.LC10:
	.string	"CCISS_REVALIDVOLS:  0x%lx"
.LC11:
	.string	"CCISS_PASSTHRU:     0x%lx"
	.text
	.type	ciss_ioctl, @function
ciss_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	QWORD PTR -120[rbp], rdi
	mov	DWORD PTR -124[rbp], esi
	mov	QWORD PTR -136[rbp], rdx
	mov	DWORD PTR -128[rbp], ecx
	mov	QWORD PTR -144[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	edi, 1
	call	debug_called@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -108[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	mtx_lock@PLT
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 130
	cmp	eax, 12
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L16-.L4
	.long	.L15-.L4
	.long	.L25-.L4
	.long	.L13-.L4
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L11:
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, -128
	cmp	rax, 1
	ja	.L17
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR 32[rdx]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rdx]
	sal	rdx, 2
	add	rcx, rdx
	mov	edx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	bcopy@PLT
	jmp	.L18
.L17:
	mov	eax, DWORD PTR ENOIOCTL[rip]
	mov	DWORD PTR -108[rbp], eax
	nop
.L18:
	jmp	.L19
.L10:
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	pci_get_bus@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	pci_get_slot@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	pci_get_subvendor@PLT
	sal	eax, 16
	mov	ebx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	pci_get_subdevice@PLT
	or	ebx, eax
	mov	edx, ebx
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L19
.L8:
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L19
.L15:
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR -108[rbp], eax
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	ciss_update_config@PLT
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR EIO[rip]
	mov	DWORD PTR -108[rbp], eax
	jmp	.L26
.L9:
	mov	rcx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	bcopy@PLT
	jmp	.L19
.L16:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	bcopy@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	ciss_update_config@PLT
	test	eax, eax
	je	.L27
	mov	eax, DWORD PTR EIO[rip]
	mov	DWORD PTR -108[rbp], eax
	jmp	.L27
.L7:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR [rax], edx
	jmp	.L19
.L3:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	jmp	.L19
.L6:
	mov	rcx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	bcopy@PLT
	jmp	.L19
.L5:
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR CISS_DRIVER_VERSION[rip]
	mov	DWORD PTR [rax], edx
	jmp	.L19
.L13:
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	QWORD PTR -48[rbp], rax
	lea	rax, -48[rbp]
	mov	QWORD PTR -104[rbp], rax
.L12:
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ciss_user_command@PLT
	mov	DWORD PTR -108[rbp], eax
	jmp	.L19
.L2:
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	edi, 0
	call	debug@PLT
	mov	edx, 136
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 138
	lea	rsi, .LC2[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 131
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 137
	lea	rsi, .LC4[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 130
	lea	rsi, .LC5[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 139
	lea	rsi, .LC6[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 142
	lea	rsi, .LC7[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 140
	lea	rsi, .LC8[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 141
	lea	rsi, .LC9[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 132
	lea	rsi, .LC10[rip]
	mov	edi, 1
	call	debug@PLT
	mov	edx, 134
	lea	rsi, .LC11[rip]
	mov	edi, 1
	call	debug@PLT
	mov	eax, DWORD PTR ENOIOCTL[rip]
	mov	DWORD PTR -108[rbp], eax
	jmp	.L19
.L25:
	nop
	jmp	.L19
.L26:
	nop
	jmp	.L19
.L27:
	nop
.L19:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	mtx_unlock@PLT
	mov	eax, DWORD PTR -108[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ciss_ioctl, .-ciss_ioctl
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"267330.c"
	.text
	.comm	CISS_DRIVER_VERSION,4,4
	.comm	EINVAL,4,4
	.comm	EIO,4,4
	.comm	ENOIOCTL,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"unknown ioctl 0x%lx\000"
	.align	2
.LC1:
	.ascii	"CCISS_GETPCIINFO:   0x%lx\000"
	.align	2
.LC2:
	.ascii	"CCISS_GETINTINFO:   0x%lx\000"
	.align	2
.LC3:
	.ascii	"CCISS_SETINTINFO:   0x%lx\000"
	.align	2
.LC4:
	.ascii	"CCISS_GETNODENAME:  0x%lx\000"
	.align	2
.LC5:
	.ascii	"CCISS_SETNODENAME:  0x%lx\000"
	.align	2
.LC6:
	.ascii	"CCISS_GETHEARTBEAT: 0x%lx\000"
	.align	2
.LC7:
	.ascii	"CCISS_GETBUSTYPES:  0x%lx\000"
	.align	2
.LC8:
	.ascii	"CCISS_GETFIRMVER:   0x%lx\000"
	.align	2
.LC9:
	.ascii	"CCISS_GETDRIVERVER: 0x%lx\000"
	.align	2
.LC10:
	.ascii	"CCISS_REVALIDVOLS:  0x%lx\000"
	.align	2
.LC11:
	.ascii	"CCISS_PASSTHRU:     0x%lx\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ciss_ioctl, %function
ciss_ioctl:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-36]
	mov	r0, #1
	bl	debug_called
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	mtx_lock
	ldr	r3, [fp, #-52]
	sub	r3, r3, #130
	cmp	r3, #12
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L15
	.word	.L14
	.word	.L23
	.word	.L2
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L11:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	sub	r3, r3, #128
	cmp	r3, #1
	bhi	.L16
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [fp, #-20]
	mov	r2, #4
	mov	r0, r3
	bl	bcopy
	b	.L17
.L16:
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	nop
.L17:
	b	.L18
.L10:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	pci_get_bus
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	pci_get_slot
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	pci_get_subvendor
	mov	r3, r0
	lsl	r4, r3, #16
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	pci_get_subdevice
	mov	r3, r0
	orr	r2, r4, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	b	.L18
.L8:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	b	.L18
.L14:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L26+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	b	.L18
.L19:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #4]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	str	r2, [r3, #12]
	ldr	r0, [fp, #-32]
	bl	ciss_update_config
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L26+8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	b	.L24
.L9:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-56]
	mov	r2, #4
	mov	r0, r3
	bl	bcopy
	b	.L18
.L15:
	ldr	r0, [fp, #-56]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #8]
	mov	r2, #4
	mov	r1, r3
	bl	bcopy
	ldr	r0, [fp, #-32]
	bl	ciss_update_config
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L26+8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	b	.L25
.L7:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-56]
	ldr	r2, [r2, #4]
	str	r2, [r3]
	b	.L18
.L3:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-56]
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L18
.L6:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	ldr	r1, [fp, #-56]
	mov	r2, #4
	mov	r0, r3
	bl	bcopy
	b	.L18
.L5:
	ldr	r3, [fp, #-56]
	ldr	r2, .L26+12
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L18
.L12:
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	ciss_user_command
	str	r0, [fp, #-40]
	b	.L18
.L2:
	ldr	r2, [fp, #-52]
	ldr	r1, .L26+16
	mov	r0, #0
	bl	debug
	mov	r2, #136
	ldr	r1, .L26+20
	mov	r0, #1
	bl	debug
	mov	r2, #138
	ldr	r1, .L26+24
	mov	r0, #1
	bl	debug
	mov	r2, #131
	ldr	r1, .L26+28
	mov	r0, #1
	bl	debug
	mov	r2, #137
	ldr	r1, .L26+32
	mov	r0, #1
	bl	debug
	mov	r2, #130
	ldr	r1, .L26+36
	mov	r0, #1
	bl	debug
	mov	r2, #139
	ldr	r1, .L26+40
	mov	r0, #1
	bl	debug
	mov	r2, #142
	ldr	r1, .L26+44
	mov	r0, #1
	bl	debug
	mov	r2, #140
	ldr	r1, .L26+48
	mov	r0, #1
	bl	debug
	mov	r2, #141
	ldr	r1, .L26+52
	mov	r0, #1
	bl	debug
	mov	r2, #132
	ldr	r1, .L26+56
	mov	r0, #1
	bl	debug
	mov	r2, #134
	ldr	r1, .L26+60
	mov	r0, #1
	bl	debug
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	b	.L18
.L23:
	nop
	b	.L18
.L24:
	nop
	b	.L18
.L25:
	nop
.L18:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	mtx_unlock
	ldr	r3, [fp, #-40]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	ENOIOCTL
	.word	EINVAL
	.word	EIO
	.word	CISS_DRIVER_VERSION
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	ciss_ioctl, .-ciss_ioctl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
