{"type": "func", "start": 5371326464, "end": 5371327735, "name": "GJMGLayer::init", "pseudocode": "// \n// GJMGLayer::init from 0x14027f000 to 0x14027f4f7 (1271 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::createMiddleground @ 0x14020bbf5\n// > <???> @ 0x1406d12bc\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=2\nbool GJMGLayer::init(GJMGLayer *a1, int a2)\n{\n  bool result; // al\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  float v7; // xmm0_4\n  GameManager *v8; // rcx\n  int v9; // eax\n  int v10; // ebx\n  cocos2d::CCString *v11; // rax\n  const char *CString; // rax\n  unsigned int v13; // esi\n  size_t v14; // r8\n  void **v15; // rcx\n  cocos2d::CCSpriteBatchNode *v16; // rax\n  cocos2d::CCTexture2D *v17; // rax\n  float v18; // xmm1_4\n  float v19; // xmm0_4\n  int v20; // r12d\n  struct cocos2d::CCTexture2D *v21; // rax\n  struct cocos2d::CCSprite *v22; // rax\n  cocos2d::CCSprite_vtbl *v23; // rbx\n  double v24; // xmm0_8\n  const cocos2d::CCPoint *v25; // rax\n  cocos2d::CCSprite *m_ground1Sprite; // rcx\n  cocos2d::CCArray *v27; // rdi\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v29; // rax\n  cocos2d::CCString *v30; // rax\n  const char *v31; // rax\n  cocos2d::CCSpriteBatchNode *v32; // rax\n  cocos2d::CCTexture2D *v33; // rbx\n  cocos2d::CCTexture2D *v34; // rdi\n  struct cocos2d::CCTexture2D *v35; // rax\n  struct cocos2d::CCSprite *v36; // rax\n  cocos2d::CCSprite_vtbl *v37; // rbx\n  const cocos2d::CCPoint *v38; // rax\n  float v39; // xmm0_4\n  cocos2d::CCSpriteBatchNode_vtbl *v40; // rbx\n  const cocos2d::CCPoint *v41; // rax\n  cocos2d::CCSprite *m_ground2Sprite; // rcx\n  cocos2d::CCArray *v43; // rbx\n  struct cocos2d::CCObject *v44; // rax\n  void *v45; // rcx\n  __int16 v46; // [rsp+28h] [rbp-39h] BYREF\n  char v47; // [rsp+2Ah] [rbp-37h]\n  __int16 v48; // [rsp+38h] [rbp-29h] BYREF\n  char v49; // [rsp+3Ah] [rbp-27h]\n  void *v50; // [rsp+40h] [rbp-21h] BYREF\n  _BYTE v51[8]; // [rsp+48h] [rbp-19h] BYREF\n  _DWORD v52[4]; // [rsp+50h] [rbp-11h] BYREF\n  void *Block[2]; // [rsp+60h] [rbp-1h] BYREF\n  __int64 v54; // [rsp+70h] [rbp+Fh]\n  unsigned __int64 v55; // [rsp+78h] [rbp+17h]\n\n  result = cocos2d::CCLayer::init(a1);\n  if ( result )\n  {\n    a1->setContentSize(a1, &stru_1406C1E20);\n    v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n    cocos2d::CCDirector::getWinSize(v6);\n    if ( a2 == 1 )\n    {\n      v7 = 25.0;\n    }\n    else if ( (unsigned int)(a2 - 2) < 2 )\n    {\n      v7 = 30.0;\n    }\n    else\n    {\n      v7 = 0.0;\n    }\n    a1->m_ground2Offset = v7;\n    v8 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v50 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v50);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v8 = (GameManager *)qword_1406C2ED8;\n    }\n    v9 = 3;\n    if ( a2 < 3 )\n      v9 = a2;\n    v10 = 1;\n    if ( v9 > 1 )\n      v10 = v9;\n    GameManager::loadMiddleground(v8, v10);\n    v11 = cocos2d::CCString::createWithFormat(\"fg_%02d_001.png\", v10);\n    CString = cocos2d::CCString::getCString(v11);\n    *(_OWORD *)Block = 0;\n    v13 = 0;\n    v54 = 0;\n    v55 = 0;\n    v14 = -1;\n    do\n      ++v14;\n    while ( CString[v14] );\n    sub_14003A930(Block, CString, v14);\n    a1->m_showGround = 0;\n    v46 = 26112;\n    v48 = 26112;\n    v49 = -1;\n    v15 = Block;\n    if ( v55 > 0xF )\n      v15 = (void **)Block[0];\n    v16 = cocos2d::CCSpriteBatchNode::create((const char *)v15);\n    a1->m_mg1BatchNode = v16;\n    a1->addChild_0(a1, v16, 2);\n    v17 = a1->m_mg1BatchNode->getTexture(&a1->m_mg1BatchNode->cocos2d::CCTextureProtocol);\n    ((void (__fastcall *)(cocos2d::CCTexture2D *, _DWORD *))v17->getContentSize)(v17, v52);\n    v18 = *(float *)v52;\n    LODWORD(a1->m_textureWidth) = v52[0];\n    v19 = ceilf(*(float *)&v52[2] / v18) + 1.0;\n    v20 = (int)v19;\n    v21 = a1->m_mg1BatchNode->getTexture(&a1->m_mg1BatchNode->cocos2d::CCTextureProtocol);\n    v22 = cocos2d::CCSprite::createWithTexture(v21, &stru_1406C1E10);\n    a1->m_ground1Sprite = v22;\n    v22->m_bDontDraw = 1;\n    v23 = a1->m_ground1Sprite->__vftable;\n    v24 = cocos2d::CCPoint::CCPoint(v19, 0.0);\n    v23->setPosition_0(a1->m_ground1Sprite, v25);\n    a1->m_ground1Sprite->setColor(&a1->m_ground1Sprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v48);\n    a1->m_mg1BatchNode->addChild_1(a1->m_mg1BatchNode, a1->m_ground1Sprite);\n    GJMGLayer::loadGroundSprites(a1, v20, 1);\n    v46 = v48;\n    v47 = v49;\n    m_ground1Sprite = a1->m_ground1Sprite;\n    if ( m_ground1Sprite )\n    {\n      v27 = m_ground1Sprite->getChildren(m_ground1Sprite);\n      for ( i = 0; i < cocos2d::CCArray::count(v27); ++i )\n      {\n        v29 = cocos2d::CCArray::objectAtIndex(v27, i);\n        (**(void (__fastcall ***)(__int64, __int16 *))&v29[5].m_unknown2)((__int64)&v29[5].m_unknown2, &v46);\n      }\n    }\n    v30 = cocos2d::CCString::createWithFormat(\"fg_%02d_2_001.png\", a2);\n    v31 = cocos2d::CCString::getCString(v30);\n    v32 = cocos2d::CCSpriteBatchNode::create(v31);\n    a1->m_mg2BatchNode = v32;\n    a1->addChild_0(a1, v32, 3);\n    v33 = a1->m_mg1BatchNode->getTexture(&a1->m_mg1BatchNode->cocos2d::CCTextureProtocol);\n    v34 = a1->m_mg2BatchNode->getTexture(&a1->m_mg2BatchNode->cocos2d::CCTextureProtocol);\n    ((void (__fastcall *)(cocos2d::CCTexture2D *, void **))v33->getContentSize)(v33, &v50);\n    ((void (__fastcall *)(cocos2d::CCTexture2D *, _BYTE *))v34->getContentSize)(v34, v51);\n    v35 = a1->m_mg2BatchNode->getTexture(&a1->m_mg2BatchNode->cocos2d::CCTextureProtocol);\n    v36 = cocos2d::CCSprite::createWithTexture(v35, &stru_1406C1E10);\n    a1->m_ground2Sprite = v36;\n    v36->m_bDontDraw = 1;\n    v37 = a1->m_ground2Sprite->__vftable;\n    cocos2d::CCPoint::CCPoint(*(float *)&v24, 0.0);\n    v37->setPosition_0(a1->m_ground2Sprite, v38);\n    a1->m_ground2Sprite->setColor(&a1->m_ground2Sprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v48);\n    v39 = ((float (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *))a1->m_mg2BatchNode->addChild_1)(\n            a1->m_mg2BatchNode,\n            a1->m_ground2Sprite);\n    v40 = a1->m_mg2BatchNode->__vftable;\n    cocos2d::CCPoint::CCPoint(v39, 0.0);\n    v40->setPosition_0(a1->m_mg2BatchNode, v41);\n    GJMGLayer::loadGroundSprites(a1, v20, 0);\n    v46 = v48;\n    v47 = v49;\n    m_ground2Sprite = a1->m_ground2Sprite;\n    if ( m_ground2Sprite )\n    {\n      v43 = m_ground2Sprite->getChildren(m_ground2Sprite);\n      if ( cocos2d::CCArray::count(v43) )\n      {\n        do\n        {\n          v44 = cocos2d::CCArray::objectAtIndex(v43, v13);\n          (**(void (__fastcall ***)(__int64, __int16 *))&v44[5].m_unknown2)((__int64)&v44[5].m_unknown2, &v46);\n          ++v13;\n        }\n        while ( v13 < cocos2d::CCArray::count(v43) );\n      }\n    }\n    if ( v55 > 0xF )\n    {\n      v45 = Block[0];\n      if ( v55 + 1 >= 0x1000 )\n      {\n        v45 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v45 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v45);\n    }\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; GJMGLayer::init from 0x14027f000 to 0x14027f4f7 (1271 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::createMiddleground @ 0x14020bbf5\n; > <???> @ 0x1406d12bc\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     rax, rsp                                                       ; +0x0, 0x14027f000\nmov     [rax+18h], rbx                                                 ; +0x3, 0x14027f003\nmov     [rax+20h], rsi                                                 ; +0x7, 0x14027f007\npush    rbp                                                            ; +0xb, 0x14027f00b\npush    rdi                                                            ; +0xc, 0x14027f00c\npush    r12                                                            ; +0xd, 0x14027f00d\npush    r14                                                            ; +0xf, 0x14027f00f\npush    r15                                                            ; +0x11, 0x14027f011\nlea     rbp, [rax-5Fh]                                                 ; +0x13, 0x14027f013\nsub     rsp, 90h                                                       ; +0x17, 0x14027f017\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x1e, 0x14027f01e\nmov     rax, cs:__security_cookie                                      ; +0x22, 0x14027f022\nxor     rax, rsp                                                       ; +0x29, 0x14027f029\nmov     [rbp+57h+var_38], rax                                          ; +0x2c, 0x14027f02c\nmov     r15d, edx                                                      ; +0x30, 0x14027f030\nmov     r14, rcx                                                       ; +0x33, 0x14027f033\ncall    cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0x36, 0x14027f036\ntest    al, al                                                         ; +0x3c, 0x14027f03c\njz      loc_14027F4CA                                                  ; +0x3e, 0x14027f03e\nmov     rax, [r14]                                                     ; +0x44, 0x14027f044\nlea     rdx, stru_1406C1E20                                            ; +0x47, 0x14027f047\nmov     rcx, r14                                                       ; +0x4e, 0x14027f04e\ncall    qword ptr [rax+128h]                                           ; +0x51, 0x14027f051\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x57, 0x14027f057\nmov     rcx, rax                                                       ; +0x5d, 0x14027f05d\nlea     rdx, [rbp+57h+var_60]                                          ; +0x60, 0x14027f060\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x64, 0x14027f064\nmov     ecx, r15d                                                      ; +0x6a, 0x14027f06a\nsub     ecx, 1                                                         ; +0x6d, 0x14027f06d\njz      short loc_14027F08B                                            ; +0x70, 0x14027f070\nsub     ecx, 1                                                         ; +0x72, 0x14027f072\njz      short loc_14027F081                                            ; +0x75, 0x14027f075\ncmp     ecx, 1                                                         ; +0x77, 0x14027f077\njz      short loc_14027F081                                            ; +0x7a, 0x14027f07a\nxorps   xmm0, xmm0                                                     ; +0x7c, 0x14027f07c\njmp     short loc_14027F093                                            ; +0x7f, 0x14027f07f\nmovss   xmm0, cs:dword_140623164                                       ; +0x81, 0x14027f081\njmp     short loc_14027F093                                            ; +0x89, 0x14027f089\nmovss   xmm0, cs:dword_140623144                                       ; +0x8b, 0x14027f08b\nmovss   dword ptr [r14+1E4h], xmm0                                     ; +0x93, 0x14027f093\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9c, 0x14027f09c\ntest    rcx, rcx                                                       ; +0xa3, 0x14027f0a3\njnz     short loc_14027F0D6                                            ; +0xa6, 0x14027f0a6\nmov     ecx, 668h; Size                                                ; +0xa8, 0x14027f0a8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xad, 0x14027f0ad\nmov     [rbp+57h+var_78], rax                                          ; +0xb2, 0x14027f0b2\nmov     rcx, rax                                                       ; +0xb6, 0x14027f0b6\ncall    sub_14017AB00                                                  ; +0xb9, 0x14027f0b9\nnop                                                                    ; +0xbe, 0x14027f0be\nmov     cs:qword_1406C2ED8, rax                                        ; +0xbf, 0x14027f0bf\nmov     rdx, [rax]                                                     ; +0xc6, 0x14027f0c6\nmov     rcx, rax                                                       ; +0xc9, 0x14027f0c9\ncall    qword ptr [rdx+48h]                                            ; +0xcc, 0x14027f0cc\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xcf, 0x14027f0cf\nmov     eax, 3                                                         ; +0xd6, 0x14027f0d6\ncmp     r15d, eax                                                      ; +0xdb, 0x14027f0db\ncmovl   eax, r15d                                                      ; +0xde, 0x14027f0de\nmov     ebx, 1                                                         ; +0xe2, 0x14027f0e2\ncmp     eax, ebx                                                       ; +0xe7, 0x14027f0e7\ncmovg   ebx, eax                                                       ; +0xe9, 0x14027f0e9\nmov     edx, ebx                                                       ; +0xec, 0x14027f0ec\ncall    GameManager__loadMiddleground                                  ; +0xee, 0x14027f0ee\nmov     edx, ebx                                                       ; +0xf3, 0x14027f0f3\nlea     rcx, aFg02d001Png; \"fg_%02d_001.png\"                           ; +0xf5, 0x14027f0f5\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xfc, 0x14027f0fc\nmov     rcx, rax                                                       ; +0x102, 0x14027f102\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x105, 0x14027f105\nxorps   xmm0, xmm0                                                     ; +0x10b, 0x14027f10b\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x10e, 0x14027f10e\nxor     esi, esi                                                       ; +0x112, 0x14027f112\nmov     [rbp+57h+var_48], rsi                                          ; +0x114, 0x14027f114\nmov     [rbp+57h+var_40], rsi                                          ; +0x118, 0x14027f118\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x11c, 0x14027f11c\ninc     r8                                                             ; +0x123, 0x14027f123\ncmp     [rax+r8], sil                                                  ; +0x126, 0x14027f126\njnz     short loc_14027F123                                            ; +0x12a, 0x14027f12a\nmov     rdx, rax                                                       ; +0x12c, 0x14027f12c\nlea     rcx, [rbp+57h+Block]                                           ; +0x12f, 0x14027f12f\ncall    sub_14003A930                                                  ; +0x133, 0x14027f133\nnop                                                                    ; +0x138, 0x14027f138\nmov     byte ptr [r14+1B8h], 0                                         ; +0x139, 0x14027f139\nmov     [rbp+57h+var_90], 6600h                                        ; +0x141, 0x14027f141\nmovzx   eax, [rbp+57h+var_90]                                          ; +0x147, 0x14027f147\nmov     [rbp+57h+var_80], ax                                           ; +0x14b, 0x14027f14b\nmov     [rbp+57h+var_7E], 0FFh                                         ; +0x14f, 0x14027f14f\nlea     rcx, [rbp+57h+Block]                                           ; +0x153, 0x14027f153\ncmp     [rbp+57h+var_40], 0Fh                                          ; +0x157, 0x14027f157\ncmova   rcx, [rbp+57h+Block]                                           ; +0x15c, 0x14027f15c\ncall    cs:?create@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSpriteBatchNode::create(char const *) ; +0x161, 0x14027f161\nmov     [r14+1D0h], rax                                                ; +0x167, 0x14027f167\nmov     r9, [r14]                                                      ; +0x16e, 0x14027f16e\nmov     r8d, 2                                                         ; +0x171, 0x14027f171\nmov     rdx, rax                                                       ; +0x177, 0x14027f177\nmov     rcx, r14                                                       ; +0x17a, 0x14027f17a\ncall    qword ptr [r9+1B8h]                                            ; +0x17d, 0x14027f17d\nmov     rcx, [r14+1D0h]                                                ; +0x184, 0x14027f184\nadd     rcx, 140h                                                      ; +0x18b, 0x14027f18b\nmov     rax, [rcx]                                                     ; +0x192, 0x14027f192\ncall    qword ptr [rax+10h]                                            ; +0x195, 0x14027f195\nmov     r8, [rax]                                                      ; +0x198, 0x14027f198\nlea     rdx, [rbp+57h+var_68]                                          ; +0x19b, 0x14027f19b\nmov     rcx, rax                                                       ; +0x19f, 0x14027f19f\ncall    qword ptr [r8+88h]                                             ; +0x1a2, 0x14027f1a2\nmovss   xmm1, [rbp+57h+var_68]                                         ; +0x1a9, 0x14027f1a9\nmovss   dword ptr [r14+1A8h], xmm1                                     ; +0x1ae, 0x14027f1ae\nmovss   xmm0, [rbp+57h+var_60]                                         ; +0x1b7, 0x14027f1b7\ndivss   xmm0, xmm1; X                                                  ; +0x1bc, 0x14027f1bc\ncall    ceilf                                                          ; +0x1c0, 0x14027f1c0\naddss   xmm0, cs:flt_140622C24                                         ; +0x1c5, 0x14027f1c5\ncvttss2si r12d, xmm0                                                   ; +0x1cd, 0x14027f1cd\nmov     rcx, [r14+1D0h]                                                ; +0x1d2, 0x14027f1d2\nadd     rcx, 140h                                                      ; +0x1d9, 0x14027f1d9\nmov     rax, [rcx]                                                     ; +0x1e0, 0x14027f1e0\ncall    qword ptr [rax+10h]                                            ; +0x1e3, 0x14027f1e3\nmov     rcx, rax                                                       ; +0x1e6, 0x14027f1e6\nlea     rdx, stru_1406C1E10                                            ; +0x1e9, 0x14027f1e9\ncall    cs:?createWithTexture@CCSprite@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x1f0, 0x14027f1f0\nmov     [r14+198h], rax                                                ; +0x1f6, 0x14027f1f6\nmov     byte ptr [rax+22Fh], 1                                         ; +0x1fd, 0x14027f1fd\nmov     rax, [r14+198h]                                                ; +0x204, 0x14027f204\nmov     rbx, [rax]                                                     ; +0x20b, 0x14027f20b\nxorps   xmm2, xmm2                                                     ; +0x20e, 0x14027f20e\nxorps   xmm1, xmm1                                                     ; +0x211, 0x14027f211\nlea     rcx, [rbp+57h+var_78]                                          ; +0x214, 0x14027f214\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x218, 0x14027f218\nmov     rdx, rax                                                       ; +0x21e, 0x14027f21e\nmov     rcx, [r14+198h]                                                ; +0x221, 0x14027f221\ncall    qword ptr [rbx+0B8h]                                           ; +0x228, 0x14027f228\nmov     rcx, [r14+198h]                                                ; +0x22e, 0x14027f22e\nadd     rcx, 140h                                                      ; +0x235, 0x14027f235\nmov     rax, [rcx]                                                     ; +0x23c, 0x14027f23c\nlea     rdx, [rbp+57h+var_80]                                          ; +0x23f, 0x14027f23f\ncall    qword ptr [rax]                                                ; +0x243, 0x14027f243\nmov     rcx, [r14+1D0h]                                                ; +0x245, 0x14027f245\nmov     rax, [rcx]                                                     ; +0x24c, 0x14027f24c\nmov     rdx, [r14+198h]                                                ; +0x24f, 0x14027f24f\ncall    qword ptr [rax+1C0h]                                           ; +0x256, 0x14027f256\nmov     r8b, 1                                                         ; +0x25c, 0x14027f25c\nmov     edx, r12d                                                      ; +0x25f, 0x14027f25f\nmov     rcx, r14                                                       ; +0x262, 0x14027f262\ncall    GJMGLayer__loadGroundSprites                                   ; +0x265, 0x14027f265\nmovzx   eax, [rbp+57h+var_80]                                          ; +0x26a, 0x14027f26a\nmov     [rbp+57h+var_90], ax                                           ; +0x26e, 0x14027f26e\nmovzx   eax, [rbp+57h+var_7E]                                          ; +0x272, 0x14027f272\nmov     [rbp+57h+var_8E], al                                           ; +0x276, 0x14027f276\nmov     rcx, [r14+198h]                                                ; +0x279, 0x14027f279\ntest    rcx, rcx                                                       ; +0x280, 0x14027f280\njz      short loc_14027F2CA                                            ; +0x283, 0x14027f283\nmov     rax, [rcx]                                                     ; +0x285, 0x14027f285\ncall    qword ptr [rax+1D0h]                                           ; +0x288, 0x14027f288\nmov     rdi, rax                                                       ; +0x28e, 0x14027f28e\nmov     ebx, esi                                                       ; +0x291, 0x14027f291\nmov     rcx, rax                                                       ; +0x293, 0x14027f293\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x296, 0x14027f296\ntest    eax, eax                                                       ; +0x29c, 0x14027f29c\njz      short loc_14027F2CA                                            ; +0x29e, 0x14027f29e\nmov     edx, ebx                                                       ; +0x2a0, 0x14027f2a0\nmov     rcx, rdi                                                       ; +0x2a2, 0x14027f2a2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x2a5, 0x14027f2a5\nlea     rcx, [rax+140h]                                                ; +0x2ab, 0x14027f2ab\nmov     rax, [rcx]                                                     ; +0x2b2, 0x14027f2b2\nlea     rdx, [rbp+57h+var_90]                                          ; +0x2b5, 0x14027f2b5\ncall    qword ptr [rax]                                                ; +0x2b9, 0x14027f2b9\ninc     ebx                                                            ; +0x2bb, 0x14027f2bb\nmov     rcx, rdi                                                       ; +0x2bd, 0x14027f2bd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2c0, 0x14027f2c0\ncmp     ebx, eax                                                       ; +0x2c6, 0x14027f2c6\njb      short loc_14027F2A0                                            ; +0x2c8, 0x14027f2c8\nmov     edx, r15d                                                      ; +0x2ca, 0x14027f2ca\nlea     rcx, aFg02d2001Png; \"fg_%02d_2_001.png\"                        ; +0x2cd, 0x14027f2cd\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2d4, 0x14027f2d4\nmov     rcx, rax                                                       ; +0x2da, 0x14027f2da\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x2dd, 0x14027f2dd\nmov     rcx, rax                                                       ; +0x2e3, 0x14027f2e3\ncall    cs:?create@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSpriteBatchNode::create(char const *) ; +0x2e6, 0x14027f2e6\nmov     [r14+1D8h], rax                                                ; +0x2ec, 0x14027f2ec\nmov     r9, [r14]                                                      ; +0x2f3, 0x14027f2f3\nmov     r8d, 3                                                         ; +0x2f6, 0x14027f2f6\nmov     rdx, rax                                                       ; +0x2fc, 0x14027f2fc\nmov     rcx, r14                                                       ; +0x2ff, 0x14027f2ff\ncall    qword ptr [r9+1B8h]                                            ; +0x302, 0x14027f302\nmov     rcx, [r14+1D0h]                                                ; +0x309, 0x14027f309\nadd     rcx, 140h                                                      ; +0x310, 0x14027f310\nmov     rax, [rcx]                                                     ; +0x317, 0x14027f317\ncall    qword ptr [rax+10h]                                            ; +0x31a, 0x14027f31a\nmov     rbx, rax                                                       ; +0x31d, 0x14027f31d\nmov     rcx, [r14+1D8h]                                                ; +0x320, 0x14027f320\nadd     rcx, 140h                                                      ; +0x327, 0x14027f327\nmov     rdx, [rcx]                                                     ; +0x32e, 0x14027f32e\ncall    qword ptr [rdx+10h]                                            ; +0x331, 0x14027f331\nmov     rdi, rax                                                       ; +0x334, 0x14027f334\nmov     r8, [rbx]                                                      ; +0x337, 0x14027f337\nlea     rdx, [rbp+57h+var_78]                                          ; +0x33a, 0x14027f33a\nmov     rcx, rbx                                                       ; +0x33e, 0x14027f33e\ncall    qword ptr [r8+88h]                                             ; +0x341, 0x14027f341\nmov     rbx, rax                                                       ; +0x348, 0x14027f348\nmov     r8, [rdi]                                                      ; +0x34b, 0x14027f34b\nlea     rdx, [rbp+57h+var_70]                                          ; +0x34e, 0x14027f34e\nmov     rcx, rdi                                                       ; +0x352, 0x14027f352\ncall    qword ptr [r8+88h]                                             ; +0x355, 0x14027f355\nmovss   xmm6, dword ptr [rbx+4]                                        ; +0x35c, 0x14027f35c\nsubss   xmm6, dword ptr [rax+4]                                        ; +0x361, 0x14027f361\nmov     rcx, [r14+1D8h]                                                ; +0x366, 0x14027f366\nadd     rcx, 140h                                                      ; +0x36d, 0x14027f36d\nmov     rax, [rcx]                                                     ; +0x374, 0x14027f374\ncall    qword ptr [rax+10h]                                            ; +0x377, 0x14027f377\nmov     rcx, rax                                                       ; +0x37a, 0x14027f37a\nlea     rdx, stru_1406C1E10                                            ; +0x37d, 0x14027f37d\ncall    cs:?createWithTexture@CCSprite@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x384, 0x14027f384\nmov     [r14+1A0h], rax                                                ; +0x38a, 0x14027f38a\nmov     byte ptr [rax+22Fh], 1                                         ; +0x391, 0x14027f391\nmov     rax, [r14+1A0h]                                                ; +0x398, 0x14027f398\nmov     rbx, [rax]                                                     ; +0x39f, 0x14027f39f\nxorps   xmm2, xmm2                                                     ; +0x3a2, 0x14027f3a2\nxorps   xmm1, xmm1                                                     ; +0x3a5, 0x14027f3a5\nlea     rcx, [rbp+57h+var_70]                                          ; +0x3a8, 0x14027f3a8\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x3ac, 0x14027f3ac\nmov     rdx, rax                                                       ; +0x3b2, 0x14027f3b2\nmov     rcx, [r14+1A0h]                                                ; +0x3b5, 0x14027f3b5\ncall    qword ptr [rbx+0B8h]                                           ; +0x3bc, 0x14027f3bc\nmov     rcx, [r14+1A0h]                                                ; +0x3c2, 0x14027f3c2\nadd     rcx, 140h                                                      ; +0x3c9, 0x14027f3c9\nmov     rax, [rcx]                                                     ; +0x3d0, 0x14027f3d0\nlea     rdx, [rbp+57h+var_80]                                          ; +0x3d3, 0x14027f3d3\ncall    qword ptr [rax]                                                ; +0x3d7, 0x14027f3d7\nmov     rcx, [r14+1D8h]                                                ; +0x3d9, 0x14027f3d9\nmov     rax, [rcx]                                                     ; +0x3e0, 0x14027f3e0\nmov     rdx, [r14+1A0h]                                                ; +0x3e3, 0x14027f3e3\ncall    qword ptr [rax+1C0h]                                           ; +0x3ea, 0x14027f3ea\nmov     rax, [r14+1D8h]                                                ; +0x3f0, 0x14027f3f0\nmov     rbx, [rax]                                                     ; +0x3f7, 0x14027f3f7\nmovaps  xmm2, xmm6                                                     ; +0x3fa, 0x14027f3fa\nxorps   xmm1, xmm1                                                     ; +0x3fd, 0x14027f3fd\nlea     rcx, [rbp+57h+var_70]                                          ; +0x400, 0x14027f400\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x404, 0x14027f404\nmov     rdx, rax                                                       ; +0x40a, 0x14027f40a\nmov     rcx, [r14+1D8h]                                                ; +0x40d, 0x14027f40d\ncall    qword ptr [rbx+0B8h]                                           ; +0x414, 0x14027f414\nxor     r8d, r8d                                                       ; +0x41a, 0x14027f41a\nmov     edx, r12d                                                      ; +0x41d, 0x14027f41d\nmov     rcx, r14                                                       ; +0x420, 0x14027f420\ncall    GJMGLayer__loadGroundSprites                                   ; +0x423, 0x14027f423\nmovzx   eax, [rbp+57h+var_80]                                          ; +0x428, 0x14027f428\nmov     [rbp+57h+var_90], ax                                           ; +0x42c, 0x14027f42c\nmovzx   eax, [rbp+57h+var_7E]                                          ; +0x430, 0x14027f430\nmov     [rbp+57h+var_8E], al                                           ; +0x434, 0x14027f434\nmov     rcx, [r14+1A0h]                                                ; +0x437, 0x14027f437\ntest    rcx, rcx                                                       ; +0x43e, 0x14027f43e\njz      short loc_14027F48A                                            ; +0x441, 0x14027f441\nmov     rax, [rcx]                                                     ; +0x443, 0x14027f443\ncall    qword ptr [rax+1D0h]                                           ; +0x446, 0x14027f446\nmov     rbx, rax                                                       ; +0x44c, 0x14027f44c\nmov     rcx, rax                                                       ; +0x44f, 0x14027f44f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x452, 0x14027f452\ntest    eax, eax                                                       ; +0x458, 0x14027f458\njz      short loc_14027F48A                                            ; +0x45a, 0x14027f45a\nnop     dword ptr [rax+00h]                                            ; +0x45c, 0x14027f45c\nmov     edx, esi                                                       ; +0x460, 0x14027f460\nmov     rcx, rbx                                                       ; +0x462, 0x14027f462\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x465, 0x14027f465\nlea     rcx, [rax+140h]                                                ; +0x46b, 0x14027f46b\nmov     rax, [rcx]                                                     ; +0x472, 0x14027f472\nlea     rdx, [rbp+57h+var_90]                                          ; +0x475, 0x14027f475\ncall    qword ptr [rax]                                                ; +0x479, 0x14027f479\ninc     esi                                                            ; +0x47b, 0x14027f47b\nmov     rcx, rbx                                                       ; +0x47d, 0x14027f47d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x480, 0x14027f480\ncmp     esi, eax                                                       ; +0x486, 0x14027f486\njb      short loc_14027F460                                            ; +0x488, 0x14027f488\nmov     rdx, [rbp+57h+var_40]                                          ; +0x48a, 0x14027f48a\ncmp     rdx, 0Fh                                                       ; +0x48e, 0x14027f48e\njbe     short loc_14027F4C8                                            ; +0x492, 0x14027f492\ninc     rdx                                                            ; +0x494, 0x14027f494\nmov     rcx, [rbp+57h+Block]; Block                                    ; +0x497, 0x14027f497\nmov     rax, rcx                                                       ; +0x49b, 0x14027f49b\ncmp     rdx, 1000h                                                     ; +0x49e, 0x14027f49e\njb      short loc_14027F4C3                                            ; +0x4a5, 0x14027f4a5\nadd     rdx, 27h ; '''                                                 ; +0x4a7, 0x14027f4a7\nmov     rcx, [rcx-8]                                                   ; +0x4ab, 0x14027f4ab\nsub     rax, rcx                                                       ; +0x4af, 0x14027f4af\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x4b2, 0x14027f4b2\ncmp     rax, 1Fh                                                       ; +0x4b6, 0x14027f4b6\njbe     short loc_14027F4C3                                            ; +0x4ba, 0x14027f4ba\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x4bc, 0x14027f4bc\ndb 0CCh                                                                ; +0x4c2, 0x14027f4c2\ncall    j_j_free                                                       ; +0x4c3, 0x14027f4c3\nmov     al, 1                                                          ; +0x4c8, 0x14027f4c8\nmov     rcx, [rbp+57h+var_38]                                          ; +0x4ca, 0x14027f4ca\nxor     rcx, rsp; StackCookie                                          ; +0x4ce, 0x14027f4ce\ncall    __security_check_cookie                                        ; +0x4d1, 0x14027f4d1\nlea     r11, [rsp+0B0h+var_20]                                         ; +0x4d6, 0x14027f4d6\nmov     rbx, [r11+40h]                                                 ; +0x4de, 0x14027f4de\nmov     rsi, [r11+48h]                                                 ; +0x4e2, 0x14027f4e2\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x4e6, 0x14027f4e6\nmov     rsp, r11                                                       ; +0x4eb, 0x14027f4eb\npop     r15                                                            ; +0x4ee, 0x14027f4ee\npop     r14                                                            ; +0x4f0, 0x14027f4f0\npop     r12                                                            ; +0x4f2, 0x14027f4f2\npop     rdi                                                            ; +0x4f4, 0x14027f4f4\npop     rbp                                                            ; +0x4f5, 0x14027f4f5\nretn                                                                   ; +0x4f6, 0x14027f4f6", "xrefs": ["GJBaseGameLayer::createMiddleground @ 0x14020bbf5", "<???> @ 0x1406d12bc"], "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"}