{"type": "func", "start": 4297398944, "end": 4297399104, "name": "GJMapObject::touchMonster", "pseudocode": "// \n// GJMapObject::touchMonster from 0x100251aa0 to 0x100251b40 (160 bytes)\n// \n// 1 xrefs:\n// > MapSelectLayer::checkTouchMonster @ 0x1002533c6\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 12:27:24 +0000\n// \n\n__int64 __fastcall GJMapObject::touchMonster(__int64 a1)\n{\n  __int64 result; // rax\n  int v2; // ebx\n  int v3; // eax\n  int v4; // ecx\n  int v5; // r8d\n  int v6; // r9d\n  __int64 v7; // rbx\n\n  result = *(unsigned int *)(a1 + 368);\n  *(_DWORD *)(a1 + 368) = result + 1;\n  if ( (int)result <= 8 )\n  {\n    cocos2d::CCNode::stopActionByTag(*(_QWORD *)(*(_QWORD *)(a1 + 328) + 1464LL), 2);\n    v2 = cocos2d::CCTintTo::create(255, 0, 0, 0.050000001);\n    v3 = cocos2d::CCTintTo::create(0, 0, 0, 0.5);\n    v7 = sub_10039EB60(v2, v3, 0, v4, v5, v6);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 72LL))(v7, 2);\n    return cocos2d::CCNode::runAction(*(_QWORD *)(*(_QWORD *)(a1 + 328) + 1464LL), v7);\n  }\n  return result;\n}", "assembly": "; \n; GJMapObject::touchMonster from 0x100251aa0 to 0x100251b40 (160 bytes)\n; \n; 1 xrefs:\n; > MapSelectLayer::checkTouchMonster @ 0x1002533c6\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 12:27:24 +0000\n; \nmov     eax, [rdi+170h]                                                ; +0x0, 0x100251aa0\nlea     ecx, [rax+1]                                                   ; +0x6, 0x100251aa6\nmov     [rdi+170h], ecx                                                ; +0x9, 0x100251aa9\ncmp     eax, 8                                                         ; +0xf, 0x100251aaf\njle     short loc_100251AB5                                            ; +0x12, 0x100251ab2\nretn                                                                   ; +0x14, 0x100251ab4\npush    rbp                                                            ; +0x15, 0x100251ab5\nmov     rbp, rsp                                                       ; +0x16, 0x100251ab6\npush    r14                                                            ; +0x19, 0x100251ab9\npush    rbx                                                            ; +0x1b, 0x100251abb\nmov     rax, [rdi+148h]                                                ; +0x1c, 0x100251abc\nmov     rax, [rax+5B8h]                                                ; +0x23, 0x100251ac3\nmov     r14, rdi                                                       ; +0x2a, 0x100251aca\nmov     rdi, rax                                                       ; +0x2d, 0x100251acd\nmov     esi, 2                                                         ; +0x30, 0x100251ad0\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x35, 0x100251ad5\nmovss   xmm0, cs:dword_100A0412C                                       ; +0x3a, 0x100251ada\nmov     edi, 0FFh                                                      ; +0x42, 0x100251ae2\nxor     esi, esi                                                       ; +0x47, 0x100251ae7\nxor     edx, edx                                                       ; +0x49, 0x100251ae9\ncall    cocos2d__CCTintTo__create                                      ; +0x4b, 0x100251aeb\nmov     rbx, rax                                                       ; +0x50, 0x100251af0\nmovss   xmm0, cs:dword_100A03578                                       ; +0x53, 0x100251af3\nxor     edi, edi                                                       ; +0x5b, 0x100251afb\nxor     esi, esi                                                       ; +0x5d, 0x100251afd\nxor     edx, edx                                                       ; +0x5f, 0x100251aff\ncall    cocos2d__CCTintTo__create                                      ; +0x61, 0x100251b01\nmov     rdi, rbx                                                       ; +0x66, 0x100251b06\nmov     rsi, rax                                                       ; +0x69, 0x100251b09\nxor     edx, edx                                                       ; +0x6c, 0x100251b0c\nxor     eax, eax                                                       ; +0x6e, 0x100251b0e\ncall    sub_10039EB60                                                  ; +0x70, 0x100251b10\nmov     rbx, rax                                                       ; +0x75, 0x100251b15\nmov     rax, [rax]                                                     ; +0x78, 0x100251b18\nmov     rdi, rbx                                                       ; +0x7b, 0x100251b1b\nmov     esi, 2                                                         ; +0x7e, 0x100251b1e\ncall    qword ptr [rax+48h]                                            ; +0x83, 0x100251b23\nmov     rax, [r14+148h]                                                ; +0x86, 0x100251b26\nmov     rdi, [rax+5B8h]                                                ; +0x8d, 0x100251b2d\nmov     rsi, rbx                                                       ; +0x94, 0x100251b34\npop     rbx                                                            ; +0x97, 0x100251b37\npop     r14                                                            ; +0x98, 0x100251b38\npop     rbp                                                            ; +0x9a, 0x100251b3a\njmp     cocos2d__CCNode__runAction                                     ; +0x9b, 0x100251b3b", "xrefs": ["MapSelectLayer::checkTouchMonster @ 0x1002533c6"], "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"}