{"type": "func", "start": 6442668160, "end": 6442668268, "name": "cocos2d::CCSpawn::createWithVariableList", "pseudocode": "// \n// cocos2d::CCSpawn::createWithVariableList from 0x180035080 to 0x1800350ec (108 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180135798\n// > <???> @ 0x1801357a8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b06fc\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\nstruct cocos2d::CCSpawn *__fastcall cocos2d::CCSpawn::createWithVariableList(struct cocos2d::CCSpawn *a1, char *a2)\n{\n  struct cocos2d::CCSpawn *v2; // rdi\n  char v3; // al\n  char *v4; // rbx\n  struct cocos2d::CCFiniteTimeAction *v5; // rdx\n  struct cocos2d::CCFiniteTimeAction *v6; // rax\n\n  v2 = a1;\n  v3 = 1;\n  if ( !a1 )\n    return nullptr;\n  v4 = a2 - 8;\n  while ( 1 )\n  {\n    v5 = *((struct cocos2d::CCFiniteTimeAction **)v4 + 1);\n    v4 += 8;\n    if ( !v5 )\n      break;\n    v2 = cocos2d::CCSpawn::createWithTwoActions(v2, v5);\n    v3 = 0;\n  }\n  if ( !v3 )\n    return v2;\n  v6 = (struct cocos2d::CCFiniteTimeAction *)sub_180034E40();\n  return cocos2d::CCSpawn::createWithTwoActions(v2, v6);\n}", "assembly": "; \n; cocos2d::CCSpawn::createWithVariableList from 0x180035080 to 0x1800350ec (108 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180135798\n; > <???> @ 0x1801357a8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b06fc\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\npush    rdi                                                            ; +0x0, 0x180035080\nsub     rsp, 20h                                                       ; +0x2, 0x180035082\nmov     rdi, rcx                                                       ; +0x6, 0x180035086\nmov     al, 1                                                          ; +0x9, 0x180035089\ntest    rcx, rcx                                                       ; +0xb, 0x18003508b\njz      short loc_1800350E3                                            ; +0xe, 0x18003508e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x10, 0x180035090\nlea     rbx, [rdx-8]                                                   ; +0x15, 0x180035095\nnop     dword ptr [rax+00000000h]                                      ; +0x19, 0x180035099\nmov     rdx, [rbx+8]; struct cocos2d::CCFiniteTimeAction *             ; +0x20, 0x1800350a0\nlea     rbx, [rbx+8]                                                   ; +0x24, 0x1800350a4\ntest    rdx, rdx                                                       ; +0x28, 0x1800350a8\njz      short loc_1800350BC                                            ; +0x2b, 0x1800350ab\nmov     rcx, rdi; struct cocos2d::CCFiniteTimeAction *                 ; +0x2d, 0x1800350ad\ncall    ?createWithTwoActions@CCSpawn@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@0@Z; cocos2d::CCSpawn::createWithTwoActions(cocos2d::CCFiniteTimeAction *,cocos2d::CCFiniteTimeAction *) ; +0x30, 0x1800350b0\nmov     rdi, rax                                                       ; +0x35, 0x1800350b5\nxor     al, al                                                         ; +0x38, 0x1800350b8\njmp     short loc_1800350A0                                            ; +0x3a, 0x1800350ba\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3c, 0x1800350bc\ntest    al, al                                                         ; +0x41, 0x1800350c1\njz      short loc_1800350DA                                            ; +0x43, 0x1800350c3\ncall    sub_180034E40                                                  ; +0x45, 0x1800350c5\nmov     rdx, rax; struct cocos2d::CCFiniteTimeAction *                 ; +0x4a, 0x1800350ca\nmov     rcx, rdi; struct cocos2d::CCFiniteTimeAction *                 ; +0x4d, 0x1800350cd\nadd     rsp, 20h                                                       ; +0x50, 0x1800350d0\npop     rdi                                                            ; +0x54, 0x1800350d4\njmp     ?createWithTwoActions@CCSpawn@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@0@Z; cocos2d::CCSpawn::createWithTwoActions(cocos2d::CCFiniteTimeAction *,cocos2d::CCFiniteTimeAction *) ; +0x55, 0x1800350d5\nmov     rax, rdi                                                       ; +0x5a, 0x1800350da\nadd     rsp, 20h                                                       ; +0x5d, 0x1800350dd\npop     rdi                                                            ; +0x61, 0x1800350e1\nretn                                                                   ; +0x62, 0x1800350e2\nmov     rax, rcx                                                       ; +0x63, 0x1800350e3\nadd     rsp, 20h                                                       ; +0x66, 0x1800350e6\npop     rdi                                                            ; +0x6a, 0x1800350ea\nretn                                                                   ; +0x6b, 0x1800350eb", "xrefs": ["<???> @ 0x180135798", "<???> @ 0x1801357a8", "<???> @ 0x1801438a8", "<???> @ 0x1801b06fc"], "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"}