{"type": "func", "start": 4297618120, "end": 4297618436, "name": "GJBaseGameLayer::updateSavePositionObjects", "pseudocode": "// \n// GJBaseGameLayer::updateSavePositionObjects from 0x1002872c8 to 0x100287404 (316 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::update @ 0x10029af18\n// \n// This function is hookable on this platform (idp: arm, 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:01:58 +0000\n// \n\nfloat __fastcall GJBaseGameLayer::updateSavePositionObjects(__int64 LastPosition)\n{\n  __int64 v1; // x19\n  int v2; // w8\n  unsigned int v3; // w9\n  unsigned int v4; // w8\n  __int64 *v5; // x22\n  int v6; // w8\n  int v7; // w26\n  __int64 v8; // x21\n  int v9; // w21\n  __int64 v10; // x0\n  int v11; // w8\n  __int64 v12; // x10\n  float result; // s0\n  int v14; // [xsp+0h] [xbp-50h] BYREF\n  int *v15; // [xsp+8h] [xbp-48h] BYREF\n\n  v1 = LastPosition;\n  v2 = *(_DWORD *)(LastPosition + 960);\n  if ( !v2 )\n  {\n    v4 = *(_DWORD *)(LastPosition + 964);\nLABEL_5:\n    *(_DWORD *)(LastPosition + 960) = v4;\n    ++*(_DWORD *)(LastPosition + 1140);\n    v5 = *(__int64 **)(LastPosition + 13248);\n    if ( !v5 )\n      return result;\n    while ( 1 )\n    {\n      v6 = *((_DWORD *)v5 + 4);\n      v7 = *((_DWORD *)v5 + 5);\n      v14 = v6;\n      if ( v6 < 1 )\n      {\n        if ( v6 == -3 )\n        {\n          v9 = *(_DWORD *)(v1 + 1144);\n          LastPosition = v1 + 1204;\n        }\n        else\n        {\n          if ( v6 == -2 )\n          {\n            v10 = *(_QWORD *)(v1 + 3264);\n          }\n          else\n          {\n            if ( v6 != -1 )\n            {\n              v9 = 0;\n              goto LABEL_16;\n            }\n            v10 = *(_QWORD *)(v1 + 3256);\n          }\n          v9 = *(_DWORD *)(v10 + 1340);\n          LastPosition = GameObject::getLastPosition(v10);\n        }\n      }\n      else\n      {\n        v15 = &v14;\n        v8 = sub_10001A978(v1 + 13192, &v14, (__int64)&unk_100763014, &v15)[3];\n        LastPosition = GameObject::getLastPosition(v8);\n        v9 = *(_DWORD *)(v8 + 1340);\n      }\nLABEL_16:\n      v11 = *(_DWORD *)(v1 + 1140) % v7 + v9;\n      v12 = *(_QWORD *)(v1 + 1112);\n      *(_DWORD *)(v12 + 8LL * v11) = *(_DWORD *)LastPosition;\n      result = *(float *)(LastPosition + 4);\n      *(float *)(v12 + 8LL * v11 + 4) = result;\n      v5 = (__int64 *)*v5;\n      if ( !v5 )\n        return result;\n    }\n  }\n  v3 = v2 + 1000;\n  v4 = *(_DWORD *)(LastPosition + 964);\n  if ( v3 <= v4 )\n    goto LABEL_5;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateSavePositionObjects from 0x1002872c8 to 0x100287404 (316 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::update @ 0x10029af18\n; \n; This function is hookable on this platform (idp: arm, 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:01:58 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x1002872c8\nSTP             X26, X25, [SP,#0x50+var_40]                            ; +0x4, 0x1002872cc\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x8, 0x1002872d0\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0xc, 0x1002872d4\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x10, 0x1002872d8\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x14, 0x1002872dc\nADD             X29, SP, #0x50                                         ; +0x18, 0x1002872e0\nMOV             X19, X0                                                ; +0x1c, 0x1002872e4\nLDR             W8, [X0,#0x3C0]                                        ; +0x20, 0x1002872e8\nCBZ             W8, loc_100287304                                      ; +0x24, 0x1002872ec\nADD             W9, W8, #0x3E8                                         ; +0x28, 0x1002872f0\nLDR             W8, [X19,#0x3C4]                                       ; +0x2c, 0x1002872f4\nCMP             W9, W8                                                 ; +0x30, 0x1002872f8\nB.LS            loc_100287308                                          ; +0x34, 0x1002872fc\nB               loc_1002873E8                                          ; +0x38, 0x100287300\nLDR             W8, [X19,#0x3C4]                                       ; +0x3c, 0x100287304\nSTR             W8, [X19,#0x3C0]                                       ; +0x40, 0x100287308\nLDR             W8, [X19,#0x474]                                       ; +0x44, 0x10028730c\nADD             W8, W8, #1                                             ; +0x48, 0x100287310\nSTR             W8, [X19,#0x474]                                       ; +0x4c, 0x100287314\nLDR             X22, [X19,#0x33C0]                                     ; +0x50, 0x100287318\nCBZ             X22, loc_1002873E8                                     ; +0x54, 0x10028731c\nADD             X23, X19, #0x4B4                                       ; +0x58, 0x100287320\nMOV             W24, #0x3388                                           ; +0x5c, 0x100287324\nMOV             X25, SP                                                ; +0x60, 0x100287328\nADRL            X20, unk_100763014                                     ; +0x64, 0x10028732c\nLDP             W8, W26, [X22,#0x10]                                   ; +0x6c, 0x100287334\nSTR             W8, [SP,#0x50+var_50]                                  ; +0x70, 0x100287338\nCMP             W8, #1                                                 ; +0x74, 0x10028733c\nB.LT            loc_100287374                                          ; +0x78, 0x100287340\nSTR             X25, [SP,#0x50+var_48]                                 ; +0x7c, 0x100287344\nADD             X0, X19, X24                                           ; +0x80, 0x100287348\nMOV             X1, SP                                                 ; +0x84, 0x10028734c\nADD             X3, SP, #0x50+var_48                                   ; +0x88, 0x100287350\nADD             X4, SP, #0x50+var_49                                   ; +0x8c, 0x100287354\nMOV             X2, X20                                                ; +0x90, 0x100287358\nBL              sub_10001A978                                          ; +0x94, 0x10028735c\nLDR             X21, [X0,#0x18]                                        ; +0x98, 0x100287360\nMOV             X0, X21                                                ; +0x9c, 0x100287364\nBL              GameObject__getLastPosition                            ; +0xa0, 0x100287368\nLDR             W21, [X21,#0x53C]                                      ; +0xa4, 0x10028736c\nB               loc_1002873B4                                          ; +0xa8, 0x100287370\nCMN             W8, #3                                                 ; +0xac, 0x100287374\nB.EQ            loc_1002873A4                                          ; +0xb0, 0x100287378\nCMN             W8, #2                                                 ; +0xb4, 0x10028737c\nB.EQ            loc_100287394                                          ; +0xb8, 0x100287380\nCMN             W8, #1                                                 ; +0xbc, 0x100287384\nB.NE            loc_1002873B0                                          ; +0xc0, 0x100287388\nLDR             X0, [X19,#0xCB8]                                       ; +0xc4, 0x10028738c\nB               loc_100287398                                          ; +0xc8, 0x100287390\nLDR             X0, [X19,#0xCC0]                                       ; +0xcc, 0x100287394\nLDR             W21, [X0,#0x53C]                                       ; +0xd0, 0x100287398\nBL              GameObject__getLastPosition                            ; +0xd4, 0x10028739c\nB               loc_1002873B4                                          ; +0xd8, 0x1002873a0\nLDR             W21, [X19,#0x478]                                      ; +0xdc, 0x1002873a4\nMOV             X0, X23                                                ; +0xe0, 0x1002873a8\nB               loc_1002873B4                                          ; +0xe4, 0x1002873ac\nMOV             W21, #0                                                ; +0xe8, 0x1002873b0\nLDR             W8, [X19,#0x474]                                       ; +0xec, 0x1002873b4\nSDIV            W9, W8, W26                                            ; +0xf0, 0x1002873b8\nMSUB            W8, W9, W26, W8                                        ; +0xf4, 0x1002873bc\nADD             W8, W8, W21                                            ; +0xf8, 0x1002873c0\nSBFIZ           X9, X8, #1, #0x20 ; ' '                                ; +0xfc, 0x1002873c4\nLDR             S0, [X0]                                               ; +0x100, 0x1002873c8\nLDR             X10, [X19,#0x458]                                      ; +0x104, 0x1002873cc\nSTR             S0, [X10,W9,SXTW#2]                                    ; +0x108, 0x1002873d0\nLDR             S0, [X0,#4]                                            ; +0x10c, 0x1002873d4\nADD             X8, X10, W8,SXTW#3                                     ; +0x110, 0x1002873d8\nSTR             S0, [X8,#4]                                            ; +0x114, 0x1002873dc\nLDR             X22, [X22]                                             ; +0x118, 0x1002873e0\nCBNZ            X22, loc_100287334                                     ; +0x11c, 0x1002873e4\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x120, 0x1002873e8\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x124, 0x1002873ec\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x128, 0x1002873f0\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0x12c, 0x1002873f4\nLDP             X26, X25, [SP,#0x50+var_40]                            ; +0x130, 0x1002873f8\nADD             SP, SP, #0x60 ; '`'                                    ; +0x134, 0x1002873fc\nRET                                                                    ; +0x138, 0x100287400", "xrefs": ["GJBaseGameLayer::update @ 0x10029af18"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}