{"type": "func", "start": 5372118576, "end": 5372118728, "name": "GJBaseGameLayer::getModifiedDelta", "pseudocode": "// \n// GJBaseGameLayer::getModifiedDelta from 0x140340630 to 0x1403406c8 (152 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::update @ 0x1403407e7\n// > LevelEditorLayer::updateEditor @ 0x1403f5ffd\n// > <???> @ 0x14091fd6c\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:30:39 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::getModifiedDelta(__int64 a1, float a2)\n{\n  double v3; // xmm7_8\n  double v4; // xmm6_8\n  __int64 result; // rax\n\n  if ( *(int *)(a1 + 13220) > 0 )\n  {\n    cocos2d::CCDirector::sharedDirector(a1);\n    --*(_DWORD *)(a1 + 13220);\n    a2 = 0.0;\n  }\n  v3 = fminf(1.0, *(float *)(a1 + 816)) * 0.004166666666666667;\n  v4 = (float)(a2 + *(double *)(a1 + 13136));\n  result = (unsigned int)(int)roundf(v4 / v3);\n  *(double *)(a1 + 13136) = v4 - (double)(int)result * v3;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getModifiedDelta from 0x140340630 to 0x1403406c8 (152 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::update @ 0x1403407e7\n; > LevelEditorLayer::updateEditor @ 0x1403f5ffd\n; > <???> @ 0x14091fd6c\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:30:39 +0000\n; \npush    rbx                                                            ; +0x0, 0x140340630\nsub     rsp, 40h                                                       ; +0x2, 0x140340632\ncmp     dword ptr [rcx+33A4h], 0                                       ; +0x6, 0x140340636\nmov     rbx, rcx                                                       ; +0xd, 0x14034063d\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x10, 0x140340640\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x15, 0x140340645\njle     short loc_14034065B                                            ; +0x1a, 0x14034064a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1c, 0x14034064c\ndec     dword ptr [rbx+33A4h]                                          ; +0x22, 0x140340652\nxorps   xmm1, xmm1                                                     ; +0x28, 0x140340658\nmovss   xmm0, cs:flt_140835080                                         ; +0x2b, 0x14034065b\nminss   xmm0, dword ptr [rbx+330h]                                     ; +0x33, 0x140340663\ncvtps2pd xmm7, xmm0                                                    ; +0x3b, 0x14034066b\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x14034066e\nmulsd   xmm7, cs:qword_140835040                                       ; +0x41, 0x140340671\ncvtss2sd xmm0, xmm1                                                    ; +0x49, 0x140340679\naddsd   xmm0, qword ptr [rbx+3350h]                                    ; +0x4d, 0x14034067d\ncvtpd2ps xmm0, xmm0                                                    ; +0x55, 0x140340685\ncvtps2pd xmm6, xmm0                                                    ; +0x59, 0x140340689\nmovaps  xmm1, xmm6                                                     ; +0x5c, 0x14034068c\ndivsd   xmm1, xmm7                                                     ; +0x5f, 0x14034068f\ncvtpd2ps xmm0, xmm1; X                                                 ; +0x63, 0x140340693\ncall    cs:__imp_roundf                                                ; +0x67, 0x140340697\ncvttss2si eax, xmm0                                                    ; +0x6d, 0x14034069d\nxorps   xmm0, xmm0                                                     ; +0x71, 0x1403406a1\ncvtsi2sd xmm0, eax                                                     ; +0x74, 0x1403406a4\nmulsd   xmm0, xmm7                                                     ; +0x78, 0x1403406a8\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x7c, 0x1403406ac\nsubsd   xmm6, xmm0                                                     ; +0x81, 0x1403406b1\nmovsd   qword ptr [rbx+3350h], xmm6                                    ; +0x85, 0x1403406b5\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x8d, 0x1403406bd\nadd     rsp, 40h                                                       ; +0x92, 0x1403406c2\npop     rbx                                                            ; +0x96, 0x1403406c6\nretn                                                                   ; +0x97, 0x1403406c7", "xrefs": ["GJBaseGameLayer::update @ 0x1403407e7", "LevelEditorLayer::updateEditor @ 0x1403f5ffd", "<???> @ 0x14091fd6c"], "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"}