{"type": "func", "start": 6442672080, "end": 6442672265, "name": "cocos2d::CCSpawn::initWithTwoActions", "pseudocode": "// \n// cocos2d::CCSpawn::initWithTwoActions from 0x180035fd0 to 0x180036089 (185 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCSpawn::copyWithZone @ 0x18003374b\n// > cocos2d::CCSpawn::create @ 0x18003510f\n// > cocos2d::CCSpawn::createWithTwoActions @ 0x180035640\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801ba8dc\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\nchar __fastcall cocos2d::CCSpawn::initWithTwoActions(\n        cocos2d::CCSpawn *this,\n        struct cocos2d::CCFiniteTimeAction *a2,\n        struct cocos2d::CCFiniteTimeAction *a3)\n{\n  float v3; // xmm2_4\n  float v4; // xmm3_4\n  float v5; // xmm1_4\n  struct cocos2d::CCFiniteTimeAction *v9; // rax\n  struct cocos2d::CCFiniteTimeAction *v10; // rax\n\n  v3 = *((float *)a2 + 20);\n  v4 = *((float *)a3 + 20);\n  v5 = fmaxf(v3, v4);\n  *((float *)this + 20) = v5;\n  if ( v5 == 0.0 )\n    *((_DWORD *)this + 20) = 872415232;\n  *((_DWORD *)this + 22) = 0;\n  *((_BYTE *)this + 92) = 1;\n  *((_QWORD *)this + 12) = a2;\n  *((_QWORD *)this + 13) = a3;\n  if ( v3 <= v4 )\n  {\n    if ( v4 > v3 )\n    {\n      v10 = cocos2d::CCDelayTime::create(v4 - v3);\n      *((_QWORD *)this + 12) = cocos2d::CCSequence::createWithTwoActions(a2, v10);\n    }\n  }\n  else\n  {\n    v9 = cocos2d::CCDelayTime::create(v3 - 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 0x180035fd0 to 0x180036089 (185 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCSpawn::copyWithZone @ 0x18003374b\n; > cocos2d::CCSpawn::create @ 0x18003510f\n; > cocos2d::CCSpawn::createWithTwoActions @ 0x180035640\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801ba8dc\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, 0x180035fd0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180035fd5\npush    rdi                                                            ; +0xa, 0x180035fda\nsub     rsp, 20h                                                       ; +0xb, 0x180035fdb\nmovss   xmm2, dword ptr [rdx+50h]                                      ; +0xf, 0x180035fdf\nxorps   xmm0, xmm0                                                     ; +0x14, 0x180035fe4\nmovss   xmm3, dword ptr [r8+50h]                                       ; +0x17, 0x180035fe7\nmovaps  xmm1, xmm2                                                     ; +0x1d, 0x180035fed\nmaxss   xmm1, xmm3                                                     ; +0x20, 0x180035ff0\nmov     rdi, r8                                                        ; +0x24, 0x180035ff4\nmov     rsi, rdx                                                       ; +0x27, 0x180035ff7\nmov     rbx, rcx                                                       ; +0x2a, 0x180035ffa\nucomiss xmm1, xmm0                                                     ; +0x2d, 0x180035ffd\nmovss   dword ptr [rcx+50h], xmm1                                      ; +0x30, 0x180036000\njp      short loc_180036010                                            ; +0x35, 0x180036005\njnz     short loc_180036010                                            ; +0x37, 0x180036007\nmov     dword ptr [rcx+50h], 34000000h                                 ; +0x39, 0x180036009\ncomiss  xmm2, xmm3                                                     ; +0x40, 0x180036010\nmov     dword ptr [rcx+58h], 0                                         ; +0x43, 0x180036013\nmov     byte ptr [rcx+5Ch], 1                                          ; +0x4a, 0x18003601a\nmov     [rcx+60h], rsi                                                 ; +0x4e, 0x18003601e\nmov     [rcx+68h], rdi                                                 ; +0x52, 0x180036022\njbe     short loc_180036045                                            ; +0x56, 0x180036026\nsubss   xmm2, xmm3                                                     ; +0x58, 0x180036028\nmovaps  xmm0, xmm2; float                                              ; +0x5c, 0x18003602c\ncall    ?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x5f, 0x18003602f\nmov     rdx, rax; struct cocos2d::CCFiniteTimeAction *                 ; +0x64, 0x180036034\nmov     rcx, rdi; this                                                 ; +0x67, 0x180036037\ncall    ?createWithTwoActions@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@0@Z; cocos2d::CCSequence::createWithTwoActions(cocos2d::CCFiniteTimeAction *,cocos2d::CCFiniteTimeAction *) ; +0x6a, 0x18003603a\nmov     [rbx+68h], rax                                                 ; +0x6f, 0x18003603f\njmp     short loc_180036065                                            ; +0x73, 0x180036043\ncomiss  xmm3, xmm2                                                     ; +0x75, 0x180036045\njbe     short loc_180036065                                            ; +0x78, 0x180036048\nsubss   xmm3, xmm2                                                     ; +0x7a, 0x18003604a\nmovaps  xmm0, xmm3; float                                              ; +0x7e, 0x18003604e\ncall    ?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x81, 0x180036051\nmov     rdx, rax; struct cocos2d::CCFiniteTimeAction *                 ; +0x86, 0x180036056\nmov     rcx, rsi; this                                                 ; +0x89, 0x180036059\ncall    ?createWithTwoActions@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@0@Z; cocos2d::CCSequence::createWithTwoActions(cocos2d::CCFiniteTimeAction *,cocos2d::CCFiniteTimeAction *) ; +0x8c, 0x18003605c\nmov     [rbx+60h], rax                                                 ; +0x91, 0x180036061\nmov     rcx, [rbx+60h]; this                                           ; +0x95, 0x180036065\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x99, 0x180036069\nmov     rcx, [rbx+68h]; this                                           ; +0x9e, 0x18003606e\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xa2, 0x180036072\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa7, 0x180036077\nmov     al, 1                                                          ; +0xac, 0x18003607c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xae, 0x18003607e\nadd     rsp, 20h                                                       ; +0xb3, 0x180036083\npop     rdi                                                            ; +0xb7, 0x180036087\nretn                                                                   ; +0xb8, 0x180036088", "xrefs": ["cocos2d::CCSpawn::copyWithZone @ 0x18003374b", "cocos2d::CCSpawn::create @ 0x18003510f", "cocos2d::CCSpawn::createWithTwoActions @ 0x180035640", "<???> @ 0x18014cf68", "<???> @ 0x1801ba8dc"], "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"}