{"type": "func", "start": 5048024, "end": 5048152, "name": "CurrencyRewardLayer::incrementCount", "pseudocode": "// \n// CurrencyRewardLayer::incrementCount from 0x4d06d8 to 0x4d0758 (128 bytes)\n// \n// 1 xrefs:\n// > CurrencyRewardLayer::update @ 0x4d0d04\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::incrementCount(CurrencyRewardLayer *a1, int a2)\n{\n  int m_orbs; // r1\n  cocos2d::CCLabelBMFont *m_orbsLabel; // 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_orbsLabel )\n  {\n    a1->m_orbs += a2;\n    CurrencyRewardLayer::pulseSprite(a1, a1->m_orbsSprite);\n    m_orbs = a1->m_orbs;\n    v7[0] = 0;\n    v7[1] = 500;\n    v7[2] = (unsigned int)&v8;\n    fmt::BasicWriter<char>::operator<<(v7, m_orbs);\n    m_orbsLabel = a1->m_orbsLabel;\n    setString = m_orbsLabel->setString;\n    v6 = fmt::BasicWriter<char>::c_str((int *)v7);\n    setString(m_orbsLabel, (const unsigned __int8 *)v6);\n    fmt::internal::Array<char,500u>::free((int)v7);\n  }\n}", "assembly": "; \n; CurrencyRewardLayer::incrementCount from 0x4d06d8 to 0x4d0758 (128 bytes)\n; \n; 1 xrefs:\n; > CurrencyRewardLayer::update @ 0x4d0d04\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 - 0x4D06E0)                ; +0x0, 0x4d06d8\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x4d06da\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4d06dc\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4d06de\nSUB.W           SP, SP, #0x20C                                         ; +0x8, 0x4d06e0\nMOV             R5, R0                                                 ; +0xc, 0x4d06e4\nLDR             R2, [R3]                                               ; +0xe, 0x4d06e6\nMOV             R6, R3                                                 ; +0x10, 0x4d06e8\nSTR             R2, [SP,#0x20C+var_8]                                  ; +0x12, 0x4d06ea\nLDR.W           R2, [R0,#0x144]                                        ; +0x14, 0x4d06ec\nCBZ             R2, loc_4D0746                                         ; +0x18, 0x4d06f0\nLDR.W           R3, [R0,#0x17C]                                        ; +0x1a, 0x4d06f2\nADD             R4, SP, #0x20C+var_208                                 ; +0x1e, 0x4d06f6\nADD             R1, R3                                                 ; +0x20, 0x4d06f8\nSTR.W           R1, [R0,#0x17C]                                        ; +0x22, 0x4d06fa\nLDR.W           R1, [R0,#0x15C]; cocos2d::CCSprite *                   ; +0x26, 0x4d06fe\nBL              _ZN19CurrencyRewardLayer11pulseSpriteEPN7cocos2d8CCSpriteE; CurrencyRewardLayer::pulseSprite(cocos2d::CCSprite *) ; +0x2a, 0x4d0702\nMOV             R0, R4                                                 ; +0x2e, 0x4d0706\nLDR.W           R1, [R5,#0x17C]                                        ; +0x30, 0x4d0708\nMOV.W           R3, #0x1F4                                             ; +0x34, 0x4d070c\nMOVS            R2, #0                                                 ; +0x38, 0x4d0710\nSTM.W           R4, {R2,R3}                                            ; +0x3a, 0x4d0712\nADD             R3, SP, #0x20C+var_1FC                                 ; +0x3e, 0x4d0716\nSTR             R3, [R4,#8]                                            ; +0x40, 0x4d0718\nBL              _ZN3fmt11BasicWriterIcElsEi; fmt::BasicWriter<char>::operator<<(int) ; +0x42, 0x4d071a\nLDR.W           R5, [R5,#0x144]                                        ; +0x46, 0x4d071e\nMOV             R0, R4                                                 ; +0x4a, 0x4d0722\nLDR             R3, [R5]                                               ; +0x4c, 0x4d0724\nLDR.W           R7, [R3,#0x1C8]                                        ; +0x4e, 0x4d0726\nBL              _ZNK3fmt11BasicWriterIcE5c_strEv; fmt::BasicWriter<char>::c_str(void) ; +0x52, 0x4d072a\nMOV             R1, R0                                                 ; +0x56, 0x4d072e\nMOV             R0, R5                                                 ; +0x58, 0x4d0730\nBLX             R7                                                     ; +0x5a, 0x4d0732\nMOV             R0, R4                                                 ; +0x5c, 0x4d0734\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x5e, 0x4d0736\nB               loc_4D0746                                             ; +0x62, 0x4d073a\nMOV             R0, R4                                                 ; +0x64, 0x4d073c\nBL              _ZN3fmt8internal5ArrayIcLj500EE4freeEv; fmt::internal::Array<char,500u>::free(void) ; +0x66, 0x4d073e\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x4d0742\nLDR             R2, [SP,#0x20C+var_8]                                  ; +0x6e, 0x4d0746\nLDR             R3, [R6]                                               ; +0x70, 0x4d0748\nCMP             R2, R3                                                 ; +0x72, 0x4d074a\nBEQ             loc_4D0752                                             ; +0x74, 0x4d074c\nBLX             __stack_chk_fail                                       ; +0x76, 0x4d074e\nADD.W           SP, SP, #0x20C                                         ; +0x7a, 0x4d0752\nPOP             {R4-R7,PC}                                             ; +0x7e, 0x4d0756", "xrefs": ["CurrencyRewardLayer::update @ 0x4d0d04"], "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"}