-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextRenderer.s
More file actions
1665 lines (1652 loc) · 47.3 KB
/
TextRenderer.s
File metadata and controls
1665 lines (1652 loc) · 47.3 KB
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
.file "TextRenderer.mpp"
.text
.hidden _ZNW12TextRenderer12TextRendererC2EPKc # -- Begin function _ZNW12TextRenderer12TextRendererC2EPKc
.globl _ZNW12TextRenderer12TextRendererC2EPKc
.p2align 4
.type _ZNW12TextRenderer12TextRendererC2EPKc,@function
_ZNW12TextRenderer12TextRendererC2EPKc: # @_ZNW12TextRenderer12TextRendererC2EPKc
.cfi_startproc
# %bb.0:
pushq %r15
.cfi_def_cfa_offset 16
pushq %r14
.cfi_def_cfa_offset 24
pushq %r13
.cfi_def_cfa_offset 32
pushq %r12
.cfi_def_cfa_offset 40
pushq %rbx
.cfi_def_cfa_offset 48
subq $32, %rsp
.cfi_def_cfa_offset 80
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r13, -32
.cfi_offset %r14, -24
.cfi_offset %r15, -16
movq %rsi, %r13
movq %rdi, %r15
movq %fs:40, %rax
movq %rax, 24(%rsp)
movb $0, (%rdi)
callq FcInit@PLT
callq FcInitLoadConfigAndFonts@PLT
movq %rax, %rbx
movq %r13, %rdi
callq FcNameParse@PLT
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq FcConfigSubstitute@PLT
movq %r14, %rdi
callq FcDefaultSubstitute@PLT
leaq 20(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq FcFontMatch@PLT
movq %rax, %r12
movb $0, (%r15)
testq %rax, %rax
je .LBB0_7
# %bb.1:
movq $0, 8(%rsp)
leaq .L.str(%rip), %rsi
leaq 8(%rsp), %rcx
movq %r12, %rdi
xorl %edx, %edx
callq FcPatternGetString@PLT
testl %eax, %eax
jne .LBB0_7
# %bb.2:
movq 8(%rsp), %rdx
leaq .L.str.1(%rip), %rdi
movq %r13, %rsi
xorl %eax, %eax
callq _ZN6Louvre4LLog5debugEPKcz@PLT
leaq 8(%r15), %r13
movq %r13, %rdi
callq FT_Init_FreeType@PLT
testl %eax, %eax
je .LBB0_4
# %bb.3:
leaq .L.str.2(%rip), %rdi
xorl %eax, %eax
callq _ZN6Louvre4LLog5errorEPKcz@PLT
jmp .LBB0_7
.LBB0_4:
movq 8(%r15), %rdi
movq 8(%rsp), %rsi
leaq 16(%r15), %rcx
xorl %edx, %edx
callq FT_New_Face@PLT
testl %eax, %eax
je .LBB0_6
# %bb.5:
leaq .L.str.3(%rip), %rdi
xorl %eax, %eax
callq _ZN6Louvre4LLog5errorEPKcz@PLT
movq (%r13), %rdi
callq FT_Done_FreeType@PLT
jmp .LBB0_7
.LBB0_6:
movb $1, (%r15)
.LBB0_7:
movq %r12, %rdi
callq FcPatternDestroy@PLT
movq %r14, %rdi
callq FcPatternDestroy@PLT
movq %rbx, %rdi
callq FcConfigDestroy@PLT
callq FcFini@PLT
movq %fs:40, %rax
cmpq 24(%rsp), %rax
jne .LBB0_9
# %bb.8: # %SP_return
addq $32, %rsp
.cfi_def_cfa_offset 48
popq %rbx
.cfi_def_cfa_offset 40
popq %r12
.cfi_def_cfa_offset 32
popq %r13
.cfi_def_cfa_offset 24
popq %r14
.cfi_def_cfa_offset 16
popq %r15
.cfi_def_cfa_offset 8
retq
.LBB0_9: # %CallStackCheckFailBlk
.cfi_def_cfa_offset 80
callq __stack_chk_fail@PLT
.Lfunc_end0:
.size _ZNW12TextRenderer12TextRendererC2EPKc, .Lfunc_end0-_ZNW12TextRenderer12TextRendererC2EPKc
.cfi_endproc
# -- End function
.hidden _ZNW12TextRenderer12TextRenderer8loadFontEPKc # -- Begin function _ZNW12TextRenderer12TextRenderer8loadFontEPKc
.globl _ZNW12TextRenderer12TextRenderer8loadFontEPKc
.p2align 4
.type _ZNW12TextRenderer12TextRenderer8loadFontEPKc,@function
_ZNW12TextRenderer12TextRenderer8loadFontEPKc: # @_ZNW12TextRenderer12TextRenderer8loadFontEPKc
.Lfunc_begin0:
.cfi_startproc
.cfi_personality 155, DW.ref.__gxx_personality_v0
.cfi_lsda 27, .Lexception0
# %bb.0:
pushq %r14
.cfi_def_cfa_offset 16
pushq %rbx
.cfi_def_cfa_offset 24
pushq %rax
.cfi_def_cfa_offset 32
.cfi_offset %rbx, -24
.cfi_offset %r14, -16
movq %rdi, %r14
movl $24, %edi
callq _Znwm@PLT
movq %rax, %rbx
.Ltmp0:
movq %rax, %rdi
movq %r14, %rsi
callq _ZNW12TextRenderer12TextRendererC2EPKc
.Ltmp1:
# %bb.1:
cmpb $0, (%rbx)
jne .LBB1_3
# %bb.2: # %_ZNW12TextRenderer12TextRendererD2Ev.exit
movl $24, %esi
movq %rbx, %rdi
callq _ZdlPvm@PLT
xorl %ebx, %ebx
.LBB1_3:
movq %rbx, %rax
addq $8, %rsp
.cfi_def_cfa_offset 24
popq %rbx
.cfi_def_cfa_offset 16
popq %r14
.cfi_def_cfa_offset 8
retq
.LBB1_4:
.cfi_def_cfa_offset 32
.Ltmp2:
movq %rax, %r14
movl $24, %esi
movq %rbx, %rdi
callq _ZdlPvm@PLT
movq %r14, %rdi
callq _Unwind_Resume@PLT
.Lfunc_end1:
.size _ZNW12TextRenderer12TextRenderer8loadFontEPKc, .Lfunc_end1-_ZNW12TextRenderer12TextRenderer8loadFontEPKc
.cfi_endproc
.section .gcc_except_table,"a",@progbits
.p2align 2, 0x0
GCC_except_table1:
.Lexception0:
.byte 255 # @LPStart Encoding = omit
.byte 255 # @TType Encoding = omit
.byte 1 # Call site Encoding = uleb128
.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
.uleb128 .Lfunc_begin0-.Lfunc_begin0 # >> Call Site 1 <<
.uleb128 .Ltmp0-.Lfunc_begin0 # Call between .Lfunc_begin0 and .Ltmp0
.byte 0 # has no landing pad
.byte 0 # On action: cleanup
.uleb128 .Ltmp0-.Lfunc_begin0 # >> Call Site 2 <<
.uleb128 .Ltmp1-.Ltmp0 # Call between .Ltmp0 and .Ltmp1
.uleb128 .Ltmp2-.Lfunc_begin0 # jumps to .Ltmp2
.byte 0 # On action: cleanup
.uleb128 .Ltmp1-.Lfunc_begin0 # >> Call Site 3 <<
.uleb128 .Lfunc_end1-.Ltmp1 # Call between .Ltmp1 and .Lfunc_end1
.byte 0 # has no landing pad
.byte 0 # On action: cleanup
.Lcst_end0:
.p2align 2, 0x0
# -- End function
.text
.hidden _ZNW12TextRenderer12TextRendererD2Ev # -- Begin function _ZNW12TextRenderer12TextRendererD2Ev
.globl _ZNW12TextRenderer12TextRendererD2Ev
.p2align 4
.type _ZNW12TextRenderer12TextRendererD2Ev,@function
_ZNW12TextRenderer12TextRendererD2Ev: # @_ZNW12TextRenderer12TextRendererD2Ev
.Lfunc_begin1:
.cfi_startproc
.cfi_personality 155, DW.ref.__gxx_personality_v0
.cfi_lsda 27, .Lexception1
# %bb.0:
pushq %rbx
.cfi_def_cfa_offset 16
.cfi_offset %rbx, -16
cmpb $1, (%rdi)
jne .LBB2_3
# %bb.1:
movq %rdi, %rbx
movq 16(%rdi), %rdi
.Ltmp3:
callq FT_Done_Face@PLT
.Ltmp4:
# %bb.2:
movq 8(%rbx), %rdi
.Ltmp5:
callq FT_Done_FreeType@PLT
.Ltmp6:
.LBB2_3:
popq %rbx
.cfi_def_cfa_offset 8
retq
.LBB2_4:
.cfi_def_cfa_offset 16
.Ltmp7:
movq %rax, %rdi
callq __clang_call_terminate
.Lfunc_end2:
.size _ZNW12TextRenderer12TextRendererD2Ev, .Lfunc_end2-_ZNW12TextRenderer12TextRendererD2Ev
.cfi_endproc
.section .gcc_except_table,"a",@progbits
.p2align 2, 0x0
GCC_except_table2:
.Lexception1:
.byte 255 # @LPStart Encoding = omit
.byte 155 # @TType Encoding = indirect pcrel sdata4
.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
.byte 1 # Call site Encoding = uleb128
.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
.uleb128 .Ltmp3-.Lfunc_begin1 # >> Call Site 1 <<
.uleb128 .Ltmp6-.Ltmp3 # Call between .Ltmp3 and .Ltmp6
.uleb128 .Ltmp7-.Lfunc_begin1 # jumps to .Ltmp7
.byte 1 # On action: 1
.Lcst_end1:
.byte 1 # >> Action Record 1 <<
# Catch TypeInfo 1
.byte 0 # No further actions
.p2align 2, 0x0
# >> Catch TypeInfos <<
.long 0 # TypeInfo 1
.Lttbase0:
.p2align 2, 0x0
# -- End function
.section .text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
.hidden __clang_call_terminate # -- Begin function __clang_call_terminate
.weak __clang_call_terminate
.p2align 4
.type __clang_call_terminate,@function
__clang_call_terminate: # @__clang_call_terminate
.cfi_startproc
# %bb.0:
pushq %rax
.cfi_def_cfa_offset 16
callq __cxa_begin_catch@PLT
callq _ZSt9terminatev@PLT
.Lfunc_end3:
.size __clang_call_terminate, .Lfunc_end3-__clang_call_terminate
.cfi_endproc
# -- End function
.text
.hidden _ZNW12TextRenderer12TextRenderer8clipTextB5cxx11EPKciiRN6Louvre14LPointTemplateIiEE # -- Begin function _ZNW12TextRenderer12TextRenderer8clipTextB5cxx11EPKciiRN6Louvre14LPointTemplateIiEE
.globl _ZNW12TextRenderer12TextRenderer8clipTextB5cxx11EPKciiRN6Louvre14LPointTemplateIiEE
.p2align 4
.type _ZNW12TextRenderer12TextRenderer8clipTextB5cxx11EPKciiRN6Louvre14LPointTemplateIiEE,@function
_ZNW12TextRenderer12TextRenderer8clipTextB5cxx11EPKciiRN6Louvre14LPointTemplateIiEE: # @_ZNW12TextRenderer12TextRenderer8clipTextB5cxx11EPKciiRN6Louvre14LPointTemplateIiEE
.Lfunc_begin2:
.cfi_startproc
.cfi_personality 155, DW.ref.__gxx_personality_v0
.cfi_lsda 27, .Lexception2
# %bb.0: # %._crit_edge.i.i
pushq %rbp
.cfi_def_cfa_offset 16
pushq %r15
.cfi_def_cfa_offset 24
pushq %r14
.cfi_def_cfa_offset 32
pushq %r13
.cfi_def_cfa_offset 40
pushq %r12
.cfi_def_cfa_offset 48
pushq %rbx
.cfi_def_cfa_offset 56
subq $56, %rsp
.cfi_def_cfa_offset 112
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
.cfi_offset %rbp, -16
movq %rdi, %rbx
leaq 16(%rdi), %rax
movq %rax, 16(%rsp) # 8-byte Spill
movq %rax, (%rdi)
movq $0, 8(%rdi)
movb $0, 16(%rdi)
testq %rdx, %rdx
je .LBB4_28
# %bb.1:
.Ltmp8:
movq %r9, %r15
movl %r8d, %ebp
movq %rsi, %rdi
movq %rdx, 32(%rsp) # 8-byte Spill
movq %rdx, %rsi
movl %ecx, %edx
movq %rbx, 24(%rsp) # 8-byte Spill
callq _ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci
.Ltmp9:
# %bb.2:
movq %rax, (%r15)
movq %rax, %rcx
shrq $32, %rcx
imull %eax, %ecx
testl %ecx, %ecx
movq 32(%rsp), %rdi # 8-byte Reload
jle .LBB4_28
# %bb.3:
cmpl %eax, %ebp
jge .LBB4_6
# %bb.4:
movq %rax, %rbx
callq strlen@PLT
testq %rax, %rax
js .LBB4_7
# %bb.5:
cvtsi2ss %rax, %xmm0
jmp .LBB4_8
.LBB4_6:
movq 8(%rbx), %r15
movq %rdi, %r14
callq strlen@PLT
.Ltmp11:
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r14, %rcx
movq %rax, %r8
callq _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp12:
jmp .LBB4_28
.LBB4_7:
movq %rax, %rcx
shrq %rcx
andl $1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
.LBB4_8:
cvtsi2ss %ebp, %xmm1
mulss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
divss %xmm0, %xmm1
cvttss2si %xmm1, %eax
testl %eax, %eax
movq 24(%rsp), %rbx # 8-byte Reload
movq 32(%rsp), %rcx # 8-byte Reload
jle .LBB4_28
# %bb.9: # %.preheader.preheader
movl %eax, %edx
xorl %r14d, %r14d
movq %rdx, 40(%rsp) # 8-byte Spill
jmp .LBB4_12
.p2align 4
.LBB4_10: # in Loop: Header=BB4_12 Depth=1
movq %r12, %rbp
.LBB4_11: # in Loop: Header=BB4_12 Depth=1
movb %sil, (%rbp,%r15)
movq %rdi, 8(%rbx)
movq (%rbx), %rax
movb $0, 1(%rax,%r15)
incq %r14
cmpq %r14, %rdx
je .LBB4_21
.LBB4_12: # %.preheader
# =>This Inner Loop Header: Depth=1
movzbl (%rcx,%r14), %esi
movq (%rbx), %r12
movq 8(%rbx), %r15
leaq 1(%r15), %rdi
movq 16(%rbx), %r13
cmpq 16(%rsp), %r12 # 8-byte Folded Reload
je .LBB4_14
# %bb.13: # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv.exit.thread.i.i
# in Loop: Header=BB4_12 Depth=1
movq %r13, %rax
cmpq %r13, %r15
jb .LBB4_10
jmp .LBB4_15
.p2align 4
.LBB4_14: # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv.exit.i.i
# in Loop: Header=BB4_12 Depth=1
movl $15, %eax
cmpq $14, %r15
jbe .LBB4_10
.LBB4_15: # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv.exit.i.i.i38
# in Loop: Header=BB4_12 Depth=1
movb %sil, 15(%rsp) # 1-byte Spill
movabsq $9223372036854775807, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, %rdi
je .LBB4_29
# %bb.16: # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm.exit.i.i.i
# in Loop: Header=BB4_12 Depth=1
addq %rax, %rax
movabsq $9223372036854775806, %rbx # imm = 0x7FFFFFFFFFFFFFFE
cmpq %rbx, %rax
cmovbq %rax, %rbx
cmpq %rax, %rdi
movq %rdi, 48(%rsp) # 8-byte Spill
cmovaeq %rdi, %rbx
leaq 1(%rbx), %rdi
.Ltmp14:
callq _Znwm@PLT
.Ltmp15:
# %bb.17: # %.noexc40
# in Loop: Header=BB4_12 Depth=1
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq memcpy@PLT
cmpq 16(%rsp), %r12 # 8-byte Folded Reload
je .LBB4_19
# %bb.18: # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i
# in Loop: Header=BB4_12 Depth=1
incq %r13
movq %r12, %rdi
movq %r13, %rsi
callq _ZdlPvm@PLT
.LBB4_19: # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm.exit.i.i
# in Loop: Header=BB4_12 Depth=1
movq 24(%rsp), %rax # 8-byte Reload
movq %rbp, (%rax)
movq %rbx, 16(%rax)
movq %rax, %rbx
movq 32(%rsp), %rcx # 8-byte Reload
movq 40(%rsp), %rdx # 8-byte Reload
movzbl 15(%rsp), %esi # 1-byte Folded Reload
movq 48(%rsp), %rdi # 8-byte Reload
jmp .LBB4_11
.LBB4_21:
movq 8(%rbx), %rsi
movabsq $9223372036854775807, %rax # imm = 0x7FFFFFFFFFFFFFFF
addq $-4, %rax
cmpq %rax, %rsi
ja .LBB4_31
# %bb.22: # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE15_M_check_lengthEmmPKc.exit.i.i
movq %rbx, %rax
leaq 3(%rsi), %rbx
movq (%rax), %rax
movl $15, %ecx
cmpq 16(%rsp), %rax # 8-byte Folded Reload
je .LBB4_24
# %bb.23: # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE15_M_check_lengthEmmPKc.exit.i.i
movq 16(%rsp), %rcx # 8-byte Reload
movq (%rcx), %rcx
.LBB4_24: # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE15_M_check_lengthEmmPKc.exit.i.i
cmpq %rcx, %rbx
jbe .LBB4_26
# %bb.25:
.Ltmp17:
leaq .L.str.5(%rip), %rcx
movl $3, %r8d
movq 24(%rsp), %r14 # 8-byte Reload
movq %r14, %rdi
xorl %edx, %edx
callq _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm
.Ltmp18:
jmp .LBB4_27
.LBB4_26:
movb $46, 2(%rax,%rsi)
movw $11822, (%rax,%rsi) # imm = 0x2E2E
movq 24(%rsp), %r14 # 8-byte Reload
.LBB4_27: # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc.exit
movq %rbx, 8(%r14)
movq (%r14), %rax
movb $0, (%rax,%rbx)
movq %r14, %rbx
.LBB4_28: # %.critedge
movq %rbx, %rax
addq $56, %rsp
.cfi_def_cfa_offset 56
popq %rbx
.cfi_def_cfa_offset 48
popq %r12
.cfi_def_cfa_offset 40
popq %r13
.cfi_def_cfa_offset 32
popq %r14
.cfi_def_cfa_offset 24
popq %r15
.cfi_def_cfa_offset 16
popq %rbp
.cfi_def_cfa_offset 8
retq
.LBB4_29:
.cfi_def_cfa_offset 112
.Ltmp22:
leaq .L.str.12(%rip), %rdi
callq _ZSt20__throw_length_errorPKc@PLT
.Ltmp23:
# %bb.30: # %.noexc39
.LBB4_31:
.Ltmp19:
leaq .L.str.13(%rip), %rdi
callq _ZSt20__throw_length_errorPKc@PLT
.Ltmp20:
# %bb.32: # %.noexc36
.LBB4_33:
.Ltmp21:
jmp .LBB4_38
.LBB4_34:
.Ltmp13:
jmp .LBB4_38
.LBB4_35:
.Ltmp10:
jmp .LBB4_38
.LBB4_36: # %.loopexit
.Ltmp16:
jmp .LBB4_38
.LBB4_37: # %.loopexit.split-lp
.Ltmp24:
.LBB4_38:
movq %rax, %r14
movq 24(%rsp), %rax # 8-byte Reload
movq (%rax), %rdi
cmpq 16(%rsp), %rdi # 8-byte Folded Reload
je .LBB4_40
# %bb.39: # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
movq 16(%rsp), %rax # 8-byte Reload
movq (%rax), %rsi
incq %rsi
callq _ZdlPvm@PLT
.LBB4_40: # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
movq %r14, %rdi
callq _Unwind_Resume@PLT
.Lfunc_end4:
.size _ZNW12TextRenderer12TextRenderer8clipTextB5cxx11EPKciiRN6Louvre14LPointTemplateIiEE, .Lfunc_end4-_ZNW12TextRenderer12TextRenderer8clipTextB5cxx11EPKciiRN6Louvre14LPointTemplateIiEE
.cfi_endproc
.section .gcc_except_table,"a",@progbits
.p2align 2, 0x0
GCC_except_table4:
.Lexception2:
.byte 255 # @LPStart Encoding = omit
.byte 255 # @TType Encoding = omit
.byte 1 # Call site Encoding = uleb128
.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
.uleb128 .Ltmp8-.Lfunc_begin2 # >> Call Site 1 <<
.uleb128 .Ltmp9-.Ltmp8 # Call between .Ltmp8 and .Ltmp9
.uleb128 .Ltmp10-.Lfunc_begin2 # jumps to .Ltmp10
.byte 0 # On action: cleanup
.uleb128 .Ltmp11-.Lfunc_begin2 # >> Call Site 2 <<
.uleb128 .Ltmp12-.Ltmp11 # Call between .Ltmp11 and .Ltmp12
.uleb128 .Ltmp13-.Lfunc_begin2 # jumps to .Ltmp13
.byte 0 # On action: cleanup
.uleb128 .Ltmp14-.Lfunc_begin2 # >> Call Site 3 <<
.uleb128 .Ltmp15-.Ltmp14 # Call between .Ltmp14 and .Ltmp15
.uleb128 .Ltmp16-.Lfunc_begin2 # jumps to .Ltmp16
.byte 0 # On action: cleanup
.uleb128 .Ltmp15-.Lfunc_begin2 # >> Call Site 4 <<
.uleb128 .Ltmp17-.Ltmp15 # Call between .Ltmp15 and .Ltmp17
.byte 0 # has no landing pad
.byte 0 # On action: cleanup
.uleb128 .Ltmp17-.Lfunc_begin2 # >> Call Site 5 <<
.uleb128 .Ltmp18-.Ltmp17 # Call between .Ltmp17 and .Ltmp18
.uleb128 .Ltmp21-.Lfunc_begin2 # jumps to .Ltmp21
.byte 0 # On action: cleanup
.uleb128 .Ltmp22-.Lfunc_begin2 # >> Call Site 6 <<
.uleb128 .Ltmp23-.Ltmp22 # Call between .Ltmp22 and .Ltmp23
.uleb128 .Ltmp24-.Lfunc_begin2 # jumps to .Ltmp24
.byte 0 # On action: cleanup
.uleb128 .Ltmp19-.Lfunc_begin2 # >> Call Site 7 <<
.uleb128 .Ltmp20-.Ltmp19 # Call between .Ltmp19 and .Ltmp20
.uleb128 .Ltmp21-.Lfunc_begin2 # jumps to .Ltmp21
.byte 0 # On action: cleanup
.uleb128 .Ltmp20-.Lfunc_begin2 # >> Call Site 8 <<
.uleb128 .Lfunc_end4-.Ltmp20 # Call between .Ltmp20 and .Lfunc_end4
.byte 0 # has no landing pad
.byte 0 # On action: cleanup
.Lcst_end2:
.p2align 2, 0x0
# -- End function
.text
.hidden _ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci # -- Begin function _ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci
.globl _ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci
.p2align 4
.type _ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci,@function
_ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci: # @_ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
pushq %r15
.cfi_def_cfa_offset 24
pushq %r14
.cfi_def_cfa_offset 32
pushq %r13
.cfi_def_cfa_offset 40
pushq %r12
.cfi_def_cfa_offset 48
pushq %rbx
.cfi_def_cfa_offset 56
pushq %rax
.cfi_def_cfa_offset 64
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
.cfi_offset %rbp, -16
movq %rsi, %r15
movq %rdi, %r14
movq 16(%rdi), %rdi
xorl %esi, %esi
callq FT_Set_Pixel_Sizes@PLT
testl %eax, %eax
je .LBB5_2
# %bb.1:
leaq .L.str.8(%rip), %rdi
xorl %ebx, %ebx
xorl %eax, %eax
callq _ZN6Louvre4LLog5errorEPKcz@PLT
movq 16(%r14), %rdi
callq FT_Done_Face@PLT
xorl %r12d, %r12d
jmp .LBB5_13
.LBB5_2:
movq 16(%r14), %rax
movq 160(%rax), %rax
movq 48(%rax), %rbx
subq 56(%rax), %rbx
movq %r15, %rsi
callq _ZNW12TextRenderer12TextRenderer7toUTF32EPKc
xorl %r12d, %r12d
testq %rax, %rax
je .LBB5_3
# %bb.4: # %.preheader
movq %rax, %rdi
movl (%rax), %eax
testl %eax, %eax
je .LBB5_12
# %bb.5: # %.lr.ph.preheader
leaq .L.str.6(%rip), %r13
leaq .L.str.9(%rip), %rbp
movq %rdi, %r15
xorl %r12d, %r12d
movq %rdi, (%rsp) # 8-byte Spill
.LBB5_6: # %.lr.ph
# =>This Loop Header: Depth=1
# Child Loop BB5_7 Depth 2
addq $4, %r15
jmp .LBB5_7
.p2align 4
.LBB5_8: # %.backedge
# in Loop: Header=BB5_7 Depth=2
xorl %eax, %eax
callq _ZN6Louvre4LLog5errorEPKcz@PLT
movl (%r15), %eax
addq $4, %r15
testl %eax, %eax
je .LBB5_9
.LBB5_7: # Parent Loop BB5_6 Depth=1
# => This Inner Loop Header: Depth=2
movq 16(%r14), %rdi
movslq %eax, %rsi
callq FT_Get_Char_Index@PLT
movq %r13, %rdi
testl %eax, %eax
je .LBB5_8
# %bb.10: # in Loop: Header=BB5_7 Depth=2
movq 16(%r14), %rdi
movl %eax, %esi
movl $256, %edx # imm = 0x100
callq FT_Load_Glyph@PLT
movq %rbp, %rdi
testl %eax, %eax
jne .LBB5_8
# %bb.11: # %.outer
# in Loop: Header=BB5_6 Depth=1
movq 16(%r14), %rax
movq 152(%rax), %rax
movq 80(%rax), %rax
shrq $6, %rax
addl %eax, %r12d
movl (%r15), %eax
testl %eax, %eax
movq (%rsp), %rdi # 8-byte Reload
jne .LBB5_6
jmp .LBB5_12
.LBB5_9:
movq (%rsp), %rdi # 8-byte Reload
.LBB5_12: # %.outer._crit_edge
callq free@PLT
andq $-64, %rbx
shlq $26, %rbx
movl %r12d, %r12d
jmp .LBB5_13
.LBB5_3:
xorl %ebx, %ebx
.LBB5_13:
orq %r12, %rbx
movq %rbx, %rax
addq $8, %rsp
.cfi_def_cfa_offset 56
popq %rbx
.cfi_def_cfa_offset 48
popq %r12
.cfi_def_cfa_offset 40
popq %r13
.cfi_def_cfa_offset 32
popq %r14
.cfi_def_cfa_offset 24
popq %r15
.cfi_def_cfa_offset 16
popq %rbp
.cfi_def_cfa_offset 8
retq
.Lfunc_end5:
.size _ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci, .Lfunc_end5-_ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci
.cfi_endproc
# -- End function
.section .rodata.cst4,"aM",@progbits,4
.p2align 2, 0x0 # -- Begin function _ZNW12TextRenderer12TextRenderer10renderTextEPKciihhh
.LCPI6_0:
.long 0xc0800000 # float -4
.text
.hidden _ZNW12TextRenderer12TextRenderer10renderTextEPKciihhh
.globl _ZNW12TextRenderer12TextRenderer10renderTextEPKciihhh
.p2align 4
.type _ZNW12TextRenderer12TextRenderer10renderTextEPKciihhh,@function
_ZNW12TextRenderer12TextRenderer10renderTextEPKciihhh: # @_ZNW12TextRenderer12TextRenderer10renderTextEPKciihhh
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
pushq %r15
.cfi_def_cfa_offset 24
pushq %r14
.cfi_def_cfa_offset 32
pushq %r13
.cfi_def_cfa_offset 40
pushq %r12
.cfi_def_cfa_offset 48
pushq %rbx
.cfi_def_cfa_offset 56
subq $104, %rsp
.cfi_def_cfa_offset 160
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
.cfi_offset %rbp, -16
movl %r9d, %ebp
movl %r8d, %r14d
movl %ecx, %ebx
movl %edx, %r13d
movq %rdi, %r12
movq %fs:40, %rax
movq %rax, 96(%rsp)
movq %rsi, (%rsp) # 8-byte Spill
callq _ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci
movq %rax, %r15
shrq $32, %rax
movl %eax, %ecx
imull %r15d, %ecx
testl %ecx, %ecx
jle .LBB6_38
# %bb.1:
cmpl $-1, %ebx
sete %cl
cmpl %r15d, %ebx
setge %dl
orb %cl, %dl
jne .LBB6_5
# %bb.2:
movq (%rsp), %rdi # 8-byte Reload
callq strlen@PLT
testq %rax, %rax
js .LBB6_6
# %bb.3:
cvtsi2ss %rax, %xmm0
jmp .LBB6_7
.LBB6_5:
movq (%rsp), %rdx # 8-byte Reload
jmp .LBB6_9
.LBB6_6:
movq %rax, %rcx
shrq %rcx
andl $1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
.LBB6_7:
cvtsi2ss %ebx, %xmm1
cvtsi2ss %r15d, %xmm2
mulss %xmm0, %xmm1
divss %xmm2, %xmm1
addss .LCPI6_0(%rip), %xmm1
cvttss2si %xmm1, %ebx
cmpl $4, %ebx
jl .LBB6_38
# %bb.8: # %.thread
leal 4(%rbx), %edi
callq _Znam@PLT
movq %rax, %r15
movl %ebx, %ebx
movq %rax, %rdi
movq (%rsp), %rsi # 8-byte Reload
movq %rbx, %rdx
callq memcpy@PLT
movl $3026478, (%r15,%rbx) # imm = 0x2E2E2E
movq %r12, %rdi
movq %r15, %rsi
movl %r13d, %edx
callq _ZNW12TextRenderer12TextRenderer20calculateTextureSizeEPKci
movq %r15, %rdx
movq %rax, %r15
shrq $32, %rax
.LBB6_9:
movl %r15d, %ecx
shrl $31, %ecx
addl %r15d, %ecx
andl $-2, %ecx
movl %r15d, %r13d
subl %ecx, %r13d
addl %r15d, %r13d
movl %r13d, 88(%rsp)
movl %eax, %ecx
shrl $31, %ecx
addl %eax, %ecx
andl $-2, %ecx
movl %eax, %ebx
subl %ecx, %ebx
addl %eax, %ebx
movl %ebx, 92(%rsp)
movq %rdx, %r15
movq %rdx, %rsi
callq _ZNW12TextRenderer12TextRenderer7toUTF32EPKc
movq %rax, 16(%rsp) # 8-byte Spill
testq %rax, %rax
je .LBB6_28
# %bb.10:
movq %r15, 24(%rsp) # 8-byte Spill
imull %r13d, %ebx
testl %ebx, %ebx
jle .LBB6_31
# %bb.11:
shll $2, %ebx
movl $1, %edi
movq %rbx, %rsi
callq calloc@PLT
movq %rax, 40(%rsp) # 8-byte Spill
movq 16(%rsp), %rax # 8-byte Reload
movl (%rax), %eax
testl %eax, %eax
je .LBB6_24
# %bb.12: # %.lr.ph.lr.ph
movzbl 160(%rsp), %ebx
movslq %r13d, %rcx
movq 40(%rsp), %rdx # 8-byte Reload
addq $3, %rdx
movq %rdx, 72(%rsp) # 8-byte Spill
shlq $2, %rcx
movq %rcx, 80(%rsp) # 8-byte Spill
movl $0, 12(%rsp) # 4-byte Folded Spill
movq 16(%rsp), %r15 # 8-byte Reload
.LBB6_13: # %.lr.ph
# =>This Loop Header: Depth=1
# Child Loop BB6_15 Depth 2
# Child Loop BB6_20 Depth 2
# Child Loop BB6_21 Depth 3
addq $4, %r15
jmp .LBB6_15
.p2align 4
.LBB6_14: # %.backedge
# in Loop: Header=BB6_15 Depth=2
xorl %eax, %eax
callq _ZN6Louvre4LLog5errorEPKcz@PLT
movl (%r15), %eax
addq $4, %r15
testl %eax, %eax
je .LBB6_24
.LBB6_15: # Parent Loop BB6_13 Depth=1
# => This Inner Loop Header: Depth=2
movq 16(%r12), %rdi
movslq %eax, %rsi
callq FT_Get_Char_Index@PLT
leaq .L.str.6(%rip), %rdi
testl %eax, %eax
je .LBB6_14
# %bb.16: # in Loop: Header=BB6_15 Depth=2
movq 16(%r12), %rdi
movl %eax, %esi
xorl %edx, %edx
callq FT_Load_Glyph@PLT
leaq .L.str.7(%rip), %rdi
testl %eax, %eax
jne .LBB6_14
# %bb.17: # in Loop: Header=BB6_13 Depth=1
movq 16(%r12), %rax
movq 152(%rax), %rdi
movq 160(%rax), %rax
movq 48(%rdi), %rcx
movq %rcx, 64(%rsp) # 8-byte Spill
movq 72(%rdi), %rcx
movq 80(%rdi), %rdx
leaq 63(%rdx), %rsi
testq %rdx, %rdx
cmovnsq %rdx, %rsi
sarq $6, %rsi
movq %rsi, 32(%rsp) # 8-byte Spill
movq 48(%rax), %rax
leaq 63(%rax), %rdx
testq %rax, %rax
cmovnsq %rax, %rdx
movq %rdx, 56(%rsp) # 8-byte Spill
leaq 63(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
movq %rax, 48(%rsp) # 8-byte Spill
xorl %esi, %esi
callq FT_Render_Glyph@PLT
movq 16(%r12), %rax
movq 152(%rax), %rax
movl 152(%rax), %ecx
testq %rcx, %rcx
movq 80(%rsp), %r11 # 8-byte Reload
je .LBB6_23
# %bb.18: # %.preheader.lr.ph
# in Loop: Header=BB6_13 Depth=1
movq 64(%rsp), %rdx # 8-byte Reload
leaq 63(%rdx), %rsi
testq %rdx, %rdx
cmovnsq %rdx, %rsi
movl 156(%rax), %edx
testq %rdx, %rdx
je .LBB6_23
# %bb.19: # %.preheader.preheader
# in Loop: Header=BB6_13 Depth=1
movq 56(%rsp), %r8 # 8-byte Reload
sarq $6, %r8
movq 48(%rsp), %rdi # 8-byte Reload
sarq $6, %rdi
subq %rdi, %r8
sarq $6, %rsi
movq 32(%rsp), %rdi # 8-byte Reload
subq %rsi, %rdi
movq %rdi, %rsi
shrq $63, %rsi
addq %rdi, %rsi
sarq %rsi
movl 12(%rsp), %edi # 4-byte Reload
imulq %r11, %r8
leaq (%r8,%rsi,4), %rsi
leaq (%rsi,%rdi,4), %rsi
addq 72(%rsp), %rsi # 8-byte Folded Reload
xorl %edi, %edi
.p2align 4
.LBB6_20: # %.lr.ph110
# Parent Loop BB6_13 Depth=1
# => This Loop Header: Depth=2
# Child Loop BB6_21 Depth 3
xorl %r8d, %r8d
.p2align 4
.LBB6_21: # Parent Loop BB6_13 Depth=1
# Parent Loop BB6_20 Depth=2
# => This Inner Loop Header: Depth=3
movb %r14b, -3(%rsi,%r8,4)
movb %bpl, -2(%rsi,%r8,4)
movb %bl, -1(%rsi,%r8,4)
movq 168(%rax), %r9