{"type": "func", "start": 6442599712, "end": 6442599932, "name": "cocos2d::CCFollow::step", "pseudocode": "// \n// cocos2d::CCFollow::step from 0x180024520 to 0x1800245fc (220 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800e7470\n// > <???> @ 0x180134270\n// > <???> @ 0x180134280\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801af184\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 cocos2d::CCFollow::step(cocos2d::CCFollow *this, float a2, __int64 a3, float a4)\n{\n  float *v5; // rax\n  cocos2d::CCNode_vtbl *v6; // rbx\n  cocos2d *v7; // rcx\n  float v8; // xmm6_4\n  cocos2d *v9; // rcx\n  float v10; // xmm0_4\n  float *v11; // rax\n  float *v12; // rax\n  int v13; // [rsp+40h] [rbp+8h] BYREF\n  float v14; // [rsp+50h] [rbp+18h] BYREF\n\n  if ( *((_BYTE *)this + 88) )\n  {\n    if ( !*((_BYTE *)this + 89) )\n    {\n      v5 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 10) + 200LL))(*((_QWORD *)this + 10));\n      cocos2d::CCSize::operator-((float *)this + 23, (float *)&v13, v5);\n      v6 = this->m_pTarget->cocos2d::CCAction::__vftable;\n      v8 = cocos2d::clampf(v7, *((float *)this + 30), *((float *)this + 29), a4);\n      v10 = cocos2d::clampf(v9, *((float *)this + 27), *((float *)this + 28), a4);\n      v11 = kmVec2Fill(&v14, v10, v8);\n      ((void (__fastcall *)(cocos2d::CCNode *, float *))v6->setPosition_0)(this->m_pTarget, v11);\n    }\n  }\n  else\n  {\n    v12 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 10) + 200LL))(*((_QWORD *)this + 10));\n    cocos2d::CCSize::operator-((float *)this + 23, (float *)&v13, v12);\n    ((void (__fastcall *)(cocos2d::CCNode *, int *))this->m_pTarget->setPosition_0)(this->m_pTarget, &v13);\n  }\n}", "assembly": "; \n; cocos2d::CCFollow::step from 0x180024520 to 0x1800245fc (220 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800e7470\n; > <???> @ 0x180134270\n; > <???> @ 0x180134280\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801af184\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    rdi                                                            ; +0x0, 0x180024520\nsub     rsp, 30h                                                       ; +0x2, 0x180024522\ncmp     byte ptr [rcx+58h], 0                                          ; +0x6, 0x180024526\nmov     rdi, rcx                                                       ; +0xa, 0x18002452a\njz      loc_1800245C6                                                  ; +0xd, 0x18002452d\ncmp     byte ptr [rcx+59h], 0                                          ; +0x13, 0x180024533\njnz     loc_1800245F6                                                  ; +0x17, 0x180024537\nmov     rcx, [rcx+50h]                                                 ; +0x1d, 0x18002453d\nmov     [rsp+38h+arg_8], rbx                                           ; +0x21, 0x180024541\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x26, 0x180024546\nmov     rax, [rcx]                                                     ; +0x2b, 0x18002454b\ncall    qword ptr [rax+0C8h]                                           ; +0x2e, 0x18002454e\nmov     r8, rax                                                        ; +0x34, 0x180024554\nlea     rcx, [rdi+5Ch]                                                 ; +0x37, 0x180024557\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x3b, 0x18002455b\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0x40, 0x180024560\nmov     rax, [rdi+40h]                                                 ; +0x45, 0x180024565\nmovss   xmm2, dword ptr [rdi+74h]; float                               ; +0x49, 0x180024569\nmovss   xmm1, dword ptr [rdi+78h]; float                               ; +0x4e, 0x18002456e\nmovss   xmm0, [rsp+38h+arg_4]                                          ; +0x53, 0x180024573\nmov     rbx, [rax]                                                     ; +0x59, 0x180024579\ncall    ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float)  ; +0x5c, 0x18002457c\nmovss   xmm2, dword ptr [rdi+70h]; float                               ; +0x61, 0x180024581\nmovaps  xmm6, xmm0                                                     ; +0x66, 0x180024586\nmovss   xmm0, [rsp+38h+arg_0]                                          ; +0x69, 0x180024589\nmovss   xmm1, dword ptr [rdi+6Ch]; float                               ; +0x6f, 0x18002458f\ncall    ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float)  ; +0x74, 0x180024594\nmovaps  xmm1, xmm0                                                     ; +0x79, 0x180024599\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x7c, 0x18002459c\nmovaps  xmm2, xmm6                                                     ; +0x81, 0x1800245a1\ncall    kmVec2Fill                                                     ; +0x84, 0x1800245a4\nmov     rcx, [rdi+40h]                                                 ; +0x89, 0x1800245a9\nmov     rdx, rax                                                       ; +0x8d, 0x1800245ad\ncall    qword ptr [rbx+0B8h]                                           ; +0x90, 0x1800245b0\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x96, 0x1800245b6\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x9b, 0x1800245bb\nadd     rsp, 30h                                                       ; +0xa0, 0x1800245c0\npop     rdi                                                            ; +0xa4, 0x1800245c4\nretn                                                                   ; +0xa5, 0x1800245c5\nmov     rcx, [rcx+50h]                                                 ; +0xa6, 0x1800245c6\nmov     rax, [rcx]                                                     ; +0xaa, 0x1800245ca\ncall    qword ptr [rax+0C8h]                                           ; +0xad, 0x1800245cd\nmov     r8, rax                                                        ; +0xb3, 0x1800245d3\nlea     rcx, [rdi+5Ch]                                                 ; +0xb6, 0x1800245d6\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xba, 0x1800245da\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0xbf, 0x1800245df\nmov     rcx, [rdi+40h]                                                 ; +0xc4, 0x1800245e4\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xc8, 0x1800245e8\nmov     rax, [rcx]                                                     ; +0xcd, 0x1800245ed\ncall    qword ptr [rax+0B8h]                                           ; +0xd0, 0x1800245f0\nadd     rsp, 30h                                                       ; +0xd6, 0x1800245f6\npop     rdi                                                            ; +0xda, 0x1800245fa\nretn                                                                   ; +0xdb, 0x1800245fb", "xrefs": ["<???> @ 0x1800e7470", "<???> @ 0x180134270", "<???> @ 0x180134280", "<???> @ 0x1801438a8", "<???> @ 0x1801af184"], "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"}