{"type": "func", "start": 5048552, "end": 5048680, "name": "CurrencyRewardLayer::incrementSpecialCount1", "pseudocode": "// \n// CurrencyRewardLayer::incrementSpecialCount1 from 0x4d08e8 to 0x4d0968 (128 bytes)\n// \n// 1 xrefs:\n// > CurrencyRewardLayer::update @ 0x4d0eee\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::incrementSpecialCount1(CurrencyRewardLayer *a1, int a2)\n{\n  int m_keys; // r1\n  cocos2d::CCLabelBMFont *m_keysLabel; // 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_keysLabel )\n  {\n    a1->m_keys += a2;\n    CurrencyRewardLayer::pulseSprite(a1, a1->m_keysSprite);\n    m_keys = a1->m_keys;\n    v7[0] = 0;\n    v7[1] = 500;\n    v7[2] = (unsigned int)&v8;\n    fmt::BasicWriter<char>::operator<<(v7, m_keys);\n    m_keysLabel = a1->m_keysLabel;\n    setString = m_keysLabel->setString;\n    v6 = fmt::BasicWriter<char>::c_str((int *)v7);\n    setString(m_keysLabel, (const unsigned __int8 *)v6);\n    fmt::internal::Array<char,500u>::free((int)v7);\n  }\n}", "assembly": "; \n; CurrencyRewardLayer::incrementSpecialCount1 from 0x4d08e8 to 0x4d0968 (128 bytes)\n; \n; 1 xrefs:\n; > CurrencyRewardLayer::update @ 0x4d0eee\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 - 0x4D08F0)                ; +0x0, 0x4d08e8\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x4d08ea\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4d08ec\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4d08ee\nSUB.W           SP, SP, #0x20C                                         ; +0x8, 0x4d08f0\nMOV             R5, R0                                                 ; +0xc, 0x4d08f4\nLDR             R2, [R3]                                               ; +0xe, 0x4d08f6\nMOV             R6, R3                                                 ; +0x10, 0x4d08f8\nSTR             R2, [SP,#0x20C+var_8]                                  ; +0x12, 0x4d08fa\nLDR.W           R2, [R0,#0x154]                                        ; +0x14, 0x4d08fc\nCBZ             R2, loc_4D0956                                         ; +0x18, 0x4d0900\nLDR.W           R3, [R0,#0x18C]                                        ; +0x1a, 0x4d0902\nADD             R4, SP, #0x20C+var_208                                 ; +0x1e, 0x4d0906\nADD             R1, R3                                                 ; +0x20, 0x4d0908\nSTR.W           R1, [R0,#0x18C]                                        ; +0x22, 0x4d090a\nLDR.W           R1, [R0,#0x16C]; cocos2d::CCSprite *                   ; +0x26, 0x4d090e\nBL              _ZN19CurrencyRewardLayer11pulseSpriteEPN7cocos2d8CCSpriteE; CurrencyRewardLayer::pulseSprite(cocos2d::CCSprite *) ; +0x2a, 0x4d0912\nMOV             R0, R4                                                 ; +0x2e, 0x4d0916\nLDR.W           R1, [R5,#0x18C]                                        ; +0x30, 0x4d0918\nMOV.W           R3, #0x1F4                                             ; +0x34, 0x4d091c\nMOVS            R2, #0                                                 ; +0x38, 0x4d0920\nSTM.W           R4, {R2,R3}                                            ; +0x3a, 0x4d0922\nADD             R3, SP, #0x20C+var_1FC                                 ; +0x3e, 0x4d0926\nSTR             R3, [R4,#8]                                            ; +0x40, 0x4d0928\nBL              _ZN3fmt11BasicWriterIcElsEi; fmt::BasicWriter<char>::operator<<(int) ; +0x42, 0x4d092a\nLDR.W           R5, [R5,#0x154]                                        ; +0x46, 0x4d092e\nMOV             R0, R4                                                 ; +0x4a, 0x4d0932\nLDR             R3, [R5]                                               ; +0x4c, 0x4d0934\nLDR.W           R7, [R3,#0x1C8]                                        ; +0x4e, 0x4d0936\nBL              _ZNK3fmt11BasicWriterIcE5c_strEv; fmt::BasicWriter<char>::c_str(void) ; +0x52, 0x4d093a\nMOV             R1, R0                                                 ; +0x56, 0x4d093e\nMOV             R0, R5                                                 ; +0x58, 0x4d0940\nBLX             R7                                                     ; +0x5a, 0x4d0942\nMOV             R0, R4                                                 ; +0x5c, 0x4d0944\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x5e, 0x4d0946\nB               loc_4D0956                                             ; +0x62, 0x4d094a\nMOV             R0, R4                                                 ; +0x64, 0x4d094c\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x66, 0x4d094e\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x4d0952\nLDR             R2, [SP,#0x20C+var_8]                                  ; +0x6e, 0x4d0956\nLDR             R3, [R6]                                               ; +0x70, 0x4d0958\nCMP             R2, R3                                                 ; +0x72, 0x4d095a\nBEQ             loc_4D0962                                             ; +0x74, 0x4d095c\nBLX             __stack_chk_fail                                       ; +0x76, 0x4d095e\nADD.W           SP, SP, #0x20C                                         ; +0x7a, 0x4d0962\nPOP             {R4-R7,PC}                                             ; +0x7e, 0x4d0966", "xrefs": ["CurrencyRewardLayer::update @ 0x4d0eee"], "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"}