{"type": "func", "start": 5372054432, "end": 5372054711, "name": "GJBaseGameLayer::updateObjectSection", "pseudocode": "// \n// GJBaseGameLayer::updateObjectSection from 0x140330ba0 to 0x140330cb7 (279 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x14076b818\n// > <???> @ 0x1407d5e78\n// > <???> @ 0x14091f5d4\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:32 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::updateObjectSection(__int64 a1, __int64 a2)\n{\n  int v4; // ecx\n  double v5; // xmm3_8\n  double v6; // xmm0_8\n  double v7; // xmm2_8\n  float v8; // xmm1_4\n  double v9; // xmm3_8\n  float v10; // xmm1_4\n  int v11; // eax\n  int v12; // eax\n\n  v4 = *(_DWORD *)(a2 + 632);\n  if ( v4 >= 0 )\n  {\n    v5 = *(double *)(a2 + 952);\n    v6 = 0.0;\n    if ( v5 > 0.0 )\n    {\n      v8 = *(float *)(a1 + 14240);\n      if ( v5 < 10000000.0 )\n        v7 = v8 * v5;\n      else\n        v7 = (float)(v8 * 10000000.0);\n    }\n    else\n    {\n      v7 = 0.0;\n    }\n    v9 = *(double *)(a2 + 960);\n    if ( v9 > 0.0 )\n    {\n      v10 = *(float *)(a1 + 14244);\n      if ( v9 < 10000000.0 )\n        v6 = v10 * v9;\n      else\n        v6 = (float)(v10 * 10000000.0);\n    }\n    if ( (int)v7 != v4 || (int)v6 != *(_DWORD *)(a2 + 636) )\n    {\n      GJBaseGameLayer::removeObjectFromSection(a1, a2);\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1192LL))(a1, a2);\n      if ( *(_BYTE *)(a2 + 773) )\n      {\n        v11 = *(_DWORD *)(a2 + 632);\n        if ( v11 > *(_DWORD *)(a1 + 12656)\n          || v11 < *(_DWORD *)(a1 + 12652)\n          || (v12 = *(_DWORD *)(a2 + 636), v12 > *(_DWORD *)(a1 + 12664))\n          || v12 < *(_DWORD *)(a1 + 12660) )\n        {\n          cocos2d::CCDictionary::setObject(\n            *(cocos2d::CCDictionary **)(a1 + 4368),\n            (struct cocos2d::CCObject *)a2,\n            *(unsigned int *)(a2 + 924));\n          *(_BYTE *)(a2 + 1006) = 1;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateObjectSection from 0x140330ba0 to 0x140330cb7 (279 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x14076b818\n; > <???> @ 0x1407d5e78\n; > <???> @ 0x14091f5d4\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:32 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140330ba0\npush    rdi                                                            ; +0x5, 0x140330ba5\nsub     rsp, 20h                                                       ; +0x6, 0x140330ba6\nmov     rdi, rcx                                                       ; +0xa, 0x140330baa\nmov     rbx, rdx                                                       ; +0xd, 0x140330bad\nmov     ecx, [rdx+278h]                                                ; +0x10, 0x140330bb0\ntest    ecx, ecx                                                       ; +0x16, 0x140330bb6\njs      loc_140330CAC                                                  ; +0x18, 0x140330bb8\nmovsd   xmm3, qword ptr [rdx+3B8h]                                     ; +0x1e, 0x140330bbe\nxorps   xmm0, xmm0                                                     ; +0x26, 0x140330bc6\ncomisd  xmm0, xmm3                                                     ; +0x29, 0x140330bc9\nmovsd   xmm4, cs:qword_140835540                                       ; +0x2d, 0x140330bcd\nmovss   xmm5, cs:dword_140835C38                                       ; +0x35, 0x140330bd5\njb      short loc_140330BE4                                            ; +0x3d, 0x140330bdd\nxorps   xmm2, xmm2                                                     ; +0x3f, 0x140330bdf\njmp     short loc_140330C02                                            ; +0x42, 0x140330be2\ncomisd  xmm3, xmm4                                                     ; +0x44, 0x140330be4\nmovss   xmm1, dword ptr [rdi+37A0h]                                    ; +0x48, 0x140330be8\njb      short loc_140330BFB                                            ; +0x50, 0x140330bf0\nmulss   xmm1, xmm5                                                     ; +0x52, 0x140330bf2\ncvtps2pd xmm2, xmm1                                                    ; +0x56, 0x140330bf6\njmp     short loc_140330C02                                            ; +0x59, 0x140330bf9\ncvtps2pd xmm2, xmm1                                                    ; +0x5b, 0x140330bfb\nmulsd   xmm2, xmm3                                                     ; +0x5e, 0x140330bfe\nmovsd   xmm3, qword ptr [rdx+3C0h]                                     ; +0x62, 0x140330c02\ncomisd  xmm0, xmm3                                                     ; +0x6a, 0x140330c0a\njnb     short loc_140330C2E                                            ; +0x6e, 0x140330c0e\ncomisd  xmm3, xmm4                                                     ; +0x70, 0x140330c10\nmovss   xmm1, dword ptr [rdi+37A4h]                                    ; +0x74, 0x140330c14\njb      short loc_140330C27                                            ; +0x7c, 0x140330c1c\nmulss   xmm1, xmm5                                                     ; +0x7e, 0x140330c1e\ncvtps2pd xmm0, xmm1                                                    ; +0x82, 0x140330c22\njmp     short loc_140330C2E                                            ; +0x85, 0x140330c25\ncvtps2pd xmm0, xmm1                                                    ; +0x87, 0x140330c27\nmulsd   xmm0, xmm3                                                     ; +0x8a, 0x140330c2a\ncvttsd2si eax, xmm2                                                    ; +0x8e, 0x140330c2e\ncmp     eax, ecx                                                       ; +0x92, 0x140330c32\njnz     short loc_140330C42                                            ; +0x94, 0x140330c34\ncvttsd2si eax, xmm0                                                    ; +0x96, 0x140330c36\ncmp     eax, [rdx+27Ch]                                                ; +0x9a, 0x140330c3a\njz      short loc_140330CAC                                            ; +0xa0, 0x140330c40\nmov     rcx, rdi                                                       ; +0xa2, 0x140330c42\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0xa5, 0x140330c45\nmov     rax, [rdi]                                                     ; +0xaa, 0x140330c4a\nmov     rdx, rbx                                                       ; +0xad, 0x140330c4d\nmov     rcx, rdi                                                       ; +0xb0, 0x140330c50\ncall    qword ptr [rax+4A8h]                                           ; +0xb3, 0x140330c53\ncmp     byte ptr [rbx+305h], 0                                         ; +0xb9, 0x140330c59\njz      short loc_140330CAC                                            ; +0xc0, 0x140330c60\nmov     eax, [rbx+278h]                                                ; +0xc2, 0x140330c62\ncmp     eax, [rdi+3170h]                                               ; +0xc8, 0x140330c68\njg      short loc_140330C8E                                            ; +0xce, 0x140330c6e\ncmp     eax, [rdi+316Ch]                                               ; +0xd0, 0x140330c70\njl      short loc_140330C8E                                            ; +0xd6, 0x140330c76\nmov     eax, [rbx+27Ch]                                                ; +0xd8, 0x140330c78\ncmp     eax, [rdi+3178h]                                               ; +0xde, 0x140330c7e\njg      short loc_140330C8E                                            ; +0xe4, 0x140330c84\ncmp     eax, [rdi+3174h]                                               ; +0xe6, 0x140330c86\njge     short loc_140330CAC                                            ; +0xec, 0x140330c8c\nmov     r8d, [rbx+39Ch]                                                ; +0xee, 0x140330c8e\nmov     rdx, rbx                                                       ; +0xf5, 0x140330c95\nmov     rcx, [rdi+1110h]                                               ; +0xf8, 0x140330c98\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0xff, 0x140330c9f\nmov     byte ptr [rbx+3EEh], 1                                         ; +0x105, 0x140330ca5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x10c, 0x140330cac\nadd     rsp, 20h                                                       ; +0x111, 0x140330cb1\npop     rdi                                                            ; +0x115, 0x140330cb5\nretn                                                                   ; +0x116, 0x140330cb6", "xrefs": ["<???> @ 0x14076b818", "<???> @ 0x1407d5e78", "<???> @ 0x14091f5d4"], "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"}