{"type": "func", "start": 4988820, "end": 4989058, "name": "FRequestProfilePage::onDeleteSelected", "pseudocode": "// \n// FRequestProfilePage::onDeleteSelected from 0x4c1f94 to 0x4c2082 (238 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 FRequestProfilePage::onDeleteSelected(FRequestProfilePage *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // r0\n  cocos2d::CCArray *StoredOnlineLevels; // r0\n  cocos2d::ccArray *data; // r2\n  unsigned int num; // r3\n  cocos2d::CCObject **arr; // r2\n  cocos2d::CCObject **v8; // r3\n  int v9; // r1\n  int v10; // t1\n  FLAlertLayer *v11; // r6\n  FLAlertLayer *v12; // r5\n  char v13[4]; // [sp+20h] [bp-8h] BYREF\n\n  v3 = GameLevelManager::sharedState();\n  StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v3, (const char *)a1->m_key.m_data.m_data);\n  if ( StoredOnlineLevels )\n  {\n    data = StoredOnlineLevels->data;\n    num = data->num;\n    if ( data->num )\n    {\n      arr = data->arr;\n      v8 = &arr[num] + 0x3FFFFFFF;\n      while ( arr <= v8 )\n      {\n        v10 = (int)*arr++;\n        v9 = v10;\n        if ( !v10 )\n          break;\n        if ( *(_BYTE *)(v9 + 453) )\n        {\n          sub_776584((int)v13, \"Are you sure you want to <cr>delete</c> the selected <cg>requests</c>?\");\n          v12 = FLAlertLayer::create(\n                  (int)&a1->FLAlertLayerProtocol,\n                  (int)\"Delete\",\n                  (int)v13,\n                  (int)\"Back\",\n                  (int)\"Delete\",\n                  380.0,\n                  0,\n                  0,\n                  1.0);\n          sub_774008(v13);\n          ButtonSprite::updateBGImage(v12->m_button2, \"GJ_button_06.png\");\n          v12->setTag(v12, 3);\n          v12->show(v12);\n          return;\n        }\n      }\n    }\n  }\n  sub_776584((int)v13, \"No requests selected.\");\n  v11 = FLAlertLayer::create(0, (int)\"Nothing here...\", (int)v13, (int)\"OK\", 0);\n  sub_774008(v13);\n  v11->show(v11);\n}", "assembly": "; \n; FRequestProfilePage::onDeleteSelected from 0x4c1f94 to 0x4c2082 (238 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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4c1f94\nSUB             SP, SP, #0x28                                          ; +0x2, 0x4c1f96\nLDR             R4, =(__stack_chk_guard_ptr - 0x4C1FA0)                ; +0x4, 0x4c1f98\nMOV             R5, R0                                                 ; +0x6, 0x4c1f9a\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x4c1f9c\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x4c1f9e\nLDR             R3, [R4]                                               ; +0xc, 0x4c1fa0\nSTR             R3, [SP,#0x28+var_4]                                   ; +0xe, 0x4c1fa2\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x10, 0x4c1fa4\nLDR.W           R1, [R5,#0x204]; char *                                ; +0x14, 0x4c1fa8\nBL              _ZN16GameLevelManager21getStoredOnlineLevelsEPKc; GameLevelManager::getStoredOnlineLevels(char const*) ; +0x18, 0x4c1fac\nCBZ             R0, loc_4C1FCE                                         ; +0x1c, 0x4c1fb0\nLDR             R2, [R0,#0x34]                                         ; +0x1e, 0x4c1fb2\nLDR             R3, [R2]                                               ; +0x20, 0x4c1fb4\nCBZ             R3, loc_4C1FCE                                         ; +0x22, 0x4c1fb6\nADD.W           R3, R3, #0x40000000                                    ; +0x24, 0x4c1fb8\nLDR             R2, [R2,#0xC]                                          ; +0x28, 0x4c1fbc\nSUBS            R3, #1                                                 ; +0x2a, 0x4c1fbe\nADD.W           R3, R2, R3,LSL#2                                       ; +0x2c, 0x4c1fc0\nCMP             R2, R3                                                 ; +0x30, 0x4c1fc4\nBHI             loc_4C1FCE                                             ; +0x32, 0x4c1fc6\nLDR.W           R1, [R2],#4                                            ; +0x34, 0x4c1fc8\nCBNZ            R1, loc_4C2000                                         ; +0x38, 0x4c1fcc\nADD             R5, SP, #0x28+var_8                                    ; +0x3a, 0x4c1fce\nLDR             R1, =(aNoRequestsSele - 0x4C1FD8); \"No requests selected.\" ; +0x3c, 0x4c1fd0\nADD             R2, SP, #0x28+var_C                                    ; +0x3e, 0x4c1fd2\nADD             R1, PC; \"No requests selected.\"                        ; +0x40, 0x4c1fd4\nMOV             R0, R5; int                                            ; +0x42, 0x4c1fd6\nBL              sub_776584                                             ; +0x44, 0x4c1fd8\nLDR             R1, =(aNothingHere - 0x4C1FE6); \"Nothing here...\"      ; +0x48, 0x4c1fdc\nLDR             R3, =(aOk - 0x4C1FEC); \"OK\"                            ; +0x4a, 0x4c1fde\nMOVS            R0, #0                                                 ; +0x4c, 0x4c1fe0\nADD             R1, PC; \"Nothing here...\"                              ; +0x4e, 0x4c1fe2\nSTR             R0, [SP,#0x28+var_28]                                  ; +0x50, 0x4c1fe4\nMOV             R2, R5                                                 ; +0x52, 0x4c1fe6\nADD             R3, PC; \"OK\"                                           ; +0x54, 0x4c1fe8\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0x56, 0x4c1fea\nMOV             R6, R0                                                 ; +0x5a, 0x4c1fee\nMOV             R0, R5                                                 ; +0x5c, 0x4c1ff0\nBL              sub_774008                                             ; +0x5e, 0x4c1ff2\nLDR             R3, [R6]                                               ; +0x62, 0x4c1ff6\nMOV             R0, R6                                                 ; +0x64, 0x4c1ff8\nLDR.W           R3, [R3,#0x284]                                        ; +0x66, 0x4c1ffa\nB               loc_4C2062                                             ; +0x6a, 0x4c1ffe\nLDRB.W          R1, [R1,#0x1C5]                                        ; +0x6c, 0x4c2000\nCMP             R1, #0                                                 ; +0x70, 0x4c2004\nBEQ             loc_4C1FC4                                             ; +0x72, 0x4c2006\nADD             R6, SP, #0x28+var_8                                    ; +0x74, 0x4c2008\nLDR             R1, =(aAreYouSureYouW_17 - 0x4C2012); \"Are you sure you want to <cr>delete</c>\"... ; +0x76, 0x4c200a\nADD             R2, SP, #0x28+var_C                                    ; +0x78, 0x4c200c\nADD             R1, PC; \"Are you sure you want to <cr>delete</c>\"...   ; +0x7a, 0x4c200e\nMOV             R0, R6; int                                            ; +0x7c, 0x4c2010\nBL              sub_776584                                             ; +0x7e, 0x4c2012\nLDR             R3, flt_4C2084                                         ; +0x82, 0x4c2016\nLDR             R1, =(aDelete - 0x4C2034); \"Delete\"                    ; +0x84, 0x4c2018\nADD.W           R0, R5, #0x1F0; int                                    ; +0x86, 0x4c201a\nMOV             R2, R6; int                                            ; +0x8a, 0x4c201e\nSTR             R3, [SP,#0x28+var_24]; float                           ; +0x8c, 0x4c2020\nMOVS            R3, #0                                                 ; +0x8e, 0x4c2022\nSTR             R3, [SP,#0x28+var_20]; char                            ; +0x90, 0x4c2024\nMOVS            R3, #0                                                 ; +0x92, 0x4c2026\nSTR             R3, [SP,#0x28+var_1C]; int                             ; +0x94, 0x4c2028\nMOV.W           R3, #0x3F800000                                        ; +0x96, 0x4c202a\nSTR             R3, [SP,#0x28+var_18]; float                           ; +0x9a, 0x4c202e\nADD             R1, PC; \"Delete\"                                       ; +0x9c, 0x4c2030\nLDR             R3, =(aBack - 0x4C203A); \"Back\"                        ; +0x9e, 0x4c2032\nSTR             R1, [SP,#0x28+var_28]; int                             ; +0xa0, 0x4c2034\nADD             R3, PC; \"Back\"                                         ; +0xa2, 0x4c2036\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_fbff; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float,bool,float,float) ; +0xa4, 0x4c2038\nMOV             R5, R0                                                 ; +0xa8, 0x4c203c\nMOV             R0, R6                                                 ; +0xaa, 0x4c203e\nBL              sub_774008                                             ; +0xac, 0x4c2040\nLDR             R1, =(aGjButton06Png - 0x4C204E); \"GJ_button_06.png\"   ; +0xb0, 0x4c2044\nLDR.W           R0, [R5,#0x1D8]; this                                  ; +0xb2, 0x4c2046\nADD             R1, PC; \"GJ_button_06.png\"                             ; +0xb6, 0x4c204a\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xb8, 0x4c204c\nLDR             R3, [R5]                                               ; +0xbc, 0x4c2050\nMOV             R0, R5                                                 ; +0xbe, 0x4c2052\nMOVS            R1, #3                                                 ; +0xc0, 0x4c2054\nLDR             R3, [R3,#0x24]                                         ; +0xc2, 0x4c2056\nBLX             R3                                                     ; +0xc4, 0x4c2058\nLDR             R3, [R5]                                               ; +0xc6, 0x4c205a\nMOV             R0, R5                                                 ; +0xc8, 0x4c205c\nLDR.W           R3, [R3,#0x284]                                        ; +0xca, 0x4c205e\nBLX             R3                                                     ; +0xce, 0x4c2062\nLDR             R2, [SP,#0x28+var_4]                                   ; +0xd0, 0x4c2064\nLDR             R3, [R4]                                               ; +0xd2, 0x4c2066\nCMP             R2, R3                                                 ; +0xd4, 0x4c2068\nBEQ             loc_4C207E                                             ; +0xd6, 0x4c206a\nBLX             __stack_chk_fail                                       ; +0xd8, 0x4c206c\nMOV             R0, R5                                                 ; +0xdc, 0x4c2070\nB               loc_4C2076                                             ; +0xde, 0x4c2072\nMOV             R0, R6                                                 ; +0xe0, 0x4c2074\nBL              sub_774008                                             ; +0xe2, 0x4c2076\nBL              __cxa_end_cleanup                                      ; +0xe6, 0x4c207a\nADD             SP, SP, #0x28 ; '('                                    ; +0xea, 0x4c207e\nPOP             {R4-R6,PC}                                             ; +0xec, 0x4c2080", "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"}