{"type": "func", "start": 6352764, "end": 6352924, "name": "AchievementCell::updateBGColor", "pseudocode": "// \n// AchievementCell::updateBGColor from 0x60ef7c to 0x60f01c (160 bytes)\n// \n// 2 xrefs:\n// > CustomListView::loadCell @ 0x620764\n// > <???> @ 0x68f58\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 AchievementCell::updateBGColor(AchievementCell *a1, int a2)\n{\n  cocos2d::CCLayerColor *m_backgroundLayer; // x0\n  void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // x2\n  char v4; // [xsp+20h] [xbp+20h] BYREF\n  char v5; // [xsp+21h] [xbp+21h]\n  char v6; // [xsp+22h] [xbp+22h]\n\n  m_backgroundLayer = a1->m_backgroundLayer;\n  setColor = m_backgroundLayer->setColor;\n  if ( (a2 & 1) != 0 )\n  {\n    v4 = -62;\n    v5 = 114;\n    v6 = 62;\n  }\n  else\n  {\n    v4 = -95;\n    v5 = 88;\n    v6 = 44;\n  }\n  setColor(m_backgroundLayer, (const cocos2d::ccColor3B *)&v4);\n}", "assembly": "; \n; AchievementCell::updateBGColor from 0x60ef7c to 0x60f01c (160 bytes)\n; \n; 2 xrefs:\n; > CustomListView::loadCell @ 0x620764\n; > <???> @ 0x68f58\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x60ef7c\nMOV             X29, SP                                                ; +0x4, 0x60ef80\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0x60ef84\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x60ef88\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x10, 0x60ef8c\nLDR             X2, [X2]                                               ; +0x14, 0x60ef90\nSTR             X2, [X29,#0x30+var_8]                                  ; +0x18, 0x60ef94\nLDR             X2, [X0,#0x200]                                        ; +0x1c, 0x60ef98\nMOV             X0, X2                                                 ; +0x20, 0x60ef9c\nTBNZ            W1, #0, loc_60EFEC                                     ; +0x24, 0x60efa0\nLDR             X2, [X2]                                               ; +0x28, 0x60efa4\nMOV             W3, #0xFFFFFFA1                                        ; +0x2c, 0x60efa8\nADD             X1, X29, #0x30+var_10                                  ; +0x30, 0x60efac\nLDR             X2, [X2,#0x4B0]                                        ; +0x34, 0x60efb0\nSTRB            W3, [X29,#0x30+var_10]                                 ; +0x38, 0x60efb4\nMOV             W3, #0x58 ; 'X'                                        ; +0x3c, 0x60efb8\nSTRB            W3, [X29,#0x30+var_F]                                  ; +0x40, 0x60efbc\nMOV             W3, #0x2C ; ','                                        ; +0x44, 0x60efc0\nSTRB            W3, [X29,#0x30+var_E]                                  ; +0x48, 0x60efc4\nBLR             X2                                                     ; +0x4c, 0x60efc8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x50, 0x60efcc\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x54, 0x60efd0\nLDR             X0, [X19]                                              ; +0x58, 0x60efd4\nCMP             X1, X0                                                 ; +0x5c, 0x60efd8\nB.NE            loc_60F018                                             ; +0x60, 0x60efdc\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x64, 0x60efe0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x68, 0x60efe4\nRET                                                                    ; +0x6c, 0x60efe8\nLDR             X2, [X2]                                               ; +0x70, 0x60efec\nMOV             W3, #0xFFFFFFC2                                        ; +0x74, 0x60eff0\nADD             X1, X29, #0x30+var_10                                  ; +0x78, 0x60eff4\nLDR             X2, [X2,#0x4B0]                                        ; +0x7c, 0x60eff8\nSTRB            W3, [X29,#0x30+var_10]                                 ; +0x80, 0x60effc\nMOV             W3, #0x72 ; 'r'                                        ; +0x84, 0x60f000\nSTRB            W3, [X29,#0x30+var_F]                                  ; +0x88, 0x60f004\nMOV             W3, #0x3E ; '>'                                        ; +0x8c, 0x60f008\nSTRB            W3, [X29,#0x30+var_E]                                  ; +0x90, 0x60f00c\nBLR             X2                                                     ; +0x94, 0x60f010\nB               loc_60EFCC                                             ; +0x98, 0x60f014\nBL              .__stack_chk_fail                                      ; +0x9c, 0x60f018", "xrefs": ["CustomListView::loadCell @ 0x620764", "<???> @ 0x68f58"], "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"}