{"type": "func", "start": 5371322912, "end": 5371324291, "name": "GJGroundLayer::init", "pseudocode": "// \n// GJGroundLayer::init from 0x14027e220 to 0x14027e783 (1379 bytes)\n// \n// 2 xrefs:\n// > GJGroundLayer::create @ 0x14027e1da\n// > <???> @ 0x1406d11c0\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\n// Hidden C++ exception states: #wind=1\nbool GJGroundLayer::init(GJGroundLayer *a1, int a2, int a3)\n{\n  float v3; // xmm0_4\n  bool result; // al\n  __int64 v8; // rcx\n  cocos2d::CCDirector *v9; // rax\n  GameManager *v10; // rcx\n  int v11; // eax\n  int v12; // ebx\n  cocos2d::CCString *v13; // rax\n  const char *CString; // r14\n  struct cocos2d::CCSprite *v15; // rsi\n  cocos2d::CCSprite_vtbl *v16; // rbx\n  const cocos2d::CCPoint *v17; // rax\n  cocos2d::CCSprite_vtbl *v18; // rbx\n  __int64 v19; // rcx\n  cocos2d::CCDirector *v20; // rax\n  float v21; // xmm0_4\n  double v22; // xmm0_8\n  const cocos2d::CCPoint *v23; // rax\n  struct cocos2d::CCSprite *v24; // rdi\n  cocos2d::CCSprite_vtbl *v25; // rbx\n  const cocos2d::CCPoint *v26; // rax\n  cocos2d::CCSprite_vtbl *v27; // rbx\n  __int64 v28; // rcx\n  cocos2d::CCDirector *v29; // rax\n  float v30; // xmm0_4\n  const cocos2d::CCPoint *v31; // rax\n  __int64 v32; // rdx\n  __int64 v33; // rdx\n  struct cocos2d::CCSpriteBatchNode *v34; // rdi\n  __int64 v35; // rax\n  float v36; // xmm1_4\n  float v37; // xmm0_4\n  int v38; // r13d\n  struct cocos2d::CCTexture2D *v39; // rax\n  struct cocos2d::CCSprite *v40; // rax\n  cocos2d::CCSprite_vtbl *v41; // rbx\n  double v42; // xmm0_8\n  const cocos2d::CCPoint *v43; // rax\n  unsigned int v44; // r14d\n  cocos2d::CCArray *v45; // rax\n  cocos2d::CCArray *v46; // rdi\n  unsigned int v47; // ebx\n  struct cocos2d::CCObject *v48; // rax\n  cocos2d::CCString *v49; // rax\n  const char *v50; // rax\n  struct cocos2d::CCSpriteBatchNode *v51; // rdi\n  struct cocos2d::CCTexture2D *v52; // rax\n  struct cocos2d::CCSprite *v53; // rax\n  cocos2d::CCSprite_vtbl *v54; // rbx\n  const cocos2d::CCPoint *v55; // rax\n  cocos2d::CCArray *v56; // rax\n  cocos2d::CCArray *v57; // rbx\n  struct cocos2d::CCObject *v58; // rax\n  __int16 v59; // [rsp+20h] [rbp-40h] BYREF\n  char v60; // [rsp+22h] [rbp-3Eh]\n  __int64 v61; // [rsp+30h] [rbp-30h]\n  _DWORD v62[6]; // [rsp+38h] [rbp-28h] BYREF\n  __int16 v63; // [rsp+A8h] [rbp+48h] BYREF\n  char v64; // [rsp+AAh] [rbp+4Ah]\n\n  result = cocos2d::CCLayer::init(a1);\n  if ( result )\n  {\n    a1->setContentSize(a1, &stru_1406C1E20);\n    v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n    cocos2d::CCDirector::getWinSize(v9);\n    v10 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v61 = (__int64)operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v61);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v10 = (GameManager *)qword_1406C2ED8;\n    }\n    v11 = 22;\n    if ( a2 < 22 )\n      v11 = a2;\n    v12 = 1;\n    if ( v11 > 1 )\n      v12 = v11;\n    GameManager::loadGround(v10, v12);\n    v13 = cocos2d::CCString::createWithFormat(\"groundSquare_%02d_001.png\", v12);\n    CString = cocos2d::CCString::getCString(v13);\n    a1->m_blendLine = 1;\n    GJGroundLayer::createLine(a1, a3);\n    v15 = cocos2d::CCSprite::createWithSpriteFrameName(\"groundSquareShadow_001.png\");\n    v16 = v15->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    cocos2d::CCPoint::CCPoint(v3, 0.0);\n    v16->setAnchorPoint(v15, v17);\n    v18 = v15->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v19);\n    v21 = cocos2d::CCDirector::getScreenLeft(v20) - 1.0;\n    v22 = cocos2d::CCPoint::CCPoint(v21, v21);\n    v18->setPosition_0(v15, v23);\n    a1->addChild_0(a1, v15, 6);\n    v15->setTag(v15, 0);\n    v24 = cocos2d::CCSprite::createWithSpriteFrameName(\"groundSquareShadow_001.png\");\n    v25 = v24->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    cocos2d::CCPoint::CCPoint(*(float *)&v22, 1.0);\n    v25->setAnchorPoint(v24, v26);\n    v27 = v24->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v29 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v28);\n    v30 = cocos2d::CCDirector::getScreenRight(v29) + 1.0;\n    cocos2d::CCPoint::CCPoint(v30, v30);\n    v27->setPosition_0(v24, v31);\n    a1->addChild_0(a1, v24, 6);\n    cocos2d::CCSprite::setFlipX(v24, 1);\n    v24->setTag(v24, 1);\n    LOBYTE(v32) = 100;\n    v15->setOpacity(&v15->cocos2d::CCRGBAProtocol, v32);\n    LOBYTE(v33) = 100;\n    v24->setOpacity(&v24->cocos2d::CCRGBAProtocol, v33);\n    ((void (__fastcall *)(struct cocos2d::CCSprite *))v15->setScaleX)(v15);\n    ((void (__fastcall *)(struct cocos2d::CCSprite *))v24->setScaleX)(v24);\n    v61 = 0x30300000306LL;\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))v15->setBlendFunc)(\n      &v15->cocos2d::CCTextureProtocol,\n      0x30300000306LL);\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))v24->setBlendFunc)(\n      &v24->cocos2d::CCTextureProtocol,\n      0x30300000306LL);\n    a1->m_showGround = 0;\n    v59 = 26112;\n    v63 = 26112;\n    v64 = -1;\n    v34 = cocos2d::CCSpriteBatchNode::create(CString);\n    a1->addChild_0(a1, v34, 2);\n    v35 = (__int64)v34->getTexture(&v34->cocos2d::CCTextureProtocol);\n    (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v35 + 136LL))(v35, v62);\n    v36 = *(float *)v62;\n    LODWORD(a1->m_textureWidth) = v62[0];\n    v37 = ceilf(*(float *)&v62[2] / v36) + 1.0;\n    v38 = (int)v37;\n    a1->m_ground1Offset = 128.0 - *(float *)&v62[1];\n    v39 = v34->getTexture(&v34->cocos2d::CCTextureProtocol);\n    v40 = cocos2d::CCSprite::createWithTexture(v39, &stru_1406C1E10);\n    a1->m_ground1Sprite = v40;\n    v40->m_bDontDraw = 1;\n    v41 = a1->m_ground1Sprite->__vftable;\n    v42 = cocos2d::CCPoint::CCPoint(v37, 0.0);\n    v41->setPosition_0(a1->m_ground1Sprite, v43);\n    a1->m_ground1Sprite->setColor(&a1->m_ground1Sprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v63);\n    v34->addChild_1(v34, a1->m_ground1Sprite);\n    v61 = 1;\n    v44 = 0;\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))v34->setBlendFunc)(&v34->cocos2d::CCTextureProtocol, 1);\n    GJGroundLayer::loadGroundSprites(a1, v38, 1);\n    v59 = v63;\n    v60 = v64;\n    v45 = a1->m_ground1Sprite->getChildren(a1->m_ground1Sprite);\n    v46 = v45;\n    if ( v45 )\n    {\n      v47 = 0;\n      if ( cocos2d::CCArray::count(v45) )\n      {\n        do\n        {\n          v48 = cocos2d::CCArray::objectAtIndex(v46, v47);\n          (**(void (__fastcall ***)(__int64, __int16 *))&v48[5].m_unknown2)((__int64)&v48[5].m_unknown2, &v59);\n          ++v47;\n        }\n        while ( v47 < cocos2d::CCArray::count(v46) );\n      }\n    }\n    if ( a2 >= 8 )\n    {\n      v49 = cocos2d::CCString::createWithFormat(\"groundSquare_%02d_2_001.png\", a2);\n      v50 = cocos2d::CCString::getCString(v49);\n      v51 = cocos2d::CCSpriteBatchNode::create(v50);\n      a1->addChild_0(a1, v51, 3);\n      v52 = v51->getTexture(&v51->cocos2d::CCTextureProtocol);\n      v53 = cocos2d::CCSprite::createWithTexture(v52, &stru_1406C1E10);\n      a1->m_ground2Sprite = v53;\n      v53->m_bDontDraw = 1;\n      v54 = a1->m_ground2Sprite->__vftable;\n      cocos2d::CCPoint::CCPoint(*(float *)&v42, 0.0);\n      v54->setPosition_0(a1->m_ground2Sprite, v55);\n      a1->m_ground2Sprite->setColor(&a1->m_ground2Sprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v63);\n      v51->addChild_1(v51, a1->m_ground2Sprite);\n      GJGroundLayer::loadGroundSprites(a1, v38, 0);\n      v59 = v63;\n      v60 = v64;\n      v56 = a1->m_ground1Sprite->getChildren(a1->m_ground1Sprite);\n      v57 = v56;\n      if ( v56 )\n      {\n        if ( cocos2d::CCArray::count(v56) )\n        {\n          do\n          {\n            v58 = cocos2d::CCArray::objectAtIndex(v57, v44);\n            (**(void (__fastcall ***)(__int64, __int16 *))&v58[5].m_unknown2)((__int64)&v58[5].m_unknown2, &v59);\n            ++v44;\n          }\n          while ( v44 < cocos2d::CCArray::count(v57) );\n        }\n      }\n    }\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; GJGroundLayer::init from 0x14027e220 to 0x14027e783 (1379 bytes)\n; \n; 2 xrefs:\n; > GJGroundLayer::create @ 0x14027e1da\n; > <???> @ 0x1406d11c0\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-28h+arg_0], rbx                                           ; +0x0, 0x14027e220\nmov     [rsp-28h+arg_8], rsi                                           ; +0x5, 0x14027e225\nmov     [rsp-28h+arg_10], rdi                                          ; +0xa, 0x14027e22a\npush    rbp                                                            ; +0xf, 0x14027e22f\npush    r12                                                            ; +0x10, 0x14027e230\npush    r13                                                            ; +0x12, 0x14027e232\npush    r14                                                            ; +0x14, 0x14027e234\npush    r15                                                            ; +0x16, 0x14027e236\nmov     rbp, rsp                                                       ; +0x18, 0x14027e238\nsub     rsp, 60h                                                       ; +0x1b, 0x14027e23b\nmovaps  [rsp+60h+var_10], xmm7                                         ; +0x1f, 0x14027e23f\nmov     edi, r8d                                                       ; +0x24, 0x14027e244\nmov     r12d, edx                                                      ; +0x27, 0x14027e247\nmov     r15, rcx                                                       ; +0x2a, 0x14027e24a\ncall    cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0x2d, 0x14027e24d\ntest    al, al                                                         ; +0x33, 0x14027e253\njz      loc_14027E760                                                  ; +0x35, 0x14027e255\nmov     rax, [r15]                                                     ; +0x3b, 0x14027e25b\nlea     rdx, stru_1406C1E20                                            ; +0x3e, 0x14027e25e\nmov     rcx, r15                                                       ; +0x45, 0x14027e265\ncall    qword ptr [rax+128h]                                           ; +0x48, 0x14027e268\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4e, 0x14027e26e\nmov     rcx, rax                                                       ; +0x54, 0x14027e274\nlea     rdx, [rbp+var_20]                                              ; +0x57, 0x14027e277\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x5b, 0x14027e27b\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x61, 0x14027e281\ntest    rcx, rcx                                                       ; +0x68, 0x14027e288\njnz     short loc_14027E2BB                                            ; +0x6b, 0x14027e28b\nmov     ecx, 668h; Size                                                ; +0x6d, 0x14027e28d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x72, 0x14027e292\nmov     [rbp+var_30], rax                                              ; +0x77, 0x14027e297\nmov     rcx, rax                                                       ; +0x7b, 0x14027e29b\ncall    sub_14017AB00                                                  ; +0x7e, 0x14027e29e\nnop                                                                    ; +0x83, 0x14027e2a3\nmov     cs:qword_1406C2ED8, rax                                        ; +0x84, 0x14027e2a4\nmov     rdx, [rax]                                                     ; +0x8b, 0x14027e2ab\nmov     rcx, rax                                                       ; +0x8e, 0x14027e2ae\ncall    qword ptr [rdx+48h]                                            ; +0x91, 0x14027e2b1\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x94, 0x14027e2b4\nmov     eax, 16h                                                       ; +0x9b, 0x14027e2bb\ncmp     r12d, eax                                                      ; +0xa0, 0x14027e2c0\ncmovl   eax, r12d                                                      ; +0xa3, 0x14027e2c3\nmov     ebx, 1                                                         ; +0xa7, 0x14027e2c7\ncmp     eax, ebx                                                       ; +0xac, 0x14027e2cc\ncmovg   ebx, eax                                                       ; +0xae, 0x14027e2ce\nmov     edx, ebx                                                       ; +0xb1, 0x14027e2d1\ncall    GameManager__loadGround                                        ; +0xb3, 0x14027e2d3\nmov     edx, ebx                                                       ; +0xb8, 0x14027e2d8\nlea     rcx, aGroundsquare02; \"groundSquare_%02d_001.png\"              ; +0xba, 0x14027e2da\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xc1, 0x14027e2e1\nmov     rcx, rax                                                       ; +0xc7, 0x14027e2e7\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xca, 0x14027e2ea\nmov     r14, rax                                                       ; +0xd0, 0x14027e2f0\nmov     byte ptr [r15+1B9h], 1                                         ; +0xd3, 0x14027e2f3\nmov     edx, edi                                                       ; +0xdb, 0x14027e2fb\nmov     rcx, r15                                                       ; +0xdd, 0x14027e2fd\ncall    GJGroundLayer__createLine                                      ; +0xe0, 0x14027e300\nlea     rcx, aGroundsquaresh; \"groundSquareShadow_001.png\"             ; +0xe5, 0x14027e305\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xec, 0x14027e30c\nmov     rsi, rax                                                       ; +0xf2, 0x14027e312\nmov     rbx, [rax]                                                     ; +0xf5, 0x14027e315\nmovss   xmm7, cs:flt_140622C24                                         ; +0xf8, 0x14027e318\nmovaps  xmm2, xmm7                                                     ; +0x100, 0x14027e320\nxorps   xmm1, xmm1                                                     ; +0x103, 0x14027e323\nlea     rcx, [rbp+var_30]                                              ; +0x106, 0x14027e326\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x10a, 0x14027e32a\nmov     rdx, rax                                                       ; +0x110, 0x14027e330\nmov     rcx, rsi                                                       ; +0x113, 0x14027e333\ncall    qword ptr [rbx+110h]                                           ; +0x116, 0x14027e336\nmov     rbx, [rsi]                                                     ; +0x11c, 0x14027e33c\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x11f, 0x14027e33f\nmov     rcx, rax                                                       ; +0x125, 0x14027e345\ncall    cs:?getScreenLeft@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenLeft(void) ; +0x128, 0x14027e348\nsubss   xmm0, xmm7                                                     ; +0x12e, 0x14027e34e\nxorps   xmm2, xmm2                                                     ; +0x132, 0x14027e352\nmovaps  xmm1, xmm0                                                     ; +0x135, 0x14027e355\nlea     rcx, [rbp+var_30]                                              ; +0x138, 0x14027e358\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x13c, 0x14027e35c\nmov     rdx, rax                                                       ; +0x142, 0x14027e362\nmov     rcx, rsi                                                       ; +0x145, 0x14027e365\ncall    qword ptr [rbx+0B8h]                                           ; +0x148, 0x14027e368\nmov     rax, [r15]                                                     ; +0x14e, 0x14027e36e\nmov     r8d, 6                                                         ; +0x151, 0x14027e371\nmov     rdx, rsi                                                       ; +0x157, 0x14027e377\nmov     rcx, r15                                                       ; +0x15a, 0x14027e37a\ncall    qword ptr [rax+1B8h]                                           ; +0x15d, 0x14027e37d\nmov     rax, [rsi]                                                     ; +0x163, 0x14027e383\nxor     edx, edx                                                       ; +0x166, 0x14027e386\nmov     rcx, rsi                                                       ; +0x168, 0x14027e388\ncall    qword ptr [rax+40h]                                            ; +0x16b, 0x14027e38b\nlea     rcx, aGroundsquaresh; \"groundSquareShadow_001.png\"             ; +0x16e, 0x14027e38e\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x175, 0x14027e395\nmov     rdi, rax                                                       ; +0x17b, 0x14027e39b\nmov     rbx, [rax]                                                     ; +0x17e, 0x14027e39e\nmovaps  xmm2, xmm7                                                     ; +0x181, 0x14027e3a1\nmovaps  xmm1, xmm7                                                     ; +0x184, 0x14027e3a4\nlea     rcx, [rbp+var_30]                                              ; +0x187, 0x14027e3a7\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x18b, 0x14027e3ab\nmov     rdx, rax                                                       ; +0x191, 0x14027e3b1\nmov     rcx, rdi                                                       ; +0x194, 0x14027e3b4\ncall    qword ptr [rbx+110h]                                           ; +0x197, 0x14027e3b7\nmov     rbx, [rdi]                                                     ; +0x19d, 0x14027e3bd\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1a0, 0x14027e3c0\nmov     rcx, rax                                                       ; +0x1a6, 0x14027e3c6\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x1a9, 0x14027e3c9\naddss   xmm0, xmm7                                                     ; +0x1af, 0x14027e3cf\nxorps   xmm2, xmm2                                                     ; +0x1b3, 0x14027e3d3\nmovaps  xmm1, xmm0                                                     ; +0x1b6, 0x14027e3d6\nlea     rcx, [rbp+var_30]                                              ; +0x1b9, 0x14027e3d9\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1bd, 0x14027e3dd\nmov     rdx, rax                                                       ; +0x1c3, 0x14027e3e3\nmov     rcx, rdi                                                       ; +0x1c6, 0x14027e3e6\ncall    qword ptr [rbx+0B8h]                                           ; +0x1c9, 0x14027e3e9\nmov     rax, [r15]                                                     ; +0x1cf, 0x14027e3ef\nmov     r8d, 6                                                         ; +0x1d2, 0x14027e3f2\nmov     rdx, rdi                                                       ; +0x1d8, 0x14027e3f8\nmov     rcx, r15                                                       ; +0x1db, 0x14027e3fb\ncall    qword ptr [rax+1B8h]                                           ; +0x1de, 0x14027e3fe\nmov     dl, 1                                                          ; +0x1e4, 0x14027e404\nmov     rcx, rdi                                                       ; +0x1e6, 0x14027e406\ncall    cs:?setFlipX@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipX(bool) ; +0x1e9, 0x14027e409\nmov     rax, [rdi]                                                     ; +0x1ef, 0x14027e40f\nmov     edx, 1                                                         ; +0x1f2, 0x14027e412\nmov     rcx, rdi                                                       ; +0x1f7, 0x14027e417\ncall    qword ptr [rax+40h]                                            ; +0x1fa, 0x14027e41a\nlea     rcx, [rsi+140h]                                                ; +0x1fd, 0x14027e41d\nmov     rax, [rcx]                                                     ; +0x204, 0x14027e424\nmov     dl, 64h ; 'd'                                                  ; +0x207, 0x14027e427\ncall    qword ptr [rax+28h]                                            ; +0x209, 0x14027e429\nlea     rcx, [rdi+140h]                                                ; +0x20c, 0x14027e42c\nmov     rax, [rcx]                                                     ; +0x213, 0x14027e433\nmov     dl, 64h ; 'd'                                                  ; +0x216, 0x14027e436\ncall    qword ptr [rax+28h]                                            ; +0x218, 0x14027e438\nmov     rax, [rsi]                                                     ; +0x21b, 0x14027e43b\nmovss   xmm1, cs:dword_140622B74                                       ; +0x21e, 0x14027e43e\nmov     rcx, rsi                                                       ; +0x226, 0x14027e446\ncall    qword ptr [rax+78h]                                            ; +0x229, 0x14027e449\nmov     rax, [rdi]                                                     ; +0x22c, 0x14027e44c\nmovss   xmm1, cs:dword_140622B74                                       ; +0x22f, 0x14027e44f\nmov     rcx, rdi                                                       ; +0x237, 0x14027e457\ncall    qword ptr [rax+78h]                                            ; +0x23a, 0x14027e45a\nmov     dword ptr [rbp+var_30], 306h                                   ; +0x23d, 0x14027e45d\nmov     dword ptr [rbp+var_30+4], 303h                                 ; +0x244, 0x14027e464\nlea     rcx, [rsi+158h]                                                ; +0x24b, 0x14027e46b\nmov     rax, [rcx]                                                     ; +0x252, 0x14027e472\nmov     rdx, [rbp+var_30]                                              ; +0x255, 0x14027e475\ncall    qword ptr [rax]                                                ; +0x259, 0x14027e479\nlea     rcx, [rdi+158h]                                                ; +0x25b, 0x14027e47b\nmov     rax, [rcx]                                                     ; +0x262, 0x14027e482\nmov     rdx, [rbp+var_30]                                              ; +0x265, 0x14027e485\ncall    qword ptr [rax]                                                ; +0x269, 0x14027e489\nmov     byte ptr [r15+1B8h], 0                                         ; +0x26b, 0x14027e48b\nmov     [rbp+var_40], 6600h                                            ; +0x273, 0x14027e493\nmovzx   eax, [rbp+var_40]                                              ; +0x279, 0x14027e499\nmov     [rbp+arg_18], ax                                               ; +0x27d, 0x14027e49d\nmov     [rbp+arg_1A], 0FFh                                             ; +0x281, 0x14027e4a1\nmov     rcx, r14                                                       ; +0x285, 0x14027e4a5\ncall    cs:?create@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSpriteBatchNode::create(char const *) ; +0x288, 0x14027e4a8\nmov     rdi, rax                                                       ; +0x28e, 0x14027e4ae\nmov     r9, [r15]                                                      ; +0x291, 0x14027e4b1\nmov     r8d, 2                                                         ; +0x294, 0x14027e4b4\nmov     rdx, rax                                                       ; +0x29a, 0x14027e4ba\nmov     rcx, r15                                                       ; +0x29d, 0x14027e4bd\ncall    qword ptr [r9+1B8h]                                            ; +0x2a0, 0x14027e4c0\nlea     rsi, [rdi+140h]                                                ; +0x2a7, 0x14027e4c7\nmov     rdx, [rsi]                                                     ; +0x2ae, 0x14027e4ce\nmov     rcx, rsi                                                       ; +0x2b1, 0x14027e4d1\ncall    qword ptr [rdx+10h]                                            ; +0x2b4, 0x14027e4d4\nmov     r8, [rax]                                                      ; +0x2b7, 0x14027e4d7\nlea     rdx, [rbp+var_28]                                              ; +0x2ba, 0x14027e4da\nmov     rcx, rax                                                       ; +0x2be, 0x14027e4de\ncall    qword ptr [r8+88h]                                             ; +0x2c1, 0x14027e4e1\nmovss   xmm1, [rbp+var_28]                                             ; +0x2c8, 0x14027e4e8\nmovss   dword ptr [r15+1A8h], xmm1                                     ; +0x2cd, 0x14027e4ed\nmovss   xmm0, [rbp+var_20]                                             ; +0x2d6, 0x14027e4f6\ndivss   xmm0, xmm1; X                                                  ; +0x2db, 0x14027e4fb\ncall    ceilf                                                          ; +0x2df, 0x14027e4ff\naddss   xmm0, xmm7                                                     ; +0x2e4, 0x14027e504\ncvttss2si r13d, xmm0                                                   ; +0x2e8, 0x14027e508\nmovss   xmm1, cs:dword_140623318                                       ; +0x2ed, 0x14027e50d\nsubss   xmm1, [rbp+var_24]                                             ; +0x2f5, 0x14027e515\nmovss   dword ptr [r15+1BCh], xmm1                                     ; +0x2fa, 0x14027e51a\nmov     rax, [rsi]                                                     ; +0x303, 0x14027e523\nmov     rcx, rsi                                                       ; +0x306, 0x14027e526\ncall    qword ptr [rax+10h]                                            ; +0x309, 0x14027e529\nmov     rcx, rax                                                       ; +0x30c, 0x14027e52c\nlea     rdx, stru_1406C1E10                                            ; +0x30f, 0x14027e52f\ncall    cs:?createWithTexture@CCSprite@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x316, 0x14027e536\nmov     [r15+198h], rax                                                ; +0x31c, 0x14027e53c\nmov     byte ptr [rax+22Fh], 1                                         ; +0x323, 0x14027e543\nmov     rax, [r15+198h]                                                ; +0x32a, 0x14027e54a\nmov     rbx, [rax]                                                     ; +0x331, 0x14027e551\nxorps   xmm2, xmm2                                                     ; +0x334, 0x14027e554\nxorps   xmm1, xmm1                                                     ; +0x337, 0x14027e557\nlea     rcx, [rbp+var_30]                                              ; +0x33a, 0x14027e55a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x33e, 0x14027e55e\nmov     rdx, rax                                                       ; +0x344, 0x14027e564\nmov     rcx, [r15+198h]                                                ; +0x347, 0x14027e567\ncall    qword ptr [rbx+0B8h]                                           ; +0x34e, 0x14027e56e\nmov     rcx, [r15+198h]                                                ; +0x354, 0x14027e574\nadd     rcx, 140h                                                      ; +0x35b, 0x14027e57b\nmov     rax, [rcx]                                                     ; +0x362, 0x14027e582\nlea     rdx, [rbp+arg_18]                                              ; +0x365, 0x14027e585\ncall    qword ptr [rax]                                                ; +0x369, 0x14027e589\nmov     rax, [rdi]                                                     ; +0x36b, 0x14027e58b\nmov     rdx, [r15+198h]                                                ; +0x36e, 0x14027e58e\nmov     rcx, rdi                                                       ; +0x375, 0x14027e595\ncall    qword ptr [rax+1C0h]                                           ; +0x378, 0x14027e598\nmov     [rbp+var_30], 1                                                ; +0x37e, 0x14027e59e\nxor     r14d, r14d                                                     ; +0x386, 0x14027e5a6\nmov     rax, [rsi]                                                     ; +0x389, 0x14027e5a9\nmov     rdx, [rbp+var_30]                                              ; +0x38c, 0x14027e5ac\nmov     rcx, rsi                                                       ; +0x390, 0x14027e5b0\ncall    qword ptr [rax]                                                ; +0x393, 0x14027e5b3\nmov     r8b, 1                                                         ; +0x395, 0x14027e5b5\nmov     edx, r13d                                                      ; +0x398, 0x14027e5b8\nmov     rcx, r15                                                       ; +0x39b, 0x14027e5bb\ncall    GJGroundLayer__loadGroundSprites                               ; +0x39e, 0x14027e5be\nmovzx   eax, [rbp+arg_18]                                              ; +0x3a3, 0x14027e5c3\nmov     [rbp+var_40], ax                                               ; +0x3a7, 0x14027e5c7\nmovzx   eax, [rbp+arg_1A]                                              ; +0x3ab, 0x14027e5cb\nmov     [rbp+var_3E], al                                               ; +0x3af, 0x14027e5cf\nmov     rcx, [r15+198h]                                                ; +0x3b2, 0x14027e5d2\nmov     rax, [rcx]                                                     ; +0x3b9, 0x14027e5d9\ncall    qword ptr [rax+1D0h]                                           ; +0x3bc, 0x14027e5dc\nmov     rdi, rax                                                       ; +0x3c2, 0x14027e5e2\ntest    rax, rax                                                       ; +0x3c5, 0x14027e5e5\njz      short loc_14027E62A                                            ; +0x3c8, 0x14027e5e8\nmov     ebx, r14d                                                      ; +0x3ca, 0x14027e5ea\nmov     rcx, rax                                                       ; +0x3cd, 0x14027e5ed\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3d0, 0x14027e5f0\ntest    eax, eax                                                       ; +0x3d6, 0x14027e5f6\njz      short loc_14027E62A                                            ; +0x3d8, 0x14027e5f8\nnop     word ptr [rax+rax+00h]                                         ; +0x3da, 0x14027e5fa\nmov     edx, ebx                                                       ; +0x3e0, 0x14027e600\nmov     rcx, rdi                                                       ; +0x3e2, 0x14027e602\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3e5, 0x14027e605\nlea     rcx, [rax+140h]                                                ; +0x3eb, 0x14027e60b\nmov     rax, [rcx]                                                     ; +0x3f2, 0x14027e612\nlea     rdx, [rbp+var_40]                                              ; +0x3f5, 0x14027e615\ncall    qword ptr [rax]                                                ; +0x3f9, 0x14027e619\ninc     ebx                                                            ; +0x3fb, 0x14027e61b\nmov     rcx, rdi                                                       ; +0x3fd, 0x14027e61d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x400, 0x14027e620\ncmp     ebx, eax                                                       ; +0x406, 0x14027e626\njb      short loc_14027E600                                            ; +0x408, 0x14027e628\ncmp     r12d, 8                                                        ; +0x40a, 0x14027e62a\njl      loc_14027E75E                                                  ; +0x40e, 0x14027e62e\nmov     edx, r12d                                                      ; +0x414, 0x14027e634\nlea     rcx, aGroundsquare02_0; \"groundSquare_%02d_2_001.png\"          ; +0x417, 0x14027e637\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x41e, 0x14027e63e\nmov     rcx, rax                                                       ; +0x424, 0x14027e644\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x427, 0x14027e647\nmov     rcx, rax                                                       ; +0x42d, 0x14027e64d\ncall    cs:?create@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSpriteBatchNode::create(char const *) ; +0x430, 0x14027e650\nmov     rdi, rax                                                       ; +0x436, 0x14027e656\nmov     r9, [r15]                                                      ; +0x439, 0x14027e659\nmov     r8d, 3                                                         ; +0x43c, 0x14027e65c\nmov     rdx, rax                                                       ; +0x442, 0x14027e662\nmov     rcx, r15                                                       ; +0x445, 0x14027e665\ncall    qword ptr [r9+1B8h]                                            ; +0x448, 0x14027e668\nlea     rcx, [rdi+140h]                                                ; +0x44f, 0x14027e66f\nmov     r8, [rcx]                                                      ; +0x456, 0x14027e676\ncall    qword ptr [r8+10h]                                             ; +0x459, 0x14027e679\nmov     rcx, rax                                                       ; +0x45d, 0x14027e67d\nlea     rdx, stru_1406C1E10                                            ; +0x460, 0x14027e680\ncall    cs:?createWithTexture@CCSprite@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x467, 0x14027e687\nmov     [r15+1A0h], rax                                                ; +0x46d, 0x14027e68d\nmov     byte ptr [rax+22Fh], 1                                         ; +0x474, 0x14027e694\nmov     rax, [r15+1A0h]                                                ; +0x47b, 0x14027e69b\nmov     rbx, [rax]                                                     ; +0x482, 0x14027e6a2\nxorps   xmm2, xmm2                                                     ; +0x485, 0x14027e6a5\nxorps   xmm1, xmm1                                                     ; +0x488, 0x14027e6a8\nlea     rcx, [rbp+var_30]                                              ; +0x48b, 0x14027e6ab\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x48f, 0x14027e6af\nmov     rdx, rax                                                       ; +0x495, 0x14027e6b5\nmov     rcx, [r15+1A0h]                                                ; +0x498, 0x14027e6b8\ncall    qword ptr [rbx+0B8h]                                           ; +0x49f, 0x14027e6bf\nmov     rcx, [r15+1A0h]                                                ; +0x4a5, 0x14027e6c5\nadd     rcx, 140h                                                      ; +0x4ac, 0x14027e6cc\nmov     rax, [rcx]                                                     ; +0x4b3, 0x14027e6d3\nlea     rdx, [rbp+arg_18]                                              ; +0x4b6, 0x14027e6d6\ncall    qword ptr [rax]                                                ; +0x4ba, 0x14027e6da\nmov     rax, [rdi]                                                     ; +0x4bc, 0x14027e6dc\nmov     rdx, [r15+1A0h]                                                ; +0x4bf, 0x14027e6df\nmov     rcx, rdi                                                       ; +0x4c6, 0x14027e6e6\ncall    qword ptr [rax+1C0h]                                           ; +0x4c9, 0x14027e6e9\nxor     r8d, r8d                                                       ; +0x4cf, 0x14027e6ef\nmov     edx, r13d                                                      ; +0x4d2, 0x14027e6f2\nmov     rcx, r15                                                       ; +0x4d5, 0x14027e6f5\ncall    GJGroundLayer__loadGroundSprites                               ; +0x4d8, 0x14027e6f8\nmovzx   eax, [rbp+arg_18]                                              ; +0x4dd, 0x14027e6fd\nmov     [rbp+var_40], ax                                               ; +0x4e1, 0x14027e701\nmovzx   eax, [rbp+arg_1A]                                              ; +0x4e5, 0x14027e705\nmov     [rbp+var_3E], al                                               ; +0x4e9, 0x14027e709\nmov     rcx, [r15+198h]                                                ; +0x4ec, 0x14027e70c\nmov     rax, [rcx]                                                     ; +0x4f3, 0x14027e713\ncall    qword ptr [rax+1D0h]                                           ; +0x4f6, 0x14027e716\nmov     rbx, rax                                                       ; +0x4fc, 0x14027e71c\ntest    rax, rax                                                       ; +0x4ff, 0x14027e71f\njz      short loc_14027E75E                                            ; +0x502, 0x14027e722\nmov     rcx, rax                                                       ; +0x504, 0x14027e724\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x507, 0x14027e727\ntest    eax, eax                                                       ; +0x50d, 0x14027e72d\njz      short loc_14027E75E                                            ; +0x50f, 0x14027e72f\nmov     edx, r14d                                                      ; +0x511, 0x14027e731\nmov     rcx, rbx                                                       ; +0x514, 0x14027e734\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x517, 0x14027e737\nlea     rcx, [rax+140h]                                                ; +0x51d, 0x14027e73d\nmov     rax, [rcx]                                                     ; +0x524, 0x14027e744\nlea     rdx, [rbp+var_40]                                              ; +0x527, 0x14027e747\ncall    qword ptr [rax]                                                ; +0x52b, 0x14027e74b\ninc     r14d                                                           ; +0x52d, 0x14027e74d\nmov     rcx, rbx                                                       ; +0x530, 0x14027e750\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x533, 0x14027e753\ncmp     r14d, eax                                                      ; +0x539, 0x14027e759\njb      short loc_14027E731                                            ; +0x53c, 0x14027e75c\nmov     al, 1                                                          ; +0x53e, 0x14027e75e\nlea     r11, [rsp+60h+var_s0]                                          ; +0x540, 0x14027e760\nmov     rbx, [r11+30h]                                                 ; +0x545, 0x14027e765\nmov     rsi, [r11+38h]                                                 ; +0x549, 0x14027e769\nmov     rdi, [r11+40h]                                                 ; +0x54d, 0x14027e76d\nmovaps  xmm7, [rsp+60h+var_10]                                         ; +0x551, 0x14027e771\nmov     rsp, r11                                                       ; +0x556, 0x14027e776\npop     r15                                                            ; +0x559, 0x14027e779\npop     r14                                                            ; +0x55b, 0x14027e77b\npop     r13                                                            ; +0x55d, 0x14027e77d\npop     r12                                                            ; +0x55f, 0x14027e77f\npop     rbp                                                            ; +0x561, 0x14027e781\nretn                                                                   ; +0x562, 0x14027e782", "xrefs": ["GJGroundLayer::create @ 0x14027e1da", "<???> @ 0x1406d11c0"], "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"}