{"type": "func", "start": 5372407168, "end": 5372408594, "name": "GJGroundLayer::init", "pseudocode": "// \n// GJGroundLayer::init from 0x140386d80 to 0x140387312 (1426 bytes)\n// \n// 2 xrefs:\n// > GJGroundLayer::create @ 0x140386d3a\n// > <???> @ 0x140922ad8\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 11:31:08 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nbool __fastcall GJGroundLayer::init(__int64 a1, int a2, unsigned int a3)\n{\n  bool result; // al\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  int v10; // eax\n  int v11; // ebx\n  cocos2d::CCString *v12; // rax\n  const char *CString; // r14\n  struct cocos2d::CCSprite *v14; // rsi\n  __int64 v15; // rbx\n  __int64 v16; // rax\n  __int64 v17; // rbx\n  __int64 v18; // rcx\n  cocos2d::CCDirector *v19; // rax\n  float v20; // xmm0_4\n  __int64 v21; // rax\n  struct cocos2d::CCSprite *v22; // rdi\n  __int64 v23; // rbx\n  __int64 v24; // rax\n  __int64 v25; // rbx\n  __int64 v26; // rcx\n  cocos2d::CCDirector *v27; // rax\n  float v28; // xmm0_4\n  __int64 v29; // rax\n  __int64 v30; // rdx\n  __int64 v31; // rdx\n  struct cocos2d::CCSpriteBatchNode *v32; // rsi\n  __int64 v33; // rax\n  float v34; // xmm1_4\n  struct cocos2d::CCTexture2D *v35; // rax\n  struct cocos2d::CCSprite *v36; // rax\n  __int64 v37; // rdi\n  __int64 v38; // rbx\n  __int64 v39; // rax\n  unsigned int v40; // r15d\n  __int64 v41; // r8\n  unsigned int v42; // r14d\n  cocos2d::CCArray *v43; // rax\n  cocos2d::CCArray *v44; // rdi\n  unsigned int v45; // ebx\n  struct cocos2d::CCObject *v46; // rax\n  cocos2d::CCString *v47; // rax\n  const char *v48; // rax\n  struct cocos2d::CCSpriteBatchNode *v49; // rsi\n  struct cocos2d::CCTexture2D *v50; // rax\n  struct cocos2d::CCSprite *v51; // rax\n  __int64 v52; // rdi\n  __int64 v53; // rbx\n  __int64 v54; // rax\n  cocos2d::CCArray *v55; // rax\n  cocos2d::CCArray *v56; // rbx\n  struct cocos2d::CCObject *v57; // rax\n  __int16 v58; // [rsp+20h] [rbp-40h] BYREF\n  char v59; // [rsp+22h] [rbp-3Eh]\n  __int64 v60; // [rsp+30h] [rbp-30h]\n  _DWORD v61[2]; // [rsp+38h] [rbp-28h] BYREF\n  __int64 v62; // [rsp+40h] [rbp-20h] BYREF\n  float v63; // [rsp+48h] [rbp-18h] BYREF\n  __int16 v64; // [rsp+A8h] [rbp+48h] BYREF\n  char v65; // [rsp+AAh] [rbp+4Ah]\n\n  result = cocos2d::CCLayer::init((cocos2d::CCLayer *)a1);\n  if ( result )\n  {\n    (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 312LL))(a1, &unk_14090AB88);\n    v8 = cocos2d::CCDirector::sharedDirector(v7);\n    cocos2d::CCDirector::getWinSize(v8, &v63);\n    v9 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v62 = (__int64)operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v62);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v9 = qword_14090BFD0;\n    }\n    v10 = 22;\n    if ( a2 < 22 )\n      v10 = a2;\n    v11 = 1;\n    if ( v10 > 1 )\n      v11 = v10;\n    GameManager::loadGround(v9, v11);\n    v12 = cocos2d::CCString::createWithFormat(\"groundSquare_%02d_001.png\", v11);\n    CString = cocos2d::CCString::getCString(v12);\n    *(_BYTE *)(a1 + 441) = 1;\n    GJGroundLayer::createLine(a1, a3);\n    v14 = cocos2d::CCSprite::createWithSpriteFrameName(\"groundSquareShadow_001.png\");\n    v15 = *(_QWORD *)v14;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, 0.0, 1.0);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v15 + 288))(v14, v16);\n    v17 = *(_QWORD *)v14;\n    v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v18);\n    v20 = cocos2d::CCDirector::getScreenLeft(v19) - 1.0;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, v20, 0.0);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v17 + 184))(v14, v21);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v14, 6);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, _QWORD))(*(_QWORD *)v14 + 64LL))(v14, 0);\n    v22 = cocos2d::CCSprite::createWithSpriteFrameName(\"groundSquareShadow_001.png\");\n    v23 = *(_QWORD *)v22;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, 1.0, 1.0);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v23 + 288))(v22, v24);\n    v25 = *(_QWORD *)v22;\n    v27 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v26);\n    v28 = cocos2d::CCDirector::getScreenRight(v27) + 1.0;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, v28, 0.0);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v25 + 184))(v22, v29);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v22, 6);\n    cocos2d::CCSprite::setFlipX(v22, 1);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v22 + 64LL))(v22, 1);\n    LOBYTE(v30) = 100;\n    (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v14 + 40) + 40LL))((__int64)v14 + 320, v30);\n    LOBYTE(v31) = 100;\n    (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v22 + 40) + 40LL))((__int64)v22 + 320, v31);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v14 + 120LL))(v14);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v22 + 120LL))(v22);\n    v60 = 0x30300000306LL;\n    (**((void (__fastcall ***)(__int64, __int64))v14 + 43))((__int64)v14 + 344, 0x30300000306LL);\n    (**((void (__fastcall ***)(__int64, __int64))v22 + 43))((__int64)v22 + 344, 0x30300000306LL);\n    *(_BYTE *)(a1 + 440) = 0;\n    v58 = 26112;\n    v64 = 26112;\n    v65 = -1;\n    v32 = cocos2d::CCSpriteBatchNode::create(CString);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteBatchNode *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v32, 2);\n    v33 = (*(__int64 (__fastcall **)(__int64))(*((_QWORD *)v32 + 40) + 16LL))((__int64)v32 + 320);\n    (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v33 + 136LL))(v33, v61);\n    v34 = *(float *)v61;\n    *(_DWORD *)(a1 + 424) = v61[0];\n    LODWORD(v60) = (int)(float)(ceilf(v63 / v34) + 1.0);\n    *(float *)(a1 + 444) = 128.0 - *(float *)&v61[1];\n    v35 = (struct cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(__int64))(*((_QWORD *)v32 + 40) + 16LL))((__int64)v32 + 320);\n    v36 = cocos2d::CCSprite::createWithTexture(v35, (const struct cocos2d::CCRect *)&unk_14090AB78);\n    *(_QWORD *)(a1 + 408) = v36;\n    *((_BYTE *)v36 + 559) = 1;\n    v37 = **(_QWORD **)(a1 + 408);\n    v38 = *(_QWORD *)(a1 + 408);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, 0.0, 0.0);\n    (*(void (__fastcall **)(__int64, __int64))(v37 + 184))(v38, v39);\n    (**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 408) + 320LL))(*(_QWORD *)(a1 + 408) + 320LL, &v64);\n    (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, _QWORD))(*(_QWORD *)v32 + 464LL))(\n      v32,\n      *(_QWORD *)(a1 + 408));\n    v62 = 1;\n    v40 = 0;\n    (**((void (__fastcall ***)(__int64, __int64))v32 + 40))((__int64)v32 + 320, 1);\n    LOBYTE(v41) = 1;\n    v42 = v60;\n    GJGroundLayer::loadGroundSprites(a1, (unsigned int)v60, v41);\n    v58 = v64;\n    v59 = v65;\n    v43 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 480LL))(*(_QWORD *)(a1 + 408));\n    v44 = v43;\n    if ( v43 )\n    {\n      v45 = 0;\n      if ( cocos2d::CCArray::count(v43) )\n      {\n        do\n        {\n          v46 = cocos2d::CCArray::objectAtIndex(v44, v45);\n          (**((void (__fastcall ***)(__int64, __int16 *))v46 + 40))((__int64)v46 + 320, &v58);\n          ++v45;\n        }\n        while ( v45 < cocos2d::CCArray::count(v44) );\n      }\n    }\n    if ( a2 >= 8 )\n    {\n      v47 = cocos2d::CCString::createWithFormat(\"groundSquare_%02d_2_001.png\", a2);\n      v48 = cocos2d::CCString::getCString(v47);\n      v49 = cocos2d::CCSpriteBatchNode::create(v48);\n      (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteBatchNode *, __int64))(*(_QWORD *)a1 + 456LL))(\n        a1,\n        v49,\n        3);\n      v50 = (struct cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(__int64))(*((_QWORD *)v49 + 40) + 16LL))((__int64)v49 + 320);\n      v51 = cocos2d::CCSprite::createWithTexture(v50, (const struct cocos2d::CCRect *)&unk_14090AB78);\n      *(_QWORD *)(a1 + 416) = v51;\n      *((_BYTE *)v51 + 559) = 1;\n      v52 = **(_QWORD **)(a1 + 416);\n      v53 = *(_QWORD *)(a1 + 416);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v62, 0.0, 0.0);\n      (*(void (__fastcall **)(__int64, __int64))(v52 + 184))(v53, v54);\n      (**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 416) + 320LL))(\n        *(_QWORD *)(a1 + 416) + 320LL,\n        &v64);\n      (*(void (__fastcall **)(struct cocos2d::CCSpriteBatchNode *, _QWORD))(*(_QWORD *)v49 + 464LL))(\n        v49,\n        *(_QWORD *)(a1 + 416));\n      GJGroundLayer::loadGroundSprites(a1, v42, 0);\n      v58 = v64;\n      v59 = v65;\n      v55 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 480LL))(*(_QWORD *)(a1 + 408));\n      v56 = v55;\n      if ( v55 )\n      {\n        if ( cocos2d::CCArray::count(v55) )\n        {\n          do\n          {\n            v57 = cocos2d::CCArray::objectAtIndex(v56, v40);\n            (**((void (__fastcall ***)(__int64, __int16 *))v57 + 40))((__int64)v57 + 320, &v58);\n            ++v40;\n          }\n          while ( v40 < cocos2d::CCArray::count(v56) );\n        }\n      }\n    }\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; GJGroundLayer::init from 0x140386d80 to 0x140387312 (1426 bytes)\n; \n; 2 xrefs:\n; > GJGroundLayer::create @ 0x140386d3a\n; > <???> @ 0x140922ad8\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 11:31:08 +0000\n; \nmov     [rsp-28h+arg_0], rbx                                           ; +0x0, 0x140386d80\nmov     [rsp-28h+arg_8], rsi                                           ; +0x5, 0x140386d85\nmov     [rsp-28h+arg_10], rdi                                          ; +0xa, 0x140386d8a\npush    rbp                                                            ; +0xf, 0x140386d8f\npush    r12                                                            ; +0x10, 0x140386d90\npush    r13                                                            ; +0x12, 0x140386d92\npush    r14                                                            ; +0x14, 0x140386d94\npush    r15                                                            ; +0x16, 0x140386d96\nmov     rbp, rsp                                                       ; +0x18, 0x140386d98\nsub     rsp, 60h                                                       ; +0x1b, 0x140386d9b\nmovaps  [rsp+60h+var_10], xmm7                                         ; +0x1f, 0x140386d9f\nmov     edi, r8d                                                       ; +0x24, 0x140386da4\nmov     r13d, edx                                                      ; +0x27, 0x140386da7\nmov     r12, rcx                                                       ; +0x2a, 0x140386daa\ncall    cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0x2d, 0x140386dad\ntest    al, al                                                         ; +0x33, 0x140386db3\njz      loc_1403872EF                                                  ; +0x35, 0x140386db5\nmov     rax, [r12]                                                     ; +0x3b, 0x140386dbb\nlea     rdx, unk_14090AB88                                             ; +0x3f, 0x140386dbf\nmov     rcx, r12                                                       ; +0x46, 0x140386dc6\ncall    qword ptr [rax+138h]                                           ; +0x49, 0x140386dc9\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4f, 0x140386dcf\nmov     rcx, rax                                                       ; +0x55, 0x140386dd5\nlea     rdx, [rbp+var_18]                                              ; +0x58, 0x140386dd8\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x5c, 0x140386ddc\nmov     rcx, cs:qword_14090BFD0                                        ; +0x62, 0x140386de2\ntest    rcx, rcx                                                       ; +0x69, 0x140386de9\njnz     short loc_140386E1F                                            ; +0x6c, 0x140386dec\nmov     ecx, 6E8h; Size                                                ; +0x6e, 0x140386dee\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x73, 0x140386df3\nmov     [rbp+var_20], rax                                              ; +0x78, 0x140386df8\nmov     rcx, rax                                                       ; +0x7c, 0x140386dfc\ncall    GameManager__GameManager                                       ; +0x7f, 0x140386dff\nnop                                                                    ; +0x84, 0x140386e04\nmov     cs:qword_14090BFD0, rax                                        ; +0x85, 0x140386e05\nmov     rcx, [rax]                                                     ; +0x8c, 0x140386e0c\nmov     rdx, [rcx+48h]                                                 ; +0x8f, 0x140386e0f\nmov     rcx, rax                                                       ; +0x93, 0x140386e13\ncall    rdx                                                            ; +0x96, 0x140386e16\nmov     rcx, cs:qword_14090BFD0                                        ; +0x98, 0x140386e18\nmov     eax, 16h                                                       ; +0x9f, 0x140386e1f\ncmp     r13d, eax                                                      ; +0xa4, 0x140386e24\ncmovl   eax, r13d                                                      ; +0xa7, 0x140386e27\nmov     ebx, 1                                                         ; +0xab, 0x140386e2b\ncmp     eax, ebx                                                       ; +0xb0, 0x140386e30\ncmovg   ebx, eax                                                       ; +0xb2, 0x140386e32\nmov     edx, ebx                                                       ; +0xb5, 0x140386e35\ncall    GameManager__loadGround                                        ; +0xb7, 0x140386e37\nmov     edx, ebx                                                       ; +0xbc, 0x140386e3c\nlea     rcx, aGroundsquare02; \"groundSquare_%02d_001.png\"              ; +0xbe, 0x140386e3e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xc5, 0x140386e45\nmov     rcx, rax                                                       ; +0xcb, 0x140386e4b\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xce, 0x140386e4e\nmov     r14, rax                                                       ; +0xd4, 0x140386e54\nmov     byte ptr [r12+1B9h], 1                                         ; +0xd7, 0x140386e57\nmov     edx, edi                                                       ; +0xe0, 0x140386e60\nmov     rcx, r12                                                       ; +0xe2, 0x140386e62\ncall    GJGroundLayer__createLine                                      ; +0xe5, 0x140386e65\nlea     rcx, aGroundsquaresh; \"groundSquareShadow_001.png\"             ; +0xea, 0x140386e6a\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xf1, 0x140386e71\nmov     rsi, rax                                                       ; +0xf7, 0x140386e77\nmov     rbx, [rax]                                                     ; +0xfa, 0x140386e7a\nmovss   xmm7, cs:flt_140835080                                         ; +0xfd, 0x140386e7d\nmovaps  xmm2, xmm7                                                     ; +0x105, 0x140386e85\nxorps   xmm1, xmm1                                                     ; +0x108, 0x140386e88\nlea     rcx, [rbp+var_20]                                              ; +0x10b, 0x140386e8b\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x10f, 0x140386e8f\nmov     rdx, rax                                                       ; +0x115, 0x140386e95\nmov     rcx, rsi                                                       ; +0x118, 0x140386e98\ncall    qword ptr [rbx+120h]                                           ; +0x11b, 0x140386e9b\nmov     rbx, [rsi]                                                     ; +0x121, 0x140386ea1\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x124, 0x140386ea4\nmov     rcx, rax                                                       ; +0x12a, 0x140386eaa\ncall    cs:?getScreenLeft@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenLeft(void) ; +0x12d, 0x140386ead\nsubss   xmm0, xmm7                                                     ; +0x133, 0x140386eb3\nxorps   xmm2, xmm2                                                     ; +0x137, 0x140386eb7\nmovaps  xmm1, xmm0                                                     ; +0x13a, 0x140386eba\nlea     rcx, [rbp+var_20]                                              ; +0x13d, 0x140386ebd\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x141, 0x140386ec1\nmov     rdx, rax                                                       ; +0x147, 0x140386ec7\nmov     rcx, rsi                                                       ; +0x14a, 0x140386eca\ncall    qword ptr [rbx+0B8h]                                           ; +0x14d, 0x140386ecd\nmov     rax, [r12]                                                     ; +0x153, 0x140386ed3\nmov     r8d, 6                                                         ; +0x157, 0x140386ed7\nmov     rdx, rsi                                                       ; +0x15d, 0x140386edd\nmov     rcx, r12                                                       ; +0x160, 0x140386ee0\ncall    qword ptr [rax+1C8h]                                           ; +0x163, 0x140386ee3\nmov     rax, [rsi]                                                     ; +0x169, 0x140386ee9\nxor     edx, edx                                                       ; +0x16c, 0x140386eec\nmov     rcx, rsi                                                       ; +0x16e, 0x140386eee\ncall    qword ptr [rax+40h]                                            ; +0x171, 0x140386ef1\nlea     rcx, aGroundsquaresh; \"groundSquareShadow_001.png\"             ; +0x174, 0x140386ef4\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x17b, 0x140386efb\nmov     rdi, rax                                                       ; +0x181, 0x140386f01\nmov     rbx, [rax]                                                     ; +0x184, 0x140386f04\nmovaps  xmm2, xmm7                                                     ; +0x187, 0x140386f07\nmovaps  xmm1, xmm7                                                     ; +0x18a, 0x140386f0a\nlea     rcx, [rbp+var_20]                                              ; +0x18d, 0x140386f0d\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x191, 0x140386f11\nmov     rdx, rax                                                       ; +0x197, 0x140386f17\nmov     rcx, rdi                                                       ; +0x19a, 0x140386f1a\ncall    qword ptr [rbx+120h]                                           ; +0x19d, 0x140386f1d\nmov     rbx, [rdi]                                                     ; +0x1a3, 0x140386f23\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1a6, 0x140386f26\nmov     rcx, rax                                                       ; +0x1ac, 0x140386f2c\ncall    cs:?getScreenRight@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getScreenRight(void) ; +0x1af, 0x140386f2f\naddss   xmm0, xmm7                                                     ; +0x1b5, 0x140386f35\nxorps   xmm2, xmm2                                                     ; +0x1b9, 0x140386f39\nmovaps  xmm1, xmm0                                                     ; +0x1bc, 0x140386f3c\nlea     rcx, [rbp+var_20]                                              ; +0x1bf, 0x140386f3f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1c3, 0x140386f43\nmov     rdx, rax                                                       ; +0x1c9, 0x140386f49\nmov     rcx, rdi                                                       ; +0x1cc, 0x140386f4c\ncall    qword ptr [rbx+0B8h]                                           ; +0x1cf, 0x140386f4f\nmov     rax, [r12]                                                     ; +0x1d5, 0x140386f55\nmov     r8d, 6                                                         ; +0x1d9, 0x140386f59\nmov     rdx, rdi                                                       ; +0x1df, 0x140386f5f\nmov     rcx, r12                                                       ; +0x1e2, 0x140386f62\ncall    qword ptr [rax+1C8h]                                           ; +0x1e5, 0x140386f65\nmov     dl, 1                                                          ; +0x1eb, 0x140386f6b\nmov     rcx, rdi                                                       ; +0x1ed, 0x140386f6d\ncall    cs:?setFlipX@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipX(bool) ; +0x1f0, 0x140386f70\nmov     rax, [rdi]                                                     ; +0x1f6, 0x140386f76\nmov     edx, 1                                                         ; +0x1f9, 0x140386f79\nmov     rcx, rdi                                                       ; +0x1fe, 0x140386f7e\ncall    qword ptr [rax+40h]                                            ; +0x201, 0x140386f81\nlea     rcx, [rsi+140h]                                                ; +0x204, 0x140386f84\nmov     rax, [rcx]                                                     ; +0x20b, 0x140386f8b\nmov     dl, 64h ; 'd'                                                  ; +0x20e, 0x140386f8e\ncall    qword ptr [rax+28h]                                            ; +0x210, 0x140386f90\nlea     rcx, [rdi+140h]                                                ; +0x213, 0x140386f93\nmov     rax, [rcx]                                                     ; +0x21a, 0x140386f9a\nmov     dl, 64h ; 'd'                                                  ; +0x21d, 0x140386f9d\ncall    qword ptr [rax+28h]                                            ; +0x21f, 0x140386f9f\nmov     rax, [rsi]                                                     ; +0x222, 0x140386fa2\nmovss   xmm1, cs:dword_140834FAC                                       ; +0x225, 0x140386fa5\nmov     rcx, rsi                                                       ; +0x22d, 0x140386fad\ncall    qword ptr [rax+78h]                                            ; +0x230, 0x140386fb0\nmov     rax, [rdi]                                                     ; +0x233, 0x140386fb3\nmovss   xmm1, cs:dword_140834FAC                                       ; +0x236, 0x140386fb6\nmov     rcx, rdi                                                       ; +0x23e, 0x140386fbe\ncall    qword ptr [rax+78h]                                            ; +0x241, 0x140386fc1\nmov     dword ptr [rbp+var_30], 306h                                   ; +0x244, 0x140386fc4\nmov     dword ptr [rbp+var_30+4], 303h                                 ; +0x24b, 0x140386fcb\nlea     rcx, [rsi+158h]                                                ; +0x252, 0x140386fd2\nmov     rax, [rcx]                                                     ; +0x259, 0x140386fd9\nmov     rdx, [rbp+var_30]                                              ; +0x25c, 0x140386fdc\ncall    qword ptr [rax]                                                ; +0x260, 0x140386fe0\nlea     rcx, [rdi+158h]                                                ; +0x262, 0x140386fe2\nmov     rax, [rcx]                                                     ; +0x269, 0x140386fe9\nmov     rdx, [rbp+var_30]                                              ; +0x26c, 0x140386fec\ncall    qword ptr [rax]                                                ; +0x270, 0x140386ff0\nmov     byte ptr [r12+1B8h], 0                                         ; +0x272, 0x140386ff2\nmov     [rbp+var_40], 6600h                                            ; +0x27b, 0x140386ffb\nmovzx   eax, [rbp+var_40]                                              ; +0x281, 0x140387001\nmov     [rbp+arg_18], ax                                               ; +0x285, 0x140387005\nmov     [rbp+arg_1A], 0FFh                                             ; +0x289, 0x140387009\nmov     rcx, r14                                                       ; +0x28d, 0x14038700d\ncall    cs:?create@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSpriteBatchNode::create(char const *) ; +0x290, 0x140387010\nmov     rsi, rax                                                       ; +0x296, 0x140387016\nmov     rcx, [r12]                                                     ; +0x299, 0x140387019\nmov     r9, [rcx+1C8h]                                                 ; +0x29d, 0x14038701d\nmov     r8d, 2                                                         ; +0x2a4, 0x140387024\nmov     rdx, rax                                                       ; +0x2aa, 0x14038702a\nmov     rcx, r12                                                       ; +0x2ad, 0x14038702d\ncall    r9                                                             ; +0x2b0, 0x140387030\nlea     r14, [rsi+140h]                                                ; +0x2b3, 0x140387033\nmov     rcx, [r14]                                                     ; +0x2ba, 0x14038703a\nmov     rdx, [rcx+10h]                                                 ; +0x2bd, 0x14038703d\nmov     rcx, r14                                                       ; +0x2c1, 0x140387041\ncall    rdx                                                            ; +0x2c4, 0x140387044\nmov     rcx, [rax]                                                     ; +0x2c6, 0x140387046\nmov     r8, [rcx+88h]                                                  ; +0x2c9, 0x140387049\nlea     rdx, [rbp+var_28]                                              ; +0x2d0, 0x140387050\nmov     rcx, rax                                                       ; +0x2d4, 0x140387054\ncall    r8                                                             ; +0x2d7, 0x140387057\nmovss   xmm1, [rbp+var_28]                                             ; +0x2da, 0x14038705a\nmovss   dword ptr [r12+1A8h], xmm1                                     ; +0x2df, 0x14038705f\nmovss   xmm0, [rbp+var_18]                                             ; +0x2e9, 0x140387069\ndivss   xmm0, xmm1; X                                                  ; +0x2ee, 0x14038706e\ncall    ceilf                                                          ; +0x2f2, 0x140387072\naddss   xmm0, xmm7                                                     ; +0x2f7, 0x140387077\ncvttss2si eax, xmm0                                                    ; +0x2fb, 0x14038707b\nmov     dword ptr [rbp+var_30], eax                                    ; +0x2ff, 0x14038707f\nmovss   xmm1, cs:dword_140835814                                       ; +0x302, 0x140387082\nsubss   xmm1, [rbp+var_24]                                             ; +0x30a, 0x14038708a\nmovss   dword ptr [r12+1BCh], xmm1                                     ; +0x30f, 0x14038708f\nmov     rax, [r14]                                                     ; +0x319, 0x140387099\nmov     rcx, r14                                                       ; +0x31c, 0x14038709c\ncall    qword ptr [rax+10h]                                            ; +0x31f, 0x14038709f\nmov     rcx, rax                                                       ; +0x322, 0x1403870a2\nlea     rdx, unk_14090AB78                                             ; +0x325, 0x1403870a5\ncall    cs:?createWithTexture@CCSprite@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x32c, 0x1403870ac\nmov     [r12+198h], rax                                                ; +0x332, 0x1403870b2\nmov     byte ptr [rax+22Fh], 1                                         ; +0x33a, 0x1403870ba\nmov     rax, [r12+198h]                                                ; +0x341, 0x1403870c1\nmov     rdi, [rax]                                                     ; +0x349, 0x1403870c9\nmov     rbx, rax                                                       ; +0x34c, 0x1403870cc\nxorps   xmm2, xmm2                                                     ; +0x34f, 0x1403870cf\nxorps   xmm1, xmm1                                                     ; +0x352, 0x1403870d2\nlea     rcx, [rbp+var_20]                                              ; +0x355, 0x1403870d5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x359, 0x1403870d9\nmov     rdx, rax                                                       ; +0x35f, 0x1403870df\nmov     rcx, rbx                                                       ; +0x362, 0x1403870e2\ncall    qword ptr [rdi+0B8h]                                           ; +0x365, 0x1403870e5\nmov     rcx, [r12+198h]                                                ; +0x36b, 0x1403870eb\nadd     rcx, 140h                                                      ; +0x373, 0x1403870f3\nmov     rax, [rcx]                                                     ; +0x37a, 0x1403870fa\nlea     rdx, [rbp+arg_18]                                              ; +0x37d, 0x1403870fd\ncall    qword ptr [rax]                                                ; +0x381, 0x140387101\nmov     rax, [rsi]                                                     ; +0x383, 0x140387103\nmov     rdx, [r12+198h]                                                ; +0x386, 0x140387106\nmov     rcx, rsi                                                       ; +0x38e, 0x14038710e\ncall    qword ptr [rax+1D0h]                                           ; +0x391, 0x140387111\nmov     [rbp+var_20], 1                                                ; +0x397, 0x140387117\nxor     r15d, r15d                                                     ; +0x39f, 0x14038711f\nmov     rax, [r14]                                                     ; +0x3a2, 0x140387122\nmov     rdx, [rbp+var_20]                                              ; +0x3a5, 0x140387125\nmov     rcx, r14                                                       ; +0x3a9, 0x140387129\ncall    qword ptr [rax]                                                ; +0x3ac, 0x14038712c\nmov     r8b, 1                                                         ; +0x3ae, 0x14038712e\nmov     r14d, dword ptr [rbp+var_30]                                   ; +0x3b1, 0x140387131\nmov     edx, r14d                                                      ; +0x3b5, 0x140387135\nmov     rcx, r12                                                       ; +0x3b8, 0x140387138\ncall    GJGroundLayer__loadGroundSprites                               ; +0x3bb, 0x14038713b\nmovzx   eax, [rbp+arg_18]                                              ; +0x3c0, 0x140387140\nmov     [rbp+var_40], ax                                               ; +0x3c4, 0x140387144\nmovzx   eax, [rbp+arg_1A]                                              ; +0x3c8, 0x140387148\nmov     [rbp+var_3E], al                                               ; +0x3cc, 0x14038714c\nmov     rcx, [r12+198h]                                                ; +0x3cf, 0x14038714f\nmov     rax, [rcx]                                                     ; +0x3d7, 0x140387157\ncall    qword ptr [rax+1E0h]                                           ; +0x3da, 0x14038715a\nmov     rdi, rax                                                       ; +0x3e0, 0x140387160\ntest    rax, rax                                                       ; +0x3e3, 0x140387163\njz      short loc_1403871AA                                            ; +0x3e6, 0x140387166\nmov     ebx, r15d                                                      ; +0x3e8, 0x140387168\nmov     rcx, rax                                                       ; +0x3eb, 0x14038716b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3ee, 0x14038716e\ntest    eax, eax                                                       ; +0x3f4, 0x140387174\njz      short loc_1403871AA                                            ; +0x3f6, 0x140387176\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x3f8, 0x140387178\nmov     edx, ebx                                                       ; +0x400, 0x140387180\nmov     rcx, rdi                                                       ; +0x402, 0x140387182\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x405, 0x140387185\nlea     rcx, [rax+140h]                                                ; +0x40b, 0x14038718b\nmov     rax, [rcx]                                                     ; +0x412, 0x140387192\nlea     rdx, [rbp+var_40]                                              ; +0x415, 0x140387195\ncall    qword ptr [rax]                                                ; +0x419, 0x140387199\ninc     ebx                                                            ; +0x41b, 0x14038719b\nmov     rcx, rdi                                                       ; +0x41d, 0x14038719d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x420, 0x1403871a0\ncmp     ebx, eax                                                       ; +0x426, 0x1403871a6\njb      short loc_140387180                                            ; +0x428, 0x1403871a8\ncmp     r13d, 8                                                        ; +0x42a, 0x1403871aa\njl      loc_1403872ED                                                  ; +0x42e, 0x1403871ae\nmov     edx, r13d                                                      ; +0x434, 0x1403871b4\nlea     rcx, aGroundsquare02_0; \"groundSquare_%02d_2_001.png\"          ; +0x437, 0x1403871b7\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x43e, 0x1403871be\nmov     rcx, rax                                                       ; +0x444, 0x1403871c4\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x447, 0x1403871c7\nmov     rcx, rax                                                       ; +0x44d, 0x1403871cd\ncall    cs:?create@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSpriteBatchNode::create(char const *) ; +0x450, 0x1403871d0\nmov     rsi, rax                                                       ; +0x456, 0x1403871d6\nmov     rcx, [r12]                                                     ; +0x459, 0x1403871d9\nmov     r9, [rcx+1C8h]                                                 ; +0x45d, 0x1403871dd\nmov     r8d, 3                                                         ; +0x464, 0x1403871e4\nmov     rdx, rax                                                       ; +0x46a, 0x1403871ea\nmov     rcx, r12                                                       ; +0x46d, 0x1403871ed\ncall    r9                                                             ; +0x470, 0x1403871f0\nlea     rcx, [rsi+140h]                                                ; +0x473, 0x1403871f3\nmov     r8, [rcx]                                                      ; +0x47a, 0x1403871fa\ncall    qword ptr [r8+10h]                                             ; +0x47d, 0x1403871fd\nmov     rcx, rax                                                       ; +0x481, 0x140387201\nlea     rdx, unk_14090AB78                                             ; +0x484, 0x140387204\ncall    cs:?createWithTexture@CCSprite@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSprite::createWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x48b, 0x14038720b\nmov     [r12+1A0h], rax                                                ; +0x491, 0x140387211\nmov     byte ptr [rax+22Fh], 1                                         ; +0x499, 0x140387219\nmov     rax, [r12+1A0h]                                                ; +0x4a0, 0x140387220\nmov     rdi, [rax]                                                     ; +0x4a8, 0x140387228\nmov     rbx, rax                                                       ; +0x4ab, 0x14038722b\nxorps   xmm2, xmm2                                                     ; +0x4ae, 0x14038722e\nxorps   xmm1, xmm1                                                     ; +0x4b1, 0x140387231\nlea     rcx, [rbp+var_20]                                              ; +0x4b4, 0x140387234\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x4b8, 0x140387238\nmov     rdx, rax                                                       ; +0x4be, 0x14038723e\nmov     rcx, rbx                                                       ; +0x4c1, 0x140387241\ncall    qword ptr [rdi+0B8h]                                           ; +0x4c4, 0x140387244\nmov     rcx, [r12+1A0h]                                                ; +0x4ca, 0x14038724a\nadd     rcx, 140h                                                      ; +0x4d2, 0x140387252\nmov     rax, [rcx]                                                     ; +0x4d9, 0x140387259\nlea     rdx, [rbp+arg_18]                                              ; +0x4dc, 0x14038725c\ncall    qword ptr [rax]                                                ; +0x4e0, 0x140387260\nmov     rax, [rsi]                                                     ; +0x4e2, 0x140387262\nmov     rdx, [r12+1A0h]                                                ; +0x4e5, 0x140387265\nmov     rcx, rsi                                                       ; +0x4ed, 0x14038726d\ncall    qword ptr [rax+1D0h]                                           ; +0x4f0, 0x140387270\nxor     r8d, r8d                                                       ; +0x4f6, 0x140387276\nmov     edx, r14d                                                      ; +0x4f9, 0x140387279\nmov     rcx, r12                                                       ; +0x4fc, 0x14038727c\ncall    GJGroundLayer__loadGroundSprites                               ; +0x4ff, 0x14038727f\nmovzx   eax, [rbp+arg_18]                                              ; +0x504, 0x140387284\nmov     [rbp+var_40], ax                                               ; +0x508, 0x140387288\nmovzx   eax, [rbp+arg_1A]                                              ; +0x50c, 0x14038728c\nmov     [rbp+var_3E], al                                               ; +0x510, 0x140387290\nmov     rcx, [r12+198h]                                                ; +0x513, 0x140387293\nmov     rax, [rcx]                                                     ; +0x51b, 0x14038729b\ncall    qword ptr [rax+1E0h]                                           ; +0x51e, 0x14038729e\nmov     rbx, rax                                                       ; +0x524, 0x1403872a4\ntest    rax, rax                                                       ; +0x527, 0x1403872a7\njz      short loc_1403872ED                                            ; +0x52a, 0x1403872aa\nmov     rcx, rax                                                       ; +0x52c, 0x1403872ac\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x52f, 0x1403872af\ntest    eax, eax                                                       ; +0x535, 0x1403872b5\njz      short loc_1403872ED                                            ; +0x537, 0x1403872b7\nnop     dword ptr [rax+00000000h]                                      ; +0x539, 0x1403872b9\nmov     edx, r15d                                                      ; +0x540, 0x1403872c0\nmov     rcx, rbx                                                       ; +0x543, 0x1403872c3\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x546, 0x1403872c6\nlea     rcx, [rax+140h]                                                ; +0x54c, 0x1403872cc\nmov     rax, [rcx]                                                     ; +0x553, 0x1403872d3\nlea     rdx, [rbp+var_40]                                              ; +0x556, 0x1403872d6\ncall    qword ptr [rax]                                                ; +0x55a, 0x1403872da\ninc     r15d                                                           ; +0x55c, 0x1403872dc\nmov     rcx, rbx                                                       ; +0x55f, 0x1403872df\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x562, 0x1403872e2\ncmp     r15d, eax                                                      ; +0x568, 0x1403872e8\njb      short loc_1403872C0                                            ; +0x56b, 0x1403872eb\nmov     al, 1                                                          ; +0x56d, 0x1403872ed\nlea     r11, [rsp+60h+var_s0]                                          ; +0x56f, 0x1403872ef\nmov     rbx, [r11+30h]                                                 ; +0x574, 0x1403872f4\nmov     rsi, [r11+38h]                                                 ; +0x578, 0x1403872f8\nmov     rdi, [r11+40h]                                                 ; +0x57c, 0x1403872fc\nmovaps  xmm7, [rsp+60h+var_10]                                         ; +0x580, 0x140387300\nmov     rsp, r11                                                       ; +0x585, 0x140387305\npop     r15                                                            ; +0x588, 0x140387308\npop     r14                                                            ; +0x58a, 0x14038730a\npop     r13                                                            ; +0x58c, 0x14038730c\npop     r12                                                            ; +0x58e, 0x14038730e\npop     rbp                                                            ; +0x590, 0x140387310\nretn                                                                   ; +0x591, 0x140387311", "xrefs": ["GJGroundLayer::create @ 0x140386d3a", "<???> @ 0x140922ad8"], "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"}