{"type": "func", "start": 4301176160, "end": 4301177278, "name": "GJMGLayer::init", "pseudocode": "// \n// GJMGLayer::init from 0x1005ebd60 to 0x1005ec1be (1118 bytes)\n// \n// 1 xrefs:\n// > GJMGLayer::create @ 0x1005ebd24\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\nbool __fastcall GJMGLayer::init(GJMGLayer *a1, int a2)\n{\n  double v3; // xmm0_8\n  GameManager *v4; // rax\n  const char *MGTexture; // r13\n  size_t v6; // rax\n  size_t v7; // r12\n  char *v8; // rbx\n  size_t v9; // r15\n  const char *v10; // rdi\n  cocos2d::CCSpriteBatchNode *v11; // rax\n  __int64 v12; // rax\n  cocos2d::CCTexture2D *v13; // rax\n  cocos2d::CCSprite *v14; // rbx\n  __m128 v15; // xmm0\n  cocos2d::CCSprite *m_ground1Sprite; // rdi\n  __int64 v17; // r13\n  unsigned int v18; // ebx\n  __int64 v19; // rax\n  cocos2d::CCString *v20; // rax\n  const char *CString; // rax\n  cocos2d::CCSpriteBatchNode *v22; // rax\n  __int64 v23; // rax\n  __int64 v24; // rax\n  cocos2d::CCTexture2D *v25; // rax\n  cocos2d::CCSprite *v26; // rbx\n  cocos2d::CCSpriteBatchNode *m_mg2BatchNode; // rbx\n  cocos2d::CCSprite *m_ground2Sprite; // rdi\n  __int64 v29; // r14\n  unsigned int v30; // ebx\n  __int64 v31; // rax\n  char v33; // [rsp+0h] [rbp-80h]\n  unsigned int v34; // [rsp+8h] [rbp-78h] BYREF\n  float v35; // [rsp+10h] [rbp-70h] BYREF\n  _BYTE v36[4]; // [rsp+18h] [rbp-68h] BYREF\n  float v37; // [rsp+1Ch] [rbp-64h]\n  _QWORD __dst[2]; // [rsp+20h] [rbp-60h] BYREF\n  void *__p; // [rsp+30h] [rbp-50h]\n  unsigned int v40; // [rsp+3Ch] [rbp-44h]\n  __int64 v41; // [rsp+40h] [rbp-40h]\n  float v42[2]; // [rsp+48h] [rbp-38h] BYREF\n  bool v43; // [rsp+53h] [rbp-2Dh]\n  __int16 v44; // [rsp+54h] [rbp-2Ch] BYREF\n  char v45; // [rsp+56h] [rbp-2Ah]\n\n  v43 = cocos2d::CCLayer::init(a1);\n  if ( !v43 )\n    return v43;\n  ((void (__fastcall *)(GJMGLayer *, void *))a1->setContentSize)(a1, &unk_1009A2FC0);\n  cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v34);\n  v3 = 0.0;\n  if ( (unsigned int)(a2 - 1) <= 2 )\n    *(_QWORD *)&v3 = LODWORD(flt_1008219FC[a2 - 1]);\n  a1->m_ground2Offset = *(float *)&v3;\n  v4 = GameManager::sharedState();\n  MGTexture = GameManager::getMGTexture(v4, a2);\n  v6 = strlen(MGTexture);\n  if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v3);\n  v7 = v6;\n  if ( v6 >= 0x17 )\n  {\n    v41 = (unsigned int)a2;\n    v9 = 26;\n    if ( (v6 | 7) != 0x17 )\n      v9 = (v6 | 7) + 1;\n    v8 = (char *)operator new(v9);\n    __p = v8;\n    __dst[0] = v9 + 1;\n    __dst[1] = v7;\n  }\n  else\n  {\n    LOBYTE(__dst[0]) = 2 * v6;\n    v8 = (char *)__dst + 1;\n    if ( !v6 )\n      goto LABEL_12;\n  }\n  memmove(v8, MGTexture, v7);\nLABEL_12:\n  v8[v7] = 0;\n  a1->m_showGround = 0;\n  v45 = -1;\n  v44 = 26112;\n  if ( (__dst[0] & 1) != 0 )\n    v10 = (const char *)__p;\n  else\n    v10 = (char *)__dst + 1;\n  v11 = cocos2d::CCSpriteBatchNode::create(v10, 0x1Du);\n  a1->m_mg1BatchNode = v11;\n  ((void (__fastcall *)(GJMGLayer *, cocos2d::CCSpriteBatchNode *, __int64))a1->addChild_0)(a1, v11, 2);\n  v12 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->m_mg1BatchNode->getTexture)(a1->m_mg1BatchNode);\n  (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v12 + 144LL))(&v35, v12);\n  *(float *)&v41 = v35;\n  a1->m_textureWidth = v35;\n  v40 = v34;\n  v13 = (cocos2d::CCTexture2D *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->m_mg1BatchNode->getTexture)(a1->m_mg1BatchNode);\n  v14 = cocos2d::CCSprite::createWithTexture(v13, &stru_1009A2FC8);\n  a1->m_ground1Sprite = v14;\n  v14->m_bDontDraw = 1;\n  sub_10028CBE0(v42, 0.0, 0.0);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float *))v14->setPosition)(v14, v42);\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))a1->m_ground1Sprite->setColor)(a1->m_ground1Sprite, &v44);\n  ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *))a1->m_mg1BatchNode->addChild)(\n    a1->m_mg1BatchNode,\n    a1->m_ground1Sprite);\n  v15 = (__m128)v40;\n  v15.f32[0] = *(float *)&v40 / *(float *)&v41;\n  v40 = (int)(float)(_mm_round_ss(v15, v15, 10).f32[0] + 1.0);\n  GJMGLayer::loadGroundSprites(a1, v40, 1);\n  BYTE2(v42[0]) = v45;\n  LOWORD(v42[0]) = v44;\n  m_ground1Sprite = a1->m_ground1Sprite;\n  if ( m_ground1Sprite )\n  {\n    v17 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))m_ground1Sprite->getChildren)(m_ground1Sprite);\n    if ( (unsigned int)sub_100720070(v17) )\n    {\n      v18 = 0;\n      do\n      {\n        v19 = sub_1007200C0(v17, v18);\n        (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v19 + 944LL))(v19, v42);\n        ++v18;\n      }\n      while ( v18 < (unsigned int)sub_100720070(v17) );\n    }\n  }\n  v20 = (cocos2d::CCString *)sub_1007AB580(\"fg_%02d_2_001.png\", v33);\n  CString = cocos2d::CCString::getCString(v20);\n  v22 = cocos2d::CCSpriteBatchNode::create(CString, 0x1Du);\n  a1->m_mg2BatchNode = v22;\n  ((void (__fastcall *)(GJMGLayer *, cocos2d::CCSpriteBatchNode *, __int64))a1->addChild_0)(a1, v22, 3);\n  v23 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->m_mg1BatchNode->getTexture)(a1->m_mg1BatchNode);\n  (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v23 + 144LL))(v42, v23);\n  *(float *)&v41 = v42[1];\n  v24 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->m_mg2BatchNode->getTexture)(a1->m_mg2BatchNode);\n  (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v24 + 144LL))(v36, v24);\n  *(float *)&v41 = *(float *)&v41 - v37;\n  v25 = (cocos2d::CCTexture2D *)((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))a1->m_mg2BatchNode->getTexture)(a1->m_mg2BatchNode);\n  v26 = cocos2d::CCSprite::createWithTexture(v25, &stru_1009A2FC8);\n  a1->m_ground2Sprite = v26;\n  v26->m_bDontDraw = 1;\n  sub_10028CBE0(v42, 0.0, 0.0);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float *))v26->setPosition)(v26, v42);\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))a1->m_ground2Sprite->setColor)(a1->m_ground2Sprite, &v44);\n  ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *))a1->m_mg2BatchNode->addChild)(\n    a1->m_mg2BatchNode,\n    a1->m_ground2Sprite);\n  m_mg2BatchNode = a1->m_mg2BatchNode;\n  sub_10028CBE0(v42, 0.0, *(float *)&v41);\n  ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, float *))m_mg2BatchNode->setPosition)(m_mg2BatchNode, v42);\n  GJMGLayer::loadGroundSprites(a1, v40, 0);\n  BYTE2(v42[0]) = v45;\n  LOWORD(v42[0]) = v44;\n  m_ground2Sprite = a1->m_ground2Sprite;\n  if ( m_ground2Sprite )\n  {\n    v29 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))m_ground2Sprite->getChildren)(m_ground2Sprite);\n    if ( (unsigned int)sub_100720070(v29) )\n    {\n      v30 = 0;\n      do\n      {\n        v31 = sub_1007200C0(v29, v30);\n        (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v31 + 944LL))(v31, v42);\n        ++v30;\n      }\n      while ( v30 < (unsigned int)sub_100720070(v29) );\n    }\n  }\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  return v43;\n}", "assembly": "; \n; GJMGLayer::init from 0x1005ebd60 to 0x1005ec1be (1118 bytes)\n; \n; 1 xrefs:\n; > GJMGLayer::create @ 0x1005ebd24\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\npush    rbp                                                            ; +0x0, 0x1005ebd60\nmov     rbp, rsp                                                       ; +0x1, 0x1005ebd61\npush    r15                                                            ; +0x4, 0x1005ebd64\npush    r14                                                            ; +0x6, 0x1005ebd66\npush    r13                                                            ; +0x8, 0x1005ebd68\npush    r12                                                            ; +0xa, 0x1005ebd6a\npush    rbx                                                            ; +0xc, 0x1005ebd6c\nsub     rsp, 58h                                                       ; +0xd, 0x1005ebd6d\nmov     r15d, esi                                                      ; +0x11, 0x1005ebd71\nmov     r14, rdi                                                       ; +0x14, 0x1005ebd74\ncall    cocos2d__CCLayer__init                                         ; +0x17, 0x1005ebd77\nmov     [rbp+var_2D], al                                               ; +0x1c, 0x1005ebd7c\ntest    al, al                                                         ; +0x1f, 0x1005ebd7f\njz      loc_1005EC1A6                                                  ; +0x21, 0x1005ebd81\nmov     rax, [r14]                                                     ; +0x27, 0x1005ebd87\nlea     rsi, unk_1009A2FC0                                             ; +0x2a, 0x1005ebd8a\nmov     rdi, r14                                                       ; +0x31, 0x1005ebd91\ncall    qword ptr [rax+130h]                                           ; +0x34, 0x1005ebd94\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x3a, 0x1005ebd9a\nlea     rdi, [rbp+var_78]                                              ; +0x3f, 0x1005ebd9f\nmov     rsi, rax                                                       ; +0x43, 0x1005ebda3\ncall    cocos2d__CCDirector__getWinSize                                ; +0x46, 0x1005ebda6\nlea     eax, [r15-1]                                                   ; +0x4b, 0x1005ebdab\nxorps   xmm0, xmm0                                                     ; +0x4f, 0x1005ebdaf\ncmp     eax, 2                                                         ; +0x52, 0x1005ebdb2\nja      short loc_1005EBDC5                                            ; +0x55, 0x1005ebdb5\nmov     eax, eax                                                       ; +0x57, 0x1005ebdb7\nlea     rcx, flt_1008219FC                                             ; +0x59, 0x1005ebdb9\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x60, 0x1005ebdc0\nmovss   dword ptr [r14+1E4h], xmm0                                     ; +0x65, 0x1005ebdc5\ncall    GameManager__sharedState                                       ; +0x6e, 0x1005ebdce\nmov     rdi, rax                                                       ; +0x73, 0x1005ebdd3\nmov     esi, r15d                                                      ; +0x76, 0x1005ebdd6\ncall    GameManager__getMGTexture                                      ; +0x79, 0x1005ebdd9\nmov     r13, rax                                                       ; +0x7e, 0x1005ebdde\nmov     rdi, rax; __s                                                  ; +0x81, 0x1005ebde1\ncall    _strlen                                                        ; +0x84, 0x1005ebde4\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x89, 0x1005ebde9\njnb     loc_1005EC1B9                                                  ; +0x8d, 0x1005ebded\nmov     r12, rax                                                       ; +0x93, 0x1005ebdf3\ncmp     rax, 17h                                                       ; +0x96, 0x1005ebdf6\njnb     short loc_1005EBE0E                                            ; +0x9a, 0x1005ebdfa\nlea     eax, [r12+r12]                                                 ; +0x9c, 0x1005ebdfc\nmov     byte ptr [rbp+__dst], al                                       ; +0xa0, 0x1005ebe00\nlea     rbx, [rbp+__dst+1]                                             ; +0xa3, 0x1005ebe03\ntest    r12, r12                                                       ; +0xa7, 0x1005ebe07\njnz     short loc_1005EBE49                                            ; +0xaa, 0x1005ebe0a\njmp     short loc_1005EBE57                                            ; +0xac, 0x1005ebe0c\nmov     rax, r12                                                       ; +0xae, 0x1005ebe0e\nor      rax, 7                                                         ; +0xb1, 0x1005ebe11\nlea     rcx, [rax+1]                                                   ; +0xb5, 0x1005ebe15\ncmp     rax, 17h                                                       ; +0xb9, 0x1005ebe19\nmov     [rbp+var_40], r15                                              ; +0xbd, 0x1005ebe1d\nmov     r15d, 1Ah                                                      ; +0xc1, 0x1005ebe21\ncmovnz  r15, rcx                                                       ; +0xc7, 0x1005ebe27\nmov     rdi, r15; __sz                                                 ; +0xcb, 0x1005ebe2b\ncall    __Znwm; operator new(ulong)                                    ; +0xce, 0x1005ebe2e\nmov     rbx, rax                                                       ; +0xd3, 0x1005ebe33\nmov     [rbp+__p], rax                                                 ; +0xd6, 0x1005ebe36\ninc     r15                                                            ; +0xda, 0x1005ebe3a\nmov     [rbp+__dst], r15                                               ; +0xdd, 0x1005ebe3d\nmov     r15, [rbp+var_40]                                              ; +0xe1, 0x1005ebe41\nmov     [rbp+var_58], r12                                              ; +0xe5, 0x1005ebe45\nmov     rdi, rbx; __dst                                                ; +0xe9, 0x1005ebe49\nmov     rsi, r13; __src                                                ; +0xec, 0x1005ebe4c\nmov     rdx, r12; __len                                                ; +0xef, 0x1005ebe4f\ncall    _memmove                                                       ; +0xf2, 0x1005ebe52\nmov     byte ptr [rbx+r12], 0                                          ; +0xf7, 0x1005ebe57\nmov     byte ptr [r14+1B8h], 0                                         ; +0xfc, 0x1005ebe5c\nmov     [rbp+var_2A], 0FFh                                             ; +0x104, 0x1005ebe64\nmov     [rbp+var_2C], 6600h                                            ; +0x108, 0x1005ebe68\ntest    byte ptr [rbp+__dst], 1                                        ; +0x10e, 0x1005ebe6e\njz      short loc_1005EBE7A                                            ; +0x112, 0x1005ebe72\nmov     rdi, [rbp+__p]                                                 ; +0x114, 0x1005ebe74\njmp     short loc_1005EBE7E                                            ; +0x118, 0x1005ebe78\nlea     rdi, [rbp+__dst+1]                                             ; +0x11a, 0x1005ebe7a\nmov     esi, 1Dh                                                       ; +0x11e, 0x1005ebe7e\ncall    cocos2d__CCSpriteBatchNode__create                             ; +0x123, 0x1005ebe83\nmov     [r14+1D0h], rax                                                ; +0x128, 0x1005ebe88\nmov     rcx, [r14]                                                     ; +0x12f, 0x1005ebe8f\nmov     rdi, r14                                                       ; +0x132, 0x1005ebe92\nmov     rsi, rax                                                       ; +0x135, 0x1005ebe95\nmov     edx, 2                                                         ; +0x138, 0x1005ebe98\ncall    qword ptr [rcx+1C0h]                                           ; +0x13d, 0x1005ebe9d\nmov     rdi, [r14+1D0h]                                                ; +0x143, 0x1005ebea3\nmov     rax, [rdi]                                                     ; +0x14a, 0x1005ebeaa\ncall    qword ptr [rax+370h]                                           ; +0x14d, 0x1005ebead\nmov     rcx, [rax]                                                     ; +0x153, 0x1005ebeb3\nlea     rdi, [rbp+var_70]                                              ; +0x156, 0x1005ebeb6\nmov     rsi, rax                                                       ; +0x15a, 0x1005ebeba\ncall    qword ptr [rcx+90h]                                            ; +0x15d, 0x1005ebebd\nmovss   xmm0, [rbp+var_70]                                             ; +0x163, 0x1005ebec3\nmovss   dword ptr [rbp+var_40], xmm0                                   ; +0x168, 0x1005ebec8\nmovss   dword ptr [r14+1A8h], xmm0                                     ; +0x16d, 0x1005ebecd\nmovss   xmm0, [rbp+var_78]                                             ; +0x176, 0x1005ebed6\nmovss   [rbp+var_44], xmm0                                             ; +0x17b, 0x1005ebedb\nmov     rdi, [r14+1D0h]                                                ; +0x180, 0x1005ebee0\nmov     rax, [rdi]                                                     ; +0x187, 0x1005ebee7\ncall    qword ptr [rax+370h]                                           ; +0x18a, 0x1005ebeea\nlea     rsi, stru_1009A2FC8                                            ; +0x190, 0x1005ebef0\nmov     rdi, rax                                                       ; +0x197, 0x1005ebef7\ncall    cocos2d__CCSprite__createWithTexture                           ; +0x19a, 0x1005ebefa\nmov     rbx, rax                                                       ; +0x19f, 0x1005ebeff\nmov     [r14+198h], rax                                                ; +0x1a2, 0x1005ebf02\nmov     byte ptr [rax+22Fh], 1                                         ; +0x1a9, 0x1005ebf09\nlea     rdi, [rbp+var_38]                                              ; +0x1b0, 0x1005ebf10\nxorps   xmm0, xmm0                                                     ; +0x1b4, 0x1005ebf14\nxorps   xmm1, xmm1                                                     ; +0x1b7, 0x1005ebf17\ncall    sub_10028CBE0                                                  ; +0x1ba, 0x1005ebf1a\nmov     rax, [rbx]                                                     ; +0x1bf, 0x1005ebf1f\nlea     rsi, [rbp+var_38]                                              ; +0x1c2, 0x1005ebf22\nmov     rdi, rbx                                                       ; +0x1c6, 0x1005ebf26\ncall    qword ptr [rax+0B8h]                                           ; +0x1c9, 0x1005ebf29\nmov     rdi, [r14+198h]                                                ; +0x1cf, 0x1005ebf2f\nmov     rax, [rdi]                                                     ; +0x1d6, 0x1005ebf36\nlea     rsi, [rbp+var_2C]                                              ; +0x1d9, 0x1005ebf39\ncall    qword ptr [rax+3B0h]                                           ; +0x1dd, 0x1005ebf3d\nmov     rsi, [r14+198h]                                                ; +0x1e3, 0x1005ebf43\nmov     rdi, [r14+1D0h]                                                ; +0x1ea, 0x1005ebf4a\nmov     rax, [rdi]                                                     ; +0x1f1, 0x1005ebf51\ncall    qword ptr [rax+1B8h]                                           ; +0x1f4, 0x1005ebf54\nmovss   xmm0, [rbp+var_44]                                             ; +0x1fa, 0x1005ebf5a\ndivss   xmm0, dword ptr [rbp+var_40]                                   ; +0x1ff, 0x1005ebf5f\nroundss xmm0, xmm0, 0Ah                                                ; +0x204, 0x1005ebf64\naddss   xmm0, cs:alpha                                                 ; +0x20a, 0x1005ebf6a\ncvttss2si esi, xmm0                                                    ; +0x212, 0x1005ebf72\nmov     rdi, r14                                                       ; +0x216, 0x1005ebf76\nmov     [rbp+var_44], esi                                              ; +0x219, 0x1005ebf79\nmov     edx, 1                                                         ; +0x21c, 0x1005ebf7c\ncall    GJMGLayer__loadGroundSprites                                   ; +0x221, 0x1005ebf81\nmovzx   eax, [rbp+var_2C]                                              ; +0x226, 0x1005ebf86\nmovzx   ecx, [rbp+var_2A]                                              ; +0x22a, 0x1005ebf8a\nmov     [rbp+var_36], cl                                               ; +0x22e, 0x1005ebf8e\nmov     [rbp+var_38], ax                                               ; +0x231, 0x1005ebf91\nmov     rdi, [r14+198h]                                                ; +0x235, 0x1005ebf95\ntest    rdi, rdi                                                       ; +0x23c, 0x1005ebf9c\njz      short loc_1005EBFE7                                            ; +0x23f, 0x1005ebf9f\nmov     rax, [rdi]                                                     ; +0x241, 0x1005ebfa1\ncall    qword ptr [rax+1D8h]                                           ; +0x244, 0x1005ebfa4\nmov     r13, rax                                                       ; +0x24a, 0x1005ebfaa\nmov     rdi, rax                                                       ; +0x24d, 0x1005ebfad\ncall    sub_100720070                                                  ; +0x250, 0x1005ebfb0\ntest    eax, eax                                                       ; +0x255, 0x1005ebfb5\njz      short loc_1005EBFE7                                            ; +0x257, 0x1005ebfb7\nxor     ebx, ebx                                                       ; +0x259, 0x1005ebfb9\nlea     r12, [rbp+var_38]                                              ; +0x25b, 0x1005ebfbb\nnop                                                                    ; +0x25f, 0x1005ebfbf\nmov     rdi, r13                                                       ; +0x260, 0x1005ebfc0\nmov     esi, ebx                                                       ; +0x263, 0x1005ebfc3\ncall    sub_1007200C0                                                  ; +0x265, 0x1005ebfc5\nmov     rcx, [rax]                                                     ; +0x26a, 0x1005ebfca\nmov     rdi, rax                                                       ; +0x26d, 0x1005ebfcd\nmov     rsi, r12                                                       ; +0x270, 0x1005ebfd0\ncall    qword ptr [rcx+3B0h]                                           ; +0x273, 0x1005ebfd3\nmov     rdi, r13                                                       ; +0x279, 0x1005ebfd9\ncall    sub_100720070                                                  ; +0x27c, 0x1005ebfdc\ninc     ebx                                                            ; +0x281, 0x1005ebfe1\ncmp     ebx, eax                                                       ; +0x283, 0x1005ebfe3\njb      short loc_1005EBFC0                                            ; +0x285, 0x1005ebfe5\nlea     rdi, aFg02d2001Png; \"fg_%02d_2_001.png\"                        ; +0x287, 0x1005ebfe7\nmov     esi, r15d                                                      ; +0x28e, 0x1005ebfee\nxor     eax, eax                                                       ; +0x291, 0x1005ebff1\ncall    sub_1007AB580                                                  ; +0x293, 0x1005ebff3\nmov     rdi, rax                                                       ; +0x298, 0x1005ebff8\ncall    cocos2d__CCString__getCString                                  ; +0x29b, 0x1005ebffb\nmov     rdi, rax                                                       ; +0x2a0, 0x1005ec000\nmov     esi, 1Dh                                                       ; +0x2a3, 0x1005ec003\ncall    cocos2d__CCSpriteBatchNode__create                             ; +0x2a8, 0x1005ec008\nmov     [r14+1D8h], rax                                                ; +0x2ad, 0x1005ec00d\nmov     rcx, [r14]                                                     ; +0x2b4, 0x1005ec014\nmov     rdi, r14                                                       ; +0x2b7, 0x1005ec017\nmov     rsi, rax                                                       ; +0x2ba, 0x1005ec01a\nmov     edx, 3                                                         ; +0x2bd, 0x1005ec01d\ncall    qword ptr [rcx+1C0h]                                           ; +0x2c2, 0x1005ec022\nmov     rdi, [r14+1D0h]                                                ; +0x2c8, 0x1005ec028\nmov     rax, [rdi]                                                     ; +0x2cf, 0x1005ec02f\ncall    qword ptr [rax+370h]                                           ; +0x2d2, 0x1005ec032\nmov     rcx, [rax]                                                     ; +0x2d8, 0x1005ec038\nlea     rdi, [rbp+var_38]                                              ; +0x2db, 0x1005ec03b\nmov     rsi, rax                                                       ; +0x2df, 0x1005ec03f\ncall    qword ptr [rcx+90h]                                            ; +0x2e2, 0x1005ec042\nmovss   xmm0, [rbp+var_34]                                             ; +0x2e8, 0x1005ec048\nmovss   dword ptr [rbp+var_40], xmm0                                   ; +0x2ed, 0x1005ec04d\nmov     rdi, [r14+1D8h]                                                ; +0x2f2, 0x1005ec052\nmov     rax, [rdi]                                                     ; +0x2f9, 0x1005ec059\ncall    qword ptr [rax+370h]                                           ; +0x2fc, 0x1005ec05c\nmov     rcx, [rax]                                                     ; +0x302, 0x1005ec062\nlea     rdi, [rbp+var_68]                                              ; +0x305, 0x1005ec065\nmov     rsi, rax                                                       ; +0x309, 0x1005ec069\ncall    qword ptr [rcx+90h]                                            ; +0x30c, 0x1005ec06c\nmovss   xmm0, dword ptr [rbp+var_40]                                   ; +0x312, 0x1005ec072\nsubss   xmm0, [rbp+var_64]                                             ; +0x317, 0x1005ec077\nmovss   dword ptr [rbp+var_40], xmm0                                   ; +0x31c, 0x1005ec07c\nmov     rdi, [r14+1D8h]                                                ; +0x321, 0x1005ec081\nmov     rax, [rdi]                                                     ; +0x328, 0x1005ec088\ncall    qword ptr [rax+370h]                                           ; +0x32b, 0x1005ec08b\nlea     rsi, stru_1009A2FC8                                            ; +0x331, 0x1005ec091\nmov     rdi, rax                                                       ; +0x338, 0x1005ec098\ncall    cocos2d__CCSprite__createWithTexture                           ; +0x33b, 0x1005ec09b\nmov     rbx, rax                                                       ; +0x340, 0x1005ec0a0\nmov     [r14+1A0h], rax                                                ; +0x343, 0x1005ec0a3\nmov     byte ptr [rax+22Fh], 1                                         ; +0x34a, 0x1005ec0aa\nlea     rdi, [rbp+var_38]                                              ; +0x351, 0x1005ec0b1\nxorps   xmm0, xmm0                                                     ; +0x355, 0x1005ec0b5\nxorps   xmm1, xmm1                                                     ; +0x358, 0x1005ec0b8\ncall    sub_10028CBE0                                                  ; +0x35b, 0x1005ec0bb\nmov     rax, [rbx]                                                     ; +0x360, 0x1005ec0c0\nlea     rsi, [rbp+var_38]                                              ; +0x363, 0x1005ec0c3\nmov     rdi, rbx                                                       ; +0x367, 0x1005ec0c7\ncall    qword ptr [rax+0B8h]                                           ; +0x36a, 0x1005ec0ca\nmov     rdi, [r14+1A0h]                                                ; +0x370, 0x1005ec0d0\nmov     rax, [rdi]                                                     ; +0x377, 0x1005ec0d7\nlea     rsi, [rbp+var_2C]                                              ; +0x37a, 0x1005ec0da\ncall    qword ptr [rax+3B0h]                                           ; +0x37e, 0x1005ec0de\nmov     rsi, [r14+1A0h]                                                ; +0x384, 0x1005ec0e4\nmov     rdi, [r14+1D8h]                                                ; +0x38b, 0x1005ec0eb\nmov     rax, [rdi]                                                     ; +0x392, 0x1005ec0f2\ncall    qword ptr [rax+1B8h]                                           ; +0x395, 0x1005ec0f5\nmov     rbx, [r14+1D8h]                                                ; +0x39b, 0x1005ec0fb\nlea     rdi, [rbp+var_38]                                              ; +0x3a2, 0x1005ec102\nxorps   xmm0, xmm0                                                     ; +0x3a6, 0x1005ec106\nmovss   xmm1, dword ptr [rbp+var_40]                                   ; +0x3a9, 0x1005ec109\ncall    sub_10028CBE0                                                  ; +0x3ae, 0x1005ec10e\nmov     rax, [rbx]                                                     ; +0x3b3, 0x1005ec113\nlea     rsi, [rbp+var_38]                                              ; +0x3b6, 0x1005ec116\nmov     rdi, rbx                                                       ; +0x3ba, 0x1005ec11a\ncall    qword ptr [rax+0B8h]                                           ; +0x3bd, 0x1005ec11d\nmov     rdi, r14                                                       ; +0x3c3, 0x1005ec123\nmov     esi, [rbp+var_44]                                              ; +0x3c6, 0x1005ec126\nxor     edx, edx                                                       ; +0x3c9, 0x1005ec129\ncall    GJMGLayer__loadGroundSprites                                   ; +0x3cb, 0x1005ec12b\nmovzx   eax, [rbp+var_2C]                                              ; +0x3d0, 0x1005ec130\nmovzx   ecx, [rbp+var_2A]                                              ; +0x3d4, 0x1005ec134\nmov     [rbp+var_36], cl                                               ; +0x3d8, 0x1005ec138\nmov     [rbp+var_38], ax                                               ; +0x3db, 0x1005ec13b\nmov     rdi, [r14+1A0h]                                                ; +0x3df, 0x1005ec13f\ntest    rdi, rdi                                                       ; +0x3e6, 0x1005ec146\njz      short loc_1005EC197                                            ; +0x3e9, 0x1005ec149\nmov     rax, [rdi]                                                     ; +0x3eb, 0x1005ec14b\ncall    qword ptr [rax+1D8h]                                           ; +0x3ee, 0x1005ec14e\nmov     r14, rax                                                       ; +0x3f4, 0x1005ec154\nmov     rdi, rax                                                       ; +0x3f7, 0x1005ec157\ncall    sub_100720070                                                  ; +0x3fa, 0x1005ec15a\ntest    eax, eax                                                       ; +0x3ff, 0x1005ec15f\njz      short loc_1005EC197                                            ; +0x401, 0x1005ec161\nxor     ebx, ebx                                                       ; +0x403, 0x1005ec163\nlea     r15, [rbp+var_38]                                              ; +0x405, 0x1005ec165\nnop     dword ptr [rax+00000000h]                                      ; +0x409, 0x1005ec169\nmov     rdi, r14                                                       ; +0x410, 0x1005ec170\nmov     esi, ebx                                                       ; +0x413, 0x1005ec173\ncall    sub_1007200C0                                                  ; +0x415, 0x1005ec175\nmov     rcx, [rax]                                                     ; +0x41a, 0x1005ec17a\nmov     rdi, rax                                                       ; +0x41d, 0x1005ec17d\nmov     rsi, r15                                                       ; +0x420, 0x1005ec180\ncall    qword ptr [rcx+3B0h]                                           ; +0x423, 0x1005ec183\nmov     rdi, r14                                                       ; +0x429, 0x1005ec189\ncall    sub_100720070                                                  ; +0x42c, 0x1005ec18c\ninc     ebx                                                            ; +0x431, 0x1005ec191\ncmp     ebx, eax                                                       ; +0x433, 0x1005ec193\njb      short loc_1005EC170                                            ; +0x435, 0x1005ec195\ntest    byte ptr [rbp+__dst], 1                                        ; +0x437, 0x1005ec197\njz      short loc_1005EC1A6                                            ; +0x43b, 0x1005ec19b\nmov     rdi, [rbp+__p]; __p                                            ; +0x43d, 0x1005ec19d\ncall    __ZdlPv; operator delete(void *)                               ; +0x441, 0x1005ec1a1\nmovzx   eax, [rbp+var_2D]                                              ; +0x446, 0x1005ec1a6\nadd     rsp, 58h                                                       ; +0x44a, 0x1005ec1aa\npop     rbx                                                            ; +0x44e, 0x1005ec1ae\npop     r12                                                            ; +0x44f, 0x1005ec1af\npop     r13                                                            ; +0x451, 0x1005ec1b1\npop     r14                                                            ; +0x453, 0x1005ec1b3\npop     r15                                                            ; +0x455, 0x1005ec1b5\npop     rbp                                                            ; +0x457, 0x1005ec1b7\nretn                                                                   ; +0x458, 0x1005ec1b8\ncall    sub_100006BF0                                                  ; +0x459, 0x1005ec1b9", "xrefs": ["GJMGLayer::create @ 0x1005ebd24"], "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"}