{"type": "func", "start": 4109372, "end": 4109422, "name": "ChanceTriggerGameObject::remapChanceObjects", "pseudocode": "// \n// ChanceTriggerGameObject::remapChanceObjects from 0x3eb43c to 0x3eb46e (50 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::applyRemap @ 0x48bfa4\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 ChanceTriggerGameObject::remapChanceObjects(ChanceTriggerGameObject *a1, std::unordered_map<int, int> *const a2)\n{\n  ChanceObject *m_finish; // r6\n  ChanceObject *i; // r4\n  _DWORD **v5; // r0\n\n  m_finish = a1->m_chanceObjects.m_finish;\n  for ( i = a1->m_chanceObjects.m_start; i != m_finish; ++i )\n  {\n    v5 = sub_3E597A(a2, i->m_groupID % a2->_M_h._M_bucket_count, i);\n    if ( v5 )\n    {\n      if ( *v5 )\n        i->m_groupID = (*v5)[2];\n    }\n  }\n}", "assembly": "; \n; ChanceTriggerGameObject::remapChanceObjects from 0x3eb43c to 0x3eb46e (50 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::applyRemap @ 0x48bfa4\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x3eb43c\nMOV             R5, R1                                                 ; +0x2, 0x3eb43e\nLDR.W           R6, [R0,#0x668]                                        ; +0x4, 0x3eb440\nLDR.W           R4, [R0,#0x664]                                        ; +0x8, 0x3eb444\nCMP             R4, R6                                                 ; +0xc, 0x3eb448\nBEQ             locret_3EB466                                          ; +0xe, 0x3eb44a\nLDR             R0, [R4]                                               ; +0x10, 0x3eb44c\nLDR             R1, [R5,#4]                                            ; +0x12, 0x3eb44e\nBLX             __aeabi_uidivmod                                       ; +0x14, 0x3eb450\nMOV             R0, R5                                                 ; +0x18, 0x3eb454\nMOV             R2, R4                                                 ; +0x1a, 0x3eb456\nBL              sub_3E597A                                             ; +0x1c, 0x3eb458\nCBZ             R0, loc_3EB462                                         ; +0x20, 0x3eb45c\nLDR             R3, [R0]                                               ; +0x22, 0x3eb45e\nCBNZ            R3, loc_3EB468                                         ; +0x24, 0x3eb460\nADDS            R4, #0x10                                              ; +0x26, 0x3eb462\nB               loc_3EB448                                             ; +0x28, 0x3eb464\nPOP             {R4-R6,PC}                                             ; +0x2a, 0x3eb466\nLDR             R3, [R3,#8]                                            ; +0x2c, 0x3eb468\nSTR             R3, [R4]                                               ; +0x2e, 0x3eb46a\nB               loc_3EB462                                             ; +0x30, 0x3eb46c", "xrefs": ["GJBaseGameLayer::applyRemap @ 0x48bfa4"], "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"}