{"type": "func", "start": 5048156, "end": 5048284, "name": "CurrencyRewardLayer::incrementStarsCount", "pseudocode": "// \n// CurrencyRewardLayer::incrementStarsCount from 0x4d075c to 0x4d07dc (128 bytes)\n// \n// 1 xrefs:\n// > CurrencyRewardLayer::update @ 0x4d0d14\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 CurrencyRewardLayer::incrementStarsCount(CurrencyRewardLayer *a1, int a2)\n{\n  int m_stars; // r1\n  cocos2d::CCLabelBMFont *m_starsLabel; // r5\n  void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r7\n  int v6; // r0\n  unsigned int v7[3]; // [sp+4h] [bp-208h] BYREF\n  char v8; // [sp+10h] [bp-1FCh] BYREF\n\n  if ( a1->m_starsLabel )\n  {\n    a1->m_stars += a2;\n    CurrencyRewardLayer::pulseSprite(a1, a1->m_starsSprite);\n    m_stars = a1->m_stars;\n    v7[0] = 0;\n    v7[1] = 500;\n    v7[2] = (unsigned int)&v8;\n    fmt::BasicWriter<char>::operator<<(v7, m_stars);\n    m_starsLabel = a1->m_starsLabel;\n    setString = m_starsLabel->setString;\n    v6 = fmt::BasicWriter<char>::c_str((int *)v7);\n    setString(m_starsLabel, (const unsigned __int8 *)v6);\n    fmt::internal::Array<char,500u>::free((int)v7);\n  }\n}", "assembly": "; \n; CurrencyRewardLayer::incrementStarsCount from 0x4d075c to 0x4d07dc (128 bytes)\n; \n; 1 xrefs:\n; > CurrencyRewardLayer::update @ 0x4d0d14\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 - 0x4D0764)                ; +0x0, 0x4d075c\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x4d075e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4d0760\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4d0762\nSUB.W           SP, SP, #0x20C                                         ; +0x8, 0x4d0764\nMOV             R5, R0                                                 ; +0xc, 0x4d0768\nLDR             R2, [R3]                                               ; +0xe, 0x4d076a\nMOV             R6, R3                                                 ; +0x10, 0x4d076c\nSTR             R2, [SP,#0x20C+var_8]                                  ; +0x12, 0x4d076e\nLDR.W           R2, [R0,#0x148]                                        ; +0x14, 0x4d0770\nCBZ             R2, loc_4D07CA                                         ; +0x18, 0x4d0774\nLDR.W           R3, [R0,#0x180]                                        ; +0x1a, 0x4d0776\nADD             R4, SP, #0x20C+var_208                                 ; +0x1e, 0x4d077a\nADD             R1, R3                                                 ; +0x20, 0x4d077c\nSTR.W           R1, [R0,#0x180]                                        ; +0x22, 0x4d077e\nLDR.W           R1, [R0,#0x160]; cocos2d::CCSprite *                   ; +0x26, 0x4d0782\nBL              _ZN19CurrencyRewardLayer11pulseSpriteEPN7cocos2d8CCSpriteE; CurrencyRewardLayer::pulseSprite(cocos2d::CCSprite *) ; +0x2a, 0x4d0786\nMOV             R0, R4                                                 ; +0x2e, 0x4d078a\nLDR.W           R1, [R5,#0x180]                                        ; +0x30, 0x4d078c\nMOV.W           R3, #0x1F4                                             ; +0x34, 0x4d0790\nMOVS            R2, #0                                                 ; +0x38, 0x4d0794\nSTM.W           R4, {R2,R3}                                            ; +0x3a, 0x4d0796\nADD             R3, SP, #0x20C+var_1FC                                 ; +0x3e, 0x4d079a\nSTR             R3, [R4,#8]                                            ; +0x40, 0x4d079c\nBL              _ZN3fmt11BasicWriterIcElsEi; fmt::BasicWriter<char>::operator<<(int) ; +0x42, 0x4d079e\nLDR.W           R5, [R5,#0x148]                                        ; +0x46, 0x4d07a2\nMOV             R0, R4                                                 ; +0x4a, 0x4d07a6\nLDR             R3, [R5]                                               ; +0x4c, 0x4d07a8\nLDR.W           R7, [R3,#0x1C8]                                        ; +0x4e, 0x4d07aa\nBL              _ZNK3fmt11BasicWriterIcE5c_strEv; fmt::BasicWriter<char>::c_str(void) ; +0x52, 0x4d07ae\nMOV             R1, R0                                                 ; +0x56, 0x4d07b2\nMOV             R0, R5                                                 ; +0x58, 0x4d07b4\nBLX             R7                                                     ; +0x5a, 0x4d07b6\nMOV             R0, R4                                                 ; +0x5c, 0x4d07b8\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x5e, 0x4d07ba\nB               loc_4D07CA                                             ; +0x62, 0x4d07be\nMOV             R0, R4                                                 ; +0x64, 0x4d07c0\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x66, 0x4d07c2\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x4d07c6\nLDR             R2, [SP,#0x20C+var_8]                                  ; +0x6e, 0x4d07ca\nLDR             R3, [R6]                                               ; +0x70, 0x4d07cc\nCMP             R2, R3                                                 ; +0x72, 0x4d07ce\nBEQ             loc_4D07D6                                             ; +0x74, 0x4d07d0\nBLX             __stack_chk_fail                                       ; +0x76, 0x4d07d2\nADD.W           SP, SP, #0x20C                                         ; +0x7a, 0x4d07d6\nPOP             {R4-R7,PC}                                             ; +0x7e, 0x4d07da", "xrefs": ["CurrencyRewardLayer::update @ 0x4d0d14"], "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"}