{"type": "func", "start": 6442668416, "end": 6442668566, "name": "cocos2d::CCRepeat::initWithAction", "pseudocode": "// \n// cocos2d::CCRepeat::initWithAction from 0x180035180 to 0x180035216 (150 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCRepeat::copyWithZone @ 0x180032796\n// > cocos2d::CCRepeat::create @ 0x180033eb5\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b072c\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\nbool __fastcall cocos2d::CCRepeat::initWithAction(\n        cocos2d::CCRepeat *this,\n        struct cocos2d::CCFiniteTimeAction *a2,\n        int a3)\n{\n  float v5; // xmm1_4\n  __int64 v6; // rax\n  bool v7; // zf\n  bool result; // al\n\n  v5 = (float)a3 * a2->m_fDuration;\n  this->m_fDuration = v5;\n  if ( v5 == 0.0 )\n    this->m_fDuration = 0.00000011920929;\n  this->m_bFirstTick = 1;\n  this->m_elapsed = 0.0;\n  *((_DWORD *)this + 24) = a3;\n  *((_QWORD *)this + 14) = a2;\n  cocos2d::CCObject::retain(a2);\n  v6 = _RTDynamicCast(\n         a2,\n         0,\n         &cocos2d::CCFiniteTimeAction `RTTI Type Descriptor',\n         &cocos2d::CCActionInstant `RTTI Type Descriptor',\n         0);\n  *((_DWORD *)this + 25) = 0;\n  v7 = v6 == 0;\n  *((_BYTE *)this + 108) = v6 != 0;\n  result = 1;\n  if ( !v7 )\n    --*((_DWORD *)this + 24);\n  return result;\n}", "assembly": "; \n; cocos2d::CCRepeat::initWithAction from 0x180035180 to 0x180035216 (150 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCRepeat::copyWithZone @ 0x180032796\n; > cocos2d::CCRepeat::create @ 0x180033eb5\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b072c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180035180\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180035185\npush    rdi                                                            ; +0xa, 0x18003518a\nsub     rsp, 30h                                                       ; +0xb, 0x18003518b\nxorps   xmm1, xmm1                                                     ; +0xf, 0x18003518f\nmov     eax, r8d                                                       ; +0x12, 0x180035192\nxorps   xmm0, xmm0                                                     ; +0x15, 0x180035195\nmov     rdi, rdx                                                       ; +0x18, 0x180035198\nmov     rbx, rcx                                                       ; +0x1b, 0x18003519b\ncvtsi2ss xmm1, rax                                                     ; +0x1e, 0x18003519e\nmulss   xmm1, dword ptr [rdx+50h]                                      ; +0x23, 0x1800351a3\nucomiss xmm1, xmm0                                                     ; +0x28, 0x1800351a8\nmovss   dword ptr [rcx+50h], xmm1                                      ; +0x2b, 0x1800351ab\njp      short loc_1800351BB                                            ; +0x30, 0x1800351b0\njnz     short loc_1800351BB                                            ; +0x32, 0x1800351b2\nmov     dword ptr [rcx+50h], 34000000h                                 ; +0x34, 0x1800351b4\nmov     byte ptr [rcx+5Ch], 1                                          ; +0x3b, 0x1800351bb\nxor     esi, esi                                                       ; +0x3f, 0x1800351bf\nmov     [rcx+58h], esi                                                 ; +0x41, 0x1800351c1\nmov     [rcx+60h], r8d                                                 ; +0x44, 0x1800351c4\nmov     [rcx+70h], rdi                                                 ; +0x48, 0x1800351c8\nmov     rcx, rdi; this                                                 ; +0x4c, 0x1800351cc\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x4f, 0x1800351cf\nlea     r9, ??_R0?AVCCActionInstant@cocos2d@@@8; cocos2d::CCActionInstant `RTTI Type Descriptor' ; +0x54, 0x1800351d4\nmov     [rsp+38h+var_18], esi                                          ; +0x5b, 0x1800351db\nlea     r8, ??_R0?AVCCFiniteTimeAction@cocos2d@@@8; cocos2d::CCFiniteTimeAction `RTTI Type Descriptor' ; +0x5f, 0x1800351df\nxor     edx, edx                                                       ; +0x66, 0x1800351e6\nmov     rcx, rdi                                                       ; +0x68, 0x1800351e8\ncall    __RTDynamicCast                                                ; +0x6b, 0x1800351eb\ntest    rax, rax                                                       ; +0x70, 0x1800351f0\nmov     [rbx+64h], esi                                                 ; +0x73, 0x1800351f3\nsetnz   cl                                                             ; +0x76, 0x1800351f6\ntest    rax, rax                                                       ; +0x79, 0x1800351f9\nmov     [rbx+6Ch], cl                                                  ; +0x7c, 0x1800351fc\nmov     al, 1                                                          ; +0x7f, 0x1800351ff\njz      short loc_180035206                                            ; +0x81, 0x180035201\ndec     dword ptr [rbx+60h]                                            ; +0x83, 0x180035203\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x86, 0x180035206\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x8b, 0x18003520b\nadd     rsp, 30h                                                       ; +0x90, 0x180035210\npop     rdi                                                            ; +0x94, 0x180035214\nretn                                                                   ; +0x95, 0x180035215", "xrefs": ["cocos2d::CCRepeat::copyWithZone @ 0x180032796", "cocos2d::CCRepeat::create @ 0x180033eb5", "<???> @ 0x1801438a8", "<???> @ 0x1801b072c"], "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"}