{"type": "func", "start": 4295222620, "end": 4295222732, "name": "CCCounterLabel::setTargetCount", "pseudocode": "// \n// CCCounterLabel::setTargetCount from 0x10003e55c to 0x10003e5cc (112 bytes)\n// \n// 2 xrefs:\n// > sub_1001CA90C @ 0x1001ca93c\n// > GJShopLayer::didPurchaseItem @ 0x1001cadd0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:57:35 +0000\n// \n\n__int64 __fastcall CCCounterLabel::setTargetCount(__int64 result, int a2)\n{\n  int v2; // w8\n  float v3; // s1\n  float v4; // s2\n\n  v2 = *(_DWORD *)(result + 532);\n  v3 = (float)*(int *)(result + 524);\n  v4 = vabds_f32((float)a2, v3);\n  *(_DWORD *)(result + 520) = a2;\n  if ( v4 < (float)v2 )\n    v2 = (int)v4;\n  *(_DWORD *)(result + 516) = (int)(float)((float)((float)a2 - v3) / (float)v2);\n  if ( (*(_BYTE *)(result + 528) & 1) == 0 )\n  {\n    *(_BYTE *)(result + 528) = 1;\n    if ( (*(_BYTE *)(result + 536) & 1) == 0 )\n      return cocos2d::CCNode::schedule(result, sub_10003E4E8, 0, 0.033333);\n  }\n  return result;\n}", "assembly": "; \n; CCCounterLabel::setTargetCount from 0x10003e55c to 0x10003e5cc (112 bytes)\n; \n; 2 xrefs:\n; > sub_1001CA90C @ 0x1001ca93c\n; > GJShopLayer::didPurchaseItem @ 0x1001cadd0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:57:35 +0000\n; \nLDR             W8, [X0,#0x214]                                        ; +0x0, 0x10003e55c\nSCVTF           S0, W1                                                 ; +0x4, 0x10003e560\nLDR             S1, [X0,#0x20C]                                        ; +0x8, 0x10003e564\nSCVTF           S1, S1                                                 ; +0xc, 0x10003e568\nFABD            S2, S0, S1                                             ; +0x10, 0x10003e56c\nSCVTF           S3, W8                                                 ; +0x14, 0x10003e570\nFCMP            S2, S3                                                 ; +0x18, 0x10003e574\nSTR             W1, [X0,#0x208]                                        ; +0x1c, 0x10003e578\nFCVTZS          W9, S2                                                 ; +0x20, 0x10003e57c\nCSEL            W8, W9, W8, MI                                         ; +0x24, 0x10003e580\nSCVTF           S2, W8                                                 ; +0x28, 0x10003e584\nFSUB            S0, S0, S1                                             ; +0x2c, 0x10003e588\nFDIV            S0, S0, S2                                             ; +0x30, 0x10003e58c\nFCVTZS          W8, S0                                                 ; +0x34, 0x10003e590\nSTR             W8, [X0,#0x204]                                        ; +0x38, 0x10003e594\nLDRB            W8, [X0,#0x210]                                        ; +0x3c, 0x10003e598\nTBNZ            W8, #0, locret_10003E5B0                               ; +0x40, 0x10003e59c\nMOV             W8, #1                                                 ; +0x44, 0x10003e5a0\nSTRB            W8, [X0,#0x210]                                        ; +0x48, 0x10003e5a4\nLDRB            W8, [X0,#0x218]                                        ; +0x4c, 0x10003e5a8\nTBZ             W8, #0, loc_10003E5B4                                  ; +0x50, 0x10003e5ac\nRET                                                                    ; +0x54, 0x10003e5b0\nADRL            X1, sub_10003E4E8                                      ; +0x58, 0x10003e5b4\nADRP            X8, #dword_10075C990@PAGE                              ; +0x60, 0x10003e5bc\nLDR             S0, [X8,#dword_10075C990@PAGEOFF]                      ; +0x64, 0x10003e5c0\nMOV             X2, #0                                                 ; +0x68, 0x10003e5c4\nB               cocos2d__CCNode__schedule                              ; +0x6c, 0x10003e5c8", "xrefs": ["sub_1001CA90C @ 0x1001ca93c", "GJShopLayer::didPurchaseItem @ 0x1001cadd0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}