{"type": "func", "start": 6442670368, "end": 6442670553, "name": "cocos2d::CCSpawn::initWithTwoActions", "pseudocode": "// \n// cocos2d::CCSpawn::initWithTwoActions from 0x180035920 to 0x1800359d9 (185 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCSpawn::copyWithZone @ 0x1800330c8\n// > cocos2d::CCSpawn::create @ 0x180034abf\n// > cocos2d::CCSpawn::createWithTwoActions @ 0x180034ff0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b07b0\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\nchar __fastcall cocos2d::CCSpawn::initWithTwoActions(\n        cocos2d::CCSpawn *this,\n        struct cocos2d::CCFiniteTimeAction *a2,\n        struct cocos2d::CCFiniteTimeAction *a3)\n{\n  float m_fDuration; // xmm2_4\n  float v4; // xmm3_4\n  float v5; // xmm1_4\n  struct cocos2d::CCDelayTime *v9; // rax\n  struct cocos2d::CCDelayTime *v10; // rax\n\n  m_fDuration = a2->m_fDuration;\n  v4 = a3->m_fDuration;\n  v5 = fmaxf(m_fDuration, v4);\n  this->m_fDuration = v5;\n  if ( v5 == 0.0 )\n    this->m_fDuration = 0.00000011920929;\n  this->m_elapsed = 0.0;\n  this->m_bFirstTick = 1;\n  *((_QWORD *)this + 12) = a2;\n  *((_QWORD *)this + 13) = a3;\n  if ( m_fDuration <= v4 )\n  {\n    if ( v4 > m_fDuration )\n    {\n      v10 = cocos2d::CCDelayTime::create(v4 - m_fDuration);\n      *((_QWORD *)this + 12) = cocos2d::CCSequence::createWithTwoActions(a2, v10);\n    }\n  }\n  else\n  {\n    v9 = cocos2d::CCDelayTime::create(m_fDuration - v4);\n    *((_QWORD *)this + 13) = cocos2d::CCSequence::createWithTwoActions(a3, v9);\n  }\n  cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 12));\n  cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 13));\n  return 1;\n}", "assembly": "; \n; cocos2d::CCSpawn::initWithTwoActions from 0x180035920 to 0x1800359d9 (185 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCSpawn::copyWithZone @ 0x1800330c8\n; > cocos2d::CCSpawn::create @ 0x180034abf\n; > cocos2d::CCSpawn::createWithTwoActions @ 0x180034ff0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b07b0\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, 0x180035920\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180035925\npush    rdi                                                            ; +0xa, 0x18003592a\nsub     rsp, 20h                                                       ; +0xb, 0x18003592b\nmovss   xmm2, dword ptr [rdx+50h]                                      ; +0xf, 0x18003592f\nxorps   xmm0, xmm0                                                     ; +0x14, 0x180035934\nmovss   xmm3, dword ptr [r8+50h]                                       ; +0x17, 0x180035937\nmovaps  xmm1, xmm2                                                     ; +0x1d, 0x18003593d\nmaxss   xmm1, xmm3                                                     ; +0x20, 0x180035940\nmov     rdi, r8                                                        ; +0x24, 0x180035944\nmov     rsi, rdx                                                       ; +0x27, 0x180035947\nmov     rbx, rcx                                                       ; +0x2a, 0x18003594a\nucomiss xmm1, xmm0                                                     ; +0x2d, 0x18003594d\nmovss   dword ptr [rcx+50h], xmm1                                      ; +0x30, 0x180035950\njp      short loc_180035960                                            ; +0x35, 0x180035955\njnz     short loc_180035960                                            ; +0x37, 0x180035957\nmov     dword ptr [rcx+50h], 34000000h                                 ; +0x39, 0x180035959\ncomiss  xmm2, xmm3                                                     ; +0x40, 0x180035960\nmov     dword ptr [rcx+58h], 0                                         ; +0x43, 0x180035963\nmov     byte ptr [rcx+5Ch], 1                                          ; +0x4a, 0x18003596a\nmov     [rcx+60h], rsi                                                 ; +0x4e, 0x18003596e\nmov     [rcx+68h], rdi                                                 ; +0x52, 0x180035972\njbe     short loc_180035995                                            ; +0x56, 0x180035976\nsubss   xmm2, xmm3                                                     ; +0x58, 0x180035978\nmovaps  xmm0, xmm2; float                                              ; +0x5c, 0x18003597c\ncall    ?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x5f, 0x18003597f\nmov     rdx, rax; struct cocos2d::CCFiniteTimeAction *                 ; +0x64, 0x180035984\nmov     rcx, rdi; this                                                 ; +0x67, 0x180035987\ncall    ?createWithTwoActions@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@0@Z; cocos2d::CCSequence::createWithTwoActions(cocos2d::CCFiniteTimeAction *,cocos2d::CCFiniteTimeAction *) ; +0x6a, 0x18003598a\nmov     [rbx+68h], rax                                                 ; +0x6f, 0x18003598f\njmp     short loc_1800359B5                                            ; +0x73, 0x180035993\ncomiss  xmm3, xmm2                                                     ; +0x75, 0x180035995\njbe     short loc_1800359B5                                            ; +0x78, 0x180035998\nsubss   xmm3, xmm2                                                     ; +0x7a, 0x18003599a\nmovaps  xmm0, xmm3; float                                              ; +0x7e, 0x18003599e\ncall    ?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x81, 0x1800359a1\nmov     rdx, rax; struct cocos2d::CCFiniteTimeAction *                 ; +0x86, 0x1800359a6\nmov     rcx, rsi; this                                                 ; +0x89, 0x1800359a9\ncall    ?createWithTwoActions@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@0@Z; cocos2d::CCSequence::createWithTwoActions(cocos2d::CCFiniteTimeAction *,cocos2d::CCFiniteTimeAction *) ; +0x8c, 0x1800359ac\nmov     [rbx+60h], rax                                                 ; +0x91, 0x1800359b1\nmov     rcx, [rbx+60h]; this                                           ; +0x95, 0x1800359b5\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x99, 0x1800359b9\nmov     rcx, [rbx+68h]; this                                           ; +0x9e, 0x1800359be\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xa2, 0x1800359c2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa7, 0x1800359c7\nmov     al, 1                                                          ; +0xac, 0x1800359cc\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xae, 0x1800359ce\nadd     rsp, 20h                                                       ; +0xb3, 0x1800359d3\npop     rdi                                                            ; +0xb7, 0x1800359d7\nretn                                                                   ; +0xb8, 0x1800359d8", "xrefs": ["cocos2d::CCSpawn::copyWithZone @ 0x1800330c8", "cocos2d::CCSpawn::create @ 0x180034abf", "cocos2d::CCSpawn::createWithTwoActions @ 0x180034ff0", "<???> @ 0x1801438a8", "<???> @ 0x1801b07b0"], "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"}