{"type": "func", "start": 5131876, "end": 5132008, "name": "CustomSongWidget::getSongInfoIfUnloaded", "pseudocode": "// \n// CustomSongWidget::getSongInfoIfUnloaded from 0x4e4e64 to 0x4e4ee8 (132 bytes)\n// \n// 3 xrefs:\n// > CustomSongLayer::init @ 0x57cb3a\n// > CustomSongLayer::onSearch @ 0x57cec2\n// > AudioAssetsPopup::init @ 0x761142\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:04 +0000\n// \n\nint __fastcall CustomSongWidget::getSongInfoIfUnloaded(int this)\n{\n  int v1; // r4\n  CustomSongWidget *v2; // r7\n  char *v3; // r1\n  size_t v4; // r2\n  int v5; // [sp+0h] [bp-14h] BYREF\n  size_t v6; // [sp+4h] [bp-10h]\n  int v7; // [sp+8h] [bp-Ch]\n\n  v1 = *(_DWORD *)(this + 272);\n  v2 = (CustomSongWidget *)this;\n  if ( v1 && *(_BYTE *)(v1 + 328) )\n  {\n    v5 = 0;\n    v6 = 0;\n    v7 = 0;\n    std::string::__init(&v5, \"Loading\", 7u);\n    if ( (int *)(v1 + 268) != &v5 )\n    {\n      if ( (v5 & 1) != 0 )\n      {\n        v3 = (char *)v7;\n        v4 = v6;\n      }\n      else\n      {\n        v4 = (int)(unsigned __int8)v5 >> 1;\n        v3 = (char *)&v5 + 1;\n      }\n      std::string::assign((_DWORD *)(v1 + 268), v3, v4);\n    }\n    std::string::~string((int)&v5);\n    CustomSongWidget::updateSongInfo(v2);\n    return CustomSongWidget::onGetSongInfo((int)v2, nullptr);\n  }\n  return this;\n}", "assembly": "; \n; CustomSongWidget::getSongInfoIfUnloaded from 0x4e4e64 to 0x4e4ee8 (132 bytes)\n; \n; 3 xrefs:\n; > CustomSongLayer::init @ 0x57cb3a\n; > CustomSongLayer::onSearch @ 0x57cec2\n; > AudioAssetsPopup::init @ 0x761142\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:04 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4E4E6C)                ; +0x0, 0x4e4e64\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x4e4e66\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4e4e68\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4e4e6a\nLDR.W           R4, [R0,#0x110]                                        ; +0x8, 0x4e4e6c\nSUB             SP, SP, #0x14                                          ; +0xc, 0x4e4e70\nLDR             R2, [R3]                                               ; +0xe, 0x4e4e72\nMOV             R7, R0                                                 ; +0x10, 0x4e4e74\nMOV             R6, R3                                                 ; +0x12, 0x4e4e76\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x4e4e78\nCBZ             R4, loc_4E4ED8                                         ; +0x16, 0x4e4e7a\nLDRB.W          R3, [R4,#0x148]                                        ; +0x18, 0x4e4e7c\nCBZ             R3, loc_4E4ED8                                         ; +0x1c, 0x4e4e80\nLDR             R1, =(aLoading - 0x4E4E8E); \"Loading\"                  ; +0x1e, 0x4e4e82\nMOV             R0, SP                                                 ; +0x20, 0x4e4e84\nMOVS            R2, #7                                                 ; +0x22, 0x4e4e86\nMOVS            R3, #0                                                 ; +0x24, 0x4e4e88\nADD             R1, PC; \"Loading\"                                      ; +0x26, 0x4e4e8a\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x28, 0x4e4e8c\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x2a, 0x4e4e8e\nMOV             R5, SP                                                 ; +0x2c, 0x4e4e90\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x2e, 0x4e4e92\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x30, 0x4e4e94\nADD.W           R0, R4, #0x10C; int                                    ; +0x34, 0x4e4e98\nCMP             R0, R5                                                 ; +0x38, 0x4e4e9c\nBEQ             loc_4E4EB0                                             ; +0x3a, 0x4e4e9e\nLDRB.W          R2, [SP,#0x14+var_14]                                  ; +0x3c, 0x4e4ea0\nLSLS            R3, R2, #0x1F                                          ; +0x40, 0x4e4ea4\nBPL             loc_4E4ED0                                             ; +0x42, 0x4e4ea6\nLDR             R1, [SP,#0x14+var_C]; int                              ; +0x44, 0x4e4ea8\nLDR             R2, [SP,#0x14+var_10]; size_t                          ; +0x46, 0x4e4eaa\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcj; std::string::assign(char const*,uint) ; +0x48, 0x4e4eac\nMOV             R0, R5                                                 ; +0x4c, 0x4e4eb0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4e, 0x4e4eb2\nMOV             R0, R7; this                                           ; +0x52, 0x4e4eb6\nBL              _ZN16CustomSongWidget14updateSongInfoEv; CustomSongWidget::updateSongInfo(void) ; +0x54, 0x4e4eb8\nMOV             R0, R7; this                                           ; +0x58, 0x4e4ebc\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x5a, 0x4e4ebe\nBL              _ZN16CustomSongWidget13onGetSongInfoEPN7cocos2d8CCObjectE; CustomSongWidget::onGetSongInfo(cocos2d::CCObject *) ; +0x5c, 0x4e4ec0\nB               loc_4E4ED8                                             ; +0x60, 0x4e4ec4\nMOV             R0, R5                                                 ; +0x62, 0x4e4ec6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x64, 0x4e4ec8\nBL              __cxa_end_cleanup                                      ; +0x68, 0x4e4ecc\nASRS            R2, R2, #1                                             ; +0x6c, 0x4e4ed0\nADD.W           R1, SP, #0x14+var_14+1                                 ; +0x6e, 0x4e4ed2\nB               loc_4E4EAC                                             ; +0x72, 0x4e4ed6\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x74, 0x4e4ed8\nLDR             R3, [R6]                                               ; +0x76, 0x4e4eda\nCMP             R2, R3                                                 ; +0x78, 0x4e4edc\nBEQ             loc_4E4EE4                                             ; +0x7a, 0x4e4ede\nBLX             __stack_chk_fail                                       ; +0x7c, 0x4e4ee0\nADD             SP, SP, #0x14                                          ; +0x80, 0x4e4ee4\nPOP             {R4-R7,PC}                                             ; +0x82, 0x4e4ee6", "xrefs": ["CustomSongLayer::init @ 0x57cb3a", "CustomSongLayer::onSearch @ 0x57cec2", "AudioAssetsPopup::init @ 0x761142"], "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"}