This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
/
32_1_cilled_true-unreach-call_ok_nondet_linux-3.4-32_1-drivers--block--paride--fit2.ko-ldv_main0_sequence_infinite_withcheck_stateful.cil.out.c
2595 lines (2502 loc) · 62.9 KB
/
32_1_cilled_true-unreach-call_ok_nondet_linux-3.4-32_1-drivers--block--paride--fit2.ko-ldv_main0_sequence_infinite_withcheck_stateful.cil.out.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
extern void __VERIFIER_error() __attribute__ ((__noreturn__));
/* Generated by CIL v. 1.3.7 */
/* print_CIL_Input is true */
typedef unsigned short __u16;
typedef unsigned int __u32;
typedef unsigned long long __u64;
typedef short s16;
typedef unsigned short u16;
typedef unsigned int u32;
typedef long __kernel_long_t;
typedef unsigned long __kernel_ulong_t;
typedef __kernel_ulong_t __kernel_size_t;
typedef __kernel_long_t __kernel_ssize_t;
typedef unsigned short umode_t;
typedef __kernel_size_t size_t;
typedef __kernel_ssize_t ssize_t;
struct __anonstruct_atomic_t_7 {
int counter ;
};
typedef struct __anonstruct_atomic_t_7 atomic_t;
struct list_head {
struct list_head *next ;
struct list_head *prev ;
};
struct module;
struct module;
typedef void (*ctor_fn_t)(void);
struct task_struct;
struct task_struct;
struct task_struct;
struct task_struct;
struct arch_spinlock;
struct arch_spinlock;
struct task_struct;
struct task_struct;
struct bug_entry {
int bug_addr_disp ;
int file_disp ;
unsigned short line ;
unsigned short flags ;
};
struct static_key;
struct static_key;
typedef u16 __ticket_t;
typedef u32 __ticketpair_t;
struct __raw_tickets {
__ticket_t head ;
__ticket_t tail ;
};
union __anonunion____missing_field_name_36 {
__ticketpair_t head_tail ;
struct __raw_tickets tickets ;
};
struct arch_spinlock {
union __anonunion____missing_field_name_36 __annonCompField17 ;
};
typedef struct arch_spinlock arch_spinlock_t;
struct task_struct;
struct raw_spinlock {
arch_spinlock_t raw_lock ;
unsigned int magic ;
unsigned int owner_cpu ;
void *owner ;
};
union __anonunion____missing_field_name_39 {
struct raw_spinlock rlock ;
};
struct spinlock {
union __anonunion____missing_field_name_39 __annonCompField19 ;
};
typedef struct spinlock spinlock_t;
struct __wait_queue_head {
spinlock_t lock ;
struct list_head task_list ;
};
typedef struct __wait_queue_head wait_queue_head_t;
struct task_struct;
struct mutex {
atomic_t count ;
spinlock_t wait_lock ;
struct list_head wait_list ;
struct task_struct *owner ;
char const *name ;
void *magic ;
};
struct task_struct;
typedef __u64 Elf64_Addr;
typedef __u16 Elf64_Half;
typedef __u32 Elf64_Word;
typedef __u64 Elf64_Xword;
struct elf64_sym {
Elf64_Word st_name ;
unsigned char st_info ;
unsigned char st_other ;
Elf64_Half st_shndx ;
Elf64_Addr st_value ;
Elf64_Xword st_size ;
};
typedef struct elf64_sym Elf64_Sym;
struct sock;
struct sock;
struct kobject;
struct kobject;
enum kobj_ns_type {
KOBJ_NS_TYPE_NONE = 0,
KOBJ_NS_TYPE_NET = 1,
KOBJ_NS_TYPES = 2
} ;
struct kobj_ns_type_operations {
enum kobj_ns_type type ;
void *(*grab_current_ns)(void) ;
void const *(*netlink_ns)(struct sock *sk ) ;
void const *(*initial_ns)(void) ;
void (*drop_ns)(void * ) ;
};
struct kobject;
struct module;
enum kobj_ns_type;
struct attribute {
char const *name ;
umode_t mode ;
};
struct sysfs_ops {
ssize_t (*show)(struct kobject * , struct attribute * , char * ) ;
ssize_t (*store)(struct kobject * , struct attribute * , char const * , size_t ) ;
void const *(*namespace)(struct kobject * , struct attribute const * ) ;
};
struct sysfs_dirent;
struct sysfs_dirent;
struct kref {
atomic_t refcount ;
};
struct kset;
struct kobj_type;
struct kobject {
char const *name ;
struct list_head entry ;
struct kobject *parent ;
struct kset *kset ;
struct kobj_type *ktype ;
struct sysfs_dirent *sd ;
struct kref kref ;
unsigned int state_initialized : 1 ;
unsigned int state_in_sysfs : 1 ;
unsigned int state_add_uevent_sent : 1 ;
unsigned int state_remove_uevent_sent : 1 ;
unsigned int uevent_suppress : 1 ;
};
struct kobj_type {
void (*release)(struct kobject *kobj ) ;
struct sysfs_ops const *sysfs_ops ;
struct attribute **default_attrs ;
struct kobj_ns_type_operations const *(*child_ns_type)(struct kobject *kobj ) ;
void const *(*namespace)(struct kobject *kobj ) ;
};
struct kobj_uevent_env {
char *envp[32] ;
int envp_idx ;
char buf[2048] ;
int buflen ;
};
struct kset_uevent_ops {
int (* const filter)(struct kset *kset , struct kobject *kobj ) ;
char const *(* const name)(struct kset *kset , struct kobject *kobj ) ;
int (* const uevent)(struct kset *kset , struct kobject *kobj , struct kobj_uevent_env *env ) ;
};
struct sock;
struct kset {
struct list_head list ;
spinlock_t list_lock ;
struct kobject kobj ;
struct kset_uevent_ops const *uevent_ops ;
};
struct kernel_param;
struct kernel_param;
struct kernel_param_ops {
int (*set)(char const *val , struct kernel_param const *kp ) ;
int (*get)(char *buffer , struct kernel_param const *kp ) ;
void (*free)(void *arg ) ;
};
struct kparam_string;
struct kparam_array;
union __anonunion____missing_field_name_199 {
void *arg ;
struct kparam_string const *str ;
struct kparam_array const *arr ;
};
struct kernel_param {
char const *name ;
struct kernel_param_ops const *ops ;
u16 perm ;
s16 level ;
union __anonunion____missing_field_name_199 __annonCompField32 ;
};
struct kparam_string {
unsigned int maxlen ;
char *string ;
};
struct kparam_array {
unsigned int max ;
unsigned int elemsize ;
unsigned int *num ;
struct kernel_param_ops const *ops ;
void *elem ;
};
struct module;
struct module;
struct static_key {
atomic_t enabled ;
};
struct module;
struct tracepoint;
struct tracepoint;
struct tracepoint_func {
void *func ;
void *data ;
};
struct tracepoint {
char const *name ;
struct static_key key ;
void (*regfunc)(void) ;
void (*unregfunc)(void) ;
struct tracepoint_func *funcs ;
};
struct kernel_symbol {
unsigned long value ;
char const *name ;
};
struct mod_arch_specific {
};
struct module;
struct module_param_attrs;
struct module_kobject {
struct kobject kobj ;
struct module *mod ;
struct kobject *drivers_dir ;
struct module_param_attrs *mp ;
};
struct module_attribute {
struct attribute attr ;
ssize_t (*show)(struct module_attribute * , struct module_kobject * , char * ) ;
ssize_t (*store)(struct module_attribute * , struct module_kobject * , char const * ,
size_t count ) ;
void (*setup)(struct module * , char const * ) ;
int (*test)(struct module * ) ;
void (*free)(struct module * ) ;
};
struct exception_table_entry;
struct exception_table_entry;
enum module_state {
MODULE_STATE_LIVE = 0,
MODULE_STATE_COMING = 1,
MODULE_STATE_GOING = 2
} ;
struct module_ref {
unsigned long incs ;
unsigned long decs ;
} __attribute__((__aligned__((2) * (sizeof(unsigned long )) ))) ;
struct module_sect_attrs;
struct module_notes_attrs;
struct ftrace_event_call;
struct module {
enum module_state state ;
struct list_head list ;
char name[64UL - sizeof(unsigned long )] ;
struct module_kobject mkobj ;
struct module_attribute *modinfo_attrs ;
char const *version ;
char const *srcversion ;
struct kobject *holders_dir ;
struct kernel_symbol const *syms ;
unsigned long const *crcs ;
unsigned int num_syms ;
struct kernel_param *kp ;
unsigned int num_kp ;
unsigned int num_gpl_syms ;
struct kernel_symbol const *gpl_syms ;
unsigned long const *gpl_crcs ;
struct kernel_symbol const *unused_syms ;
unsigned long const *unused_crcs ;
unsigned int num_unused_syms ;
unsigned int num_unused_gpl_syms ;
struct kernel_symbol const *unused_gpl_syms ;
unsigned long const *unused_gpl_crcs ;
struct kernel_symbol const *gpl_future_syms ;
unsigned long const *gpl_future_crcs ;
unsigned int num_gpl_future_syms ;
unsigned int num_exentries ;
struct exception_table_entry *extable ;
int (*init)(void) ;
void *module_init ;
void *module_core ;
unsigned int init_size ;
unsigned int core_size ;
unsigned int init_text_size ;
unsigned int core_text_size ;
unsigned int init_ro_size ;
unsigned int core_ro_size ;
struct mod_arch_specific arch ;
unsigned int taints ;
unsigned int num_bugs ;
struct list_head bug_list ;
struct bug_entry *bug_table ;
Elf64_Sym *symtab ;
Elf64_Sym *core_symtab ;
unsigned int num_symtab ;
unsigned int core_num_syms ;
char *strtab ;
char *core_strtab ;
struct module_sect_attrs *sect_attrs ;
struct module_notes_attrs *notes_attrs ;
char *args ;
void *percpu ;
unsigned int percpu_size ;
unsigned int num_tracepoints ;
struct tracepoint * const *tracepoints_ptrs ;
unsigned int num_trace_bprintk_fmt ;
char const **trace_bprintk_fmt_start ;
struct ftrace_event_call **trace_events ;
unsigned int num_trace_events ;
struct list_head source_list ;
struct list_head target_list ;
struct task_struct *waiter ;
void (*exit)(void) ;
struct module_ref *refptr ;
ctor_fn_t *ctors ;
unsigned int num_ctors ;
};
struct pi_protocol;
struct pi_adapter {
struct pi_protocol *proto ;
int port ;
int mode ;
int delay ;
int devtype ;
char *device ;
int unit ;
int saved_r0 ;
int saved_r2 ;
int reserved ;
unsigned long private ;
wait_queue_head_t parq ;
void *pardev ;
char *parname ;
int claimed ;
void (*claim_cont)(void) ;
};
typedef struct pi_adapter PIA;
struct pi_protocol {
char name[8] ;
int index ;
int max_mode ;
int epp_first ;
int default_delay ;
int max_units ;
void (*write_regr)(PIA * , int , int , int ) ;
int (*read_regr)(PIA * , int , int ) ;
void (*write_block)(PIA * , char * , int ) ;
void (*read_block)(PIA * , char * , int ) ;
void (*connect)(PIA * ) ;
void (*disconnect)(PIA * ) ;
int (*test_port)(PIA * ) ;
int (*probe_unit)(PIA * ) ;
int (*test_proto)(PIA * , char * , int ) ;
void (*log_adapter)(PIA * , char * , int ) ;
int (*init_proto)(PIA * ) ;
void (*release_proto)(PIA * ) ;
struct module *owner ;
};
typedef struct pi_protocol PIP;
long ldv__builtin_expect(long val , long res ) ;
extern int ( /* format attribute */ printk)(char const *fmt , ...) ;
void mutex_lock(struct mutex *lock ) ;
int __attribute__((__warn_unused_result__)) mutex_lock_interruptible(struct mutex *lock ) ;
int __attribute__((__warn_unused_result__)) mutex_lock_killable(struct mutex *lock ) ;
int mutex_trylock(struct mutex *lock ) ;
void mutex_unlock(struct mutex *lock ) ;
int atomic_dec_and_mutex_lock(atomic_t *cnt , struct mutex *lock ) ;
__inline static void outb(unsigned char value , int port ) __attribute__((__no_instrument_function__)) ;
__inline static void outb(unsigned char value , int port )
{
{
__asm__ volatile ("out"
"b"
" %"
"b"
"0, %w1": : "a" (value), "Nd" (port));
return;
}
}
__inline static unsigned char inb(int port ) __attribute__((__no_instrument_function__)) ;
__inline static unsigned char inb(int port )
{ unsigned char value ;
{
__asm__ volatile ("in"
"b"
" %w1, %"
"b"
"0": "=a" (value): "Nd" (port));
return (value);
}
}
extern struct module __this_module ;
int init_module(void) ;
void cleanup_module(void) ;
extern void __udelay(unsigned long usecs ) ;
extern int paride_register(PIP * ) ;
extern void paride_unregister(PIP * ) ;
static void fit2_write_regr(PIA *pi , int cont , int regr , int val )
{ unsigned long __cil_tmp5 ;
unsigned long __cil_tmp6 ;
int __cil_tmp7 ;
int __cil_tmp8 ;
unsigned long __cil_tmp9 ;
unsigned long __cil_tmp10 ;
unsigned long __cil_tmp11 ;
unsigned long __cil_tmp12 ;
int __cil_tmp13 ;
unsigned long __cil_tmp14 ;
unsigned char __cil_tmp15 ;
unsigned long __cil_tmp16 ;
unsigned long __cil_tmp17 ;
int __cil_tmp18 ;
unsigned long __cil_tmp19 ;
unsigned long __cil_tmp20 ;
unsigned long __cil_tmp21 ;
unsigned long __cil_tmp22 ;
int __cil_tmp23 ;
unsigned long __cil_tmp24 ;
unsigned long __cil_tmp25 ;
unsigned long __cil_tmp26 ;
int __cil_tmp27 ;
int __cil_tmp28 ;
unsigned long __cil_tmp29 ;
unsigned long __cil_tmp30 ;
unsigned long __cil_tmp31 ;
unsigned long __cil_tmp32 ;
int __cil_tmp33 ;
unsigned long __cil_tmp34 ;
unsigned char __cil_tmp35 ;
unsigned long __cil_tmp36 ;
unsigned long __cil_tmp37 ;
int __cil_tmp38 ;
unsigned long __cil_tmp39 ;
unsigned long __cil_tmp40 ;
unsigned long __cil_tmp41 ;
unsigned long __cil_tmp42 ;
int __cil_tmp43 ;
unsigned long __cil_tmp44 ;
unsigned long __cil_tmp45 ;
unsigned long __cil_tmp46 ;
int __cil_tmp47 ;
int __cil_tmp48 ;
unsigned long __cil_tmp49 ;
unsigned long __cil_tmp50 ;
unsigned long __cil_tmp51 ;
unsigned long __cil_tmp52 ;
int __cil_tmp53 ;
unsigned long __cil_tmp54 ;
unsigned long __cil_tmp55 ;
unsigned long __cil_tmp56 ;
int __cil_tmp57 ;
unsigned long __cil_tmp58 ;
unsigned long __cil_tmp59 ;
unsigned long __cil_tmp60 ;
unsigned long __cil_tmp61 ;
int __cil_tmp62 ;
unsigned long __cil_tmp63 ;
unsigned long __cil_tmp64 ;
unsigned long __cil_tmp65 ;
int __cil_tmp66 ;
int __cil_tmp67 ;
unsigned long __cil_tmp68 ;
unsigned long __cil_tmp69 ;
unsigned long __cil_tmp70 ;
unsigned long __cil_tmp71 ;
int __cil_tmp72 ;
unsigned long __cil_tmp73 ;
{
if (cont == 1) {
return;
} else {
}
{
__cil_tmp5 = (unsigned long )pi;
__cil_tmp6 = __cil_tmp5 + 8;
__cil_tmp7 = *((int *)__cil_tmp6);
__cil_tmp8 = __cil_tmp7 + 2;
outb((unsigned char)12, __cil_tmp8);
}
{
__cil_tmp9 = (unsigned long )pi;
__cil_tmp10 = __cil_tmp9 + 16;
if (*((int *)__cil_tmp10)) {
{
__cil_tmp11 = (unsigned long )pi;
__cil_tmp12 = __cil_tmp11 + 16;
__cil_tmp13 = *((int *)__cil_tmp12);
__cil_tmp14 = (unsigned long )__cil_tmp13;
__udelay(__cil_tmp14);
}
} else {
}
}
{
__cil_tmp15 = (unsigned char )regr;
__cil_tmp16 = (unsigned long )pi;
__cil_tmp17 = __cil_tmp16 + 8;
__cil_tmp18 = *((int *)__cil_tmp17);
outb(__cil_tmp15, __cil_tmp18);
}
{
__cil_tmp19 = (unsigned long )pi;
__cil_tmp20 = __cil_tmp19 + 16;
if (*((int *)__cil_tmp20)) {
{
__cil_tmp21 = (unsigned long )pi;
__cil_tmp22 = __cil_tmp21 + 16;
__cil_tmp23 = *((int *)__cil_tmp22);
__cil_tmp24 = (unsigned long )__cil_tmp23;
__udelay(__cil_tmp24);
}
} else {
}
}
{
__cil_tmp25 = (unsigned long )pi;
__cil_tmp26 = __cil_tmp25 + 8;
__cil_tmp27 = *((int *)__cil_tmp26);
__cil_tmp28 = __cil_tmp27 + 2;
outb((unsigned char)4, __cil_tmp28);
}
{
__cil_tmp29 = (unsigned long )pi;
__cil_tmp30 = __cil_tmp29 + 16;
if (*((int *)__cil_tmp30)) {
{
__cil_tmp31 = (unsigned long )pi;
__cil_tmp32 = __cil_tmp31 + 16;
__cil_tmp33 = *((int *)__cil_tmp32);
__cil_tmp34 = (unsigned long )__cil_tmp33;
__udelay(__cil_tmp34);
}
} else {
}
}
{
__cil_tmp35 = (unsigned char )val;
__cil_tmp36 = (unsigned long )pi;
__cil_tmp37 = __cil_tmp36 + 8;
__cil_tmp38 = *((int *)__cil_tmp37);
outb(__cil_tmp35, __cil_tmp38);
}
{
__cil_tmp39 = (unsigned long )pi;
__cil_tmp40 = __cil_tmp39 + 16;
if (*((int *)__cil_tmp40)) {
{
__cil_tmp41 = (unsigned long )pi;
__cil_tmp42 = __cil_tmp41 + 16;
__cil_tmp43 = *((int *)__cil_tmp42);
__cil_tmp44 = (unsigned long )__cil_tmp43;
__udelay(__cil_tmp44);
}
} else {
}
}
{
__cil_tmp45 = (unsigned long )pi;
__cil_tmp46 = __cil_tmp45 + 8;
__cil_tmp47 = *((int *)__cil_tmp46);
__cil_tmp48 = __cil_tmp47 + 2;
outb((unsigned char)5, __cil_tmp48);
}
{
__cil_tmp49 = (unsigned long )pi;
__cil_tmp50 = __cil_tmp49 + 16;
if (*((int *)__cil_tmp50)) {
{
__cil_tmp51 = (unsigned long )pi;
__cil_tmp52 = __cil_tmp51 + 16;
__cil_tmp53 = *((int *)__cil_tmp52);
__cil_tmp54 = (unsigned long )__cil_tmp53;
__udelay(__cil_tmp54);
}
} else {
}
}
{
__cil_tmp55 = (unsigned long )pi;
__cil_tmp56 = __cil_tmp55 + 8;
__cil_tmp57 = *((int *)__cil_tmp56);
outb((unsigned char)0, __cil_tmp57);
}
{
__cil_tmp58 = (unsigned long )pi;
__cil_tmp59 = __cil_tmp58 + 16;
if (*((int *)__cil_tmp59)) {
{
__cil_tmp60 = (unsigned long )pi;
__cil_tmp61 = __cil_tmp60 + 16;
__cil_tmp62 = *((int *)__cil_tmp61);
__cil_tmp63 = (unsigned long )__cil_tmp62;
__udelay(__cil_tmp63);
}
} else {
}
}
{
__cil_tmp64 = (unsigned long )pi;
__cil_tmp65 = __cil_tmp64 + 8;
__cil_tmp66 = *((int *)__cil_tmp65);
__cil_tmp67 = __cil_tmp66 + 2;
outb((unsigned char)4, __cil_tmp67);
}
{
__cil_tmp68 = (unsigned long )pi;
__cil_tmp69 = __cil_tmp68 + 16;
if (*((int *)__cil_tmp69)) {
{
__cil_tmp70 = (unsigned long )pi;
__cil_tmp71 = __cil_tmp70 + 16;
__cil_tmp72 = *((int *)__cil_tmp71);
__cil_tmp73 = (unsigned long )__cil_tmp72;
__udelay(__cil_tmp73);
}
} else {
}
}
return;
}
}
static int fit2_read_regr(PIA *pi , int cont , int regr )
{ int a ;
int b ;
int r ;
unsigned char tmp ;
unsigned char tmp___0 ;
unsigned long __cil_tmp9 ;
unsigned long __cil_tmp10 ;
int __cil_tmp11 ;
int __cil_tmp12 ;
unsigned long __cil_tmp13 ;
unsigned long __cil_tmp14 ;
unsigned long __cil_tmp15 ;
unsigned long __cil_tmp16 ;
int __cil_tmp17 ;
unsigned long __cil_tmp18 ;
unsigned char __cil_tmp19 ;
unsigned long __cil_tmp20 ;
unsigned long __cil_tmp21 ;
int __cil_tmp22 ;
unsigned long __cil_tmp23 ;
unsigned long __cil_tmp24 ;
unsigned long __cil_tmp25 ;
unsigned long __cil_tmp26 ;
int __cil_tmp27 ;
unsigned long __cil_tmp28 ;
unsigned long __cil_tmp29 ;
unsigned long __cil_tmp30 ;
int __cil_tmp31 ;
int __cil_tmp32 ;
unsigned long __cil_tmp33 ;
unsigned long __cil_tmp34 ;
unsigned long __cil_tmp35 ;
unsigned long __cil_tmp36 ;
int __cil_tmp37 ;
unsigned long __cil_tmp38 ;
unsigned long __cil_tmp39 ;
unsigned long __cil_tmp40 ;
int __cil_tmp41 ;
int __cil_tmp42 ;
unsigned long __cil_tmp43 ;
unsigned long __cil_tmp44 ;
unsigned long __cil_tmp45 ;
unsigned long __cil_tmp46 ;
int __cil_tmp47 ;
unsigned long __cil_tmp48 ;
unsigned long __cil_tmp49 ;
unsigned long __cil_tmp50 ;
int __cil_tmp51 ;
unsigned long __cil_tmp52 ;
unsigned long __cil_tmp53 ;
unsigned long __cil_tmp54 ;
unsigned long __cil_tmp55 ;
int __cil_tmp56 ;
unsigned long __cil_tmp57 ;
unsigned long __cil_tmp58 ;
unsigned long __cil_tmp59 ;
unsigned long __cil_tmp60 ;
unsigned long __cil_tmp61 ;
int __cil_tmp62 ;
unsigned long __cil_tmp63 ;
unsigned long __cil_tmp64 ;
unsigned long __cil_tmp65 ;
int __cil_tmp66 ;
int __cil_tmp67 ;
int __cil_tmp68 ;
unsigned long __cil_tmp69 ;
unsigned long __cil_tmp70 ;
int __cil_tmp71 ;
unsigned long __cil_tmp72 ;
unsigned long __cil_tmp73 ;
unsigned long __cil_tmp74 ;
unsigned long __cil_tmp75 ;
int __cil_tmp76 ;
unsigned long __cil_tmp77 ;
unsigned long __cil_tmp78 ;
unsigned long __cil_tmp79 ;
unsigned long __cil_tmp80 ;
unsigned long __cil_tmp81 ;
int __cil_tmp82 ;
unsigned long __cil_tmp83 ;
unsigned long __cil_tmp84 ;
unsigned long __cil_tmp85 ;
int __cil_tmp86 ;
int __cil_tmp87 ;
int __cil_tmp88 ;
unsigned long __cil_tmp89 ;
unsigned long __cil_tmp90 ;
int __cil_tmp91 ;
int __cil_tmp92 ;
unsigned long __cil_tmp93 ;
unsigned long __cil_tmp94 ;
unsigned long __cil_tmp95 ;
unsigned long __cil_tmp96 ;
int __cil_tmp97 ;
unsigned long __cil_tmp98 ;
int __cil_tmp99 ;
int __cil_tmp100 ;
int __cil_tmp101 ;
{
if (cont) {
if (regr != 6) {
return (255);
} else {
}
r = 7;
} else {
r = regr + 16;
}
{
__cil_tmp9 = (unsigned long )pi;
__cil_tmp10 = __cil_tmp9 + 8;
__cil_tmp11 = *((int *)__cil_tmp10);
__cil_tmp12 = __cil_tmp11 + 2;
outb((unsigned char)12, __cil_tmp12);
}
{
__cil_tmp13 = (unsigned long )pi;
__cil_tmp14 = __cil_tmp13 + 16;
if (*((int *)__cil_tmp14)) {
{
__cil_tmp15 = (unsigned long )pi;
__cil_tmp16 = __cil_tmp15 + 16;
__cil_tmp17 = *((int *)__cil_tmp16);
__cil_tmp18 = (unsigned long )__cil_tmp17;
__udelay(__cil_tmp18);
}
} else {
}
}
{
__cil_tmp19 = (unsigned char )r;
__cil_tmp20 = (unsigned long )pi;
__cil_tmp21 = __cil_tmp20 + 8;
__cil_tmp22 = *((int *)__cil_tmp21);
outb(__cil_tmp19, __cil_tmp22);
}
{
__cil_tmp23 = (unsigned long )pi;
__cil_tmp24 = __cil_tmp23 + 16;
if (*((int *)__cil_tmp24)) {
{
__cil_tmp25 = (unsigned long )pi;
__cil_tmp26 = __cil_tmp25 + 16;
__cil_tmp27 = *((int *)__cil_tmp26);
__cil_tmp28 = (unsigned long )__cil_tmp27;
__udelay(__cil_tmp28);
}
} else {
}
}
{
__cil_tmp29 = (unsigned long )pi;
__cil_tmp30 = __cil_tmp29 + 8;
__cil_tmp31 = *((int *)__cil_tmp30);
__cil_tmp32 = __cil_tmp31 + 2;
outb((unsigned char)4, __cil_tmp32);
}
{
__cil_tmp33 = (unsigned long )pi;
__cil_tmp34 = __cil_tmp33 + 16;
if (*((int *)__cil_tmp34)) {
{
__cil_tmp35 = (unsigned long )pi;
__cil_tmp36 = __cil_tmp35 + 16;
__cil_tmp37 = *((int *)__cil_tmp36);
__cil_tmp38 = (unsigned long )__cil_tmp37;
__udelay(__cil_tmp38);
}
} else {
}
}
{
__cil_tmp39 = (unsigned long )pi;
__cil_tmp40 = __cil_tmp39 + 8;
__cil_tmp41 = *((int *)__cil_tmp40);
__cil_tmp42 = __cil_tmp41 + 2;
outb((unsigned char)5, __cil_tmp42);
}
{
__cil_tmp43 = (unsigned long )pi;
__cil_tmp44 = __cil_tmp43 + 16;
if (*((int *)__cil_tmp44)) {
{
__cil_tmp45 = (unsigned long )pi;
__cil_tmp46 = __cil_tmp45 + 16;
__cil_tmp47 = *((int *)__cil_tmp46);
__cil_tmp48 = (unsigned long )__cil_tmp47;
__udelay(__cil_tmp48);
}
} else {
}
}
{
__cil_tmp49 = (unsigned long )pi;
__cil_tmp50 = __cil_tmp49 + 8;
__cil_tmp51 = *((int *)__cil_tmp50);
outb((unsigned char)0, __cil_tmp51);
}
{
__cil_tmp52 = (unsigned long )pi;
__cil_tmp53 = __cil_tmp52 + 16;
if (*((int *)__cil_tmp53)) {
{
__cil_tmp54 = (unsigned long )pi;
__cil_tmp55 = __cil_tmp54 + 16;
__cil_tmp56 = *((int *)__cil_tmp55);
__cil_tmp57 = (unsigned long )__cil_tmp56;
__udelay(__cil_tmp57);
}
} else {
}
}
{
__cil_tmp58 = (unsigned long )pi;
__cil_tmp59 = __cil_tmp58 + 16;
if (*((int *)__cil_tmp59)) {
{
__cil_tmp60 = (unsigned long )pi;
__cil_tmp61 = __cil_tmp60 + 16;
__cil_tmp62 = *((int *)__cil_tmp61);
__cil_tmp63 = (unsigned long )__cil_tmp62;
__udelay(__cil_tmp63);
}
} else {
}
}
{
__cil_tmp64 = (unsigned long )pi;
__cil_tmp65 = __cil_tmp64 + 8;
__cil_tmp66 = *((int *)__cil_tmp65);
__cil_tmp67 = __cil_tmp66 + 1;
tmp = inb(__cil_tmp67);
__cil_tmp68 = (int )tmp;
a = __cil_tmp68 & 255;
__cil_tmp69 = (unsigned long )pi;
__cil_tmp70 = __cil_tmp69 + 8;
__cil_tmp71 = *((int *)__cil_tmp70);
outb((unsigned char)1, __cil_tmp71);
}
{
__cil_tmp72 = (unsigned long )pi;
__cil_tmp73 = __cil_tmp72 + 16;
if (*((int *)__cil_tmp73)) {
{
__cil_tmp74 = (unsigned long )pi;
__cil_tmp75 = __cil_tmp74 + 16;
__cil_tmp76 = *((int *)__cil_tmp75);
__cil_tmp77 = (unsigned long )__cil_tmp76;
__udelay(__cil_tmp77);
}
} else {
}
}
{
__cil_tmp78 = (unsigned long )pi;
__cil_tmp79 = __cil_tmp78 + 16;
if (*((int *)__cil_tmp79)) {
{
__cil_tmp80 = (unsigned long )pi;
__cil_tmp81 = __cil_tmp80 + 16;
__cil_tmp82 = *((int *)__cil_tmp81);
__cil_tmp83 = (unsigned long )__cil_tmp82;
__udelay(__cil_tmp83);
}
} else {
}
}
{
__cil_tmp84 = (unsigned long )pi;
__cil_tmp85 = __cil_tmp84 + 8;
__cil_tmp86 = *((int *)__cil_tmp85);
__cil_tmp87 = __cil_tmp86 + 1;
tmp___0 = inb(__cil_tmp87);
__cil_tmp88 = (int )tmp___0;
b = __cil_tmp88 & 255;
__cil_tmp89 = (unsigned long )pi;
__cil_tmp90 = __cil_tmp89 + 8;
__cil_tmp91 = *((int *)__cil_tmp90);
__cil_tmp92 = __cil_tmp91 + 2;
outb((unsigned char)4, __cil_tmp92);
}
{
__cil_tmp93 = (unsigned long )pi;
__cil_tmp94 = __cil_tmp93 + 16;
if (*((int *)__cil_tmp94)) {
{
__cil_tmp95 = (unsigned long )pi;
__cil_tmp96 = __cil_tmp95 + 16;
__cil_tmp97 = *((int *)__cil_tmp96);
__cil_tmp98 = (unsigned long )__cil_tmp97;
__udelay(__cil_tmp98);
}
} else {
}
}
{
__cil_tmp99 = b & 240;
__cil_tmp100 = a >> 4;
__cil_tmp101 = __cil_tmp100 & 15;
return (__cil_tmp101 | __cil_tmp99);
}
}
}
static void fit2_read_block(PIA *pi , char *buf , int count )
{ int k ;
int a ;
int b ;
int c ;
int d ;
unsigned char tmp ;
unsigned char tmp___0 ;
unsigned char tmp___1 ;
unsigned char tmp___2 ;
unsigned char tmp___3 ;
unsigned char tmp___4 ;
unsigned char tmp___5 ;
unsigned char tmp___6 ;
unsigned long __cil_tmp17 ;
unsigned long __cil_tmp18 ;
int __cil_tmp19 ;
int __cil_tmp20 ;
unsigned long __cil_tmp21 ;
unsigned long __cil_tmp22 ;
unsigned long __cil_tmp23 ;
unsigned long __cil_tmp24 ;
int __cil_tmp25 ;
unsigned long __cil_tmp26 ;
unsigned long __cil_tmp27 ;
unsigned long __cil_tmp28 ;
int __cil_tmp29 ;
unsigned long __cil_tmp30 ;
unsigned long __cil_tmp31 ;
unsigned long __cil_tmp32 ;
unsigned long __cil_tmp33 ;
int __cil_tmp34 ;
unsigned long __cil_tmp35 ;
int __cil_tmp36 ;
unsigned long __cil_tmp37 ;
unsigned long __cil_tmp38 ;
int __cil_tmp39 ;
int __cil_tmp40 ;
unsigned long __cil_tmp41 ;