{"type": "func", "start": 4190508, "end": 4190630, "name": "EditorPauseLayer::onResetUnusedColors", "pseudocode": "// \n// EditorPauseLayer::onResetUnusedColors from 0x3ff12c to 0x3ff1a6 (122 bytes)\n// \n// 0 xrefs:\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 EditorPauseLayer::onResetUnusedColors(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  FLAlertLayer *v3; // r5\n  _BYTE v4[4]; // [sp+10h] [bp-8h] BYREF\n\n  if ( !a1->m_saved )\n  {\n    sub_776584(\n      (int)v4,\n      \"Reset all unused color channels?\\n<cy>This will make those channels available as 'next free'</c>\");\n    v3 = FLAlertLayer::create(\n           (int)&a1->FLAlertLayerProtocol,\n           (int)\"Reset Unused Colors\",\n           (int)v4,\n           (int)\"NO\",\n           (int)\"YES\",\n           300.0);\n    sub_774008(v4);\n    v3->setTag(v3, 2);\n    v3->show(v3);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onResetUnusedColors from 0x3ff12c to 0x3ff1a6 (122 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x3FF134)                ; +0x0, 0x3ff12c\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x3ff12e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3ff130\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3ff132\nSUB             SP, SP, #0x18                                          ; +0x8, 0x3ff134\nMOV             R5, R0                                                 ; +0xa, 0x3ff136\nLDR             R2, [R3]                                               ; +0xc, 0x3ff138\nMOV             R6, R3                                                 ; +0xe, 0x3ff13a\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x10, 0x3ff13c\nLDRB.W          R2, [R0,#0x1C0]                                        ; +0x12, 0x3ff13e\nCBNZ            R2, loc_3FF196                                         ; +0x16, 0x3ff142\nADD             R4, SP, #0x18+var_8                                    ; +0x18, 0x3ff144\nLDR             R1, =(aResetAllUnused - 0x3FF14E); \"Reset all unused color channels?\\n<cy>T\"... ; +0x1a, 0x3ff146\nADD             R2, SP, #0x18+var_C                                    ; +0x1c, 0x3ff148\nADD             R1, PC; \"Reset all unused color channels?\\n<cy>T\"...   ; +0x1e, 0x3ff14a\nMOV             R0, R4; int                                            ; +0x20, 0x3ff14c\nBL              sub_776584                                             ; +0x22, 0x3ff14e\nLDR             R3, =(aYes_0 - 0x3FF15E); \"YES\"                        ; +0x26, 0x3ff152\nLDR             R1, =(aResetUnusedCol - 0x3FF164); \"Reset Unused Colors\" ; +0x28, 0x3ff154\nADD.W           R0, R5, #0x1BC; int                                    ; +0x2a, 0x3ff156\nADD             R3, PC; \"YES\"                                          ; +0x2e, 0x3ff15a\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x30, 0x3ff15c\nLDR             R3, flt_3FF1A8                                         ; +0x32, 0x3ff15e\nADD             R1, PC; \"Reset Unused Colors\"                          ; +0x34, 0x3ff160\nMOV             R2, R4; int                                            ; +0x36, 0x3ff162\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x38, 0x3ff164\nLDR             R3, =(aNo_0 - 0x3FF16C); \"NO\"                          ; +0x3a, 0x3ff166\nADD             R3, PC; \"NO\"                                           ; +0x3c, 0x3ff168\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x3e, 0x3ff16a\nMOV             R5, R0                                                 ; +0x42, 0x3ff16e\nMOV             R0, R4                                                 ; +0x44, 0x3ff170\nBL              sub_774008                                             ; +0x46, 0x3ff172\nLDR             R3, [R5]                                               ; +0x4a, 0x3ff176\nMOV             R0, R5                                                 ; +0x4c, 0x3ff178\nMOVS            R1, #2                                                 ; +0x4e, 0x3ff17a\nLDR             R3, [R3,#0x24]                                         ; +0x50, 0x3ff17c\nBLX             R3                                                     ; +0x52, 0x3ff17e\nLDR             R3, [R5]                                               ; +0x54, 0x3ff180\nMOV             R0, R5                                                 ; +0x56, 0x3ff182\nLDR.W           R3, [R3,#0x284]                                        ; +0x58, 0x3ff184\nBLX             R3                                                     ; +0x5c, 0x3ff188\nB               loc_3FF196                                             ; +0x5e, 0x3ff18a\nMOV             R0, R4                                                 ; +0x60, 0x3ff18c\nBL              sub_774008                                             ; +0x62, 0x3ff18e\nBL              __cxa_end_cleanup                                      ; +0x66, 0x3ff192\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x6a, 0x3ff196\nLDR             R3, [R6]                                               ; +0x6c, 0x3ff198\nCMP             R2, R3                                                 ; +0x6e, 0x3ff19a\nBEQ             loc_3FF1A2                                             ; +0x70, 0x3ff19c\nBLX             __stack_chk_fail                                       ; +0x72, 0x3ff19e\nADD             SP, SP, #0x18                                          ; +0x76, 0x3ff1a2\nPOP             {R4-R6,PC}                                             ; +0x78, 0x3ff1a4", "xrefs": [], "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"}