{"type": "func", "start": 5147928, "end": 5147964, "name": "ChanceTriggerGameObject::editChanceObject", "pseudocode": "// \n// ChanceTriggerGameObject::editChanceObject from 0x4e8d18 to 0x4e8d3c (36 bytes)\n// \n// 1 xrefs:\n// > EditorUI::replaceGroupID @ 0x482f5c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:07 +0000\n// \n\nint __fastcall ChanceTriggerGameObject::editChanceObject(ChanceTriggerGameObject *this, int a2, int a3)\n{\n  int v3; // r4\n  int v4; // r3\n  int result; // r0\n\n  v3 = *((_DWORD *)this + 413);\n  v4 = *((_DWORD *)this + 412);\n  while ( 1 )\n  {\n    v4 += 16;\n    result = v4 - 16;\n    if ( v3 == v4 - 16 )\n      break;\n    if ( *(_DWORD *)(v4 - 16) == a2 )\n      *(_DWORD *)(v4 - 16) = a3;\n  }\n  return result;\n}", "assembly": "; \n; ChanceTriggerGameObject::editChanceObject from 0x4e8d18 to 0x4e8d3c (36 bytes)\n; \n; 1 xrefs:\n; > EditorUI::replaceGroupID @ 0x482f5c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:07 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x4e8d18\nLDR.W           R4, [R0,#0x674]                                        ; +0x2, 0x4e8d1a\nLDR.W           R3, [R0,#0x670]                                        ; +0x6, 0x4e8d1e\nADDS            R3, #0x10                                              ; +0xa, 0x4e8d22\nSUB.W           R0, R3, #0x10                                          ; +0xc, 0x4e8d24\nCMP             R4, R0                                                 ; +0x10, 0x4e8d28\nBEQ             locret_4E8D3A                                          ; +0x12, 0x4e8d2a\nLDR.W           R0, [R3,#-0x10]                                        ; +0x14, 0x4e8d2c\nCMP             R0, R1                                                 ; +0x18, 0x4e8d30\nIT EQ                                                                  ; +0x1a, 0x4e8d32\nSTREQ.W         R2, [R3,#-0x10]                                        ; +0x1c, 0x4e8d34\nB               loc_4E8D22                                             ; +0x20, 0x4e8d38\nPOP             {R4,PC}                                                ; +0x22, 0x4e8d3a", "xrefs": ["EditorUI::replaceGroupID @ 0x482f5c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}