forked from fomolife/fomolife
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fomolife.wast
33383 lines (33383 loc) · 885 KB
/
fomolife.wast
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
(module
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$v (func))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$j (func (result i64)))
(type $FUNCSIG$vjj (func (param i64 i64)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$ijjjj (func (param i64 i64 i64 i64) (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$ijjjjii (func (param i64 i64 i64 i64 i32 i32) (result i32)))
(type $FUNCSIG$vijii (func (param i32 i64 i32 i32)))
(type $FUNCSIG$vijjjj (func (param i32 i64 i64 i64 i64)))
(type $FUNCSIG$vid (func (param i32 f64)))
(type $FUNCSIG$ijj (func (param i64 i64) (result i32)))
(import "env" "__addtf3" (func $__addtf3 (param i32 i64 i64 i64 i64)))
(import "env" "__eqtf2" (func $__eqtf2 (param i64 i64 i64 i64) (result i32)))
(import "env" "__extenddftf2" (func $__extenddftf2 (param i32 f64)))
(import "env" "__fixtfsi" (func $__fixtfsi (param i64 i64) (result i32)))
(import "env" "__fixunstfsi" (func $__fixunstfsi (param i64 i64) (result i32)))
(import "env" "__floatsitf" (func $__floatsitf (param i32 i32)))
(import "env" "__floatunsitf" (func $__floatunsitf (param i32 i32)))
(import "env" "__multf3" (func $__multf3 (param i32 i64 i64 i64 i64)))
(import "env" "__netf2" (func $__netf2 (param i64 i64 i64 i64) (result i32)))
(import "env" "__subtf3" (func $__subtf3 (param i32 i64 i64 i64 i64)))
(import "env" "__unordtf2" (func $__unordtf2 (param i64 i64 i64 i64) (result i32)))
(import "env" "abort" (func $abort))
(import "env" "action_data_size" (func $action_data_size (result i32)))
(import "env" "current_receiver" (func $current_receiver (result i64)))
(import "env" "current_time" (func $current_time (result i64)))
(import "env" "db_find_i64" (func $db_find_i64 (param i64 i64 i64 i64) (result i32)))
(import "env" "db_get_i64" (func $db_get_i64 (param i32 i32 i32) (result i32)))
(import "env" "db_lowerbound_i64" (func $db_lowerbound_i64 (param i64 i64 i64 i64) (result i32)))
(import "env" "db_next_i64" (func $db_next_i64 (param i32 i32) (result i32)))
(import "env" "db_remove_i64" (func $db_remove_i64 (param i32)))
(import "env" "db_store_i64" (func $db_store_i64 (param i64 i64 i64 i64 i32 i32) (result i32)))
(import "env" "db_update_i64" (func $db_update_i64 (param i32 i64 i32 i32)))
(import "env" "eosio_assert" (func $eosio_assert (param i32 i32)))
(import "env" "eosio_exit" (func $eosio_exit (param i32)))
(import "env" "memcpy" (func $memcpy (param i32 i32 i32) (result i32)))
(import "env" "memmove" (func $memmove (param i32 i32 i32) (result i32)))
(import "env" "memset" (func $memset (param i32 i32 i32) (result i32)))
(import "env" "read_action_data" (func $read_action_data (param i32 i32) (result i32)))
(import "env" "require_auth2" (func $require_auth2 (param i64 i64)))
(import "env" "send_inline" (func $send_inline (param i32 i32)))
(import "env" "sha256" (func $sha256 (param i32 i32 i32)))
(import "env" "tapos_block_num" (func $tapos_block_num (result i32)))
(import "env" "tapos_block_prefix" (func $tapos_block_prefix (result i32)))
(table 3 3 anyfunc)
(elem (i32.const 0) $__wasm_nullptr $_ZN8fomolife4pingEv $sn_write)
(memory $0 1)
(data (i32.const 4) "\f0t\00\00")
(data (i32.const 16) "object passed to iterator_to is not in multi_index\00")
(data (i32.const 80) "user \00")
(data (i32.const 96) " does not have any remaining balance or doesn\'t exist\00")
(data (i32.const 160) "cannot pass end iterator to erase\00")
(data (i32.const 208) "cannot increment end iterator\00")
(data (i32.const 240) "active\00")
(data (i32.const 256) "eosio.token\00")
(data (i32.const 272) "transfer\00")
(data (i32.const 288) "Successful Fomolife Withdraw\00")
(data (i32.const 320) "write\00")
(data (i32.const 336) "object passed to erase is not in multi_index\00")
(data (i32.const 384) "cannot erase objects in table of another contract\00")
(data (i32.const 448) "attempt to remove object that was not in multi_index\00")
(data (i32.const 504) "\00\02\00\00")
(data (i32.const 512) ".12345abcdefghijklmnopqrstuvwxyz\00")
(data (i32.const 560) "error reading iterator\00")
(data (i32.const 592) "read\00")
(data (i32.const 608) "integer overflow adding counter order\00")
(data (i32.const 656) "transfer not from eosio.token\00")
(data (i32.const 688) "transfer not made to this contract\00")
(data (i32.const 736) "Not enought balance to purchase 1 key. Current key price: \00")
(data (i32.const 800) "/10000 EOS and you sent \00")
(data (i32.const 832) "/10000 EOS\00")
(data (i32.const 848) "invalid transfer quantity\00")
(data (i32.const 880) "cannot create objects in table of another contract\00")
(data (i32.const 944) "cannot pass end iterator to modify\00")
(data (i32.const 992) "object passed to modify is not in multi_index\00")
(data (i32.const 1040) "cannot modify objects in table of another contract\00")
(data (i32.const 1104) "integer overflow adding user reward to balance\00")
(data (i32.const 1152) "updater cannot change primary key when modifying an object\00")
(data (i32.const 1216) "integer overflow adding player reward\00")
(data (i32.const 1264) "integer overflow adding team reward balance\00")
(data (i32.const 1312) "integer underflow subtracting key price\00")
(data (i32.const 1360) "integer overflow incrementing key price\00")
(data (i32.const 1408) "floating point underflow calculating keys bought\00")
(data (i32.const 1472) "integer overflow incrementing key_price\00")
(data (i32.const 1520) "integer overflow adding counter revenue\00")
(data (i32.const 1568) "integer overflow adding last jackpot\00")
(data (i32.const 1616) "integer overflow adding tenth jackpot\00")
(data (i32.const 1664) "integer overflow adding random jackpot\00")
(data (i32.const 1712) "integer overflow adding keys sold\00")
(data (i32.const 1760) "integer overflow adding tenth jackpot to instant reward\00")
(data (i32.const 1824) "integer overflow adding random jackpot to instant reward\00")
(data (i32.const 1888) "integer overflow adding instant reward to player balance\00")
(data (i32.const 1952) "Order:\00")
(data (i32.const 1968) ".Buy-inPrice:\00")
(data (i32.const 1984) ".Rand:\00")
(data (i32.const 2000) ".Bound:\00")
(data (i32.const 2016) ".WonRand:\00")
(data (i32.const 2032) ".InstantReward:\00")
(data (i32.const 2048) ".TotalReward:\00")
(data (i32.const 2064) ".TenthJackpot:\00")
(data (i32.const 2080) ".RandomJackpot:\00")
(data (i32.const 2096) ".LastJackpot:\00")
(data (i32.const 2112) ".EndTime:\00")
(data (i32.const 2128) ".Game:\00")
(data (i32.const 2144) ".Unit:/10000EOS\00")
(data (i32.const 2160) "integer overflow adding new keys\00")
(data (i32.const 2208) "integer overflow adding invested balance\00")
(data (i32.const 2256) "integer overflow adding instant reward to player reward\00")
(data (i32.const 2320) "integer overflow adding last jackpot to winner balance\00")
(data (i32.const 2384) "magnitude of asset amount must be less than 2^62\00")
(data (i32.const 2448) "invalid symbol name\00")
(data (i32.const 2480) "get\00")
(data (i32.const 10880) "malloc_from_freed was designed to only be called after _heap was completely allocated\00")
(data (i32.const 10976) "%d\00")
(data (i32.const 10992) "%llu\00")
(data (i32.const 11008) "\19\00\n\00\19\19\19\00\00\00\00\05\00\00\00\00\00\00\t\00\00\00\00\0b\00\00\00\00\00\00\00\00\19\00\11\n\19\19\19\03\n\07\00\01\1b\t\0b\18\00\00\t\06\0b\00\00\0b\00\06\19\00\00\00\19\19\19\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0e\00\00\00\00\00\00\00\00\19\00\n\0d\19\19\19\00\0d\00\00\02\00\t\0e\00\00\00\t\00\0e\00\00\0e\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0c\00\00\00\00\00\00\00\00\00\00\00\13\00\00\00\00\13\00\00\00\00\t\0c\00\00\00\00\00\0c\00\00\0c\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\10\00\00\00\00\00\00\00\00\00\00\00\0f\00\00\00\04\0f\00\00\00\00\t\10\00\00\00\00\00\10\00\00\10\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\12\00\00\00\00\00\00\00\00\00\00\00\11\00\00\00\00\11\00\00\00\00\t\12\00\00\00\00\00\12\00\00\12\00\00\1a\00\00\00\1a\1a\1a\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\1a\00\00\00\1a\1a\1a\00\00\00\00\00\00\t\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\14\00\00\00\00\00\00\00\00\00\00\00\17\00\00\00\00\17\00\00\00\00\t\14\00\00\00\00\00\14\00\00\14\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\16\00\00\00\00\00\00\00\00\00\00\00\15\00\00\00\00\15\00\00\00\00\t\16\00\00\00\00\00\16\00\00\16\00\00")
(data (i32.const 11472) "0123456789ABCDEF")
(data (i32.const 11488) "-+ 0X0x\00")
(data (i32.const 11504) "(null)\00")
(data (i32.const 11520) "-0X+0X 0X-0x+0x 0x\00")
(data (i32.const 11552) "inf\00")
(data (i32.const 11568) "INF\00")
(data (i32.const 11584) "nan\00")
(data (i32.const 11600) "NAN\00")
(data (i32.const 11616) ".\00")
(data (i32.const 11632) "T!\"\19\0d\01\02\03\11K\1c\0c\10\04\0b\1d\12\1e\'hnopqb \05\06\0f\13\14\15\1a\08\16\07($\17\18\t\n\0e\1b\1f%#\83\82}&*+<=>?CGJMXYZ[\\]^_`acdefgijklrstyz{|\00")
(data (i32.const 11728) "Illegal byte sequence\00Domain error\00Result not representable\00Not a tty\00Permission denied\00Operation not permitted\00No such file or directory\00No such process\00File exists\00Value too large for data type\00No space left on device\00Out of memory\00Resource busy\00Interrupted system call\00Resource temporarily unavailable\00Invalid seek\00Cross-device link\00Read-only file system\00Directory not empty\00Connection reset by peer\00Operation timed out\00Connection refused\00Host is down\00Host is unreachable\00Address in use\00Broken pipe\00I/O error\00No such device or address\00Block device required\00No such device\00Not a directory\00Is a directory\00Text file busy\00Exec format error\00Invalid argument\00Argument list too long\00Symbolic link loop\00Filename too long\00Too many open files in system\00No file descriptors available\00Bad file descriptor\00No child process\00Bad address\00File too large\00Too many links\00No locks available\00Resource deadlock would occur\00State not recoverable\00Previous owner died\00Operation canceled\00Function not implemented\00No message of desired type\00Identifier removed\00Device not a stream\00No data available\00Device timeout\00Out of streams resources\00Link has been severed\00Protocol error\00Bad message\00File descriptor in bad state\00Not a socket\00Destination address required\00Message too large\00Protocol wrong type for socket\00Protocol not available\00Protocol not supported\00Socket type not supported\00Not supported\00Protocol family not supported\00Address family not supported by protocol\00Address not available\00Network is down\00Network unreachable\00Connection reset by network\00Connection aborted\00No buffer space available\00Socket is connected\00Socket not connected\00Cannot send after socket shutdown\00Operation already in progress\00Operation in progress\00Stale file handle\00Remote I/O error\00Quota exceeded\00No medium found\00Wrong medium type\00No error information\00\00")
(export "memory" (memory $0))
(export "_ZeqRK11checksum256S1_" (func $_ZeqRK11checksum256S1_))
(export "_ZeqRK11checksum160S1_" (func $_ZeqRK11checksum160S1_))
(export "_ZneRK11checksum160S1_" (func $_ZneRK11checksum160S1_))
(export "now" (func $now))
(export "_ZN5eosio12require_authERKNS_16permission_levelE" (func $_ZN5eosio12require_authERKNS_16permission_levelE))
(export "_Z4randv" (func $_Z4randv))
(export "_Z9price_incy" (func $_Z9price_incy))
(export "_ZN8fomolife8withdrawEyN5eosio5assetE" (func $_ZN8fomolife8withdrawEyN5eosio5assetE))
(export "_ZN8fomolife2onERKN5eosio8currency8transferEy" (func $_ZN8fomolife2onERKN5eosio8currency8transferEy))
(export "_ZN8fomolife4pingEv" (func $_ZN8fomolife4pingEv))
(export "_ZN8fomolife5applyEyy" (func $_ZN8fomolife5applyEyy))
(export "apply" (func $apply))
(export "malloc" (func $malloc))
(export "free" (func $free))
(export "_ZNSt3__19to_stringEi" (func $_ZNSt3__19to_stringEi))
(export "_ZNSt3__19to_stringEy" (func $_ZNSt3__19to_stringEy))
(export "snprintf" (func $snprintf))
(export "vsnprintf" (func $vsnprintf))
(export "__errno_location" (func $__errno_location))
(export "vfprintf" (func $vfprintf))
(export "__lockfile" (func $__lockfile))
(export "__unlockfile" (func $__unlockfile))
(export "__fwritex" (func $__fwritex))
(export "strerror" (func $strerror))
(export "strnlen" (func $strnlen))
(export "wctomb" (func $wctomb))
(export "__signbitl" (func $__signbitl))
(export "__fpclassifyl" (func $__fpclassifyl))
(export "frexpl" (func $frexpl))
(export "wcrtomb" (func $wcrtomb))
(export "memchr" (func $memchr))
(export "__lctrans" (func $__lctrans))
(export "__lctrans_impl" (func $__lctrans_impl))
(export "__mo_lookup" (func $__mo_lookup))
(export "strcmp" (func $strcmp))
(export "__towrite" (func $__towrite))
(export "llabs" (func $llabs))
(export "memcmp" (func $memcmp))
(export "strlen" (func $strlen))
(func $_ZeqRK11checksum256S1_ (param $0 i32) (param $1 i32) (result i32)
(i32.eqz
(call $memcmp
(get_local $0)
(get_local $1)
(i32.const 32)
)
)
)
(func $_ZeqRK11checksum160S1_ (param $0 i32) (param $1 i32) (result i32)
(i32.eqz
(call $memcmp
(get_local $0)
(get_local $1)
(i32.const 32)
)
)
)
(func $_ZneRK11checksum160S1_ (param $0 i32) (param $1 i32) (result i32)
(i32.ne
(call $memcmp
(get_local $0)
(get_local $1)
(i32.const 32)
)
(i32.const 0)
)
)
(func $now (result i32)
(i32.wrap/i64
(i64.div_u
(call $current_time)
(i64.const 1000000)
)
)
)
(func $_ZN5eosio12require_authERKNS_16permission_levelE (param $0 i32)
(call $require_auth2
(i64.load
(get_local $0)
)
(i64.load offset=8
(get_local $0)
)
)
)
(func $_Z4randv (result i64)
(local $0 i64)
(local $1 i32)
(i32.store offset=4
(i32.const 0)
(tee_local $1
(i32.sub
(i32.load offset=4
(i32.const 0)
)
(i32.const 48)
)
)
)
(i32.store offset=12
(get_local $1)
(i32.mul
(call $tapos_block_prefix)
(call $tapos_block_num)
)
)
(call $sha256
(i32.add
(get_local $1)
(i32.const 12)
)
(i32.const 4)
(i32.add
(get_local $1)
(i32.const 16)
)
)
(set_local $0
(call $llabs
(i64.load8_s offset=16
(get_local $1)
)
)
)
(i32.store offset=4
(i32.const 0)
(i32.add
(get_local $1)
(i32.const 48)
)
)
(i64.rem_s
(get_local $0)
(i64.const 10)
)
)
(func $_Z9price_incy (param $0 i64) (result i64)
(i64.const 1)
)
(func $_ZN8fomolife8withdrawEyN5eosio5assetE (param $0 i32) (param $1 i64) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i64)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i64)
(local $10 i64)
(local $11 i64)
(local $12 i64)
(local $13 i64)
(local $14 i64)
(local $15 i32)
(i32.store offset=4
(i32.const 0)
(tee_local $15
(i32.sub
(i32.load offset=4
(i32.const 0)
)
(i32.const 144)
)
)
)
(block $label$0
(br_if $label$0
(i32.eq
(tee_local $7
(i32.load
(i32.add
(get_local $0)
(i32.const 84)
)
)
)
(tee_local $3
(i32.load
(i32.add
(get_local $0)
(i32.const 80)
)
)
)
)
)
(set_local $8
(i32.add
(get_local $7)
(i32.const -24)
)
)
(set_local $4
(i32.sub
(i32.const 0)
(get_local $3)
)
)
(loop $label$1
(br_if $label$0
(i64.eq
(i64.load
(i32.load
(get_local $8)
)
)
(get_local $1)
)
)
(set_local $7
(get_local $8)
)
(set_local $8
(tee_local $6
(i32.add
(get_local $8)
(i32.const -24)
)
)
)
(br_if $label$1
(i32.ne
(i32.add
(get_local $6)
(get_local $4)
)
(i32.const -24)
)
)
)
)
(set_local $4
(i32.add
(get_local $0)
(i32.const 56)
)
)
(block $label$2
(block $label$3
(br_if $label$3
(i32.eq
(get_local $7)
(get_local $3)
)
)
(call $eosio_assert
(i32.eq
(i32.load offset=16
(tee_local $8
(i32.load
(i32.add
(get_local $7)
(i32.const -24)
)
)
)
)
(get_local $4)
)
(i32.const 16)
)
(br $label$2)
)
(set_local $8
(i32.const 0)
)
(br_if $label$2
(i32.lt_s
(tee_local $6
(call $db_find_i64
(i64.load
(i32.add
(get_local $0)
(i32.const 56)
)
)
(i64.load
(i32.add
(get_local $0)
(i32.const 64)
)
)
(i64.const 4152997948096111264)
(get_local $1)
)
)
(i32.const 0)
)
)
(call $eosio_assert
(i32.eq
(i32.load offset=16
(tee_local $8
(call $_ZNK5eosio11multi_indexILy4152997948096111264EN8fomolife12balancetableEJEE31load_object_by_primary_iteratorEl
(get_local $4)
(get_local $6)
)
)
)
(get_local $4)
)
(i32.const 16)
)
)
(i64.store offset=8
(get_local $15)
(get_local $1)
)
(call $_ZNK5eosio4name9to_stringEv
(i32.add
(get_local $15)
(i32.const 128)
)
(i32.add
(get_local $15)
(i32.const 8)
)
)
(i32.store
(i32.add
(i32.add
(get_local $15)
(i32.const 72)
)
(i32.const 8)
)
(i32.load
(tee_local $7
(i32.add
(tee_local $6
(call $_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEjPKc
(i32.add
(get_local $15)
(i32.const 128)
)
(i32.const 0)
(i32.const 80)
)
)
(i32.const 8)
)
)
)
)
(i64.store offset=72
(get_local $15)
(i64.load align=4
(get_local $6)
)
)
(i32.store
(get_local $6)
(i32.const 0)
)
(i32.store
(i32.add
(get_local $6)
(i32.const 4)
)
(i32.const 0)
)
(i32.store
(get_local $7)
(i32.const 0)
)
(i32.store
(tee_local $7
(i32.add
(i32.add
(get_local $15)
(i32.const 24)
)
(i32.const 8)
)
)
(i32.load
(tee_local $3
(i32.add
(tee_local $6
(call $_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc
(i32.add
(get_local $15)
(i32.const 72)
)
(i32.const 96)
)
)
(i32.const 8)
)
)
)
)
(i64.store offset=24
(get_local $15)
(i64.load align=4
(get_local $6)
)
)
(i32.store
(get_local $6)
(i32.const 0)
)
(i32.store
(i32.add
(get_local $6)
(i32.const 4)
)
(i32.const 0)
)
(i32.store
(get_local $3)
(i32.const 0)
)
(call $eosio_assert
(tee_local $6
(i32.ne
(get_local $8)
(i32.const 0)
)
)
(select
(i32.load
(get_local $7)
)
(i32.or
(i32.add
(get_local $15)
(i32.const 24)
)
(i32.const 1)
)
(i32.and
(i32.load8_u offset=24
(get_local $15)
)
(i32.const 1)
)
)
)
(block $label$4
(br_if $label$4
(i32.eqz
(i32.and
(i32.load8_u offset=24
(get_local $15)
)
(i32.const 1)
)
)
)
(call $_ZdlPv
(i32.load
(get_local $7)
)
)
)
(block $label$5
(br_if $label$5
(i32.eqz
(i32.and
(i32.load8_u offset=72
(get_local $15)
)
(i32.const 1)
)
)
)
(call $_ZdlPv
(i32.load offset=80
(get_local $15)
)
)
)
(block $label$6
(br_if $label$6
(i32.eqz
(i32.and
(i32.load8_u offset=128
(get_local $15)
)
(i32.const 1)
)
)
)
(call $_ZdlPv
(i32.load offset=136
(get_local $15)
)
)
)
(i64.store
(get_local $2)
(i64.load offset=8
(get_local $8)
)
)
(call $eosio_assert
(get_local $6)
(i32.const 160)
)
(call $eosio_assert
(get_local $6)
(i32.const 208)
)
(block $label$7
(br_if $label$7
(i32.lt_s
(tee_local $6
(call $db_next_i64
(i32.load offset=20
(get_local $8)
)
(i32.add
(get_local $15)
(i32.const 24)
)
)
)
(i32.const 0)
)
)
(drop
(call $_ZNK5eosio11multi_indexILy4152997948096111264EN8fomolife12balancetableEJEE31load_object_by_primary_iteratorEl
(get_local $4)
(get_local $6)
)
)
)
(call $_ZN5eosio11multi_indexILy4152997948096111264EN8fomolife12balancetableEJEE5eraseERKS2_
(get_local $4)
(get_local $8)
)
(set_local $5
(i64.load offset=8
(get_local $0)
)
)
(set_local $10
(i64.const 0)
)
(set_local $9
(i64.const 59)
)
(set_local $8
(i32.const 240)
)
(set_local $11
(i64.const 0)
)
(loop $label$8
(block $label$9
(block $label$10
(block $label$11
(block $label$12
(block $label$13
(br_if $label$13
(i64.gt_u
(get_local $10)
(i64.const 5)
)
)
(br_if $label$12
(i32.gt_u
(i32.and
(i32.add
(tee_local $6
(i32.load8_s
(get_local $8)
)
)
(i32.const -97)
)
(i32.const 255)
)
(i32.const 25)
)
)
(set_local $6
(i32.add
(get_local $6)
(i32.const 165)
)
)
(br $label$11)
)
(set_local $12
(i64.const 0)
)
(br_if $label$10
(i64.le_u
(get_local $10)
(i64.const 11)
)
)
(br $label$9)
)
(set_local $6
(select
(i32.add
(get_local $6)
(i32.const 208)
)
(i32.const 0)
(i32.lt_u
(i32.and
(i32.add
(get_local $6)
(i32.const -49)
)
(i32.const 255)
)
(i32.const 5)
)
)
)
)
(set_local $12
(i64.shr_s
(i64.shl
(i64.extend_u/i32
(get_local $6)
)
(i64.const 56)
)
(i64.const 56)
)
)
)
(set_local $12
(i64.shl
(i64.and
(get_local $12)
(i64.const 31)
)
(i64.and
(get_local $9)
(i64.const 4294967295)
)
)
)
)
(set_local $8
(i32.add
(get_local $8)
(i32.const 1)
)
)
(set_local $10
(i64.add
(get_local $10)
(i64.const 1)
)
)
(set_local $11
(i64.or
(get_local $12)
(get_local $11)
)
)
(br_if $label$8
(i64.ne
(tee_local $9
(i64.add
(get_local $9)
(i64.const -5)
)
)
(i64.const -6)
)
)
)
(set_local $10
(i64.const 0)
)
(set_local $9
(i64.const 59)
)
(set_local $8
(i32.const 256)
)
(set_local $13
(i64.const 0)
)
(loop $label$14
(block $label$15
(block $label$16
(block $label$17
(block $label$18
(block $label$19
(br_if $label$19
(i64.gt_u
(get_local $10)
(i64.const 10)
)
)
(br_if $label$18
(i32.gt_u
(i32.and
(i32.add
(tee_local $6
(i32.load8_s
(get_local $8)
)
)
(i32.const -97)
)
(i32.const 255)
)
(i32.const 25)
)
)
(set_local $6
(i32.add
(get_local $6)
(i32.const 165)
)
)
(br $label$17)
)
(set_local $12
(i64.const 0)
)
(br_if $label$16
(i64.eq
(get_local $10)
(i64.const 11)
)
)
(br $label$15)
)
(set_local $6
(select
(i32.add
(get_local $6)
(i32.const 208)
)
(i32.const 0)
(i32.lt_u
(i32.and
(i32.add
(get_local $6)
(i32.const -49)
)
(i32.const 255)
)
(i32.const 5)
)
)
)
)
(set_local $12
(i64.shr_s
(i64.shl
(i64.extend_u/i32
(get_local $6)
)
(i64.const 56)
)
(i64.const 56)
)
)
)
(set_local $12
(i64.shl
(i64.and
(get_local $12)
(i64.const 31)
)
(i64.and
(get_local $9)
(i64.const 4294967295)
)
)
)
)
(set_local $8
(i32.add
(get_local $8)
(i32.const 1)
)
)
(set_local $9
(i64.add
(get_local $9)
(i64.const -5)
)
)
(set_local $13
(i64.or
(get_local $12)
(get_local $13)
)
)
(br_if $label$14
(i64.ne
(tee_local $10
(i64.add
(get_local $10)
(i64.const 1)
)
)
(i64.const 13)
)
)
)
(set_local $10
(i64.const 0)
)
(set_local $9
(i64.const 59)
)
(set_local $8
(i32.const 272)
)
(set_local $14
(i64.const 0)
)
(loop $label$20
(block $label$21
(block $label$22
(block $label$23
(block $label$24
(block $label$25
(br_if $label$25
(i64.gt_u
(get_local $10)
(i64.const 7)
)
)
(br_if $label$24
(i32.gt_u
(i32.and
(i32.add
(tee_local $6
(i32.load8_s
(get_local $8)
)
)
(i32.const -97)
)
(i32.const 255)
)
(i32.const 25)
)
)
(set_local $6
(i32.add
(get_local $6)
(i32.const 165)
)
)
(br $label$23)
)
(set_local $12
(i64.const 0)
)
(br_if $label$22
(i64.le_u
(get_local $10)
(i64.const 11)
)
)
(br $label$21)
)
(set_local $6
(select
(i32.add
(get_local $6)