{"type": "func", "start": 5372559104, "end": 5372559334, "name": "PlayLayer::spawnCircle", "pseudocode": "// \n// PlayLayer::spawnCircle from 0x1403abf00 to 0x1403abfe6 (230 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::levelComplete @ 0x1403a8760\n// > PlayLayer::showCompleteText @ 0x1403a8dd0\n// > <???> @ 0x1406d6c2c\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 PlayLayer::spawnCircle(PlayLayer *a1)\n{\n  cocos2d::CCDirector *v2; // rax\n  float ScreenRight; // xmm1_4\n  cocos2d::CCNode *v4; // rdi\n  EndPortalObject *m_endPortal; // rcx\n  cocos2d::CCPoint v6; // [rsp+40h] [rbp+8h] BYREF\n\n  v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  ScreenRight = cocos2d::CCDirector::getScreenRight(v2);\n  v4 = CCCircleWave::create(10.0, ScreenRight, 0.5, 1, 1);\n  v4[1].m_uUnknown = 4;\n  *(cocos2d::ccColor3B *)&v4[1].m_uReference = a1->m_player1->m_playerColor1;\n  if ( !a1->m_isPlatformer )\n  {\n    m_endPortal = a1->m_endPortal;\n    if ( m_endPortal )\n    {\n      if ( !a1->m_platformerEndTrigger )\n        m_endPortal->getPosition_0(m_endPortal);\n    }\n  }\n  cocos2d::CCPoint::CCPoint(&v6);\n  v4->setPosition_0(v4, &v6);\n  a1->m_objectLayer->addChild_0(a1->m_objectLayer, v4, 0);\n  v4[1].m_uIndexInArray = 1;\n}", "assembly": "; \n; PlayLayer::spawnCircle from 0x1403abf00 to 0x1403abfe6 (230 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::levelComplete @ 0x1403a8760\n; > PlayLayer::showCompleteText @ 0x1403a8dd0\n; > <???> @ 0x1406d6c2c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403abf00\npush    rdi                                                            ; +0x5, 0x1403abf05\nsub     rsp, 30h                                                       ; +0x6, 0x1403abf06\nmov     rbx, rcx                                                       ; +0xa, 0x1403abf0a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1403abf0d\nmov     rcx, rax                                                       ; +0x13, 0x1403abf13\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x16, 0x1403abf16\nmovss   xmm2, cs:dword_140622B08                                       ; +0x1c, 0x1403abf1c\nmov     r9b, 1                                                         ; +0x24, 0x1403abf24\nmovaps  xmm1, xmm0                                                     ; +0x27, 0x1403abf27\nmov     [rsp+38h+var_18], 1                                            ; +0x2a, 0x1403abf2a\nmovss   xmm0, cs:flt_14062307C                                         ; +0x2f, 0x1403abf2f\ncall    CCCircleWave__create                                           ; +0x37, 0x1403abf37\nmov     rdi, rax                                                       ; +0x3c, 0x1403abf3c\nmov     dword ptr [rax+164h], 4                                        ; +0x3f, 0x1403abf3f\nmov     rdx, [rbx+0DA0h]                                               ; +0x49, 0x1403abf49\nmovzx   ecx, word ptr [rdx+0A8Ah]                                      ; +0x50, 0x1403abf50\nmov     [rax+154h], cx                                                 ; +0x57, 0x1403abf57\nmovzx   ecx, byte ptr [rdx+0A8Ch]                                      ; +0x5e, 0x1403abf5e\nmov     [rax+156h], cl                                                 ; +0x65, 0x1403abf65\ncmp     byte ptr [rbx+309Eh], 0                                        ; +0x6b, 0x1403abf6b\njnz     short loc_1403ABF98                                            ; +0x72, 0x1403abf72\nmov     rcx, [rbx+3228h]                                               ; +0x74, 0x1403abf74\ntest    rcx, rcx                                                       ; +0x7b, 0x1403abf7b\njz      short loc_1403ABF98                                            ; +0x7e, 0x1403abf7e\ncmp     qword ptr [rbx+3A80h], 0                                       ; +0x80, 0x1403abf80\njnz     short loc_1403ABF98                                            ; +0x88, 0x1403abf88\nmov     rax, [rcx]                                                     ; +0x8a, 0x1403abf8a\ncall    qword ptr [rax+0C8h]                                           ; +0x8d, 0x1403abf8d\nmov     rdx, rax                                                       ; +0x93, 0x1403abf93\njmp     short loc_1403ABF9F                                            ; +0x96, 0x1403abf96\nlea     rdx, [rbx+3A74h]                                               ; +0x98, 0x1403abf98\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x9f, 0x1403abf9f\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xa4, 0x1403abfa4\nmov     rax, [rdi]                                                     ; +0xaa, 0x1403abfaa\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xad, 0x1403abfad\nmov     rcx, rdi                                                       ; +0xb2, 0x1403abfb2\ncall    qword ptr [rax+0B8h]                                           ; +0xb5, 0x1403abfb5\nmov     rcx, [rbx+0FE8h]                                               ; +0xbb, 0x1403abfbb\nxor     r8d, r8d                                                       ; +0xc2, 0x1403abfc2\nmov     rdx, rdi                                                       ; +0xc5, 0x1403abfc5\nmov     rax, [rcx]                                                     ; +0xc8, 0x1403abfc8\ncall    qword ptr [rax+1B8h]                                           ; +0xcb, 0x1403abfcb\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xd1, 0x1403abfd1\nmov     dword ptr [rdi+160h], 1                                        ; +0xd6, 0x1403abfd6\nadd     rsp, 30h                                                       ; +0xe0, 0x1403abfe0\npop     rdi                                                            ; +0xe4, 0x1403abfe4\nretn                                                                   ; +0xe5, 0x1403abfe5", "xrefs": ["PlayLayer::levelComplete @ 0x1403a8760", "PlayLayer::showCompleteText @ 0x1403a8dd0", "<???> @ 0x1406d6c2c"], "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"}