{"type": "func", "start": 4300099344, "end": 4300099552, "name": "BrowseSmartTemplateLayer::createDots", "pseudocode": "// \n// BrowseSmartTemplateLayer::createDots from 0x1004e4f10 to 0x1004e4fe0 (208 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartTemplateLayer::updateDots @ 0x1004e5001\n// \n// This function is hookable on this platform (idp: pc, 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 12:31:19 +0000\n// \n\n__int64 __fastcall BrowseSmartTemplateLayer::createDots(_QWORD *a1)\n{\n  _QWORD *v2; // r14\n  __int64 v3; // rdi\n  __int64 v4; // rax\n  __int64 result; // rax\n  unsigned int v6; // r13d\n  char *v7; // r12\n\n  v2 = cocos2d::CCSpriteBatchNode::create((__int64)\"smallDot.png\", 0x1Du);\n  v3 = a1[73];\n  (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v2, 5);\n  v4 = sub_1007FE900(v3);\n  a1[88] = v4;\n  cocos2d::CCObject::retain(v4);\n  result = sub_1007FEF90(a1[84]);\n  if ( (_DWORD)result )\n  {\n    v6 = 0;\n    do\n    {\n      v7 = cocos2d::CCSprite::create_1((__int64)\"smallDot.png\");\n      (*(void (__fastcall **)(char *, float))(*(_QWORD *)v7 + 160LL))(v7, 0.80000001);\n      (*(void (__fastcall **)(_QWORD *, char *))(*v2 + 456LL))(v2, v7);\n      sub_1007FEBF0(a1[88], v7);\n      ++v6;\n      result = sub_1007FEF90(a1[84]);\n    }\n    while ( v6 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; BrowseSmartTemplateLayer::createDots from 0x1004e4f10 to 0x1004e4fe0 (208 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartTemplateLayer::updateDots @ 0x1004e5001\n; \n; This function is hookable on this platform (idp: pc, 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 12:31:19 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004e4f10\nmov     rbp, rsp                                                       ; +0x1, 0x1004e4f11\npush    r15                                                            ; +0x4, 0x1004e4f14\npush    r14                                                            ; +0x6, 0x1004e4f16\npush    r13                                                            ; +0x8, 0x1004e4f18\npush    r12                                                            ; +0xa, 0x1004e4f1a\npush    rbx                                                            ; +0xc, 0x1004e4f1c\npush    rax                                                            ; +0xd, 0x1004e4f1d\nmov     rbx, rdi                                                       ; +0xe, 0x1004e4f1e\nlea     rdi, aSmalldotPng; \"smallDot.png\"                              ; +0x11, 0x1004e4f21\nmov     esi, 1Dh                                                       ; +0x18, 0x1004e4f28\ncall    cocos2d__CCSpriteBatchNode__create                             ; +0x1d, 0x1004e4f2d\nmov     r14, rax                                                       ; +0x22, 0x1004e4f32\nmov     rdi, [rbx+248h]                                                ; +0x25, 0x1004e4f35\nmov     rax, [rdi]                                                     ; +0x2c, 0x1004e4f3c\nmov     rsi, r14                                                       ; +0x2f, 0x1004e4f3f\nmov     edx, 5                                                         ; +0x32, 0x1004e4f42\ncall    qword ptr [rax+1D0h]                                           ; +0x37, 0x1004e4f47\ncall    sub_1007FE900                                                  ; +0x3d, 0x1004e4f4d\nmov     [rbx+2C0h], rax                                                ; +0x42, 0x1004e4f52\nmov     rdi, rax                                                       ; +0x49, 0x1004e4f59\ncall    cocos2d__CCObject__retain                                      ; +0x4c, 0x1004e4f5c\nmov     rdi, [rbx+2A0h]                                                ; +0x51, 0x1004e4f61\ncall    sub_1007FEF90                                                  ; +0x58, 0x1004e4f68\ntest    eax, eax                                                       ; +0x5d, 0x1004e4f6d\njz      short loc_1004E4FD1                                            ; +0x5f, 0x1004e4f6f\nxor     r13d, r13d                                                     ; +0x61, 0x1004e4f71\nlea     r15, aSmalldotPng; \"smallDot.png\"                              ; +0x64, 0x1004e4f74\nnop     dword ptr [rax+rax+00h]                                        ; +0x6b, 0x1004e4f7b\nmov     rdi, r15                                                       ; +0x70, 0x1004e4f80\ncall    cocos2d__CCSprite__create_1                                    ; +0x73, 0x1004e4f83\nmov     r12, rax                                                       ; +0x78, 0x1004e4f88\nmov     rax, [rax]                                                     ; +0x7b, 0x1004e4f8b\nmov     rdi, r12                                                       ; +0x7e, 0x1004e4f8e\nmovss   xmm0, cs:dword_100A03588                                       ; +0x81, 0x1004e4f91\ncall    qword ptr [rax+0A0h]                                           ; +0x89, 0x1004e4f99\nmov     rax, [r14]                                                     ; +0x8f, 0x1004e4f9f\nmov     rdi, r14                                                       ; +0x92, 0x1004e4fa2\nmov     rsi, r12                                                       ; +0x95, 0x1004e4fa5\ncall    qword ptr [rax+1C8h]                                           ; +0x98, 0x1004e4fa8\nmov     rdi, [rbx+2C0h]                                                ; +0x9e, 0x1004e4fae\nmov     rsi, r12                                                       ; +0xa5, 0x1004e4fb5\ncall    sub_1007FEBF0                                                  ; +0xa8, 0x1004e4fb8\ninc     r13d                                                           ; +0xad, 0x1004e4fbd\nmov     rdi, [rbx+2A0h]                                                ; +0xb0, 0x1004e4fc0\ncall    sub_1007FEF90                                                  ; +0xb7, 0x1004e4fc7\ncmp     r13d, eax                                                      ; +0xbc, 0x1004e4fcc\njb      short loc_1004E4F80                                            ; +0xbf, 0x1004e4fcf\nadd     rsp, 8                                                         ; +0xc1, 0x1004e4fd1\npop     rbx                                                            ; +0xc5, 0x1004e4fd5\npop     r12                                                            ; +0xc6, 0x1004e4fd6\npop     r13                                                            ; +0xc8, 0x1004e4fd8\npop     r14                                                            ; +0xca, 0x1004e4fda\npop     r15                                                            ; +0xcc, 0x1004e4fdc\npop     rbp                                                            ; +0xce, 0x1004e4fde\nretn                                                                   ; +0xcf, 0x1004e4fdf", "xrefs": ["BrowseSmartTemplateLayer::updateDots @ 0x1004e5001"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}