{"type": "func", "start": 5372058624, "end": 5372059224, "name": "GJBaseGameLayer::processAreaActions", "pseudocode": "// \n// GJBaseGameLayer::processAreaActions from 0x140331c00 to 0x140331e58 (600 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::processMoveActionsStep @ 0x14033439b\n// > <???> @ 0x1408b6718\n// > <???> @ 0x1408b6768\n// > <???> @ 0x1408b6778\n// > <???> @ 0x14091f61c\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\n_UNKNOWN **__fastcall GJBaseGameLayer::processAreaActions(__int64 a1, float a2, char a3)\n{\n  _UNKNOWN **result; // rax\n  int v6; // esi\n  int v7; // ebp\n  __int64 v8; // r14\n  __int64 v9; // rdi\n  int *v10; // rdi\n  int v11; // ebp\n  int v12; // ecx\n  __int64 v13; // r14\n  __int64 v14; // rdx\n  __int64 v15; // rdx\n  __int64 v16; // rcx\n  double v17; // xmm0_8\n  double v18; // xmm1_8\n  _UNKNOWN *retaddr; // [rsp+68h] [rbp+0h] BYREF\n  __int64 v20; // [rsp+70h] [rbp+8h] BYREF\n\n  result = &retaddr;\n  if ( !*(_BYTE *)(a1 + 13085) )\n  {\n    *(_DWORD *)(a1 + 996) = *(_DWORD *)(a1 + 992) - 1;\n    GJBaseGameLayer::processAreaEffects(a1, (__int64 *)(a1 + 1672), 2u, a2, a3);\n    GJBaseGameLayer::processAreaEffects(a1, (__int64 *)(a1 + 1648), 1u, a2, a3);\n    GJBaseGameLayer::processAreaEffects(a1, (__int64 *)(a1 + 1624), 0, a2, a3);\n    v6 = 0;\n    v7 = 0;\n    if ( *(int *)(a1 + 3848) > 0 )\n    {\n      v8 = 0;\n      while ( 1 )\n      {\n        v9 = *(_QWORD *)(v8 + *(_QWORD *)(a1 + 3680));\n        if ( *(_DWORD *)(v9 + 1248) < *(_DWORD *)(a1 + 992) )\n          break;\n        if ( a3 )\n          goto LABEL_8;\nLABEL_9:\n        ++v7;\n        v8 += 8;\n        if ( v7 >= *(_DWORD *)(a1 + 3848) )\n          goto LABEL_10;\n      }\n      *(_BYTE *)(v9 + 848) = 1;\n      *(_WORD *)(v9 + 872) = 257;\n      if ( GJBaseGameLayer::resetAreaObjectValues(a1, v9, 0) )\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1216LL))(a1, v9);\nLABEL_8:\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1328LL))(v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1304LL))(v9);\n      goto LABEL_9;\n    }\nLABEL_10:\n    result = (_UNKNOWN **)*(unsigned int *)(a1 + 3844);\n    v10 = (int *)(a1 + 3848);\n    v11 = 0;\n    *(_DWORD *)(a1 + 3848) = 0;\n    if ( (int)result > 0 )\n    {\n      v12 = 0;\n      v13 = 0;\n      do\n      {\n        v14 = *(_QWORD *)(v13 + *(_QWORD *)(a1 + 3656));\n        v20 = v14;\n        if ( *(_DWORD *)(a1 + 3868) > v12 )\n        {\n          *(_QWORD *)(*(_QWORD *)(a1 + 3680) + 8LL * v12) = v14;\n        }\n        else\n        {\n          sub_1400BD3C0((const void **)(a1 + 3680), &v20);\n          ++*(_DWORD *)(a1 + 3868);\n        }\n        ++*v10;\n        ++v11;\n        result = (_UNKNOWN **)*(unsigned int *)(a1 + 3844);\n        v13 += 8;\n        v12 = *v10;\n      }\n      while ( v11 < (int)result );\n    }\n    if ( *(_BYTE *)(a1 + 12905) && (int)result > 0 )\n    {\n      v15 = 0;\n      do\n      {\n        v15 += 8;\n        ++v6;\n        v16 = *(_QWORD *)(v15 + *(_QWORD *)(a1 + 3656) - 8);\n        v17 = *(double *)(v16 + 952);\n        v18 = *(double *)(v16 + 960);\n        *(_DWORD *)(v16 + 996) = *(_DWORD *)(v16 + 1160);\n        result = (_UNKNOWN **)*(unsigned int *)(v16 + 1164);\n        *(_DWORD *)(v16 + 1000) = (_DWORD)result;\n        *(_WORD *)(v16 + 872) = 257;\n        *(float *)(v16 + 1232) = v17;\n        *(float *)(v16 + 1236) = v18;\n      }\n      while ( v6 < *(_DWORD *)(a1 + 3844) );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::processAreaActions from 0x140331c00 to 0x140331e58 (600 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::processMoveActionsStep @ 0x14033439b\n; > <???> @ 0x1408b6718\n; > <???> @ 0x1408b6768\n; > <???> @ 0x1408b6778\n; > <???> @ 0x14091f61c\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     rax, rsp                                                       ; +0x0, 0x140331c00\npush    rbx                                                            ; +0x3, 0x140331c03\npush    r13                                                            ; +0x4, 0x140331c04\nsub     rsp, 58h                                                       ; +0x6, 0x140331c06\ncmp     byte ptr [rcx+331Dh], 0                                        ; +0xa, 0x140331c0a\nmovzx   r13d, r8b                                                      ; +0x11, 0x140331c11\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x15, 0x140331c15\nmov     rbx, rcx                                                       ; +0x19, 0x140331c19\nmovaps  xmm6, xmm1                                                     ; +0x1c, 0x140331c1c\njnz     loc_140331E4B                                                  ; +0x1f, 0x140331c1f\nmov     [rax+10h], rbp                                                 ; +0x25, 0x140331c25\nlea     rdx, [rcx+688h]                                                ; +0x29, 0x140331c29\nmov     [rax+18h], rsi                                                 ; +0x30, 0x140331c30\nmovaps  xmm3, xmm1                                                     ; +0x34, 0x140331c34\nmov     [rax-18h], r12                                                 ; +0x37, 0x140331c37\nmov     [rax-28h], r15                                                 ; +0x3b, 0x140331c3b\nmov     [rax+20h], rdi                                                 ; +0x3f, 0x140331c3f\nmov     [rax-20h], r14                                                 ; +0x43, 0x140331c43\nmov     eax, [rcx+3E0h]                                                ; +0x47, 0x140331c47\ndec     eax                                                            ; +0x4d, 0x140331c4d\nmov     [rsp+68h+var_48], r8b                                          ; +0x4f, 0x140331c4f\nmov     r8d, 2                                                         ; +0x54, 0x140331c54\nmov     [rcx+3E4h], eax                                                ; +0x5a, 0x140331c5a\ncall    GJBaseGameLayer__processAreaEffects                            ; +0x60, 0x140331c60\nlea     rdx, [rbx+670h]                                                ; +0x65, 0x140331c65\nmov     [rsp+68h+var_48], r13b                                         ; +0x6c, 0x140331c6c\nmovaps  xmm3, xmm6                                                     ; +0x71, 0x140331c71\nmov     r8d, 1                                                         ; +0x74, 0x140331c74\nmov     rcx, rbx                                                       ; +0x7a, 0x140331c7a\ncall    GJBaseGameLayer__processAreaEffects                            ; +0x7d, 0x140331c7d\nlea     rdx, [rbx+658h]                                                ; +0x82, 0x140331c82\nmov     [rsp+68h+var_48], r13b                                         ; +0x89, 0x140331c89\nmovaps  xmm3, xmm6                                                     ; +0x8e, 0x140331c8e\nxor     r8d, r8d                                                       ; +0x91, 0x140331c91\nmov     rcx, rbx                                                       ; +0x94, 0x140331c94\ncall    GJBaseGameLayer__processAreaEffects                            ; +0x97, 0x140331c97\nxor     esi, esi                                                       ; +0x9c, 0x140331c9c\nmov     ebp, esi                                                       ; +0x9e, 0x140331c9e\ncmp     [rbx+0F08h], esi                                               ; +0xa0, 0x140331ca0\njle     loc_140331D3D                                                  ; +0xa6, 0x140331ca6\nmovss   xmm6, cs:flt_140835080                                         ; +0xac, 0x140331cac\nmov     r14d, esi                                                      ; +0xb4, 0x140331cb4\nnop     word ptr [rax+rax+00000000h]                                   ; +0xb7, 0x140331cb7\nmov     rax, [rbx+0E60h]                                               ; +0xc0, 0x140331cc0\nmov     rdi, [r14+rax]                                                 ; +0xc7, 0x140331cc7\nmov     eax, [rbx+3E0h]                                                ; +0xcb, 0x140331ccb\ncmp     [rdi+4E0h], eax                                                ; +0xd1, 0x140331cd1\njge     short loc_140331D0C                                            ; +0xd7, 0x140331cd7\nxor     r8d, r8d                                                       ; +0xd9, 0x140331cd9\nmov     byte ptr [rdi+350h], 1                                         ; +0xdc, 0x140331cdc\nmov     rdx, rdi                                                       ; +0xe3, 0x140331ce3\nmov     word ptr [rdi+368h], 101h                                      ; +0xe6, 0x140331ce6\nmov     rcx, rbx                                                       ; +0xef, 0x140331cef\ncall    GJBaseGameLayer__resetAreaObjectValues                         ; +0xf2, 0x140331cf2\ntest    al, al                                                         ; +0xf7, 0x140331cf7\njz      short loc_140331D11                                            ; +0xf9, 0x140331cf9\nmov     rax, [rbx]                                                     ; +0xfb, 0x140331cfb\nmov     rdx, rdi                                                       ; +0xfe, 0x140331cfe\nmov     rcx, rbx                                                       ; +0x101, 0x140331d01\ncall    qword ptr [rax+4C0h]                                           ; +0x104, 0x140331d04\njmp     short loc_140331D11                                            ; +0x10a, 0x140331d0a\ntest    r13b, r13b                                                     ; +0x10c, 0x140331d0c\njz      short loc_140331D2F                                            ; +0x10f, 0x140331d0f\nmov     rax, [rdi]                                                     ; +0x111, 0x140331d11\nxorps   xmm1, xmm1                                                     ; +0x114, 0x140331d14\nmov     rcx, rdi                                                       ; +0x117, 0x140331d17\ncall    qword ptr [rax+530h]                                           ; +0x11a, 0x140331d1a\nmov     rax, [rdi]                                                     ; +0x120, 0x140331d20\nmovaps  xmm1, xmm6                                                     ; +0x123, 0x140331d23\nmov     rcx, rdi                                                       ; +0x126, 0x140331d26\ncall    qword ptr [rax+518h]                                           ; +0x129, 0x140331d29\ninc     ebp                                                            ; +0x12f, 0x140331d2f\nadd     r14, 8                                                         ; +0x131, 0x140331d31\ncmp     ebp, [rbx+0F08h]                                               ; +0x135, 0x140331d35\njl      short loc_140331CC0                                            ; +0x13b, 0x140331d3b\nmov     eax, [rbx+0F04h]                                               ; +0x13d, 0x140331d3d\nlea     rdi, [rbx+0F08h]                                               ; +0x143, 0x140331d43\nmov     r12, [rsp+68h+var_18]                                          ; +0x14a, 0x140331d4a\nmov     ebp, esi                                                       ; +0x14f, 0x140331d4f\nmov     [rbx+0F08h], esi                                               ; +0x151, 0x140331d51\ntest    eax, eax                                                       ; +0x157, 0x140331d57\njle     short loc_140331DB3                                            ; +0x159, 0x140331d59\nmov     ecx, esi                                                       ; +0x15b, 0x140331d5b\nmov     r14, rsi                                                       ; +0x15d, 0x140331d5d\nmov     rax, [rbx+0E48h]                                               ; +0x160, 0x140331d60\nmov     rdx, [r14+rax]                                                 ; +0x167, 0x140331d67\nmov     [rsp+68h+arg_0], rdx                                           ; +0x16b, 0x140331d6b\ncmp     [rbx+0F1Ch], ecx                                               ; +0x170, 0x140331d70\njg      short loc_140331D91                                            ; +0x176, 0x140331d76\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x178, 0x140331d78\nlea     rcx, [rbx+0E60h]                                               ; +0x17d, 0x140331d7d\ncall    sub_1400BD3C0                                                  ; +0x184, 0x140331d84\ninc     dword ptr [rbx+0F1Ch]                                          ; +0x189, 0x140331d89\njmp     short loc_140331D9F                                            ; +0x18f, 0x140331d8f\nmov     rax, [rbx+0E60h]                                               ; +0x191, 0x140331d91\nmovsxd  rcx, ecx                                                       ; +0x198, 0x140331d98\nmov     [rax+rcx*8], rdx                                               ; +0x19b, 0x140331d9b\ninc     dword ptr [rdi]                                                ; +0x19f, 0x140331d9f\ninc     ebp                                                            ; +0x1a1, 0x140331da1\nmov     eax, [rbx+0F04h]                                               ; +0x1a3, 0x140331da3\nadd     r14, 8                                                         ; +0x1a9, 0x140331da9\nmov     ecx, [rdi]                                                     ; +0x1ad, 0x140331dad\ncmp     ebp, eax                                                       ; +0x1af, 0x140331daf\njl      short loc_140331D60                                            ; +0x1b1, 0x140331db1\nmov     r15, [rsp+68h+var_28]                                          ; +0x1b3, 0x140331db3\nmov     r14, [rsp+68h+var_20]                                          ; +0x1b8, 0x140331db8\nmov     rdi, [rsp+68h+arg_18]                                          ; +0x1bd, 0x140331dbd\nmov     rbp, [rsp+68h+arg_8]                                           ; +0x1c5, 0x140331dc5\ncmp     [rbx+3269h], sil                                               ; +0x1ca, 0x140331dca\njz      short loc_140331E43                                            ; +0x1d1, 0x140331dd1\ntest    eax, eax                                                       ; +0x1d3, 0x140331dd3\njle     short loc_140331E43                                            ; +0x1d5, 0x140331dd5\nmov     rdx, rsi                                                       ; +0x1d7, 0x140331dd7\nnop     word ptr [rax+rax+00h]                                         ; +0x1da, 0x140331dda\nmov     rax, [rbx+0E48h]                                               ; +0x1e0, 0x140331de0\nlea     rdx, [rdx+8]                                                   ; +0x1e7, 0x140331de7\ninc     esi                                                            ; +0x1eb, 0x140331deb\nmov     rcx, [rdx+rax-8]                                               ; +0x1ed, 0x140331ded\nmov     eax, [rcx+488h]                                                ; +0x1f2, 0x140331df2\nmovsd   xmm0, qword ptr [rcx+3B8h]                                     ; +0x1f8, 0x140331df8\nmovsd   xmm1, qword ptr [rcx+3C0h]                                     ; +0x200, 0x140331e00\nmov     [rcx+3E4h], eax                                                ; +0x208, 0x140331e08\nmov     eax, [rcx+48Ch]                                                ; +0x20e, 0x140331e0e\ncvtpd2ps xmm0, xmm0                                                    ; +0x214, 0x140331e14\nmov     [rcx+3E8h], eax                                                ; +0x218, 0x140331e18\nmov     word ptr [rcx+368h], 101h                                      ; +0x21e, 0x140331e1e\ncvtpd2ps xmm1, xmm1                                                    ; +0x227, 0x140331e27\nmovss   dword ptr [rcx+4D0h], xmm0                                     ; +0x22b, 0x140331e2b\nmovss   dword ptr [rcx+4D4h], xmm1                                     ; +0x233, 0x140331e33\ncmp     esi, [rbx+0F04h]                                               ; +0x23b, 0x140331e3b\njl      short loc_140331DE0                                            ; +0x241, 0x140331e41\nmov     rsi, [rsp+68h+arg_10]                                          ; +0x243, 0x140331e43\nmovaps  xmm6, [rsp+68h+var_38]                                         ; +0x24b, 0x140331e4b\nadd     rsp, 58h                                                       ; +0x250, 0x140331e50\npop     r13                                                            ; +0x254, 0x140331e54\npop     rbx                                                            ; +0x256, 0x140331e56\nretn                                                                   ; +0x257, 0x140331e57", "xrefs": ["GJBaseGameLayer::processMoveActionsStep @ 0x14033439b", "<???> @ 0x1408b6718", "<???> @ 0x1408b6768", "<???> @ 0x1408b6778", "<???> @ 0x14091f61c"], "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"}