{"type": "func", "start": 5369842240, "end": 5369842579, "name": "DeathMarkerLayer::timescale", "pseudocode": "// \n// DeathMarkerLayer::timescale from 0x140114a40 to 0x140114b93 (339 bytes)\n// \n// 3 xrefs:\n// > DeathMarkerLayer::init @ 0x140114ff9\n// > PlayLayer::tryShowDeathMarkers @ 0x14051ffb0\n// > <???> @ 0x140915e90\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:26:51 +0000\n// \n\nfloat DeathMarkerLayer::timescale()\n{\n  __int64 v0; // rbx\n  cocos2d::CCString *v1; // rax\n  int v2; // ebx\n  void *v3; // r8\n  void *v5; // [rsp+30h] [rbp-38h]\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int64 v7; // [rsp+48h] [rbp-20h]\n  unsigned __int64 v8; // [rsp+50h] [rbp-18h]\n\n  v0 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v5 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v0 = qword_14090BFD0;\n  }\n  *(_OWORD *)Block = 0;\n  v7 = 3;\n  v8 = 15;\n  LODWORD(Block[0]) = 6256231;\n  sub_140044D80(Block, \"0211\", 4u);\n  v1 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v0 + 432), Block);\n  v2 = cocos2d::CCString::intValue(v1);\n  if ( v8 > 0xF )\n  {\n    v3 = Block[0];\n    if ( v8 + 1 >= 0x1000 )\n    {\n      v3 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v3);\n  }\n  if ( v2 <= 0 )\n    return 1.0;\n  else\n    return (float)v2 / 100.0;\n}", "assembly": "; \n; DeathMarkerLayer::timescale from 0x140114a40 to 0x140114b93 (339 bytes)\n; \n; 3 xrefs:\n; > DeathMarkerLayer::init @ 0x140114ff9\n; > PlayLayer::tryShowDeathMarkers @ 0x14051ffb0\n; > <???> @ 0x140915e90\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:26:51 +0000\n; \npush    rbx                                                            ; +0x0, 0x140114a40\nsub     rsp, 60h                                                       ; +0x2, 0x140114a42\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140114a46\nxor     rax, rsp                                                       ; +0xd, 0x140114a4d\nmov     [rsp+68h+var_10], rax                                          ; +0x10, 0x140114a50\nmov     rbx, cs:qword_14090BFD0                                        ; +0x15, 0x140114a55\ntest    rbx, rbx                                                       ; +0x1c, 0x140114a5c\njnz     short loc_140114A93                                            ; +0x1f, 0x140114a5f\nmov     ecx, 6E8h; Size                                                ; +0x21, 0x140114a61\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x26, 0x140114a66\nmov     [rsp+68h+var_38], rax                                          ; +0x2b, 0x140114a6b\nmov     rcx, rax                                                       ; +0x30, 0x140114a70\ncall    GameManager__GameManager                                       ; +0x33, 0x140114a73\nnop                                                                    ; +0x38, 0x140114a78\nmov     cs:qword_14090BFD0, rax                                        ; +0x39, 0x140114a79\nmov     rcx, [rax]                                                     ; +0x40, 0x140114a80\nmov     rdx, [rcx+48h]                                                 ; +0x43, 0x140114a83\nmov     rcx, rax                                                       ; +0x47, 0x140114a87\ncall    rdx                                                            ; +0x4a, 0x140114a8a\nmov     rbx, cs:qword_14090BFD0                                        ; +0x4c, 0x140114a8c\nxorps   xmm0, xmm0                                                     ; +0x53, 0x140114a93\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x56, 0x140114a96\nmov     [rsp+68h+var_20], 3                                            ; +0x5b, 0x140114a9b\nmov     [rsp+68h+var_18], 0Fh                                          ; +0x64, 0x140114aa4\nmov     eax, cs:dword_140757618                                        ; +0x6d, 0x140114aad\nmov     word ptr [rsp+68h+Block], ax                                   ; +0x73, 0x140114ab3\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x78, 0x140114ab8\nmov     byte ptr [rsp+68h+Block+2], al                                 ; +0x7f, 0x140114abf\nmov     byte ptr [rsp+68h+Block+3], 0                                  ; +0x83, 0x140114ac3\nmov     r8d, 4; Size                                                   ; +0x88, 0x140114ac8\nlea     rdx, a0211; \"0211\"                                             ; +0x8e, 0x140114ace\nlea     rcx, [rsp+68h+Block]; Src                                      ; +0x95, 0x140114ad5\ncall    sub_140044D80                                                  ; +0x9a, 0x140114ada\nlea     rdx, [rsp+68h+Block]                                           ; +0x9f, 0x140114adf\nmov     rcx, [rbx+1B0h]                                                ; +0xa4, 0x140114ae4\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0xab, 0x140114aeb\nmov     rcx, rax                                                       ; +0xb1, 0x140114af1\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xb4, 0x140114af4\nmov     ebx, eax                                                       ; +0xba, 0x140114afa\nmov     rdx, [rsp+68h+var_18]                                          ; +0xbc, 0x140114afc\ncmp     rdx, 0Fh                                                       ; +0xc1, 0x140114b01\njbe     short loc_140114B52                                            ; +0xc5, 0x140114b05\ninc     rdx                                                            ; +0xc7, 0x140114b07\nmov     r8, [rsp+68h+Block]                                            ; +0xca, 0x140114b0a\nmov     rcx, r8                                                        ; +0xcf, 0x140114b0f\ncmp     rdx, 1000h                                                     ; +0xd2, 0x140114b12\njb      short loc_140114B4A                                            ; +0xd9, 0x140114b19\nadd     rdx, 27h ; '''                                                 ; +0xdb, 0x140114b1b\nmov     r8, [r8-8]                                                     ; +0xdf, 0x140114b1f\nsub     rcx, r8                                                        ; +0xe3, 0x140114b23\nsub     rcx, 8                                                         ; +0xe6, 0x140114b26\ncmp     rcx, 1Fh                                                       ; +0xea, 0x140114b2a\njbe     short loc_140114B4A                                            ; +0xee, 0x140114b2e\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xf0, 0x140114b30\nxor     r9d, r9d; LineNo                                               ; +0xf9, 0x140114b39\nxor     r8d, r8d; FileName                                             ; +0xfc, 0x140114b3c\nxor     edx, edx; FunctionName                                         ; +0xff, 0x140114b3f\nxor     ecx, ecx; Expression                                           ; +0x101, 0x140114b41\ncall    cs:_invoke_watson                                              ; +0x103, 0x140114b43\nalign 2                                                                ; +0x109, 0x140114b49\nmov     rcx, r8; Block                                                 ; +0x10a, 0x140114b4a\ncall    j_j_free                                                       ; +0x10d, 0x140114b4d\ntest    ebx, ebx                                                       ; +0x112, 0x140114b52\njle     short loc_140114B78                                            ; +0x114, 0x140114b54\nmovd    xmm0, ebx                                                      ; +0x116, 0x140114b56\ncvtdq2ps xmm0, xmm0                                                    ; +0x11a, 0x140114b5a\ndivss   xmm0, cs:dword_1408357B0                                       ; +0x11d, 0x140114b5d\nmov     rcx, [rsp+68h+var_10]                                          ; +0x125, 0x140114b65\nxor     rcx, rsp; StackCookie                                          ; +0x12a, 0x140114b6a\ncall    __security_check_cookie                                        ; +0x12d, 0x140114b6d\nadd     rsp, 60h                                                       ; +0x132, 0x140114b72\npop     rbx                                                            ; +0x136, 0x140114b76\nretn                                                                   ; +0x137, 0x140114b77\nmovss   xmm0, cs:flt_140835080                                         ; +0x138, 0x140114b78\nmov     rcx, [rsp+68h+var_10]                                          ; +0x140, 0x140114b80\nxor     rcx, rsp; StackCookie                                          ; +0x145, 0x140114b85\ncall    __security_check_cookie                                        ; +0x148, 0x140114b88\nadd     rsp, 60h                                                       ; +0x14d, 0x140114b8d\npop     rbx                                                            ; +0x151, 0x140114b91\nretn                                                                   ; +0x152, 0x140114b92", "xrefs": ["DeathMarkerLayer::init @ 0x140114ff9", "PlayLayer::tryShowDeathMarkers @ 0x14051ffb0", "<???> @ 0x140915e90"], "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"}