{"type": "func", "start": 4295004992, "end": 4295005156, "name": "GJSmartBlockPreview::addCount", "pseudocode": "// \n// GJSmartBlockPreview::addCount from 0x100009340 to 0x1000093e4 (164 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x100071f04\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 GJSmartBlockPreview::addCount(GJSmartBlockPreview *a1, int a2)\n{\n  cocos2d::CCLabelBMFont *m_infoLabel; // x21\n  __n128 v5; // q0\n  __n128 v6; // q1\n  cocos2d::CCLabelBMFont *v7; // x21\n  cocos2d::CCString *v8; // x0\n  const char *CString; // x0\n  _BYTE v10[8]; // [xsp+8h] [xbp-28h] BYREF\n  cocos2d::CCPoint v11; // 0:kr00_8.8\n\n  GJSmartBlockPreview::createInfoLabel(a1);\n  m_infoLabel = a1->m_infoLabel;\n  v5.n128_u32[0] = 1119092736;\n  v6.n128_u32[0] = 1119092736;\n  v11 = sub_100022980(v5, v6);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *, float, float))m_infoLabel->setPosition)(\n    m_infoLabel,\n    v10,\n    v11.x,\n    v11.y);\n  v7 = a1->m_infoLabel;\n  v8 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a2);\n  CString = cocos2d::CCString::getCString(v8);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))v7->setString)(v7, CString);\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_infoLabel, 20.0, 0.6, 0.0);\n}", "assembly": "; \n; GJSmartBlockPreview::addCount from 0x100009340 to 0x1000093e4 (164 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x100071f04\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, 0x100009340\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100009344\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100009348\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10000934c\nADD             X29, SP, #0x30                                         ; +0x10, 0x100009350\nMOV             X19, X1                                                ; +0x14, 0x100009354\nMOV             X20, X0                                                ; +0x18, 0x100009358\nBL              GJSmartBlockPreview__createInfoLabel                   ; +0x1c, 0x10000935c\nLDR             X21, [X20,#0x158]                                      ; +0x20, 0x100009360\nMOV             W8, #0x42B40000                                        ; +0x24, 0x100009364\nFMOV            S0, W8                                                 ; +0x28, 0x100009368\nADD             X0, SP, #0x30+var_28                                   ; +0x2c, 0x10000936c\nFMOV            S1, S0                                                 ; +0x30, 0x100009370\nBL              sub_100022980                                          ; +0x34, 0x100009374\nLDR             X8, [X21]                                              ; +0x38, 0x100009378\nLDR             X8, [X8,#0xB8]                                         ; +0x3c, 0x10000937c\nADD             X1, SP, #0x30+var_28                                   ; +0x40, 0x100009380\nMOV             X0, X21                                                ; +0x44, 0x100009384\nBLR             X8                                                     ; +0x48, 0x100009388\nLDR             X21, [X20,#0x158]                                      ; +0x4c, 0x10000938c\nSTR             X19, [SP,#0x30+var_30]                                 ; +0x50, 0x100009390\nADRL            X0, aI; \"%i\"                                           ; +0x54, 0x100009394\nBL              sub_100268F4C                                          ; +0x5c, 0x10000939c\nBL              cocos2d__CCString__getCString                          ; +0x60, 0x1000093a0\nMOV             X1, X0                                                 ; +0x64, 0x1000093a4\nLDR             X8, [X21]                                              ; +0x68, 0x1000093a8\nLDR             X8, [X8,#0x390]                                        ; +0x6c, 0x1000093ac\nMOV             X0, X21                                                ; +0x70, 0x1000093b0\nBLR             X8                                                     ; +0x74, 0x1000093b4\nLDR             X0, [X20,#0x158]                                       ; +0x78, 0x1000093b8\nADRP            X8, #dword_10063533C@PAGE                              ; +0x7c, 0x1000093bc\nLDR             S1, [X8,#dword_10063533C@PAGEOFF]                      ; +0x80, 0x1000093c0\nFMOV            S0, #20.0                                              ; +0x84, 0x1000093c4\nFMOV            S2, WZR                                                ; +0x88, 0x1000093c8\nBL              cocos2d__CCLabelBMFont__limitLabelWidth                ; +0x8c, 0x1000093cc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x90, 0x1000093d0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x94, 0x1000093d4\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x98, 0x1000093d8\nADD             SP, SP, #0x40 ; '@'                                    ; +0x9c, 0x1000093dc\nRET                                                                    ; +0xa0, 0x1000093e0", "xrefs": ["BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x100071f04"], "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"}