{"type": "func", "start": 4296409624, "end": 4296409780, "name": "GJPFollowCommandLayer::updateOffsetLabel", "pseudocode": "// \n// GJPFollowCommandLayer::updateOffsetLabel from 0x100160218 to 0x1001602b4 (156 bytes)\n// \n// 1 xrefs:\n// > GJPFollowCommandLayer::init @ 0x10015fccc\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 GJPFollowCommandLayer::updateOffsetLabel(GJPFollowCommandLayer *a1)\n{\n  int m_offset; // w8\n  char *CString; // x1\n  cocos2d::CCString *v4; // x0\n  CCTextInputNode *m_offsetInput; // x20\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v7; // [xsp+1Fh] [xbp-11h]\n\n  a1->m_disableTextDelegate = 1;\n  m_offset = a1->m_offset;\n  if ( m_offset == -99999 )\n  {\n    CString = \"\";\n  }\n  else\n  {\n    v4 = (cocos2d::CCString *)sub_100268F4C(\"%i\", vcvtms_s32_f32((float)m_offset / 3.0));\n    CString = (char *)cocos2d::CCString::getCString(v4);\n  }\n  m_offsetInput = a1->m_offsetInput;\n  sub_100009900(__p, CString);\n  CCTextInputNode::setString(m_offsetInput, __p);\n  if ( v7 < 0 )\n    operator delete(__p[0]);\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; GJPFollowCommandLayer::updateOffsetLabel from 0x100160218 to 0x1001602b4 (156 bytes)\n; \n; 1 xrefs:\n; > GJPFollowCommandLayer::init @ 0x10015fccc\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, 0x100160218\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10016021c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100160220\nADD             X29, SP, #0x30                                         ; +0xc, 0x100160224\nMOV             X19, X0                                                ; +0x10, 0x100160228\nMOV             W8, #1                                                 ; +0x14, 0x10016022c\nSTRB            W8, [X0,#0x2CC]                                        ; +0x18, 0x100160230\nLDR             W8, [X0,#0x400]                                        ; +0x1c, 0x100160234\nADD             W9, W8, #0x18,LSL#12                                   ; +0x20, 0x100160238\nCMN             W9, #0x69F                                             ; +0x24, 0x10016023c\nB.NE            loc_100160250                                          ; +0x28, 0x100160240\nADRL            X1, asc_100746688; \"\"                                  ; +0x2c, 0x100160244\nB               loc_100160278                                          ; +0x34, 0x10016024c\nSCVTF           S0, W8                                                 ; +0x38, 0x100160250\nFMOV            S1, #3.0                                               ; +0x3c, 0x100160254\nFDIV            S0, S0, S1                                             ; +0x40, 0x100160258\nFCVTMS          W8, S0                                                 ; +0x44, 0x10016025c\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x48, 0x100160260\nADRL            X0, aI; \"%i\"                                           ; +0x4c, 0x100160264\nBL              sub_100268F4C                                          ; +0x54, 0x10016026c\nBL              cocos2d__CCString__getCString                          ; +0x58, 0x100160270\nMOV             X1, X0; __s                                            ; +0x5c, 0x100160274\nLDR             X20, [X19,#0x3D8]                                      ; +0x60, 0x100160278\nADD             X0, SP, #0x30+__p; int                                 ; +0x64, 0x10016027c\nBL              sub_100009900                                          ; +0x68, 0x100160280\nADD             X1, SP, #0x30+__p                                      ; +0x6c, 0x100160284\nMOV             X0, X20                                                ; +0x70, 0x100160288\nBL              CCTextInputNode__setString                             ; +0x74, 0x10016028c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x78, 0x100160290\nTBZ             W8, #0x1F, loc_1001602A0                               ; +0x7c, 0x100160294\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x80, 0x100160298\nBL              __ZdlPv; operator delete(void *)                       ; +0x84, 0x10016029c\nSTRB            WZR, [X19,#0x2CC]                                      ; +0x88, 0x1001602a0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8c, 0x1001602a4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x90, 0x1001602a8\nADD             SP, SP, #0x40 ; '@'                                    ; +0x94, 0x1001602ac\nRET                                                                    ; +0x98, 0x1001602b0", "xrefs": ["GJPFollowCommandLayer::init @ 0x10015fccc"], "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"}