{"type": "func", "start": 5373638352, "end": 5373638568, "name": "LabelGameObject::removeLabel", "pseudocode": "// \n// LabelGameObject::removeLabel from 0x1404b36d0 to 0x1404b37a8 (216 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::updateLevelFont @ 0x1402df1ce\n// > LabelGameObject::createLabel @ 0x1404b3563\n// > <???> @ 0x1406dcaac\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\n// Hidden C++ exception states: #wind=1\nvoid LabelGameObject::removeLabel(LabelGameObject *a1)\n{\n  cocos2d::CCLabelBMFont *m_label; // rcx\n  const char *v3; // rax\n  size_t v4; // r8\n  void **v5; // rdx\n  void *Src[2]; // [rsp+20h] [rbp-28h] BYREF\n  size_t Size; // [rsp+30h] [rbp-18h]\n  unsigned __int64 v8; // [rsp+38h] [rbp-10h]\n\n  m_label = a1->m_label;\n  if ( m_label )\n  {\n    v3 = m_label->getString(&m_label->cocos2d::CCLabelProtocol);\n    *(_OWORD *)Src = 0;\n    Size = 0;\n    v8 = 0;\n    v4 = -1;\n    do\n      ++v4;\n    while ( v3[v4] );\n    sub_14003A930(Src, v3, v4);\n    if ( !a1->m_updateLabel )\n    {\n      if ( &a1->m_labelString != (std::string *)Src )\n      {\n        v5 = Src;\n        if ( v8 > 0xF )\n          v5 = (void **)Src[0];\n        sub_14003CCE0((void **)&a1->m_labelString, v5, Size);\n      }\n      a1->m_labelDirty = 1;\n    }\n    sub_14003A830((__int64)Src);\n    a1->m_label->removeMeAndCleanup(a1->m_label);\n    a1->m_label = nullptr;\n  }\n}", "assembly": "; \n; LabelGameObject::removeLabel from 0x1404b36d0 to 0x1404b37a8 (216 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::updateLevelFont @ 0x1402df1ce\n; > LabelGameObject::createLabel @ 0x1404b3563\n; > <???> @ 0x1406dcaac\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\npush    rbx                                                            ; +0x0, 0x1404b36d0\nsub     rsp, 40h                                                       ; +0x2, 0x1404b36d2\nmov     rbx, rcx                                                       ; +0x6, 0x1404b36d6\nmov     rcx, [rcx+740h]                                                ; +0x9, 0x1404b36d9\ntest    rcx, rcx                                                       ; +0x10, 0x1404b36e0\njz      loc_1404B37A2                                                  ; +0x13, 0x1404b36e3\nadd     rcx, 168h                                                      ; +0x19, 0x1404b36e9\nmov     rax, [rcx]                                                     ; +0x20, 0x1404b36f0\ncall    qword ptr [rax+8]                                              ; +0x23, 0x1404b36f3\nxorps   xmm0, xmm0                                                     ; +0x26, 0x1404b36f6\nmovups  xmmword ptr [rsp+48h+Src], xmm0                                ; +0x29, 0x1404b36f9\nmov     [rsp+48h+Size], 0                                              ; +0x2e, 0x1404b36fe\nmov     [rsp+48h+var_10], 0                                            ; +0x37, 0x1404b3707\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x40, 0x1404b3710\nnop     word ptr [rax+rax+00000000h]                                   ; +0x47, 0x1404b3717\ninc     r8                                                             ; +0x50, 0x1404b3720\ncmp     byte ptr [rax+r8], 0                                           ; +0x53, 0x1404b3723\njnz     short loc_1404B3720                                            ; +0x58, 0x1404b3728\nmov     rdx, rax                                                       ; +0x5a, 0x1404b372a\nlea     rcx, [rsp+48h+Src]                                             ; +0x5d, 0x1404b372d\ncall    sub_14003A930                                                  ; +0x62, 0x1404b3732\nlea     rax, [rsp+48h+Src]                                             ; +0x67, 0x1404b3737\nmov     [rsp+48h+arg_0], rax                                           ; +0x6c, 0x1404b373c\ncmp     byte ptr [rbx+788h], 0                                         ; +0x71, 0x1404b3741\njnz     short loc_1404B377D                                            ; +0x78, 0x1404b3748\nlea     rcx, [rbx+750h]; void *                                        ; +0x7a, 0x1404b374a\nlea     rax, [rsp+48h+Src]                                             ; +0x81, 0x1404b3751\ncmp     rcx, rax                                                       ; +0x86, 0x1404b3756\njz      short loc_1404B3776                                            ; +0x89, 0x1404b3759\nlea     rdx, [rsp+48h+Src]                                             ; +0x8b, 0x1404b375b\ncmp     [rsp+48h+var_10], 0Fh                                          ; +0x90, 0x1404b3760\ncmova   rdx, [rsp+48h+Src]; Src                                        ; +0x96, 0x1404b3766\nmov     r8, [rsp+48h+Size]; Size                                       ; +0x9c, 0x1404b376c\ncall    sub_14003CCE0                                                  ; +0xa1, 0x1404b3771\nmov     byte ptr [rbx+748h], 1                                         ; +0xa6, 0x1404b3776\nlea     rcx, [rsp+48h+Src]                                             ; +0xad, 0x1404b377d\ncall    sub_14003A830                                                  ; +0xb2, 0x1404b3782\nmov     rcx, [rbx+740h]                                                ; +0xb7, 0x1404b3787\nmov     rax, [rcx]                                                     ; +0xbe, 0x1404b378e\ncall    qword ptr [rax+200h]                                           ; +0xc1, 0x1404b3791\nmov     qword ptr [rbx+740h], 0                                        ; +0xc7, 0x1404b3797\nadd     rsp, 40h                                                       ; +0xd2, 0x1404b37a2\npop     rbx                                                            ; +0xd6, 0x1404b37a6\nretn                                                                   ; +0xd7, 0x1404b37a7", "xrefs": ["LevelEditorLayer::updateLevelFont @ 0x1402df1ce", "LabelGameObject::createLabel @ 0x1404b3563", "<???> @ 0x1406dcaac"], "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"}