{"type": "func", "start": 4302036992, "end": 4302037425, "name": "GJGroundLayer::createLine", "pseudocode": "// \n// GJGroundLayer::createLine from 0x1006be000 to 0x1006be1b1 (433 bytes)\n// \n// 1 xrefs:\n// > GJGroundLayer::init @ 0x1006bdb92\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 12:35:30 +0000\n// \n\n__int64 __fastcall GJGroundLayer::createLine(__int64 a1, int a2)\n{\n  __int64 v3; // rdi\n  int v4; // ecx\n  int v5; // edx\n  double v6; // xmm0_8\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 CString; // rax\n  char *v10; // rax\n  __int64 v11; // r14\n  __int64 v12; // r14\n  __int64 result; // rax\n  char v14; // [rsp+0h] [rbp-30h]\n  float v15[2]; // [rsp+4h] [rbp-2Ch] BYREF\n  __int64 v16; // [rsp+Ch] [rbp-24h] BYREF\n  float v17; // [rsp+14h] [rbp-1Ch]\n\n  v3 = *(_QWORD *)(a1 + 432);\n  if ( v3 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 520LL))(v3);\n    *(_QWORD *)(a1 + 432) = 0;\n  }\n  v4 = 1;\n  if ( a2 >= 2 )\n    v4 = a2;\n  v5 = 3;\n  if ( v4 < 3 )\n    v5 = v4;\n  v17 = flt_100A108C0[a2 >= 2];\n  *(_QWORD *)&v6 = LODWORD(v17);\n  *(_DWORD *)(a1 + 448) = v5;\n  v7 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(&v16, v7);\n  v8 = sub_10088E820(\"floorLine_%02d_001.png\", v14);\n  CString = cocos2d::CCString::getCString(v8);\n  v10 = cocos2d::CCSprite::createWithSpriteFrameName(CString, v6);\n  *(_QWORD *)(a1 + 432) = v10;\n  (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v10, 5);\n  v11 = *(_QWORD *)(a1 + 432);\n  sub_100278250(v15, *(float *)&v16 * 0.5, v17);\n  (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, v15);\n  v12 = *(_QWORD *)(a1 + 432);\n  sub_100278250(v15, 0.5, 1.0);\n  (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 296LL))(v12, v15);\n  result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 432) + 72LL))(*(_QWORD *)(a1 + 432), 2);\n  if ( *(_BYTE *)(a1 + 441) == 1 )\n    result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 432) + 1080LL))(\n               *(_QWORD *)(a1 + 432),\n               0x100000302LL);\n  if ( *(int *)(a1 + 448) >= 2 )\n  {\n    result = (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 432) + 128LL))(\n               *(_QWORD *)(a1 + 432),\n               (float)(*(float *)&v16 + 10.0) / *(float *)(*(_QWORD *)(a1 + 432) + 432LL));\n    if ( *(_DWORD *)(a1 + 448) == 3 )\n      return (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 432) + 144LL))(*(_QWORD *)(a1 + 432), 2.0);\n  }\n  return result;\n}", "assembly": "; \n; GJGroundLayer::createLine from 0x1006be000 to 0x1006be1b1 (433 bytes)\n; \n; 1 xrefs:\n; > GJGroundLayer::init @ 0x1006bdb92\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 12:35:30 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006be000\nmov     rbp, rsp                                                       ; +0x1, 0x1006be001\npush    r15                                                            ; +0x4, 0x1006be004\npush    r14                                                            ; +0x6, 0x1006be006\npush    rbx                                                            ; +0x8, 0x1006be008\nsub     rsp, 18h                                                       ; +0x9, 0x1006be009\nmov     r14d, esi                                                      ; +0xd, 0x1006be00d\nmov     rbx, rdi                                                       ; +0x10, 0x1006be010\nmov     rdi, [rdi+1B0h]                                                ; +0x13, 0x1006be013\ntest    rdi, rdi                                                       ; +0x1a, 0x1006be01a\njz      short loc_1006BE033                                            ; +0x1d, 0x1006be01d\nmov     rax, [rdi]                                                     ; +0x1f, 0x1006be01f\ncall    qword ptr [rax+208h]                                           ; +0x22, 0x1006be022\nmov     qword ptr [rbx+1B0h], 0                                        ; +0x28, 0x1006be028\nxor     eax, eax                                                       ; +0x33, 0x1006be033\ncmp     r14d, 2                                                        ; +0x35, 0x1006be035\nsetnl   al                                                             ; +0x39, 0x1006be039\nmov     ecx, 1                                                         ; +0x3c, 0x1006be03c\ncmovge  ecx, r14d                                                      ; +0x41, 0x1006be041\ncmp     ecx, 3                                                         ; +0x45, 0x1006be045\nmov     edx, 3                                                         ; +0x48, 0x1006be048\ncmovl   edx, ecx                                                       ; +0x4d, 0x1006be04d\nlea     rcx, flt_100A108C0                                             ; +0x50, 0x1006be050\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x57, 0x1006be057\nmovss   [rbp+var_1C], xmm0                                             ; +0x5c, 0x1006be05c\nmov     [rbx+1C0h], edx                                                ; +0x61, 0x1006be061\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x67, 0x1006be067\nlea     rdi, [rbp+var_24]                                              ; +0x6c, 0x1006be06c\nmov     rsi, rax                                                       ; +0x70, 0x1006be070\ncall    cocos2d__CCDirector__getWinSize                                ; +0x73, 0x1006be073\nxor     esi, esi                                                       ; +0x78, 0x1006be078\ncmp     dword ptr [rbx+1C0h], 1                                        ; +0x7a, 0x1006be07a\nsetnz   sil                                                            ; +0x81, 0x1006be081\ninc     esi                                                            ; +0x85, 0x1006be085\nlea     rdi, aFloorline02d00; \"floorLine_%02d_001.png\"                 ; +0x87, 0x1006be087\nxor     eax, eax                                                       ; +0x8e, 0x1006be08e\ncall    sub_10088E820                                                  ; +0x90, 0x1006be090\nmov     rdi, rax                                                       ; +0x95, 0x1006be095\ncall    cocos2d__CCString__getCString                                  ; +0x98, 0x1006be098\nmov     rdi, rax                                                       ; +0x9d, 0x1006be09d\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0xa0, 0x1006be0a0\nmov     [rbx+1B0h], rax                                                ; +0xa5, 0x1006be0a5\nmov     rcx, [rbx]                                                     ; +0xac, 0x1006be0ac\nmov     rdi, rbx                                                       ; +0xaf, 0x1006be0af\nmov     rsi, rax                                                       ; +0xb2, 0x1006be0b2\nmov     edx, 5                                                         ; +0xb5, 0x1006be0b5\ncall    qword ptr [rcx+1D0h]                                           ; +0xba, 0x1006be0ba\nmov     r14, [rbx+1B0h]                                                ; +0xc0, 0x1006be0c0\nmovss   xmm0, dword ptr [rbp+var_24]                                   ; +0xc7, 0x1006be0c7\nmulss   xmm0, cs:dword_100A03578                                       ; +0xcc, 0x1006be0cc\nlea     r15, [rbp+var_2C]                                              ; +0xd4, 0x1006be0d4\nmov     rdi, r15                                                       ; +0xd8, 0x1006be0d8\nmovss   xmm1, [rbp+var_1C]                                             ; +0xdb, 0x1006be0db\ncall    sub_100278250                                                  ; +0xe0, 0x1006be0e0\nmov     rax, [r14]                                                     ; +0xe5, 0x1006be0e5\nmov     rdi, r14                                                       ; +0xe8, 0x1006be0e8\nmov     rsi, r15                                                       ; +0xeb, 0x1006be0eb\ncall    qword ptr [rax+0B8h]                                           ; +0xee, 0x1006be0ee\nmov     r14, [rbx+1B0h]                                                ; +0xf4, 0x1006be0f4\nmovss   xmm1, cs:alpha                                                 ; +0xfb, 0x1006be0fb\nmov     rdi, r15                                                       ; +0x103, 0x1006be103\nmovss   xmm0, cs:dword_100A03578                                       ; +0x106, 0x1006be106\ncall    sub_100278250                                                  ; +0x10e, 0x1006be10e\nmov     rax, [r14]                                                     ; +0x113, 0x1006be113\nmov     rdi, r14                                                       ; +0x116, 0x1006be116\nmov     rsi, r15                                                       ; +0x119, 0x1006be119\ncall    qword ptr [rax+128h]                                           ; +0x11c, 0x1006be11c\nmov     rdi, [rbx+1B0h]                                                ; +0x122, 0x1006be122\nmov     rax, [rdi]                                                     ; +0x129, 0x1006be129\nmov     esi, 2                                                         ; +0x12c, 0x1006be12c\ncall    qword ptr [rax+48h]                                            ; +0x131, 0x1006be131\ncmp     byte ptr [rbx+1B9h], 1                                         ; +0x134, 0x1006be134\njnz     short loc_1006BE157                                            ; +0x13b, 0x1006be13b\nmov     rdi, [rbx+1B0h]                                                ; +0x13d, 0x1006be13d\nmov     rax, [rdi]                                                     ; +0x144, 0x1006be144\nmov     rsi, 100000302h                                                ; +0x147, 0x1006be147\ncall    qword ptr [rax+438h]                                           ; +0x151, 0x1006be151\ncmp     dword ptr [rbx+1C0h], 2                                        ; +0x157, 0x1006be157\njl      short loc_1006BE1A6                                            ; +0x15e, 0x1006be15e\nmovss   xmm0, dword ptr [rbp+var_24]                                   ; +0x160, 0x1006be160\naddss   xmm0, cs:dword_100A035BC                                       ; +0x165, 0x1006be165\nmov     rdi, [rbx+1B0h]                                                ; +0x16d, 0x1006be16d\ndivss   xmm0, dword ptr [rdi+1B0h]                                     ; +0x174, 0x1006be174\nmov     rax, [rdi]                                                     ; +0x17c, 0x1006be17c\ncall    qword ptr [rax+80h]                                            ; +0x17f, 0x1006be17f\ncmp     dword ptr [rbx+1C0h], 3                                        ; +0x185, 0x1006be185\njnz     short loc_1006BE1A6                                            ; +0x18c, 0x1006be18c\nmov     rdi, [rbx+1B0h]                                                ; +0x18e, 0x1006be18e\nmov     rax, [rdi]                                                     ; +0x195, 0x1006be195\nmovss   xmm0, cs:width                                                 ; +0x198, 0x1006be198\ncall    qword ptr [rax+90h]                                            ; +0x1a0, 0x1006be1a0\nadd     rsp, 18h                                                       ; +0x1a6, 0x1006be1a6\npop     rbx                                                            ; +0x1aa, 0x1006be1aa\npop     r14                                                            ; +0x1ab, 0x1006be1ab\npop     r15                                                            ; +0x1ad, 0x1006be1ad\npop     rbp                                                            ; +0x1af, 0x1006be1af\nretn                                                                   ; +0x1b0, 0x1006be1b0", "xrefs": ["GJGroundLayer::init @ 0x1006bdb92"], "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"}