{"type": "func", "start": 5500736, "end": 5501008, "name": "BrowseSmartTemplateLayer::updateDots", "pseudocode": "// \n// BrowseSmartTemplateLayer::updateDots from 0x53ef40 to 0x53f050 (272 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartTemplateLayer::goToPage @ 0x53f118\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 BrowseSmartTemplateLayer::updateDots(BrowseSmartTemplateLayer *a1)\n{\n  cocos2d::CCDirector *v2; // r0\n  unsigned int v3; // r4\n  float v4; // s18\n  float v5; // s16\n  float width; // s19\n  int *v7; // r5\n  void (__fastcall *v8)(int *, cocos2d::CCPoint *); // r10\n  int v9; // r3\n  void (__fastcall *v10)(int *, cocos2d::CCPoint *); // r2\n  cocos2d::CCSize v11; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF\n\n  if ( !a1->m_dotsArray )\n    BrowseSmartTemplateLayer::createDots(a1);\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = 0;\n  cocos2d::CCDirector::getWinSize(&v11, v2);\n  v4 = (float)(int)cocos2d::CCArray::count(a1->m_pages);\n  v5 = (float)((float)(v11.height * 0.5) - 140.0) + 15.0;\n  while ( v3 < cocos2d::CCArray::count(a1->m_pages) )\n  {\n    width = v11.width;\n    if ( v3 < cocos2d::CCArray::count(a1->m_dotsArray) )\n    {\n      v7 = (int *)cocos2d::CCArray::objectAtIndex(a1->m_dotsArray, v3);\n      v8 = *(void (__fastcall **)(int *, cocos2d::CCPoint *))(*v7 + 92);\n      cocos2d::CCPoint::CCPoint(\n        &v12,\n        (float)((float)((float)(int)v3 - (float)((float)(v4 - 1.0) * 0.5)) * 16.0) + (float)(width * 0.5),\n        v5);\n      v8(v7, &v12);\n      v9 = *v7;\n      if ( v3 == a1->m_page )\n      {\n        (*(void (__fastcall **)(int *, void *))(v9 + 472))(v7, &unk_9AD330);\n      }\n      else\n      {\n        v10 = *(void (__fastcall **)(int *, cocos2d::CCPoint *))(v9 + 472);\n        memset(&v12, 125, 3);\n        v10(v7, &v12);\n      }\n    }\n    ++v3;\n  }\n}", "assembly": "; \n; BrowseSmartTemplateLayer::updateDots from 0x53ef40 to 0x53f050 (272 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartTemplateLayer::goToPage @ 0x53f118\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 - 0x53EF4A)                ; +0x0, 0x53ef40\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x53ef42\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x53ef46\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x53ef48\nVPUSH           {D8-D9}                                                ; +0xa, 0x53ef4a\nMOV             R7, R0                                                 ; +0xe, 0x53ef4e\nLDR             R2, [R3]                                               ; +0x10, 0x53ef50\nMOV             R6, R3                                                 ; +0x12, 0x53ef52\nSUB             SP, SP, #0x18                                          ; +0x14, 0x53ef54\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x16, 0x53ef56\nLDR.W           R2, [R0,#0x204]                                        ; +0x18, 0x53ef58\nCBNZ            R2, loc_53EF62                                         ; +0x1c, 0x53ef5c\nBL              _ZN24BrowseSmartTemplateLayer10createDotsEv; BrowseSmartTemplateLayer::createDots(void) ; +0x1e, 0x53ef5e\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x53ef62\nVMOV.F32        S17, #0.5                                              ; +0x26, 0x53ef66\nLDR.W           R9, =(unk_9AD328 - 0x53EF78)                           ; +0x2a, 0x53ef6a\nADD.W           R8, SP, #0x18+var_C                                    ; +0x2e, 0x53ef6e\nMOVS            R4, #0                                                 ; +0x32, 0x53ef72\nADD             R9, PC; unk_9AD328                                     ; +0x34, 0x53ef74\nADD.W           R9, R9, #(unk_9AD330 - 0x9AD328)                       ; +0x36, 0x53ef76\nVMOV.F32        S16, #15.0                                             ; +0x3a, 0x53ef7a\nMOV             R1, R0                                                 ; +0x3e, 0x53ef7e\nADD             R0, SP, #0x18+var_14; this                             ; +0x40, 0x53ef80\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x42, 0x53ef82\nLDR.W           R0, [R7,#0x1F4]; this                                  ; +0x46, 0x53ef86\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4a, 0x53ef8a\nVLDR            S14, =140.0                                            ; +0x4e, 0x53ef8e\nVMOV            S15, R0                                                ; +0x52, 0x53ef92\nVCVT.F32.S32    S18, S15                                               ; +0x56, 0x53ef96\nVLDR            S15, [SP,#0x18+var_10]                                 ; +0x5a, 0x53ef9a\nVNMLS.F32       S14, S15, S17                                          ; +0x5e, 0x53ef9e\nVADD.F32        S16, S14, S16                                          ; +0x62, 0x53efa2\nLDR.W           R0, [R7,#0x1F4]; this                                  ; +0x66, 0x53efa6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x6a, 0x53efaa\nCMP             R4, R0                                                 ; +0x6e, 0x53efae\nBCS             loc_53F03A                                             ; +0x70, 0x53efb0\nLDR.W           R0, [R7,#0x204]; this                                  ; +0x72, 0x53efb2\nVLDR            S19, [SP,#0x18+var_14]                                 ; +0x76, 0x53efb6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x7a, 0x53efba\nCMP             R4, R0                                                 ; +0x7e, 0x53efbe\nBCS             loc_53F036                                             ; +0x80, 0x53efc0\nMOV             R1, R4; unsigned int                                   ; +0x82, 0x53efc2\nLDR.W           R0, [R7,#0x204]; this                                  ; +0x84, 0x53efc4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x88, 0x53efc8\nVMOV.F32        S14, #1.0                                              ; +0x8c, 0x53efcc\nVMOV            S15, R4                                                ; +0x90, 0x53efd0\nVMOV            R2, S16; float                                         ; +0x94, 0x53efd4\nVSUB.F32        S14, S18, S14                                          ; +0x98, 0x53efd8\nVCVT.F32.S32    S15, S15                                               ; +0x9c, 0x53efdc\nVMLS.F32        S15, S14, S17                                          ; +0xa0, 0x53efe0\nLDR             R3, [R0]                                               ; +0xa4, 0x53efe4\nMOV             R5, R0                                                 ; +0xa6, 0x53efe6\nMOV             R0, R8; this                                           ; +0xa8, 0x53efe8\nLDR.W           R10, [R3,#0x5C]                                        ; +0xaa, 0x53efea\nVMOV.F32        S14, #16.0                                             ; +0xae, 0x53efee\nVMUL.F32        S15, S15, S14                                          ; +0xb2, 0x53eff2\nVMLA.F32        S15, S19, S17                                          ; +0xb6, 0x53eff6\nVMOV            R1, S15; float                                         ; +0xba, 0x53effa\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xbe, 0x53effe\nMOV             R0, R5                                                 ; +0xc2, 0x53f002\nMOV             R1, R8                                                 ; +0xc4, 0x53f004\nBLX             R10                                                    ; +0xc6, 0x53f006\nLDR.W           R3, [R7,#0x1F8]                                        ; +0xc8, 0x53f008\nCMP             R4, R3                                                 ; +0xcc, 0x53f00c\nLDR             R3, [R5]                                               ; +0xce, 0x53f00e\nBNE             loc_53F01E                                             ; +0xd0, 0x53f010\nLDR.W           R3, [R3,#0x1D8]                                        ; +0xd2, 0x53f012\nMOV             R0, R5                                                 ; +0xd6, 0x53f016\nMOV             R1, R9                                                 ; +0xd8, 0x53f018\nBLX             R3                                                     ; +0xda, 0x53f01a\nB               loc_53F036                                             ; +0xdc, 0x53f01c\nLDR.W           R2, [R3,#0x1D8]                                        ; +0xde, 0x53f01e\nMOV             R0, R5                                                 ; +0xe2, 0x53f022\nMOVS            R3, #0x7D ; '}'                                        ; +0xe4, 0x53f024\nMOV             R1, R8                                                 ; +0xe6, 0x53f026\nSTRB.W          R3, [SP,#0x18+var_C]                                   ; +0xe8, 0x53f028\nSTRB.W          R3, [SP,#0x18+var_B]                                   ; +0xec, 0x53f02c\nSTRB.W          R3, [SP,#0x18+var_A]                                   ; +0xf0, 0x53f030\nBLX             R2                                                     ; +0xf4, 0x53f034\nADDS            R4, #1                                                 ; +0xf6, 0x53f036\nB               loc_53EFA6                                             ; +0xf8, 0x53f038\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xfa, 0x53f03a\nLDR             R3, [R6]                                               ; +0xfc, 0x53f03c\nCMP             R2, R3                                                 ; +0xfe, 0x53f03e\nBEQ             loc_53F046                                             ; +0x100, 0x53f040\nBLX             __stack_chk_fail                                       ; +0x102, 0x53f042\nADD             SP, SP, #0x18                                          ; +0x106, 0x53f046\nVPOP            {D8-D9}                                                ; +0x108, 0x53f048\nPOP.W           {R4-R10,PC}                                            ; +0x10c, 0x53f04c", "xrefs": ["BrowseSmartTemplateLayer::goToPage @ 0x53f118"], "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"}