{"type": "func", "start": 3347440, "end": 3347528, "name": "AchievementCell::updateBGColor", "pseudocode": "// \n// AchievementCell::updateBGColor from 0x3313f0 to 0x331448 (88 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x33bb46\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; // r0\n  char v3; // r2\n  void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // r3\n  char v5; // r2\n  char v6; // r2\n  _DWORD v7[2]; // [sp+0h] [bp-8h] BYREF\n\n  v7[0] = a1;\n  v7[1] = a2;\n  m_backgroundLayer = a1->m_backgroundLayer;\n  if ( (a2 & 1) != 0 )\n    v3 = -62;\n  else\n    v3 = -95;\n  setColor = m_backgroundLayer->setColor;\n  LOBYTE(v7[0]) = v3;\n  if ( (a2 & 1) != 0 )\n    v5 = 114;\n  else\n    v5 = 88;\n  BYTE1(v7[0]) = v5;\n  if ( (a2 & 1) != 0 )\n    v6 = 62;\n  else\n    v6 = 44;\n  BYTE2(v7[0]) = v6;\n  setColor(m_backgroundLayer, (const cocos2d::ccColor3B *)v7);\n}", "assembly": "; \n; AchievementCell::updateBGColor from 0x3313f0 to 0x331448 (88 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x33bb46\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 - 0x3313FC)                ; +0x0, 0x3313f0\nTST.W           R1, #1                                                 ; +0x2, 0x3313f2\nPUSH            {R0,R1,R4,LR}                                          ; +0x6, 0x3313f6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x3313f8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x3313fa\nLDR.W           R0, [R0,#0x190]                                        ; +0xc, 0x3313fc\nMOV             R1, SP                                                 ; +0x10, 0x331400\nLDR             R2, [R3]                                               ; +0x12, 0x331402\nMOV             R4, R3                                                 ; +0x14, 0x331404\nSTR             R2, [SP,#8+var_4]                                      ; +0x16, 0x331406\nIT NE                                                                  ; +0x18, 0x331408\nMOVNE           R2, #0xC2                                              ; +0x1a, 0x33140a\nLDR             R3, [R0]                                               ; +0x1c, 0x33140c\nIT EQ                                                                  ; +0x1e, 0x33140e\nMOVEQ           R2, #0xA1                                              ; +0x20, 0x331410\nLDR.W           R3, [R3,#0x258]                                        ; +0x22, 0x331412\nITTEE NE                                                               ; +0x26, 0x331416\nSTRBNE.W        R2, [SP,#8+var_8]                                      ; +0x28, 0x331418\nMOVNE           R2, #0x72 ; 'r'                                        ; +0x2c, 0x33141c\nSTRBEQ.W        R2, [SP,#8+var_8]                                      ; +0x2e, 0x33141e\nMOVEQ           R2, #0x58 ; 'X'                                        ; +0x32, 0x331422\nITTEE NE                                                               ; +0x34, 0x331424\nSTRBNE.W        R2, [SP,#8+var_7]                                      ; +0x36, 0x331426\nMOVNE           R2, #0x3E ; '>'                                        ; +0x3a, 0x33142a\nSTRBEQ.W        R2, [SP,#8+var_7]                                      ; +0x3c, 0x33142c\nMOVEQ           R2, #0x2C ; ','                                        ; +0x40, 0x331430\nSTRB.W          R2, [SP,#8+var_6]                                      ; +0x42, 0x331432\nBLX             R3                                                     ; +0x46, 0x331436\nLDR             R2, [SP,#8+var_4]                                      ; +0x48, 0x331438\nLDR             R3, [R4]                                               ; +0x4a, 0x33143a\nCMP             R2, R3                                                 ; +0x4c, 0x33143c\nBEQ             loc_331444                                             ; +0x4e, 0x33143e\nBLX             __stack_chk_fail                                       ; +0x50, 0x331440\nADD             SP, SP, #8                                             ; +0x54, 0x331444\nPOP             {R4,PC}                                                ; +0x56, 0x331446", "xrefs": ["CustomListView::loadCell @ 0x33bb46"], "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"}