{"type": "func", "start": 4298675992, "end": 4298676080, "name": "ChanceTriggerGameObject::remapChanceObjects", "pseudocode": "// \n// ChanceTriggerGameObject::remapChanceObjects from 0x100389718 to 0x100389770 (88 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::applyRemap @ 0x1001ed640\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 __fastcall ChanceTriggerGameObject::remapChanceObjects(\n        ChanceTriggerGameObject *a1,\n        std::unordered_map<int, int> *const a2)\n{\n  std::__vector_base<ChanceObject>::pointer begin; // x20\n  std::__vector_base<ChanceObject>::pointer i; // x21\n  __int64 *v5; // x0\n\n  begin = a1->m_chanceObjects.__begin_;\n  for ( i = a1->m_chanceObjects.__end_; begin != i; ++begin )\n  {\n    v5 = sub_100018814(a2, &begin->m_groupID);\n    if ( v5 )\n      begin->m_groupID = *((_DWORD *)v5 + 5);\n  }\n}", "assembly": "; \n; ChanceTriggerGameObject::remapChanceObjects from 0x100389718 to 0x100389770 (88 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::applyRemap @ 0x1001ed640\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100389718\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10038971c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100389720\nADD             X29, SP, #0x20                                         ; +0xc, 0x100389724\nLDR             X20, [X0,#0x730]                                       ; +0x10, 0x100389728\nLDR             X21, [X0,#0x738]                                       ; +0x14, 0x10038972c\nCMP             X20, X21                                               ; +0x18, 0x100389730\nB.EQ            loc_100389760                                          ; +0x1c, 0x100389734\nMOV             X19, X1                                                ; +0x20, 0x100389738\nMOV             X0, X19                                                ; +0x24, 0x10038973c\nMOV             X1, X20                                                ; +0x28, 0x100389740\nBL              sub_100018814                                          ; +0x2c, 0x100389744\nCBZ             X0, loc_100389754                                      ; +0x30, 0x100389748\nLDR             W8, [X0,#0x14]                                         ; +0x34, 0x10038974c\nSTR             W8, [X20]                                              ; +0x38, 0x100389750\nADD             X20, X20, #0x10                                        ; +0x3c, 0x100389754\nCMP             X20, X21                                               ; +0x40, 0x100389758\nB.NE            loc_10038973C                                          ; +0x44, 0x10038975c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x48, 0x100389760\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x4c, 0x100389764\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x50, 0x100389768\nRET                                                                    ; +0x54, 0x10038976c", "xrefs": ["GJBaseGameLayer::applyRemap @ 0x1001ed640"], "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"}