{"type": "func", "start": 6442669952, "end": 6442670102, "name": "cocos2d::CCRepeat::initWithAction", "pseudocode": "// \n// cocos2d::CCRepeat::initWithAction from 0x180035780 to 0x180035816 (150 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCRepeat::copyWithZone @ 0x180032e0d\n// > cocos2d::CCRepeat::create @ 0x180034535\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801ba840\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:35 +0000\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 * *((float *)a2 + 20);\n  *((float *)this + 20) = v5;\n  if ( v5 == 0.0 )\n    *((_DWORD *)this + 20) = 872415232;\n  *((_BYTE *)this + 92) = 1;\n  *((_DWORD *)this + 22) = 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 0x180035780 to 0x180035816 (150 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCRepeat::copyWithZone @ 0x180032e0d\n; > cocos2d::CCRepeat::create @ 0x180034535\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801ba840\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:35 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180035780\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180035785\npush    rdi                                                            ; +0xa, 0x18003578a\nsub     rsp, 30h                                                       ; +0xb, 0x18003578b\nxorps   xmm1, xmm1                                                     ; +0xf, 0x18003578f\nmov     eax, r8d                                                       ; +0x12, 0x180035792\nxorps   xmm0, xmm0                                                     ; +0x15, 0x180035795\nmov     rdi, rdx                                                       ; +0x18, 0x180035798\nmov     rbx, rcx                                                       ; +0x1b, 0x18003579b\ncvtsi2ss xmm1, rax                                                     ; +0x1e, 0x18003579e\nmulss   xmm1, dword ptr [rdx+50h]                                      ; +0x23, 0x1800357a3\nucomiss xmm1, xmm0                                                     ; +0x28, 0x1800357a8\nmovss   dword ptr [rcx+50h], xmm1                                      ; +0x2b, 0x1800357ab\njp      short loc_1800357BB                                            ; +0x30, 0x1800357b0\njnz     short loc_1800357BB                                            ; +0x32, 0x1800357b2\nmov     dword ptr [rcx+50h], 34000000h                                 ; +0x34, 0x1800357b4\nmov     byte ptr [rcx+5Ch], 1                                          ; +0x3b, 0x1800357bb\nxor     esi, esi                                                       ; +0x3f, 0x1800357bf\nmov     [rcx+58h], esi                                                 ; +0x41, 0x1800357c1\nmov     [rcx+60h], r8d                                                 ; +0x44, 0x1800357c4\nmov     [rcx+70h], rdi                                                 ; +0x48, 0x1800357c8\nmov     rcx, rdi; this                                                 ; +0x4c, 0x1800357cc\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x4f, 0x1800357cf\nlea     r9, ??_R0?AVCCActionInstant@cocos2d@@@8; cocos2d::CCActionInstant `RTTI Type Descriptor' ; +0x54, 0x1800357d4\nmov     [rsp+38h+var_18], esi                                          ; +0x5b, 0x1800357db\nlea     r8, ??_R0?AVCCFiniteTimeAction@cocos2d@@@8; cocos2d::CCFiniteTimeAction `RTTI Type Descriptor' ; +0x5f, 0x1800357df\nxor     edx, edx                                                       ; +0x66, 0x1800357e6\nmov     rcx, rdi                                                       ; +0x68, 0x1800357e8\ncall    __RTDynamicCast                                                ; +0x6b, 0x1800357eb\ntest    rax, rax                                                       ; +0x70, 0x1800357f0\nmov     [rbx+64h], esi                                                 ; +0x73, 0x1800357f3\nsetnz   cl                                                             ; +0x76, 0x1800357f6\ntest    rax, rax                                                       ; +0x79, 0x1800357f9\nmov     [rbx+6Ch], cl                                                  ; +0x7c, 0x1800357fc\nmov     al, 1                                                          ; +0x7f, 0x1800357ff\njz      short loc_180035806                                            ; +0x81, 0x180035801\ndec     dword ptr [rbx+60h]                                            ; +0x83, 0x180035803\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x86, 0x180035806\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x8b, 0x18003580b\nadd     rsp, 30h                                                       ; +0x90, 0x180035810\npop     rdi                                                            ; +0x94, 0x180035814\nretn                                                                   ; +0x95, 0x180035815", "xrefs": ["cocos2d::CCRepeat::copyWithZone @ 0x180032e0d", "cocos2d::CCRepeat::create @ 0x180034535", "<???> @ 0x18014cf68", "<???> @ 0x1801ba840"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}