{"type": "func", "start": 4297033656, "end": 4297034076, "name": "GJBaseGameLayer::processAdvancedFollowActions", "pseudocode": "// \n// GJBaseGameLayer::processAdvancedFollowActions from 0x1001f87b8 to 0x1001f895c (420 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::processMoveActionsStep @ 0x1001f7114\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 GJBaseGameLayer::processAdvancedFollowActions(GJBaseGameLayer *a1, float a2)\n{\n  std::__vector_base<AdvancedFollowInstance>::pointer begin; // x20\n  std::__vector_base<AdvancedFollowInstance>::pointer end; // x21\n  float v6; // s8\n  _BOOL4 m_doStart; // w8\n  std::__vector_base<AdvancedFollowInstance>::pointer v8; // x8\n  std::__vector_base<AdvancedFollowInstance>::pointer v10; // x20\n  __int128 v11; // q1\n  __int64 i; // x1\n\n  if ( a1->m_gameState.m_unkBool27 )\n  {\n    sub_100210984();\n    a1->m_gameState.m_unkBool27 = 0;\n  }\n  begin = a1->m_gameState.m_advanceFollowInstances.__begin_;\n  end = a1->m_gameState.m_advanceFollowInstances.__end_;\n  if ( begin != end )\n  {\n    v6 = a2 * 240.0;\n    while ( begin->m_finished )\n    {\n      m_doStart = begin->m_doStart;\n      if ( m_doStart )\n      {\n        begin->m_doStart = 0;\nLABEL_9:\n        GJBaseGameLayer::processAdvancedFollowAction(a1, begin, m_doStart, v6);\n      }\n      if ( ++begin == end )\n      {\n        begin = a1->m_gameState.m_advanceFollowInstances.__begin_;\n        end = a1->m_gameState.m_advanceFollowInstances.__end_;\n        goto LABEL_12;\n      }\n    }\n    LOBYTE(m_doStart) = begin->m_started;\n    goto LABEL_9;\n  }\nLABEL_12:\n  if ( begin != end )\n  {\n    v8 = begin + 1;\n    while ( !v8[-1].m_started )\n    {\n      if ( v8++ == end )\n        goto LABEL_26;\n    }\n    v10 = v8 - 1;\n    if ( &v8[-1] != end && v8 != end )\n    {\n      do\n      {\n        if ( !v8->m_started )\n        {\n          v11 = *(_OWORD *)&v8->m_controlId;\n          *(_OWORD *)&v10->m_gameObject = *(_OWORD *)&v8->m_gameObject;\n          *(_OWORD *)&v10->m_controlId = v11;\n          ++v10;\n        }\n        ++v8;\n      }\n      while ( v8 != end );\n      end = a1->m_gameState.m_advanceFollowInstances.__end_;\n    }\n    if ( v10 != end )\n      a1->m_gameState.m_advanceFollowInstances.__end_ = v10;\n  }\nLABEL_26:\n  for ( i = (__int64)a1->m_gameState.m_gameObjectPhysics.__table_.__p1_.__value_.__next_; i; i = *(_QWORD *)i )\n  {\n    while ( *(_DWORD *)(i + 60) < (signed int)a1->m_gameState.m_commandIndex )\n    {\n      i = sub_100018AE0(&a1->m_gameState.m_gameObjectPhysics.__table_.__bucket_list_.__ptr_.__value_, (__int64 *)i);\n      if ( !i )\n        return;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processAdvancedFollowActions from 0x1001f87b8 to 0x1001f895c (420 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::processMoveActionsStep @ 0x1001f7114\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, #0x50                                          ; +0x0, 0x1001f87b8\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x4, 0x1001f87bc\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001f87c0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001f87c4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001f87c8\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001f87cc\nFMOV            S8, S0                                                 ; +0x18, 0x1001f87d0\nMOV             X19, X0                                                ; +0x1c, 0x1001f87d4\nLDRB            W8, [X0,#0x668]                                        ; +0x20, 0x1001f87d8\nCMP             W8, #1                                                 ; +0x24, 0x1001f87dc\nB.NE            loc_1001F8824                                          ; +0x28, 0x1001f87e0\nLDR             X0, [X19,#0x670]                                       ; +0x2c, 0x1001f87e4\nLDR             X1, [X19,#0x678]                                       ; +0x30, 0x1001f87e8\nSUBS            X8, X1, X0                                             ; +0x34, 0x1001f87ec\nASR             X8, X8, #5                                             ; +0x38, 0x1001f87f0\nCLZ             X8, X8                                                 ; +0x3c, 0x1001f87f4\nMOV             W9, #0x7E ; '~'                                        ; +0x40, 0x1001f87f8\nSUB             X8, X9, X8,LSL#1                                       ; +0x44, 0x1001f87fc\nCMP             X1, X0                                                 ; +0x48, 0x1001f8800\nADRL            X9, sub_1001D9B20                                      ; +0x4c, 0x1001f8804\nSTR             X9, [SP,#0x40+var_38]                                  ; +0x54, 0x1001f880c\nCSEL            X3, XZR, X8, EQ                                        ; +0x58, 0x1001f8810\nADD             X2, SP, #0x40+var_38                                   ; +0x5c, 0x1001f8814\nMOV             W4, #1                                                 ; +0x60, 0x1001f8818\nBL              sub_100210984                                          ; +0x64, 0x1001f881c\nSTRB            WZR, [X19,#0x668]                                      ; +0x68, 0x1001f8820\nLDR             X20, [X19,#0x670]                                      ; +0x6c, 0x1001f8824\nLDR             X21, [X19,#0x678]                                      ; +0x70, 0x1001f8828\nCMP             X20, X21                                               ; +0x74, 0x1001f882c\nB.EQ            loc_1001F8888                                          ; +0x78, 0x1001f8830\nMOV             W8, #0x43700000                                        ; +0x7c, 0x1001f8834\nFMOV            S0, W8                                                 ; +0x80, 0x1001f8838\nFMUL            S8, S8, S0                                             ; +0x84, 0x1001f883c\nLDRB            W8, [X20,#0x1C]                                        ; +0x88, 0x1001f8840\nTBZ             W8, #0, loc_1001F885C                                  ; +0x8c, 0x1001f8844\nLDRB            W8, [X20,#0x1D]                                        ; +0x90, 0x1001f8848\nCMP             W8, #1                                                 ; +0x94, 0x1001f884c\nB.NE            loc_1001F8874                                          ; +0x98, 0x1001f8850\nSTRB            WZR, [X20,#0x1D]                                       ; +0x9c, 0x1001f8854\nB               loc_1001F8860                                          ; +0xa0, 0x1001f8858\nLDRB            W8, [X20,#0x1E]                                        ; +0xa4, 0x1001f885c\nAND             W2, W8, #1                                             ; +0xa8, 0x1001f8860\nMOV             X0, X19                                                ; +0xac, 0x1001f8864\nMOV             X1, X20                                                ; +0xb0, 0x1001f8868\nFMOV            S0, S8                                                 ; +0xb4, 0x1001f886c\nBL              GJBaseGameLayer__processAdvancedFollowAction           ; +0xb8, 0x1001f8870\nADD             X20, X20, #0x20 ; ' '                                  ; +0xbc, 0x1001f8874\nCMP             X20, X21                                               ; +0xc0, 0x1001f8878\nB.NE            loc_1001F8840                                          ; +0xc4, 0x1001f887c\nLDR             X20, [X19,#0x670]                                      ; +0xc8, 0x1001f8880\nLDR             X21, [X19,#0x678]                                      ; +0xcc, 0x1001f8884\nCMP             X20, X21                                               ; +0xd0, 0x1001f8888\nB.EQ            loc_1001F8910                                          ; +0xd4, 0x1001f888c\nADD             X8, X20, #0x20 ; ' '                                   ; +0xd8, 0x1001f8890\nLDURB           W9, [X8,#-2]                                           ; +0xdc, 0x1001f8894\nTBNZ            W9, #0, loc_1001F88B0                                  ; +0xe0, 0x1001f8898\nADD             X9, X8, #0x20 ; ' '                                    ; +0xe4, 0x1001f889c\nCMP             X8, X21                                                ; +0xe8, 0x1001f88a0\nMOV             X8, X9                                                 ; +0xec, 0x1001f88a4\nB.NE            loc_1001F8894                                          ; +0xf0, 0x1001f88a8\nB               loc_1001F8910                                          ; +0xf4, 0x1001f88ac\nSUB             X20, X8, #0x20 ; ' '                                   ; +0xf8, 0x1001f88b0\nCMP             X20, X21                                               ; +0xfc, 0x1001f88b4\nB.EQ            loc_1001F88E4                                          ; +0x100, 0x1001f88b8\nCMP             X8, X21                                                ; +0x104, 0x1001f88bc\nB.EQ            loc_1001F88E4                                          ; +0x108, 0x1001f88c0\nLDRB            W9, [X8,#0x1E]                                         ; +0x10c, 0x1001f88c4\nTBNZ            W9, #0, loc_1001F88D4                                  ; +0x110, 0x1001f88c8\nLDP             Q0, Q1, [X8]                                           ; +0x114, 0x1001f88cc\nSTP             Q0, Q1, [X20],#0x20                                    ; +0x118, 0x1001f88d0\nADD             X8, X8, #0x20 ; ' '                                    ; +0x11c, 0x1001f88d4\nCMP             X8, X21                                                ; +0x120, 0x1001f88d8\nB.NE            loc_1001F88C4                                          ; +0x124, 0x1001f88dc\nLDR             X21, [X19,#0x678]                                      ; +0x128, 0x1001f88e0\nCMP             X20, X21                                               ; +0x12c, 0x1001f88e4\nB.EQ            loc_1001F8910                                          ; +0x130, 0x1001f88e8\nSUB             X8, X21, X20                                           ; +0x134, 0x1001f88ec\nADD             X1, X20, X8; __src                                     ; +0x138, 0x1001f88f0\nSUBS            X21, X21, X1                                           ; +0x13c, 0x1001f88f4\nB.EQ            loc_1001F8908                                          ; +0x140, 0x1001f88f8\nMOV             X0, X20; __dst                                         ; +0x144, 0x1001f88fc\nMOV             X2, X21; __len                                         ; +0x148, 0x1001f8900\nBL              _memmove                                               ; +0x14c, 0x1001f8904\nADD             X8, X20, X21                                           ; +0x150, 0x1001f8908\nSTR             X8, [X19,#0x678]                                       ; +0x154, 0x1001f890c\nLDR             X1, [X19,#0x440]                                       ; +0x158, 0x1001f8910\nCBZ             X1, loc_1001F8944                                      ; +0x15c, 0x1001f8914\nLDR             W8, [X1,#0x3C]                                         ; +0x160, 0x1001f8918\nLDR             W9, [X19,#0x3B0]                                       ; +0x164, 0x1001f891c\nCMP             W8, W9                                                 ; +0x168, 0x1001f8920\nB.GE            loc_1001F893C                                          ; +0x16c, 0x1001f8924\nADD             X0, X19, #0x430                                        ; +0x170, 0x1001f8928\nBL              sub_100018AE0                                          ; +0x174, 0x1001f892c\nMOV             X1, X0                                                 ; +0x178, 0x1001f8930\nCBNZ            X1, loc_1001F8918                                      ; +0x17c, 0x1001f8934\nB               loc_1001F8944                                          ; +0x180, 0x1001f8938\nLDR             X1, [X1]                                               ; +0x184, 0x1001f893c\nCBNZ            X1, loc_1001F8918                                      ; +0x188, 0x1001f8940\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x18c, 0x1001f8944\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x190, 0x1001f8948\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x194, 0x1001f894c\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x198, 0x1001f8950\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x19c, 0x1001f8954\nRET                                                                    ; +0x1a0, 0x1001f8958", "xrefs": ["GJBaseGameLayer::processMoveActionsStep @ 0x1001f7114"], "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"}