[*] Binary protection state of systemd-cgls

  
  	Full RELRO     Canary found      NX enabled   PIE enabled  RPATH        No RUNPATH   No Symbols


[*] Function printf tear down of systemd-cgls

    ; assembly                           | /* r2dec pseudo code output */
                                         | /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/systemd-cgls @ 0x179c */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) fcn.0000179c ()              | void fcn_0000179c (int16_t arg1, int16_t arg2) {
                                         |     r0 = arg1;
                                         |     r1 = arg2;
    0x0000179c push {r4, r5, r6, lr}     |     
    0x0000179e mov r5, r0                |     r5 = r0;
    0x000017a0 mov r4, r1                |     r4 = r1;
    0x000017a2 ldr r6, [pc, 0x5c]        |     
    0x000017a4 blx 0xb9c                 |     cg_all_unified ();
    0x000017a8 subs r3, r5, 0            |     r3 = r5 - 0;
    0x000017aa add r6, pc                |     r6 = 0x2fb0;
    0x000017ac it ne                     |     
                                         |     if (r3 == r5) {
    0x000017ae movne r3, 1               |         r3 = 1;
                                         |     }
    0x000017b0 cmp r0, 0                 |     
    0x000017b2 it ne                     |     
                                         |     if (r0 == 0) {
    0x000017b4 movne r3, 0               |         r3 = 0;
                                         |     }
    0x000017b6 cbnz r3, 0x17dc           |     
                                         |     while (r0 == 0) {
                                         |         if (r4 == 0) {
    0x000017b8 cbz r4, 0x17fa            |             goto label_2;
                                         |         }
                                         | label_0:
    0x000017ba ldrb r3, [r4]             |         r3 = *(r4);
                                         |         if (r3 == 0) {
    0x000017bc cbnz r3, 0x17c2           |             
    0x000017be ldr r4, [pc, 0x44]        |             
    0x000017c0 add r4, pc                |             r4 = 0x2fca;
                                         |         }
                                         | label_1:
    0x000017c2 ldr r1, [pc, 0x44]        |         
    0x000017c4 mov r2, r4                |         r2 = r4;
    0x000017c6 movs r0, 1                |         r0 = 1;
    0x000017c8 add r1, pc                |         r1 = 0x2fd6;
    0x000017ca blx 0xb90                 |         printf_chk ()
    0x000017ce ldr r3, [pc, 0x3c]        |         r3 = *(0x180e);
    0x000017d0 ldr r3, [r6, r3]          |         r3 = *((r6 + r3));
    0x000017d2 pop.w {r4, r5, r6, lr}    |         
    0x000017d6 ldr r0, [r3]              |         r0 = *(0x180e);
    0x000017d8 b.w 0xbd8                 |         void (*0xbd8)() ();
    0x000017dc ldr r1, [pc, 0x30]        |         
    0x000017de mov r0, r5                |         r0 = r5;
    0x000017e0 add r1, pc                |         r1 = 0x2ff4;
    0x000017e2 blx 0xcf0                 |         r0 = fcn_00000cf0 ();
    0x000017e6 cmp r0, 0                 |         
    0x000017e8 beq 0x17b8                |         
                                         |     }
    0x000017ea ldr r1, [pc, 0x28]        |     
    0x000017ec mov r2, r5                |     r2 = r5;
    0x000017ee movs r0, 1                |     r0 = 1;
    0x000017f0 add r1, pc                |     r1 = 0x300a;
    0x000017f2 blx 0xb90                 |     printf_chk ()
    0x000017f6 cmp r4, 0                 |     
                                         |     if (r4 != 0) {
    0x000017f8 bne 0x17ba                |         goto label_0;
                                         |     }
                                         | label_2:
    0x000017fa ldr r4, [pc, 0x1c]        |     
    0x000017fc add r4, pc                |     r4 = 0x301a;
    0x000017fe b 0x17c2                  |     goto label_1;
                                         | }

[*] Function printf used 3 times systemd-cgls