{"type": "func", "start": 4298673068, "end": 4298673200, "name": "LabelGameObject::removeLabel", "pseudocode": "// \n// LabelGameObject::removeLabel from 0x100388bac to 0x100388c30 (132 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::updateLevelFont @ 0x1003620d4\n// > LabelGameObject::createLabel @ 0x100388b08\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall LabelGameObject::removeLabel(LabelGameObject *a1)\n{\n  cocos2d::CCLabelBMFont *m_label; // x0\n  char *v3; // x0\n  std::string __str; // [xsp+8h] [xbp-28h] BYREF\n\n  m_label = a1->m_label;\n  if ( m_label )\n  {\n    v3 = (char *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))m_label->getString)(m_label);\n    sub_100009900(&__str, v3);\n    if ( !a1->m_updateLabel )\n    {\n      std::string::operator=((std::string *)&a1->m_labelString, &__str);\n      a1->m_labelDirty = 1;\n    }\n    if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(__str.__r_.__value_.__l.__data_);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_label->removeMeAndCleanup)(a1->m_label);\n    a1->m_label = nullptr;\n  }\n}", "assembly": "; \n; LabelGameObject::removeLabel from 0x100388bac to 0x100388c30 (132 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::updateLevelFont @ 0x1003620d4\n; > LabelGameObject::createLabel @ 0x100388b08\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100388bac\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100388bb0\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100388bb4\nADD             X29, SP, #0x30                                         ; +0xc, 0x100388bb8\nMOV             X19, X0                                                ; +0x10, 0x100388bbc\nLDR             X0, [X0,#0x730]                                        ; +0x14, 0x100388bc0\nCBZ             X0, loc_100388C20                                      ; +0x18, 0x100388bc4\nLDR             X8, [X0]                                               ; +0x1c, 0x100388bc8\nLDR             X8, [X8,#0x3A0]                                        ; +0x20, 0x100388bcc\nBLR             X8                                                     ; +0x24, 0x100388bd0\nMOV             X1, X0; __s                                            ; +0x28, 0x100388bd4\nADD             X0, SP, #0x30+__str; int                               ; +0x2c, 0x100388bd8\nBL              sub_100009900                                          ; +0x30, 0x100388bdc\nLDRB            W8, [X19,#0x770]                                       ; +0x34, 0x100388be0\nTBNZ            W8, #0, loc_100388BFC                                  ; +0x38, 0x100388be4\nADD             X0, X19, #0x740; this                                  ; +0x3c, 0x100388be8\nADD             X1, SP, #0x30+__str; __str                             ; +0x40, 0x100388bec\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x44, 0x100388bf0\nMOV             W8, #1                                                 ; +0x48, 0x100388bf4\nSTRB            W8, [X19,#0x738]                                       ; +0x4c, 0x100388bf8\nLDRSB           W8, [SP,#0x30+__str.__r_.__value_+0x17]                ; +0x50, 0x100388bfc\nTBZ             W8, #0x1F, loc_100388C0C                               ; +0x54, 0x100388c00\nLDR             X0, [SP,#0x30+__str]; __p                              ; +0x58, 0x100388c04\nBL              __ZdlPv; operator delete(void *)                       ; +0x5c, 0x100388c08\nLDR             X0, [X19,#0x730]                                       ; +0x60, 0x100388c0c\nLDR             X8, [X0]                                               ; +0x64, 0x100388c10\nLDR             X8, [X8,#0x208]                                        ; +0x68, 0x100388c14\nBLR             X8                                                     ; +0x6c, 0x100388c18\nSTR             XZR, [X19,#0x730]                                      ; +0x70, 0x100388c1c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x74, 0x100388c20\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x78, 0x100388c24\nADD             SP, SP, #0x40 ; '@'                                    ; +0x7c, 0x100388c28\nRET                                                                    ; +0x80, 0x100388c2c", "xrefs": ["LevelEditorLayer::updateLevelFont @ 0x1003620d4", "LabelGameObject::createLabel @ 0x100388b08"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}