{"type": "func", "start": 4299635672, "end": 4299635972, "name": "EditorUI::toggleDuplicateButton", "pseudocode": "// \n// EditorUI::toggleDuplicateButton from 0x100473bd8 to 0x100473d04 (300 bytes)\n// \n// 1 xrefs:\n// > EditorUI::updateButtons @ 0x100472eb0\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:05:39 +0000\n// \n\n__int64 __fastcall EditorUI::toggleDuplicateButton(__int64 *a1)\n{\n  _BYTE *v2; // x0\n  int v3; // w8\n  __int16 *v4; // x21\n  __int64 v5; // x20\n  char v6; // w22\n  _BYTE *v7; // x0\n  __int64 v8; // x0\n  __int64 v9; // x8\n  _BYTE *v10; // x0\n  __int16 *v11; // x1\n  __int64 v12; // x20\n\n  if ( a1[187] )\n  {\n    v2 = (_BYTE *)a1[141];\n    v2[408] = 1;\nLABEL_4:\n    v4 = &word_10076F228;\n    v5 = 255;\n    v6 = 1;\n    goto LABEL_5;\n  }\n  v3 = sub_1002E757C(a1[112]);\n  v2 = (_BYTE *)a1[141];\n  v2[408] = v3 != 0;\n  if ( v3 )\n    goto LABEL_4;\n  v6 = 0;\n  v4 = &word_10076F22B;\n  v5 = 175;\nLABEL_5:\n  (*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v2 + 960LL))(v2, v4);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1[141] + 912LL))(a1[141], v5);\n  v7 = (_BYTE *)a1[142];\n  v7[408] = v6;\n  (*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v7 + 960LL))(v7, v4);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1[142] + 912LL))(a1[142], v5);\n  v8 = GameManager::sharedState();\n  v9 = *(char *)(v8 + 535);\n  if ( v9 < 0 )\n    v9 = *(_QWORD *)(v8 + 520);\n  v10 = (_BYTE *)a1[143];\n  v10[408] = v9 != 0;\n  if ( v9 )\n    v11 = &word_10076F228;\n  else\n    v11 = &word_10076F22B;\n  if ( v9 )\n    v12 = 255;\n  else\n    v12 = 175;\n  (*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v10 + 960LL))(v10, v11);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1[143] + 912LL))(a1[143], v12);\n}", "assembly": "; \n; EditorUI::toggleDuplicateButton from 0x100473bd8 to 0x100473d04 (300 bytes)\n; \n; 1 xrefs:\n; > EditorUI::updateButtons @ 0x100472eb0\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:05:39 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100473bd8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100473bdc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100473be0\nADD             X29, SP, #0x20                                         ; +0xc, 0x100473be4\nMOV             X19, X0                                                ; +0x10, 0x100473be8\nLDR             X8, [X0,#0x5D8]                                        ; +0x14, 0x100473bec\nCBZ             X8, loc_100473C04                                      ; +0x18, 0x100473bf0\nLDR             X0, [X19,#0x468]                                       ; +0x1c, 0x100473bf4\nMOV             W8, #1                                                 ; +0x20, 0x100473bf8\nSTRB            W8, [X0,#0x198]                                        ; +0x24, 0x100473bfc\nB               loc_100473C24                                          ; +0x28, 0x100473c00\nLDR             X0, [X19,#0x380]                                       ; +0x2c, 0x100473c04\nBL              sub_1002E757C                                          ; +0x30, 0x100473c08\nMOV             X8, X0                                                 ; +0x34, 0x100473c0c\nCMP             W0, #0                                                 ; +0x38, 0x100473c10\nCSET            W9, NE                                                 ; +0x3c, 0x100473c14\nLDR             X0, [X19,#0x468]                                       ; +0x40, 0x100473c18\nSTRB            W9, [X0,#0x198]                                        ; +0x44, 0x100473c1c\nCBZ             W8, loc_100473CF0                                      ; +0x48, 0x100473c20\nADRL            X21, word_10076F228                                    ; +0x4c, 0x100473c24\nMOV             W20, #0xFF                                             ; +0x54, 0x100473c2c\nMOV             W22, #1                                                ; +0x58, 0x100473c30\nLDR             X8, [X0]                                               ; +0x5c, 0x100473c34\nLDR             X8, [X8,#0x3C0]                                        ; +0x60, 0x100473c38\nMOV             X1, X21                                                ; +0x64, 0x100473c3c\nBLR             X8                                                     ; +0x68, 0x100473c40\nLDR             X0, [X19,#0x468]                                       ; +0x6c, 0x100473c44\nLDR             X8, [X0]                                               ; +0x70, 0x100473c48\nLDR             X8, [X8,#0x390]                                        ; +0x74, 0x100473c4c\nMOV             X1, X20                                                ; +0x78, 0x100473c50\nBLR             X8                                                     ; +0x7c, 0x100473c54\nLDR             X0, [X19,#0x470]                                       ; +0x80, 0x100473c58\nSTRB            W22, [X0,#0x198]                                       ; +0x84, 0x100473c5c\nLDR             X8, [X0]                                               ; +0x88, 0x100473c60\nLDR             X8, [X8,#0x3C0]                                        ; +0x8c, 0x100473c64\nMOV             X1, X21                                                ; +0x90, 0x100473c68\nBLR             X8                                                     ; +0x94, 0x100473c6c\nLDR             X0, [X19,#0x470]                                       ; +0x98, 0x100473c70\nLDR             X8, [X0]                                               ; +0x9c, 0x100473c74\nLDR             X8, [X8,#0x390]                                        ; +0xa0, 0x100473c78\nMOV             X1, X20                                                ; +0xa4, 0x100473c7c\nBLR             X8                                                     ; +0xa8, 0x100473c80\nBL              GameManager__sharedState                               ; +0xac, 0x100473c84\nLDRSB           X8, [X0,#0x217]                                        ; +0xb0, 0x100473c88\nTBZ             X8, #0x3F, loc_100473C94 ; '?'                         ; +0xb4, 0x100473c8c\nLDR             X8, [X0,#0x208]                                        ; +0xb8, 0x100473c90\nCMP             X8, #0                                                 ; +0xbc, 0x100473c94\nCSET            W8, NE                                                 ; +0xc0, 0x100473c98\nLDR             X0, [X19,#0x478]                                       ; +0xc4, 0x100473c9c\nADRL            X9, word_10076F22B                                     ; +0xc8, 0x100473ca0\nSTRB            W8, [X0,#0x198]                                        ; +0xd0, 0x100473ca8\nADRL            X8, word_10076F228                                     ; +0xd4, 0x100473cac\nCSEL            X1, X8, X9, NE                                         ; +0xdc, 0x100473cb4\nLDR             X8, [X0]                                               ; +0xe0, 0x100473cb8\nLDR             X8, [X8,#0x3C0]                                        ; +0xe4, 0x100473cbc\nMOV             W9, #0xAF                                              ; +0xe8, 0x100473cc0\nMOV             W10, #0xFF                                             ; +0xec, 0x100473cc4\nCSEL            W20, W10, W9, NE                                       ; +0xf0, 0x100473cc8\nBLR             X8                                                     ; +0xf4, 0x100473ccc\nLDR             X0, [X19,#0x478]                                       ; +0xf8, 0x100473cd0\nLDR             X8, [X0]                                               ; +0xfc, 0x100473cd4\nLDR             X2, [X8,#0x390]                                        ; +0x100, 0x100473cd8\nMOV             X1, X20                                                ; +0x104, 0x100473cdc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x108, 0x100473ce0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x10c, 0x100473ce4\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x110, 0x100473ce8\nBR              X2                                                     ; +0x114, 0x100473cec\nMOV             W22, #0                                                ; +0x118, 0x100473cf0\nADRL            X21, word_10076F22B                                    ; +0x11c, 0x100473cf4\nMOV             W20, #0xAF                                             ; +0x124, 0x100473cfc\nB               loc_100473C34                                          ; +0x128, 0x100473d00", "xrefs": ["EditorUI::updateButtons @ 0x100472eb0"], "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"}