{"type": "func", "start": 5122796, "end": 5122922, "name": "CustomSongWidget::onUsage", "pseudocode": "// \n// CustomSongWidget::onUsage from 0x4e2aec to 0x4e2b6a (126 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:51:02 +0000\n// \n\nint __fastcall CustomSongWidget::onUsage(int this, cocos2d::CCObject *a2)\n{\n  int v2; // r1\n  int v3; // r7\n  int v4; // r8\n  int v5; // r0\n  int v6[3]; // [sp+4h] [bp-1Ch] BYREF\n  int v7[3]; // [sp+10h] [bp-10h] BYREF\n\n  v2 = *(_DWORD *)(this + 272);\n  v3 = this;\n  if ( v2 )\n  {\n    v4 = *(_DWORD *)(v2 + 264);\n    std::string::basic_string(v6, v2 + 268);\n    std::string::basic_string(v7, *(_DWORD *)(v3 + 272) + 280);\n    v5 = SongUsagePopup::create(v4, v6, v7);\n    (*(void (__fastcall **)(int))(*(_DWORD *)v5 + 656))(v5);\n    std::string::~string((int)v7);\n    return std::string::~string((int)v6);\n  }\n  return this;\n}", "assembly": "; \n; CustomSongWidget::onUsage from 0x4e2aec to 0x4e2b6a (126 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:51:02 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4E2AF6)                ; +0x0, 0x4e2aec\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x4e2aee\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4e2af2\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4e2af4\nLDR.W           R1, [R0,#0x110]                                        ; +0xa, 0x4e2af6\nSUB             SP, SP, #0x20                                          ; +0xe, 0x4e2afa\nLDR             R2, [R3]                                               ; +0x10, 0x4e2afc\nMOV             R7, R0                                                 ; +0x12, 0x4e2afe\nMOV             R6, R3                                                 ; +0x14, 0x4e2b00\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x16, 0x4e2b02\nCBZ             R1, loc_4E2B58                                         ; +0x18, 0x4e2b04\nADD             R4, SP, #0x20+var_1C                                   ; +0x1a, 0x4e2b06\nLDR.W           R8, [R1,#0x108]                                        ; +0x1c, 0x4e2b08\nADD.W           R1, R1, #0x10C                                         ; +0x20, 0x4e2b0c\nADD             R5, SP, #0x20+var_10                                   ; +0x24, 0x4e2b10\nMOV             R0, R4                                                 ; +0x26, 0x4e2b12\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x28, 0x4e2b14\nLDR.W           R1, [R7,#0x110]                                        ; +0x2c, 0x4e2b18\nMOV             R0, R5                                                 ; +0x30, 0x4e2b1c\nADD.W           R1, R1, #0x118                                         ; +0x32, 0x4e2b1e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x36, 0x4e2b22\nMOV             R0, R8                                                 ; +0x3a, 0x4e2b26\nMOV             R1, R4                                                 ; +0x3c, 0x4e2b28\nMOV             R2, R5                                                 ; +0x3e, 0x4e2b2a\nBL              _ZN14SongUsagePopup6createEiRKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_; SongUsagePopup::create(int,std::string const&,std::string const&) ; +0x40, 0x4e2b2c\nLDR             R3, [R0]                                               ; +0x44, 0x4e2b30\nLDR.W           R3, [R3,#0x290]                                        ; +0x46, 0x4e2b32\nBLX             R3                                                     ; +0x4a, 0x4e2b36\nMOV             R0, R5                                                 ; +0x4c, 0x4e2b38\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4e, 0x4e2b3a\nMOV             R0, R4                                                 ; +0x52, 0x4e2b3e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x54, 0x4e2b40\nB               loc_4E2B58                                             ; +0x58, 0x4e2b44\nMOV             R0, R5                                                 ; +0x5a, 0x4e2b46\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x5c, 0x4e2b48\nB               loc_4E2B4E                                             ; +0x60, 0x4e2b4c\nMOV             R0, R4                                                 ; +0x62, 0x4e2b4e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x64, 0x4e2b50\nBL              __cxa_end_cleanup                                      ; +0x68, 0x4e2b54\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x6c, 0x4e2b58\nLDR             R3, [R6]                                               ; +0x6e, 0x4e2b5a\nCMP             R2, R3                                                 ; +0x70, 0x4e2b5c\nBEQ             loc_4E2B64                                             ; +0x72, 0x4e2b5e\nBLX             __stack_chk_fail                                       ; +0x74, 0x4e2b60\nADD             SP, SP, #0x20 ; ' '                                    ; +0x78, 0x4e2b64\nPOP.W           {R4-R8,PC}                                             ; +0x7a, 0x4e2b66", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}