{"type": "func", "start": 4296168352, "end": 4296168720, "name": "GJBaseGameLayer::claimRotationAction", "pseudocode": "// \n// GJBaseGameLayer::claimRotationAction from 0x1001253a0 to 0x100125510 (368 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processTransformActions @ 0x10012378f\n// > GJBaseGameLayer::processRotationActions @ 0x1001243c7\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:40 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::claimRotationAction(\n        __int64 a1,\n        signed int a2,\n        __int64 a3,\n        float *a4,\n        float *a5,\n        char a6)\n{\n  __int64 result; // rax\n  __int64 v7; // rdi\n  __int64 v8; // r10\n  __int64 v9; // rdi\n  __int64 *v10; // rax\n  __int64 *v11; // rdx\n  __int64 v12; // rsi\n  float v13; // xmm0_4\n  __int64 v14; // rsi\n  float v15; // xmm0_4\n  __int64 v16; // [rsp+8h] [rbp-8h] BYREF\n\n  result = a3 << 32;\n  v16 = (a3 << 32) | (unsigned int)a2;\n  v7 = *(_QWORD *)(a1 + 2152);\n  v8 = *(_QWORD *)(v7 + 1608);\n  if ( !v8 )\n    return result;\n  v9 = v7 + 1600;\n  result = v8;\n  while ( 1 )\n  {\n    if ( *(_DWORD *)(result + 32) > a2 )\n      goto LABEL_4;\n    if ( *(_DWORD *)(result + 32) >= a2 )\n    {\n      if ( *(_DWORD *)(result + 36) > (int)a3 )\n        goto LABEL_4;\n      if ( *(_DWORD *)(result + 36) >= (int)a3 )\n        break;\n    }\n    result += 8;\nLABEL_4:\n    result = *(_QWORD *)result;\n    if ( !result )\n      return result;\n  }\n  while ( 1 )\n  {\n    while ( *(_DWORD *)(v8 + 32) > a2 )\n    {\nLABEL_10:\n      v8 = *(_QWORD *)v8;\n      if ( !v8 )\n        goto LABEL_16;\n    }\n    if ( *(_DWORD *)(v8 + 32) >= a2 )\n      break;\nLABEL_15:\n    v8 = *(_QWORD *)(v8 + 8);\n    if ( !v8 )\nLABEL_16:\n      sub_100056820((__int64)\"map::at:  key not found\");\n  }\n  if ( *(_DWORD *)(v8 + 36) > (int)a3 )\n    goto LABEL_10;\n  if ( *(_DWORD *)(v8 + 36) < (int)a3 )\n    goto LABEL_15;\n  v10 = *(__int64 **)(v8 + 40);\n  v11 = *(__int64 **)(v8 + 48);\n  if ( v10 != v11 )\n  {\n    if ( a6 )\n    {\n      do\n      {\n        v12 = *v10;\n        if ( !*(_BYTE *)(*v10 + 424) )\n        {\n          *(_BYTE *)(v12 + 424) = 1;\n          v13 = *(double *)(v12 + 168) - *(double *)(v12 + 280);\n          *a4 = *a4 + v13;\n          if ( !*(_BYTE *)(v12 + 184) )\n            *a5 = v13 + *a5;\n        }\n        ++v10;\n      }\n      while ( v10 != v11 );\n    }\n    else\n    {\n      do\n      {\n        v14 = *v10;\n        if ( !*(_BYTE *)(*v10 + 424) )\n        {\n          *(_BYTE *)(v14 + 424) = 1;\n          v15 = *(double *)(v14 + 160) - *(double *)(v14 + 272);\n          *a4 = *a4 + v15;\n          if ( !*(_BYTE *)(v14 + 184) )\n            *a5 = v15 + *a5;\n        }\n        ++v10;\n      }\n      while ( v10 != v11 );\n    }\n  }\n  return sub_10014E590(v9, &v16);\n}", "assembly": "; \n; GJBaseGameLayer::claimRotationAction from 0x1001253a0 to 0x100125510 (368 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processTransformActions @ 0x10012378f\n; > GJBaseGameLayer::processRotationActions @ 0x1001243c7\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:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001253a0\nmov     rbp, rsp                                                       ; +0x1, 0x1001253a1\nsub     rsp, 10h                                                       ; +0x4, 0x1001253a4\nmov     rax, rdx                                                       ; +0x8, 0x1001253a8\nshl     rax, 20h                                                       ; +0xb, 0x1001253ab\nmov     r10d, esi                                                      ; +0xf, 0x1001253af\nor      r10, rax                                                       ; +0x12, 0x1001253b2\nmov     [rbp+var_8], r10                                               ; +0x15, 0x1001253b5\nmov     rdi, [rdi+868h]                                                ; +0x19, 0x1001253b9\nmov     r10, [rdi+648h]                                                ; +0x20, 0x1001253c0\ntest    r10, r10                                                       ; +0x27, 0x1001253c7\njz      loc_10012550A                                                  ; +0x2a, 0x1001253ca\nadd     rdi, 640h                                                      ; +0x30, 0x1001253d0\nmov     rax, r10                                                       ; +0x37, 0x1001253d7\njmp     short loc_1001253F0                                            ; +0x3a, 0x1001253da\nalign 20h                                                              ; +0x3c, 0x1001253dc\nadd     rax, 8                                                         ; +0x40, 0x1001253e0\nmov     rax, [rax]                                                     ; +0x44, 0x1001253e4\ntest    rax, rax                                                       ; +0x47, 0x1001253e7\njz      loc_10012550A                                                  ; +0x4a, 0x1001253ea\ncmp     [rax+20h], esi                                                 ; +0x50, 0x1001253f0\njg      short loc_1001253E4                                            ; +0x53, 0x1001253f3\njl      short loc_1001253E0                                            ; +0x55, 0x1001253f5\ncmp     [rax+24h], edx                                                 ; +0x57, 0x1001253f7\njg      short loc_1001253E4                                            ; +0x5a, 0x1001253fa\njl      short loc_1001253E0                                            ; +0x5c, 0x1001253fc\njmp     short loc_100125408                                            ; +0x5e, 0x1001253fe\nmov     r10, [r10]                                                     ; +0x60, 0x100125400\ntest    r10, r10                                                       ; +0x63, 0x100125403\njz      short loc_100125421                                            ; +0x66, 0x100125406\ncmp     [r10+20h], esi                                                 ; +0x68, 0x100125408\njg      short loc_100125400                                            ; +0x6c, 0x10012540c\njl      short loc_100125418                                            ; +0x6e, 0x10012540e\ncmp     [r10+24h], edx                                                 ; +0x70, 0x100125410\njg      short loc_100125400                                            ; +0x74, 0x100125414\njge     short loc_10012542D                                            ; +0x76, 0x100125416\nmov     r10, [r10+8]                                                   ; +0x78, 0x100125418\ntest    r10, r10                                                       ; +0x7c, 0x10012541c\njnz     short loc_100125408                                            ; +0x7f, 0x10012541f\nlea     rdi, aMapAtKeyNotFou; \"map::at:  key not found\"                ; +0x81, 0x100125421\ncall    sub_100056820                                                  ; +0x88, 0x100125428\nmov     rax, [r10+28h]                                                 ; +0x8d, 0x10012542d\nmov     rdx, [r10+30h]                                                 ; +0x91, 0x100125431\ncmp     rax, rdx                                                       ; +0x95, 0x100125435\njz      loc_100125501                                                  ; +0x98, 0x100125438\ntest    r9b, r9b                                                       ; +0x9e, 0x10012543e\njz      short loc_1001254B9                                            ; +0xa1, 0x100125441\njmp     short loc_10012545D                                            ; +0xa3, 0x100125443\nalign 10h                                                              ; +0xa5, 0x100125445\nadd     rax, 8                                                         ; +0xb0, 0x100125450\ncmp     rax, rdx                                                       ; +0xb4, 0x100125454\njz      loc_100125501                                                  ; +0xb7, 0x100125457\nmov     rsi, [rax]                                                     ; +0xbd, 0x10012545d\ncmp     byte ptr [rsi+1A8h], 0                                         ; +0xc0, 0x100125460\njnz     short loc_100125450                                            ; +0xc7, 0x100125467\nmov     byte ptr [rsi+1A8h], 1                                         ; +0xc9, 0x100125469\nmovsd   xmm0, qword ptr [rsi+0A8h]                                     ; +0xd0, 0x100125470\nsubsd   xmm0, qword ptr [rsi+118h]                                     ; +0xd8, 0x100125478\ncvtsd2ss xmm0, xmm0                                                    ; +0xe0, 0x100125480\nmovss   xmm1, dword ptr [rcx]                                          ; +0xe4, 0x100125484\naddss   xmm1, xmm0                                                     ; +0xe8, 0x100125488\nmovss   dword ptr [rcx], xmm1                                          ; +0xec, 0x10012548c\ncmp     byte ptr [rsi+0B8h], 0                                         ; +0xf0, 0x100125490\njnz     short loc_100125450                                            ; +0xf7, 0x100125497\naddss   xmm0, dword ptr [r8]                                           ; +0xf9, 0x100125499\nmovss   dword ptr [r8], xmm0                                           ; +0xfe, 0x10012549e\njmp     short loc_100125450                                            ; +0x103, 0x1001254a3\nalign 10h                                                              ; +0x105, 0x1001254a5\nadd     rax, 8                                                         ; +0x110, 0x1001254b0\ncmp     rax, rdx                                                       ; +0x114, 0x1001254b4\njz      short loc_100125501                                            ; +0x117, 0x1001254b7\nmov     rsi, [rax]                                                     ; +0x119, 0x1001254b9\ncmp     byte ptr [rsi+1A8h], 0                                         ; +0x11c, 0x1001254bc\njnz     short loc_1001254B0                                            ; +0x123, 0x1001254c3\nmov     byte ptr [rsi+1A8h], 1                                         ; +0x125, 0x1001254c5\nmovsd   xmm0, qword ptr [rsi+0A0h]                                     ; +0x12c, 0x1001254cc\nsubsd   xmm0, qword ptr [rsi+110h]                                     ; +0x134, 0x1001254d4\ncvtsd2ss xmm0, xmm0                                                    ; +0x13c, 0x1001254dc\nmovss   xmm1, dword ptr [rcx]                                          ; +0x140, 0x1001254e0\naddss   xmm1, xmm0                                                     ; +0x144, 0x1001254e4\nmovss   dword ptr [rcx], xmm1                                          ; +0x148, 0x1001254e8\ncmp     byte ptr [rsi+0B8h], 0                                         ; +0x14c, 0x1001254ec\njnz     short loc_1001254B0                                            ; +0x153, 0x1001254f3\naddss   xmm0, dword ptr [r8]                                           ; +0x155, 0x1001254f5\nmovss   dword ptr [r8], xmm0                                           ; +0x15a, 0x1001254fa\njmp     short loc_1001254B0                                            ; +0x15f, 0x1001254ff\nlea     rsi, [rbp+var_8]                                               ; +0x161, 0x100125501\ncall    sub_10014E590                                                  ; +0x165, 0x100125505\nadd     rsp, 10h                                                       ; +0x16a, 0x10012550a\npop     rbp                                                            ; +0x16e, 0x10012550e\nretn                                                                   ; +0x16f, 0x10012550f", "xrefs": ["GJBaseGameLayer::processTransformActions @ 0x10012378f", "GJBaseGameLayer::processRotationActions @ 0x1001243c7"], "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"}