{"type": "func", "start": 6442653952, "end": 6442654101, "name": "sub_180031900", "pseudocode": "// \n// sub_180031900 from 0x180031900 to 0x180031995 (149 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800efa10\n// > <???> @ 0x1801ba48c\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:33 +0000\n// \n\ncocos2d::CCAction *__fastcall sub_180031900(cocos2d::CCAction *Block, char a2)\n{\n  int v3; // edi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(Block, 160, *((_QWORD *)Block - 1), cocos2d::CCWavesTiles3D::~CCWavesTiles3D);\n    if ( v3 )\n      j_j_j_free_0((char *)Block - 8);\n    return (cocos2d::CCAction *)((char *)Block - 8);\n  }\n  else\n  {\n    *(_QWORD *)Block = &cocos2d::CCFiniteTimeAction::`vftable';\n    cocos2d::CCAction::~CCAction(Block);\n    if ( v3 )\n      j_j_free_0(Block);\n    return Block;\n  }\n}", "assembly": "; \n; sub_180031900 from 0x180031900 to 0x180031995 (149 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800efa10\n; > <???> @ 0x1801ba48c\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:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180031900\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180031905\npush    rdi                                                            ; +0xa, 0x18003190a\nsub     rsp, 20h                                                       ; +0xb, 0x18003190b\nmov     rbx, rcx                                                       ; +0xf, 0x18003190f\nmov     edi, edx                                                       ; +0x12, 0x180031912\nand     edi, 1                                                         ; +0x14, 0x180031914\ntest    dl, 2                                                          ; +0x17, 0x180031917\njz      short loc_180031962                                            ; +0x1a, 0x18003191a\nlea     r9, ??1CCWavesTiles3D@cocos2d@@UEAA@XZ; cocos2d::CCWavesTiles3D::~CCWavesTiles3D(void) ; +0x1c, 0x18003191c\nmov     r8, [rcx-8]                                                    ; +0x23, 0x180031923\nmov     edx, 0A0h                                                      ; +0x27, 0x180031927\ncall    sub_1800E49F8                                                  ; +0x2c, 0x18003192c\ntest    edi, edi                                                       ; +0x31, 0x180031931\njz      short loc_18003194E                                            ; +0x33, 0x180031933\nmov     rcx, [rbx-8]                                                   ; +0x35, 0x180031935\nlea     rdx, [rcx+rcx*4]                                               ; +0x39, 0x180031939\nshl     rdx, 5                                                         ; +0x3d, 0x18003193d\nadd     rdx, 8                                                         ; +0x41, 0x180031941\nlea     rcx, [rbx-8]; Block                                            ; +0x45, 0x180031945\ncall    j_j_j_free_0                                                   ; +0x49, 0x180031949\nlea     rax, [rbx-8]                                                   ; +0x4e, 0x18003194e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180031952\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x180031957\nadd     rsp, 20h                                                       ; +0x5c, 0x18003195c\npop     rdi                                                            ; +0x60, 0x180031960\nretn                                                                   ; +0x61, 0x180031961\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x62, 0x180031962\nmov     [rcx], rax                                                     ; +0x69, 0x180031969\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x6c, 0x18003196c\ntest    edi, edi                                                       ; +0x71, 0x180031971\njz      short loc_180031982                                            ; +0x73, 0x180031973\nmov     edx, 0A0h                                                      ; +0x75, 0x180031975\nmov     rcx, rbx; Block                                                ; +0x7a, 0x18003197a\ncall    j_j_free_0                                                     ; +0x7d, 0x18003197d\nmov     rax, rbx                                                       ; +0x82, 0x180031982\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x85, 0x180031985\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8a, 0x18003198a\nadd     rsp, 20h                                                       ; +0x8f, 0x18003198f\npop     rdi                                                            ; +0x93, 0x180031993\nretn                                                                   ; +0x94, 0x180031994", "xrefs": ["<???> @ 0x1800efa10", "<???> @ 0x1801ba48c"], "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"}