{"type": "func", "start": 5048684, "end": 5048812, "name": "CurrencyRewardLayer::incrementSpecialCount2", "pseudocode": "// \n// CurrencyRewardLayer::incrementSpecialCount2 from 0x4d096c to 0x4d09ec (128 bytes)\n// \n// 1 xrefs:\n// > CurrencyRewardLayer::update @ 0x4d0d80\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::incrementSpecialCount2(CurrencyRewardLayer *a1, int a2)\n{\n  int m_shards; // r1\n  cocos2d::CCLabelBMFont *m_shardsLabel; // 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_shardsLabel )\n  {\n    a1->m_shards += a2;\n    CurrencyRewardLayer::pulseSprite(a1, a1->m_shardsSprite);\n    m_shards = a1->m_shards;\n    v7[0] = 0;\n    v7[1] = 500;\n    v7[2] = (unsigned int)&v8;\n    fmt::BasicWriter<char>::operator<<(v7, m_shards);\n    m_shardsLabel = a1->m_shardsLabel;\n    setString = m_shardsLabel->setString;\n    v6 = fmt::BasicWriter<char>::c_str((int *)v7);\n    setString(m_shardsLabel, (const unsigned __int8 *)v6);\n    fmt::internal::Array<char,500u>::free((int)v7);\n  }\n}", "assembly": "; \n; CurrencyRewardLayer::incrementSpecialCount2 from 0x4d096c to 0x4d09ec (128 bytes)\n; \n; 1 xrefs:\n; > CurrencyRewardLayer::update @ 0x4d0d80\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 - 0x4D0974)                ; +0x0, 0x4d096c\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x4d096e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4d0970\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4d0972\nSUB.W           SP, SP, #0x20C                                         ; +0x8, 0x4d0974\nMOV             R5, R0                                                 ; +0xc, 0x4d0978\nLDR             R2, [R3]                                               ; +0xe, 0x4d097a\nMOV             R6, R3                                                 ; +0x10, 0x4d097c\nSTR             R2, [SP,#0x20C+var_8]                                  ; +0x12, 0x4d097e\nLDR.W           R2, [R0,#0x158]                                        ; +0x14, 0x4d0980\nCBZ             R2, loc_4D09DA                                         ; +0x18, 0x4d0984\nLDR.W           R3, [R0,#0x190]                                        ; +0x1a, 0x4d0986\nADD             R4, SP, #0x20C+var_208                                 ; +0x1e, 0x4d098a\nADD             R1, R3                                                 ; +0x20, 0x4d098c\nSTR.W           R1, [R0,#0x190]                                        ; +0x22, 0x4d098e\nLDR.W           R1, [R0,#0x170]; cocos2d::CCSprite *                   ; +0x26, 0x4d0992\nBL              _ZN19CurrencyRewardLayer11pulseSpriteEPN7cocos2d8CCSpriteE; CurrencyRewardLayer::pulseSprite(cocos2d::CCSprite *) ; +0x2a, 0x4d0996\nMOV             R0, R4                                                 ; +0x2e, 0x4d099a\nLDR.W           R1, [R5,#0x190]                                        ; +0x30, 0x4d099c\nMOV.W           R3, #0x1F4                                             ; +0x34, 0x4d09a0\nMOVS            R2, #0                                                 ; +0x38, 0x4d09a4\nSTM.W           R4, {R2,R3}                                            ; +0x3a, 0x4d09a6\nADD             R3, SP, #0x20C+var_1FC                                 ; +0x3e, 0x4d09aa\nSTR             R3, [R4,#8]                                            ; +0x40, 0x4d09ac\nBL              _ZN3fmt11BasicWriterIcElsEi; fmt::BasicWriter<char>::operator<<(int) ; +0x42, 0x4d09ae\nLDR.W           R5, [R5,#0x158]                                        ; +0x46, 0x4d09b2\nMOV             R0, R4                                                 ; +0x4a, 0x4d09b6\nLDR             R3, [R5]                                               ; +0x4c, 0x4d09b8\nLDR.W           R7, [R3,#0x1C8]                                        ; +0x4e, 0x4d09ba\nBL              _ZNK3fmt11BasicWriterIcE5c_strEv; fmt::BasicWriter<char>::c_str(void) ; +0x52, 0x4d09be\nMOV             R1, R0                                                 ; +0x56, 0x4d09c2\nMOV             R0, R5                                                 ; +0x58, 0x4d09c4\nBLX             R7                                                     ; +0x5a, 0x4d09c6\nMOV             R0, R4                                                 ; +0x5c, 0x4d09c8\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x5e, 0x4d09ca\nB               loc_4D09DA                                             ; +0x62, 0x4d09ce\nMOV             R0, R4                                                 ; +0x64, 0x4d09d0\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x66, 0x4d09d2\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x4d09d6\nLDR             R2, [SP,#0x20C+var_8]                                  ; +0x6e, 0x4d09da\nLDR             R3, [R6]                                               ; +0x70, 0x4d09dc\nCMP             R2, R3                                                 ; +0x72, 0x4d09de\nBEQ             loc_4D09E6                                             ; +0x74, 0x4d09e0\nBLX             __stack_chk_fail                                       ; +0x76, 0x4d09e2\nADD.W           SP, SP, #0x20C                                         ; +0x7a, 0x4d09e6\nPOP             {R4-R7,PC}                                             ; +0x7e, 0x4d09ea", "xrefs": ["CurrencyRewardLayer::update @ 0x4d0d80"], "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"}