{"type": "func", "start": 6442678432, "end": 6442678733, "name": "cocos2d::CCRepeat::update", "pseudocode": "// \n// cocos2d::CCRepeat::update from 0x1800378a0 to 0x1800379cd (301 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800ef470\n// > <???> @ 0x18013e648\n// > <???> @ 0x18013e65c\n// > <???> @ 0x18013e670\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801babb8\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\nvoid __fastcall cocos2d::CCRepeat::update(cocos2d::CCRepeat *this, float a2)\n{\n  float v2; // xmm2_4\n  __int64 v4; // rcx\n  float v5; // xmm2_4\n  unsigned int v6; // eax\n  __int64 v7; // rdx\n  __int64 v8; // rbx\n\n  v2 = *((float *)this + 26);\n  if ( a2 < v2 )\n  {\n    v8 = *((_QWORD *)this + 14);\n    fmodf((float)*((int *)this + 24) * a2, 1.0);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 32LL))(v8);\n  }\n  else\n  {\n    if ( a2 > v2 )\n    {\n      do\n      {\n        if ( *((_DWORD *)this + 25) >= *((_DWORD *)this + 24) )\n          break;\n        (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 14) + 32LL))(*((_QWORD *)this + 14));\n        v4 = *((_QWORD *)this + 14);\n        ++*((_DWORD *)this + 25);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 88LL))(v4);\n        (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 14) + 80LL))(\n          *((_QWORD *)this + 14),\n          *((_QWORD *)this + 8));\n        v5 = (float)(*(float *)(*((_QWORD *)this + 14) + 80LL) / *((float *)this + 20)) + *((float *)this + 26);\n        *((float *)this + 26) = v5;\n      }\n      while ( a2 > v5 );\n    }\n    if ( a2 >= 1.0 )\n    {\n      v6 = *((_DWORD *)this + 25);\n      if ( v6 < *((_DWORD *)this + 24) )\n        *((_DWORD *)this + 25) = v6 + 1;\n    }\n    if ( !*((_BYTE *)this + 108) )\n    {\n      v7 = **((_QWORD **)this + 14);\n      if ( *((_DWORD *)this + 25) == *((_DWORD *)this + 24) )\n      {\n        (*(void (**)(void))(v7 + 32))();\n        (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 14) + 88LL))(*((_QWORD *)this + 14));\n      }\n      else\n      {\n        (*(void (**)(void))(v7 + 32))();\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCRepeat::update from 0x1800378a0 to 0x1800379cd (301 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800ef470\n; > <???> @ 0x18013e648\n; > <???> @ 0x18013e65c\n; > <???> @ 0x18013e670\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801babb8\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; \npush    rdi                                                            ; +0x0, 0x1800378a0\nsub     rsp, 40h                                                       ; +0x2, 0x1800378a2\nmovss   xmm2, dword ptr [rcx+68h]                                      ; +0x6, 0x1800378a6\nmov     rdi, rcx                                                       ; +0xb, 0x1800378ab\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xe, 0x1800378ae\nmovaps  xmm6, xmm1                                                     ; +0x13, 0x1800378b3\ncomiss  xmm6, xmm2                                                     ; +0x16, 0x1800378b6\njb      loc_18003798C                                                  ; +0x19, 0x1800378b9\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x1f, 0x1800378bf\nmovss   xmm7, cs:flt_1800EC208                                         ; +0x24, 0x1800378c4\njbe     short loc_18003791D                                            ; +0x2c, 0x1800378cc\nxchg    ax, ax                                                         ; +0x2e, 0x1800378ce\nmov     eax, [rdi+60h]                                                 ; +0x30, 0x1800378d0\ncmp     [rdi+64h], eax                                                 ; +0x33, 0x1800378d3\njnb     short loc_18003791D                                            ; +0x36, 0x1800378d6\nmov     rcx, [rdi+70h]                                                 ; +0x38, 0x1800378d8\nmovaps  xmm1, xmm7                                                     ; +0x3c, 0x1800378dc\nmov     rax, [rcx]                                                     ; +0x3f, 0x1800378df\ncall    qword ptr [rax+20h]                                            ; +0x42, 0x1800378e2\nmov     rcx, [rdi+70h]                                                 ; +0x45, 0x1800378e5\ninc     dword ptr [rdi+64h]                                            ; +0x49, 0x1800378e9\nmov     rax, [rcx]                                                     ; +0x4c, 0x1800378ec\ncall    qword ptr [rax+58h]                                            ; +0x4f, 0x1800378ef\nmov     rcx, [rdi+70h]                                                 ; +0x52, 0x1800378f2\nmov     rdx, [rdi+40h]                                                 ; +0x56, 0x1800378f6\nmov     rax, [rcx]                                                     ; +0x5a, 0x1800378fa\ncall    qword ptr [rax+50h]                                            ; +0x5d, 0x1800378fd\nmov     rax, [rdi+70h]                                                 ; +0x60, 0x180037900\nmovss   xmm2, dword ptr [rax+50h]                                      ; +0x64, 0x180037904\ndivss   xmm2, dword ptr [rdi+50h]                                      ; +0x69, 0x180037909\naddss   xmm2, dword ptr [rdi+68h]                                      ; +0x6e, 0x18003790e\ncomiss  xmm6, xmm2                                                     ; +0x73, 0x180037913\nmovss   dword ptr [rdi+68h], xmm2                                      ; +0x76, 0x180037916\nja      short loc_1800378D0                                            ; +0x7b, 0x18003791b\ncomiss  xmm6, xmm7                                                     ; +0x7d, 0x18003791d\njb      short loc_18003792F                                            ; +0x80, 0x180037920\nmov     eax, [rdi+64h]                                                 ; +0x82, 0x180037922\ncmp     eax, [rdi+60h]                                                 ; +0x85, 0x180037925\njnb     short loc_18003792F                                            ; +0x88, 0x180037928\ninc     eax                                                            ; +0x8a, 0x18003792a\nmov     [rdi+64h], eax                                                 ; +0x8c, 0x18003792c\ncmp     byte ptr [rdi+6Ch], 0                                          ; +0x8f, 0x18003792f\njnz     short loc_180037954                                            ; +0x93, 0x180037933\nmov     rcx, [rdi+70h]                                                 ; +0x95, 0x180037935\nmov     eax, [rdi+60h]                                                 ; +0x99, 0x180037939\nmov     rdx, [rcx]                                                     ; +0x9c, 0x18003793c\ncmp     [rdi+64h], eax                                                 ; +0x9f, 0x18003793f\njnz     short loc_180037964                                            ; +0xa2, 0x180037942\nmovaps  xmm1, xmm7                                                     ; +0xa4, 0x180037944\ncall    qword ptr [rdx+20h]                                            ; +0xa7, 0x180037947\nmov     rcx, [rdi+70h]                                                 ; +0xaa, 0x18003794a\nmov     rax, [rcx]                                                     ; +0xae, 0x18003794e\ncall    qword ptr [rax+58h]                                            ; +0xb1, 0x180037951\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xb4, 0x180037954\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xb9, 0x180037959\nadd     rsp, 40h                                                       ; +0xbe, 0x18003795e\npop     rdi                                                            ; +0xc2, 0x180037962\nretn                                                                   ; +0xc3, 0x180037963\nmovss   xmm0, dword ptr [rcx+50h]                                      ; +0xc4, 0x180037964\ndivss   xmm0, dword ptr [rdi+50h]                                      ; +0xc9, 0x180037969\nsubss   xmm2, xmm0                                                     ; +0xce, 0x18003796e\nsubss   xmm6, xmm2                                                     ; +0xd2, 0x180037972\nmovaps  xmm1, xmm6                                                     ; +0xd6, 0x180037976\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xd9, 0x180037979\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xde, 0x18003797e\nadd     rsp, 40h                                                       ; +0xe3, 0x180037983\npop     rdi                                                            ; +0xe7, 0x180037987\njmp     qword ptr [rdx+20h]                                            ; +0xe8, 0x180037988\nmov     eax, [rcx+60h]                                                 ; +0xec, 0x18003798c\nxorps   xmm0, xmm0                                                     ; +0xef, 0x18003798f\nmovss   xmm1, cs:flt_1800EC208; Y                                      ; +0xf2, 0x180037992\nmov     [rsp+48h+arg_0], rbx                                           ; +0xfa, 0x18003799a\nmov     rbx, [rcx+70h]                                                 ; +0xff, 0x18003799f\ncvtsi2ss xmm0, rax                                                     ; +0x103, 0x1800379a3\nmulss   xmm0, xmm6; X                                                  ; +0x108, 0x1800379a8\ncall    fmodf                                                          ; +0x10c, 0x1800379ac\nmov     rax, [rbx]                                                     ; +0x111, 0x1800379b1\nmovaps  xmm1, xmm0                                                     ; +0x114, 0x1800379b4\nmov     rcx, rbx                                                       ; +0x117, 0x1800379b7\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x11a, 0x1800379ba\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x11f, 0x1800379bf\nadd     rsp, 40h                                                       ; +0x124, 0x1800379c4\npop     rdi                                                            ; +0x128, 0x1800379c8\njmp     qword ptr [rax+20h]                                            ; +0x129, 0x1800379c9", "xrefs": ["<???> @ 0x1800ef470", "<???> @ 0x18013e648", "<???> @ 0x18013e65c", "<???> @ 0x18013e670", "<???> @ 0x18014cf68", "<???> @ 0x1801babb8"], "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"}