{"type": "func", "start": 4298674372, "end": 4298674544, "name": "LabelGameObject::updateLabelIfDirty", "pseudocode": "// \n// LabelGameObject::updateLabelIfDirty from 0x1003890c4 to 0x100389170 (172 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateQueuedLabels @ 0x1001fc770\n// > GJBaseGameLayer::updateQueuedLabels @ 0x1001fc7a8\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::updateLabelIfDirty(LabelGameObject *a1)\n{\n  cocos2d::CCLabelBMFont *m_label; // x0\n  std::string *p_p; // x1\n  std::string __p; // [xsp+0h] [xbp-30h] BYREF\n\n  if ( a1->m_labelDirty )\n  {\n    if ( a1->m_labelString.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      sub_1000097D0(&__p, (void *)a1->m_labelString.m_data.m_long.capacitym1, a1->m_labelString.m_data.m_long.size);\n    else\n      __p = a1->m_labelString;\n    if ( !a1->m_updateLabel )\n    {\n      m_label = a1->m_label;\n      if ( m_label )\n      {\n        m_label->m_nExtraKerning = a1->m_kerning;\n        if ( __p.m_data.m_short.shortStorage.__elems_[22] >= 0 )\n          p_p = &__p;\n        else\n          p_p = (std::string *)__p.m_data.m_long.capacitym1;\n        ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))m_label->setString)(m_label, p_p);\n      }\n      a1->m_labelDirty = 0;\n    }\n    if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      operator delete((void *)__p.m_data.m_long.capacitym1);\n  }\n}", "assembly": "; \n; LabelGameObject::updateLabelIfDirty from 0x1003890c4 to 0x100389170 (172 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateQueuedLabels @ 0x1001fc770\n; > GJBaseGameLayer::updateQueuedLabels @ 0x1001fc7a8\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, 0x1003890c4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003890c8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003890cc\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003890d0\nLDRB            W8, [X0,#0x738]                                        ; +0x10, 0x1003890d4\nCMP             W8, #1                                                 ; +0x14, 0x1003890d8\nB.NE            loc_100389160                                          ; +0x18, 0x1003890dc\nMOV             X19, X0                                                ; +0x1c, 0x1003890e0\nLDRSB           W8, [X0,#0x757]                                        ; +0x20, 0x1003890e4\nTBNZ            W8, #0x1F, loc_100389104                               ; +0x24, 0x1003890e8\nADD             X8, X19, #0x740                                        ; +0x28, 0x1003890ec\nLDR             Q0, [X8]                                               ; +0x2c, 0x1003890f0\nSTR             Q0, [SP,#0x30+__p]                                     ; +0x30, 0x1003890f4\nLDR             X8, [X8,#0x10]                                         ; +0x34, 0x1003890f8\nSTR             X8, [SP,#0x30+var_20]                                  ; +0x38, 0x1003890fc\nB               loc_100389114                                          ; +0x3c, 0x100389100\nLDR             X1, [X19,#0x740]; __src                                ; +0x40, 0x100389104\nLDR             X2, [X19,#0x748]                                       ; +0x44, 0x100389108\nMOV             X0, SP; __dst                                          ; +0x48, 0x10038910c\nBL              sub_1000097D0                                          ; +0x4c, 0x100389110\nLDRB            W8, [X19,#0x770]                                       ; +0x50, 0x100389114\nTBNZ            W8, #0, loc_100389150                                  ; +0x54, 0x100389118\nLDR             X0, [X19,#0x730]                                       ; +0x58, 0x10038911c\nCBZ             X0, loc_10038914C                                      ; +0x5c, 0x100389120\nLDR             W8, [X19,#0x76C]                                       ; +0x60, 0x100389124\nSTR             W8, [X0,#0x200]                                        ; +0x64, 0x100389128\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0x68, 0x10038912c\nLDR             X9, [SP,#0x30+__p]                                     ; +0x6c, 0x100389130\nCMP             W8, #0                                                 ; +0x70, 0x100389134\nMOV             X8, SP                                                 ; +0x74, 0x100389138\nCSEL            X1, X9, X8, LT                                         ; +0x78, 0x10038913c\nLDR             X8, [X0]                                               ; +0x7c, 0x100389140\nLDR             X8, [X8,#0x390]                                        ; +0x80, 0x100389144\nBLR             X8                                                     ; +0x84, 0x100389148\nSTRB            WZR, [X19,#0x738]                                      ; +0x88, 0x10038914c\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0x8c, 0x100389150\nTBZ             W8, #0x1F, loc_100389160                               ; +0x90, 0x100389154\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x94, 0x100389158\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x10038915c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x9c, 0x100389160\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa0, 0x100389164\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa4, 0x100389168\nRET                                                                    ; +0xa8, 0x10038916c", "xrefs": ["GJBaseGameLayer::updateQueuedLabels @ 0x1001fc770", "GJBaseGameLayer::updateQueuedLabels @ 0x1001fc7a8"], "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"}