{"type": "func", "start": 5372094480, "end": 5372094879, "name": "GJBaseGameLayer::removeReleasedButtons", "pseudocode": "// \n// GJBaseGameLayer::removeReleasedButtons from 0x14033a810 to 0x14033a99f (399 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::resetLevel @ 0x140519a2b\n// > <???> @ 0x1408b71c0\n// > <???> @ 0x1408b71d0\n// > <???> @ 0x14091fb08\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:37 +0000\n// \n\nunsigned __int64 __fastcall GJBaseGameLayer::removeReleasedButtons(__int64 a1)\n{\n  __int64 v1; // r10\n  __int64 v2; // r9\n  unsigned __int64 v3; // rbx\n  unsigned __int64 result; // rax\n  __int64 v6; // rsi\n  int v7; // r8d\n  char v8; // bp\n  __int64 v9; // r11\n  unsigned __int64 v10; // rdx\n  _BYTE *v11; // rax\n  unsigned __int64 v12; // rax\n\n  v1 = *(_QWORD *)(a1 + 13320);\n  v2 = *(_QWORD *)(a1 + 13312);\n  v3 = 0;\n  for ( result = (unsigned __int64)((unsigned __int128)((v1 - v2) * (__int128)0x2AAAAAAAAAAAAAABLL) >> 64) >> 63;\n        v3 < (v1 - v2) / 24;\n        result = (unsigned __int64)((unsigned __int128)((v1 - v2) * (__int128)0x2AAAAAAAAAAAAAABLL) >> 64) >> 63 )\n  {\n    v6 = 24 * v3;\n    if ( *(_BYTE *)(24 * v3 + v2 + 4) )\n    {\n      v7 = v3 + 1;\n      v8 = 0;\n      v9 = v2;\n      v10 = (v1 - v2) / 24;\n      if ( (int)v3 + 1 < v10 )\n      {\n        v11 = (_BYTE *)(v2 + 24LL * v7 + 4);\n        while ( *(_DWORD *)(v6 + v2) != *((_DWORD *)v11 - 1) || *(_BYTE *)(v6 + v2 + 5) != v11[1] || *v11 )\n        {\n          ++v7;\n          v11 += 24;\n          if ( v7 >= v10 )\n            goto LABEL_11;\n        }\n        memmove(\n          (void *)(v2 + 24LL * v7),\n          (const void *)(v2 + 24LL * v7 + 24),\n          *(_QWORD *)(a1 + 13320) - (v2 + 24LL * v7 + 24));\n        *(_QWORD *)(a1 + 13320) -= 24LL;\n        memmove(\n          (void *)(v6 + *(_QWORD *)(a1 + 13312)),\n          (const void *)(v6 + *(_QWORD *)(a1 + 13312) + 24),\n          *(_QWORD *)(a1 + 13320) - (v6 + *(_QWORD *)(a1 + 13312) + 24));\n        *(_QWORD *)(a1 + 13320) -= 24LL;\n        v8 = 1;\n        v9 = *(_QWORD *)(a1 + 13312);\n      }\nLABEL_11:\n      v12 = v3 + 1;\n      v2 = v9;\n      if ( v8 )\n        v12 = v3;\n      v3 = v12;\n    }\n    else\n    {\n      ++v3;\n    }\n    v1 = *(_QWORD *)(a1 + 13320);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::removeReleasedButtons from 0x14033a810 to 0x14033a99f (399 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::resetLevel @ 0x140519a2b\n; > <???> @ 0x1408b71c0\n; > <???> @ 0x1408b71d0\n; > <???> @ 0x14091fb08\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:37 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14033a810\nmov     [rsp+arg_18], rdi                                              ; +0x5, 0x14033a815\npush    r14                                                            ; +0xa, 0x14033a81a\nsub     rsp, 20h                                                       ; +0xc, 0x14033a81c\nmov     r10, [rcx+3408h]                                               ; +0x10, 0x14033a820\nmov     r14, 2AAAAAAAAAAAAAABh                                         ; +0x17, 0x14033a827\nmov     r9, [rcx+3400h]                                                ; +0x21, 0x14033a831\nmov     rdx, r10                                                       ; +0x28, 0x14033a838\nsub     rdx, r9                                                        ; +0x2b, 0x14033a83b\nmov     rax, r14                                                       ; +0x2e, 0x14033a83e\nimul    rdx                                                            ; +0x31, 0x14033a841\nxor     ebx, ebx                                                       ; +0x34, 0x14033a844\nmov     rdi, rcx                                                       ; +0x36, 0x14033a846\nsar     rdx, 2                                                         ; +0x39, 0x14033a849\nmov     rax, rdx                                                       ; +0x3d, 0x14033a84d\nshr     rax, 3Fh                                                       ; +0x40, 0x14033a850\nadd     rdx, rax                                                       ; +0x44, 0x14033a854\njz      loc_14033A98E                                                  ; +0x47, 0x14033a857\nmov     [rsp+28h+arg_8], rsi                                           ; +0x4d, 0x14033a85d\nmov     [rsp+28h+arg_0], rbp                                           ; +0x52, 0x14033a862\nnop     word ptr [rax+rax+00000000h]                                   ; +0x57, 0x14033a867\nlea     rax, [rbx+rbx*2]                                               ; +0x60, 0x14033a870\nlea     rsi, ds:0[rax*8]                                               ; +0x64, 0x14033a874\ncmp     byte ptr [rsi+r9+4], 0                                         ; +0x6c, 0x14033a87c\njz      loc_14033A957                                                  ; +0x72, 0x14033a882\nsub     r10, r9                                                        ; +0x78, 0x14033a888\nlea     r8d, [rbx+1]                                                   ; +0x7b, 0x14033a88b\nmov     rax, r14                                                       ; +0x7f, 0x14033a88f\nxor     bpl, bpl                                                       ; +0x82, 0x14033a892\nimul    r10                                                            ; +0x85, 0x14033a895\nmov     r11, r9                                                        ; +0x88, 0x14033a898\nsar     rdx, 2                                                         ; +0x8b, 0x14033a89b\nmov     rax, rdx                                                       ; +0x8f, 0x14033a89f\nshr     rax, 3Fh                                                       ; +0x92, 0x14033a8a2\nadd     rdx, rax                                                       ; +0x96, 0x14033a8a6\nmovsxd  rax, r8d                                                       ; +0x99, 0x14033a8a9\ncmp     rax, rdx                                                       ; +0x9c, 0x14033a8ac\njnb     loc_14033A944                                                  ; +0x9f, 0x14033a8af\nmov     r10d, [rsi+r9]                                                 ; +0xa5, 0x14033a8b5\nlea     rax, [rax+rax*2]                                               ; +0xa9, 0x14033a8b9\nlea     rax, ds:4[rax*8]                                               ; +0xad, 0x14033a8bd\nadd     rax, r9                                                        ; +0xb5, 0x14033a8c5\ncmp     r10d, [rax-4]                                                  ; +0xb8, 0x14033a8c8\njnz     short loc_14033A8DE                                            ; +0xbc, 0x14033a8cc\nmovzx   ecx, byte ptr [rax+1]                                          ; +0xbe, 0x14033a8ce\ncmp     [rsi+r9+5], cl                                                 ; +0xc2, 0x14033a8d2\njnz     short loc_14033A8DE                                            ; +0xc7, 0x14033a8d7\ncmp     [rax], bpl                                                     ; +0xc9, 0x14033a8d9\njz      short loc_14033A8EF                                            ; +0xcc, 0x14033a8dc\ninc     r8d                                                            ; +0xce, 0x14033a8de\nadd     rax, 18h                                                       ; +0xd1, 0x14033a8e1\nmovsxd  rcx, r8d                                                       ; +0xd5, 0x14033a8e5\ncmp     rcx, rdx                                                       ; +0xd8, 0x14033a8e8\njb      short loc_14033A8C8                                            ; +0xdb, 0x14033a8eb\njmp     short loc_14033A944                                            ; +0xdd, 0x14033a8ed\nmovsxd  rax, r8d                                                       ; +0xdf, 0x14033a8ef\nmov     r8, [rdi+3408h]                                                ; +0xe2, 0x14033a8f2\nlea     rcx, [rax+rax*2]                                               ; +0xe9, 0x14033a8f9\nlea     rcx, [r9+rcx*8]; void *                                        ; +0xed, 0x14033a8fd\nlea     rdx, [rcx+18h]; Src                                            ; +0xf1, 0x14033a901\nsub     r8, rdx; Size                                                  ; +0xf5, 0x14033a905\ncall    memmove                                                        ; +0xf8, 0x14033a908\nadd     qword ptr [rdi+3408h], 0FFFFFFFFFFFFFFE8h                      ; +0xfd, 0x14033a90d\nmov     rcx, [rdi+3400h]                                               ; +0x105, 0x14033a915\nmov     r8, [rdi+3408h]                                                ; +0x10c, 0x14033a91c\nadd     rcx, rsi; void *                                               ; +0x113, 0x14033a923\nlea     rdx, [rcx+18h]; Src                                            ; +0x116, 0x14033a926\nsub     r8, rdx; Size                                                  ; +0x11a, 0x14033a92a\ncall    memmove                                                        ; +0x11d, 0x14033a92d\nadd     qword ptr [rdi+3408h], 0FFFFFFFFFFFFFFE8h                      ; +0x122, 0x14033a932\nmov     bpl, 1                                                         ; +0x12a, 0x14033a93a\nmov     r11, [rdi+3400h]                                               ; +0x12d, 0x14033a93d\nlea     rax, [rbx+1]                                                   ; +0x134, 0x14033a944\ntest    bpl, bpl                                                       ; +0x138, 0x14033a948\nmov     r9, r11                                                        ; +0x13b, 0x14033a94b\ncmovnz  rax, rbx                                                       ; +0x13e, 0x14033a94e\nmov     rbx, rax                                                       ; +0x142, 0x14033a952\njmp     short loc_14033A95A                                            ; +0x145, 0x14033a955\ninc     rbx                                                            ; +0x147, 0x14033a957\nmov     r10, [rdi+3408h]                                               ; +0x14a, 0x14033a95a\nmov     rax, r14                                                       ; +0x151, 0x14033a961\nmov     rcx, r10                                                       ; +0x154, 0x14033a964\nsub     rcx, r9                                                        ; +0x157, 0x14033a967\nimul    rcx                                                            ; +0x15a, 0x14033a96a\nsar     rdx, 2                                                         ; +0x15d, 0x14033a96d\nmov     rax, rdx                                                       ; +0x161, 0x14033a971\nshr     rax, 3Fh                                                       ; +0x164, 0x14033a974\nadd     rdx, rax                                                       ; +0x168, 0x14033a978\ncmp     rbx, rdx                                                       ; +0x16b, 0x14033a97b\njb      loc_14033A870                                                  ; +0x16e, 0x14033a97e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x174, 0x14033a984\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x179, 0x14033a989\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x17e, 0x14033a98e\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x183, 0x14033a993\nadd     rsp, 20h                                                       ; +0x188, 0x14033a998\npop     r14                                                            ; +0x18c, 0x14033a99c\nretn                                                                   ; +0x18e, 0x14033a99e", "xrefs": ["PlayLayer::resetLevel @ 0x140519a2b", "<???> @ 0x1408b71c0", "<???> @ 0x1408b71d0", "<???> @ 0x14091fb08"], "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"}