{"type": "func", "start": 5371009952, "end": 5371010307, "name": "GJBaseGameLayer::removeReleasedButtons", "pseudocode": "// \n// GJBaseGameLayer::removeReleasedButtons from 0x140231ba0 to 0x140231d03 (355 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::resetLevel @ 0x1403b9978\n// > <???> @ 0x140680f90\n// > <???> @ 0x140680fa0\n// > <???> @ 0x1406cdecc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJBaseGameLayer::removeReleasedButtons(GJBaseGameLayer *a1)\n{\n  std::_Vector_val<std::_Simple_types<PlayerButtonCommand>>::pointer Mylast; // r10\n  std::_Vector_val<std::_Simple_types<PlayerButtonCommand>>::pointer Myfirst; // r9\n  unsigned __int64 v3; // rbx\n  std::_Vector_val<std::_Simple_types<PlayerButtonCommand>>::pointer v5; // r8\n  __int64 v6; // rdi\n  int v7; // r8d\n  unsigned __int64 v8; // rdx\n  std::_Simple_types<PlayerButtonCommand>::value_type *v9; // rax\n\n  Mylast = a1->m_queuedButtons._Mypair._Myval2._Mylast;\n  Myfirst = a1->m_queuedButtons._Mypair._Myval2._Myfirst;\n  v3 = 0;\n  if ( Mylast - Myfirst )\n  {\n    v5 = a1->m_queuedButtons._Mypair._Myval2._Mylast;\n    v6 = 0;\n    do\n    {\n      if ( Myfirst[v6].m_isPush )\n      {\n        v7 = v3 + 1;\n        v8 = Mylast - Myfirst;\n        if ( (int)v3 + 1 < v8 )\n        {\n          v9 = &Myfirst[v7];\n          while ( Myfirst[v6].m_button != v9->m_button || v9->m_isPush )\n          {\n            ++v7;\n            ++v9;\n            if ( v7 >= v8 )\n              goto LABEL_9;\n          }\n          memmove(\n            &Myfirst[v7],\n            &Myfirst[v7 + 1],\n            (char *)a1->m_queuedButtons._Mypair._Myval2._Mylast - (char *)&Myfirst[v7 + 1]);\n          memmove(\n            &a1->m_queuedButtons._Mypair._Myval2._Myfirst[v6],\n            &a1->m_queuedButtons._Mypair._Myval2._Myfirst[v6 + 1],\n            (char *)--a1->m_queuedButtons._Mypair._Myval2._Mylast\n          - (char *)&a1->m_queuedButtons._Mypair._Myval2._Myfirst[v6 + 1]);\n          Mylast = --a1->m_queuedButtons._Mypair._Myval2._Mylast;\n          Myfirst = a1->m_queuedButtons._Mypair._Myval2._Myfirst;\n          goto LABEL_13;\n        }\nLABEL_9:\n        Mylast = a1->m_queuedButtons._Mypair._Myval2._Mylast;\n      }\n      else\n      {\n        Mylast = v5;\n      }\n      ++v3;\n      ++v6;\nLABEL_13:\n      v5 = Mylast;\n    }\n    while ( v3 < Mylast - Myfirst );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeReleasedButtons from 0x140231ba0 to 0x140231d03 (355 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::resetLevel @ 0x1403b9978\n; > <???> @ 0x140680f90\n; > <???> @ 0x140680fa0\n; > <???> @ 0x1406cdecc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140231ba0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140231ba5\npush    rsi                                                            ; +0xa, 0x140231baa\nsub     rsp, 20h                                                       ; +0xb, 0x140231bab\nmov     r10, [rcx+3308h]                                               ; +0xf, 0x140231baf\nmov     rbp, 2AAAAAAAAAAAAAABh                                         ; +0x16, 0x140231bb6\nmov     r9, [rcx+3300h]                                                ; +0x20, 0x140231bc0\nmov     rdx, r10                                                       ; +0x27, 0x140231bc7\nsub     rdx, r9                                                        ; +0x2a, 0x140231bca\nmov     rax, rbp                                                       ; +0x2d, 0x140231bcd\nimul    rdx                                                            ; +0x30, 0x140231bd0\nxor     ebx, ebx                                                       ; +0x33, 0x140231bd3\nmov     rsi, rcx                                                       ; +0x35, 0x140231bd5\nsar     rdx, 2                                                         ; +0x38, 0x140231bd8\nmov     rax, rdx                                                       ; +0x3c, 0x140231bdc\nshr     rax, 3Fh                                                       ; +0x3f, 0x140231bdf\nadd     rdx, rax                                                       ; +0x43, 0x140231be3\njz      loc_140231CF3                                                  ; +0x46, 0x140231be6\nmov     [rsp+28h+arg_0], rdi                                           ; +0x4c, 0x140231bec\nmov     r8, r10                                                        ; +0x51, 0x140231bf1\nmov     edi, ebx                                                       ; +0x54, 0x140231bf4\nnop     word ptr [rax+rax+00000000h]                                   ; +0x56, 0x140231bf6\ncmp     byte ptr [rdi+r9+4], 0                                         ; +0x60, 0x140231c00\njz      loc_140231CBE                                                  ; +0x66, 0x140231c06\nsub     r10, r9                                                        ; +0x6c, 0x140231c0c\nlea     r8d, [rbx+1]                                                   ; +0x6f, 0x140231c0f\nmov     rax, rbp                                                       ; +0x73, 0x140231c13\nimul    r10                                                            ; +0x76, 0x140231c16\nsar     rdx, 2                                                         ; +0x79, 0x140231c19\nmov     rax, rdx                                                       ; +0x7d, 0x140231c1d\nshr     rax, 3Fh                                                       ; +0x80, 0x140231c20\nadd     rdx, rax                                                       ; +0x84, 0x140231c24\nmovsxd  rax, r8d                                                       ; +0x87, 0x140231c27\ncmp     rax, rdx                                                       ; +0x8a, 0x140231c2a\njnb     short loc_140231C5A                                            ; +0x8d, 0x140231c2d\nmov     r10d, [rdi+r9]                                                 ; +0x8f, 0x140231c2f\nlea     rax, [rax+rax*2]                                               ; +0x93, 0x140231c33\nlea     rax, [r9+rax*8]                                                ; +0x97, 0x140231c37\nnop     dword ptr [rax+rax+00h]                                        ; +0x9b, 0x140231c3b\ncmp     r10d, [rax]                                                    ; +0xa0, 0x140231c40\njnz     short loc_140231C4B                                            ; +0xa3, 0x140231c43\ncmp     byte ptr [rax+4], 0                                            ; +0xa5, 0x140231c45\njz      short loc_140231C63                                            ; +0xa9, 0x140231c49\ninc     r8d                                                            ; +0xab, 0x140231c4b\nadd     rax, 18h                                                       ; +0xae, 0x140231c4e\nmovsxd  rcx, r8d                                                       ; +0xb2, 0x140231c52\ncmp     rcx, rdx                                                       ; +0xb5, 0x140231c55\njb      short loc_140231C40                                            ; +0xb8, 0x140231c58\nmov     r10, [rsi+3308h]                                               ; +0xba, 0x140231c5a\njmp     short loc_140231CC1                                            ; +0xc1, 0x140231c61\nmovsxd  rax, r8d                                                       ; +0xc3, 0x140231c63\nmov     r8, [rsi+3308h]                                                ; +0xc6, 0x140231c66\nlea     rcx, [rax+rax*2]                                               ; +0xcd, 0x140231c6d\nlea     rcx, [r9+rcx*8]; void *                                        ; +0xd1, 0x140231c71\nlea     rdx, [rcx+18h]; Src                                            ; +0xd5, 0x140231c75\nsub     r8, rdx; Size                                                  ; +0xd9, 0x140231c79\ncall    memmove                                                        ; +0xdc, 0x140231c7c\nadd     qword ptr [rsi+3308h], 0FFFFFFFFFFFFFFE8h                      ; +0xe1, 0x140231c81\nmov     rcx, [rsi+3300h]                                               ; +0xe9, 0x140231c89\nmov     r8, [rsi+3308h]                                                ; +0xf0, 0x140231c90\nadd     rcx, rdi; void *                                               ; +0xf7, 0x140231c97\nlea     rdx, [rcx+18h]; Src                                            ; +0xfa, 0x140231c9a\nsub     r8, rdx; Size                                                  ; +0xfe, 0x140231c9e\ncall    memmove                                                        ; +0x101, 0x140231ca1\nadd     qword ptr [rsi+3308h], 0FFFFFFFFFFFFFFE8h                      ; +0x106, 0x140231ca6\nmov     r10, [rsi+3308h]                                               ; +0x10e, 0x140231cae\nmov     r9, [rsi+3300h]                                                ; +0x115, 0x140231cb5\njmp     short loc_140231CC8                                            ; +0x11c, 0x140231cbc\nmov     r10, r8                                                        ; +0x11e, 0x140231cbe\ninc     rbx                                                            ; +0x121, 0x140231cc1\nadd     rdi, 18h                                                       ; +0x124, 0x140231cc4\nmov     rcx, r10                                                       ; +0x128, 0x140231cc8\nmov     rax, rbp                                                       ; +0x12b, 0x140231ccb\nsub     rcx, r9                                                        ; +0x12e, 0x140231cce\nmov     r8, r10                                                        ; +0x131, 0x140231cd1\nimul    rcx                                                            ; +0x134, 0x140231cd4\nsar     rdx, 2                                                         ; +0x137, 0x140231cd7\nmov     rax, rdx                                                       ; +0x13b, 0x140231cdb\nshr     rax, 3Fh                                                       ; +0x13e, 0x140231cde\nadd     rdx, rax                                                       ; +0x142, 0x140231ce2\ncmp     rbx, rdx                                                       ; +0x145, 0x140231ce5\njb      loc_140231C00                                                  ; +0x148, 0x140231ce8\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x14e, 0x140231cee\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x153, 0x140231cf3\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x158, 0x140231cf8\nadd     rsp, 20h                                                       ; +0x15d, 0x140231cfd\npop     rsi                                                            ; +0x161, 0x140231d01\nretn                                                                   ; +0x162, 0x140231d02", "xrefs": ["PlayLayer::resetLevel @ 0x1403b9978", "<???> @ 0x140680f90", "<???> @ 0x140680fa0", "<???> @ 0x1406cdecc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}