{"type": "func", "start": 4296141840, "end": 4296142194, "name": "GJBaseGameLayer::updateObjectSection", "pseudocode": "// \n// GJBaseGameLayer::updateObjectSection from 0x10011ec10 to 0x10011ed72 (354 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::updateObjectSection @ 0x1000c56ba\n// > <???> @ 0x100abb050\n// > <???> @ 0x100ac5118\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:24:37 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::updateObjectSection(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  double v3; // xmm1_8\n  double v4; // xmm0_8\n  int v5; // ecx\n  double v6; // xmm1_8\n  float v7; // xmm2_4\n  float v8; // xmm0_4\n  int v9; // eax\n\n  result = *(unsigned int *)(a2 + 628);\n  if ( (int)result < 0 )\n    return result;\n  v3 = *(double *)(a2 + 944);\n  v4 = 0.0;\n  if ( v3 <= 0.0 )\n  {\n    v5 = (int)0.0;\n    v6 = *(double *)(a2 + 952);\n    if ( v6 <= 0.0 )\n      goto LABEL_4;\nLABEL_11:\n    v8 = *(float *)(a1 + 13636);\n    if ( v6 >= 10000000.0 )\n    {\n      v4 = (float)(v8 * 10000000.0);\n      if ( (_DWORD)result != v5 )\n        goto LABEL_15;\n    }\n    else\n    {\n      v4 = v6 * v8;\n      if ( (_DWORD)result != v5 )\n        goto LABEL_15;\n    }\nLABEL_5:\n    result = (unsigned int)(int)v4;\n    if ( *(_DWORD *)(a2 + 632) == (_DWORD)result )\n      return result;\n    goto LABEL_15;\n  }\n  v7 = *(float *)(a1 + 13632);\n  if ( v3 >= 10000000.0 )\n  {\n    v5 = (int)(float)(v7 * 10000000.0);\n    v6 = *(double *)(a2 + 952);\n    if ( v6 > 0.0 )\n      goto LABEL_11;\n  }\n  else\n  {\n    v5 = (int)(v3 * v7);\n    v6 = *(double *)(a2 + 952);\n    if ( v6 > 0.0 )\n      goto LABEL_11;\n  }\nLABEL_4:\n  if ( (_DWORD)result == v5 )\n    goto LABEL_5;\nLABEL_15:\n  GJBaseGameLayer::removeObjectFromSection(a1, a2);\n  result = (*(__int64 (__fastcall **)(__int64, __int64, double))(*(_QWORD *)a1 + 1344LL))(a1, a2, v4);\n  if ( *(_BYTE *)(a2 + 773) == 1 )\n  {\n    v9 = *(_DWORD *)(a2 + 628);\n    if ( v9 > *(_DWORD *)(a1 + 12224)\n      || v9 < *(_DWORD *)(a1 + 12220)\n      || (result = *(unsigned int *)(a2 + 632), (int)result > *(_DWORD *)(a1 + 12232))\n      || (int)result < *(_DWORD *)(a1 + 12228) )\n    {\n      result = cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3992), a2, *(unsigned int *)(a2 + 916));\n      *(_BYTE *)(a2 + 998) = 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateObjectSection from 0x10011ec10 to 0x10011ed72 (354 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::updateObjectSection @ 0x1000c56ba\n; > <???> @ 0x100abb050\n; > <???> @ 0x100ac5118\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:24:37 +0000\n; \nmov     eax, [rsi+274h]                                                ; +0x0, 0x10011ec10\ntest    eax, eax                                                       ; +0x6, 0x10011ec16\njs      locret_10011ED71                                               ; +0x8, 0x10011ec18\npush    rbp                                                            ; +0xe, 0x10011ec1e\nmov     rbp, rsp                                                       ; +0xf, 0x10011ec1f\npush    r14                                                            ; +0x12, 0x10011ec22\npush    rbx                                                            ; +0x14, 0x10011ec24\nmov     rbx, rsi                                                       ; +0x15, 0x10011ec25\nmov     r14, rdi                                                       ; +0x18, 0x10011ec28\nmovsd   xmm1, qword ptr [rsi+3B0h]                                     ; +0x1b, 0x10011ec2b\nxorpd   xmm0, xmm0                                                     ; +0x23, 0x10011ec33\nucomisd xmm0, xmm1                                                     ; +0x27, 0x10011ec37\nxorpd   xmm2, xmm2                                                     ; +0x2b, 0x10011ec3b\njb      short loc_10011EC70                                            ; +0x2f, 0x10011ec3f\ncvttsd2si ecx, xmm2                                                    ; +0x31, 0x10011ec41\nmovsd   xmm1, qword ptr [rbx+3B8h]                                     ; +0x35, 0x10011ec45\nucomisd xmm0, xmm1                                                     ; +0x3d, 0x10011ec4d\njb      short loc_10011ECC1                                            ; +0x41, 0x10011ec51\ncmp     eax, ecx                                                       ; +0x43, 0x10011ec53\njnz     loc_10011ECFE                                                  ; +0x45, 0x10011ec55\ncvttsd2si eax, xmm0                                                    ; +0x4b, 0x10011ec5b\ncmp     [rbx+278h], eax                                                ; +0x4f, 0x10011ec5f\njnz     loc_10011ECFE                                                  ; +0x55, 0x10011ec65\njmp     loc_10011ED6D                                                  ; +0x5b, 0x10011ec6b\nucomisd xmm1, cs:qword_100A04118                                       ; +0x60, 0x10011ec70\nmovss   xmm2, dword ptr [r14+3540h]                                    ; +0x68, 0x10011ec78\njnb     short loc_10011ECA3                                            ; +0x71, 0x10011ec81\ncvtss2sd xmm2, xmm2                                                    ; +0x73, 0x10011ec83\nmulsd   xmm1, xmm2                                                     ; +0x77, 0x10011ec87\nmovapd  xmm2, xmm1                                                     ; +0x7b, 0x10011ec8b\ncvttsd2si ecx, xmm2                                                    ; +0x7f, 0x10011ec8f\nmovsd   xmm1, qword ptr [rbx+3B8h]                                     ; +0x83, 0x10011ec93\nucomisd xmm0, xmm1                                                     ; +0x8b, 0x10011ec9b\njnb     short loc_10011EC53                                            ; +0x8f, 0x10011ec9f\njmp     short loc_10011ECC1                                            ; +0x91, 0x10011eca1\nmulss   xmm2, cs:dword_100A0419C                                       ; +0x93, 0x10011eca3\ncvtss2sd xmm2, xmm2                                                    ; +0x9b, 0x10011ecab\ncvttsd2si ecx, xmm2                                                    ; +0x9f, 0x10011ecaf\nmovsd   xmm1, qword ptr [rbx+3B8h]                                     ; +0xa3, 0x10011ecb3\nucomisd xmm0, xmm1                                                     ; +0xab, 0x10011ecbb\njnb     short loc_10011EC53                                            ; +0xaf, 0x10011ecbf\nucomisd xmm1, cs:qword_100A04118                                       ; +0xb1, 0x10011ecc1\nmovss   xmm0, dword ptr [r14+3544h]                                    ; +0xb9, 0x10011ecc9\njnb     short loc_10011ECEA                                            ; +0xc2, 0x10011ecd2\ncvtss2sd xmm0, xmm0                                                    ; +0xc4, 0x10011ecd4\nmulsd   xmm1, xmm0                                                     ; +0xc8, 0x10011ecd8\nmovapd  xmm0, xmm1                                                     ; +0xcc, 0x10011ecdc\ncmp     eax, ecx                                                       ; +0xd0, 0x10011ece0\njz      loc_10011EC5B                                                  ; +0xd2, 0x10011ece2\njmp     short loc_10011ECFE                                            ; +0xd8, 0x10011ece8\nmulss   xmm0, cs:dword_100A0419C                                       ; +0xda, 0x10011ecea\ncvtss2sd xmm0, xmm0                                                    ; +0xe2, 0x10011ecf2\ncmp     eax, ecx                                                       ; +0xe6, 0x10011ecf6\njz      loc_10011EC5B                                                  ; +0xe8, 0x10011ecf8\nmov     rdi, r14                                                       ; +0xee, 0x10011ecfe\nmov     rsi, rbx                                                       ; +0xf1, 0x10011ed01\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0xf4, 0x10011ed04\nmov     rax, [r14]                                                     ; +0xf9, 0x10011ed09\nmov     rdi, r14                                                       ; +0xfc, 0x10011ed0c\nmov     rsi, rbx                                                       ; +0xff, 0x10011ed0f\ncall    qword ptr [rax+540h]                                           ; +0x102, 0x10011ed12\ncmp     byte ptr [rbx+305h], 1                                         ; +0x108, 0x10011ed18\njnz     short loc_10011ED6D                                            ; +0x10f, 0x10011ed1f\nmov     eax, [rbx+274h]                                                ; +0x111, 0x10011ed21\ncmp     eax, [r14+2FC0h]                                               ; +0x117, 0x10011ed27\njg      short loc_10011ED51                                            ; +0x11e, 0x10011ed2e\ncmp     eax, [r14+2FBCh]                                               ; +0x120, 0x10011ed30\njl      short loc_10011ED51                                            ; +0x127, 0x10011ed37\nmov     eax, [rbx+278h]                                                ; +0x129, 0x10011ed39\ncmp     eax, [r14+2FC8h]                                               ; +0x12f, 0x10011ed3f\njg      short loc_10011ED51                                            ; +0x136, 0x10011ed46\ncmp     eax, [r14+2FC4h]                                               ; +0x138, 0x10011ed48\njge     short loc_10011ED6D                                            ; +0x13f, 0x10011ed4f\nmov     rdi, [r14+0F98h]                                               ; +0x141, 0x10011ed51\nmov     edx, [rbx+394h]                                                ; +0x148, 0x10011ed58\nmov     rsi, rbx                                                       ; +0x14e, 0x10011ed5e\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x151, 0x10011ed61\nmov     byte ptr [rbx+3E6h], 1                                         ; +0x156, 0x10011ed66\npop     rbx                                                            ; +0x15d, 0x10011ed6d\npop     r14                                                            ; +0x15e, 0x10011ed6e\npop     rbp                                                            ; +0x160, 0x10011ed70\nretn                                                                   ; +0x161, 0x10011ed71", "xrefs": ["LevelEditorLayer::updateObjectSection @ 0x1000c56ba", "<???> @ 0x100abb050", "<???> @ 0x100ac5118"], "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"}