{"type": "func", "start": 5375477168, "end": 5375477952, "name": "GJUINode::draw", "pseudocode": "// \n// GJUINode::draw from 0x1406745b0 to 0x1406748c0 (784 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140834c98\n// > <???> @ 0x1408eb2b4\n// > <???> @ 0x1408eb2c4\n// > <???> @ 0x140932474\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:35:55 +0000\n// \n\nvoid __fastcall GJUINode::draw(__int64 a1, __int64 a2, __int64 a3, float a4)\n{\n  unsigned __int8 v5; // si\n  unsigned __int8 v6; // bp\n  unsigned __int8 v7; // r14\n  int v8; // eax\n  int v9; // eax\n  __int64 v10; // rax\n  cocos2d *v11; // rcx\n  float v12; // xmm6_4\n  float v13; // xmm7_4\n  __int64 v14; // rax\n  __int64 v15; // rbx\n  __int64 v16; // rax\n  float v17; // xmm6_4\n  const struct cocos2d::CCPoint *v18; // rax\n  const struct cocos2d::CCPoint *v19; // rbx\n  cocos2d *v20; // rax\n  const struct cocos2d::CCPoint *v21; // r8\n  const struct cocos2d::CCPoint *v22; // rdx\n  float v23; // xmm1_4\n  const struct cocos2d::CCPoint *v24; // rdx\n  const struct cocos2d::CCPoint *v25; // rdx\n  char v26; // [rsp+80h] [rbp+8h] BYREF\n  char v27; // [rsp+88h] [rbp+10h] BYREF\n  char v28; // [rsp+90h] [rbp+18h] BYREF\n\n  if ( *(_BYTE *)(a1 + 380) )\n  {\n    glLineWidth(2.0);\n    v5 = 0;\n    v6 = -1;\n    v7 = 0;\n    v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 56LL))(a1) - 2;\n    if ( v8 )\n    {\n      v9 = v8 - 1;\n      if ( v9 )\n      {\n        if ( v9 == 1 )\n        {\n          v5 = -1;\n          v6 = 0;\n          v7 = -1;\n        }\n      }\n      else\n      {\n        v5 = -1;\n      }\n    }\n    else\n    {\n      v7 = -1;\n    }\n    cocos2d::ccDrawColor4B((cocos2d *)v5, v6, v7, 0xFFu);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, (const struct cocos2d::CCSize *)(a1 + 344));\n    cocos2d::CCPoint::operator+(a1 + 336, &v27, &v26);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, (const struct cocos2d::CCPoint *)(a1 + 336));\n    cocos2d::ccDrawRect(v10, &v27);\n    if ( *(_BYTE *)(a1 + 381) )\n    {\n      if ( *(float *)(a1 + 372) > 0.0 )\n      {\n        cocos2d::ccDrawColor4B((cocos2d *)0xFF, 0x96u, 0, 0xFFu);\n        cocos2d::ccDrawCircle((cocos2d *)&unk_14090BED8, v22, 360.0, a4, 0);\n      }\n      v23 = *(float *)(a1 + 376);\n      if ( v23 > 0.0 && *(float *)(a1 + 372) > v23 )\n      {\n        LOBYTE(v11) = -56;\n        cocos2d::ccDrawColor4B(v11, 0, 0, 0xFFu);\n        cocos2d::ccDrawCircle((cocos2d *)&unk_14090BED8, v24, 360.0, a4, 0);\n      }\n      cocos2d::ccDrawColor4B((cocos2d *)0x7F, 0x7Fu, 0x7Fu, 0x7Fu);\n      cocos2d::ccDrawFilledCircle((cocos2d *)&unk_14090BED8, v25, 0.0, a4);\n    }\n    else if ( *(_QWORD *)(a1 + 328) )\n    {\n      if ( *(float *)(a1 + 376) <= 0.0 )\n      {\n        cocos2d::ccDrawColor4B(\n          (cocos2d *)(unsigned int)(int)(float)((float)v5 * 0.30000001),\n          (int)(float)((float)v6 * 0.30000001),\n          (int)(float)((float)v7 * 0.30000001),\n          0xFFu);\n        v17 = *(float *)(a1 + 340);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 0.0, v17 + *(float *)(a1 + 348));\n        v19 = v18;\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 0.0, v17);\n        cocos2d::ccDrawLine(v20, v19, v21);\n      }\n      else\n      {\n        LOBYTE(v11) = -56;\n        cocos2d::ccDrawColor4B(v11, 0, 0, 0xFFu);\n        v12 = *(float *)(a1 + 340);\n        v13 = -*(float *)(a1 + 376);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, *(float *)(a1 + 376), v12 + *(float *)(a1 + 348));\n        v15 = v14;\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, v13, v12);\n        cocos2d::ccDrawRect(v16, v15);\n      }\n    }\n  }\n}", "assembly": "; \n; GJUINode::draw from 0x1406745b0 to 0x1406748c0 (784 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140834c98\n; > <???> @ 0x1408eb2b4\n; > <???> @ 0x1408eb2c4\n; > <???> @ 0x140932474\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:35:55 +0000\n; \npush    rdi                                                            ; +0x0, 0x1406745b0\nsub     rsp, 70h                                                       ; +0x2, 0x1406745b2\ncmp     byte ptr [rcx+17Ch], 0                                         ; +0x6, 0x1406745b6\nmov     rdi, rcx                                                       ; +0xd, 0x1406745bd\njz      loc_1406748BA                                                  ; +0x10, 0x1406745c0\nmovss   xmm0, cs:width; width                                          ; +0x16, 0x1406745c6\nmov     [rsp+78h+var_10], rbx                                          ; +0x1e, 0x1406745ce\nmov     [rsp+78h+var_18], rbp                                          ; +0x23, 0x1406745d3\nmov     [rsp+78h+var_20], rsi                                          ; +0x28, 0x1406745d8\nmov     [rsp+78h+var_28], r14                                          ; +0x2d, 0x1406745dd\ncall    cs:glLineWidth                                                 ; +0x32, 0x1406745e2\nmov     rax, [rdi]                                                     ; +0x38, 0x1406745e8\nmov     rcx, rdi                                                       ; +0x3b, 0x1406745eb\nxor     sil, sil                                                       ; +0x3e, 0x1406745ee\nmov     bpl, 0FFh                                                      ; +0x41, 0x1406745f1\nxor     r14b, r14b                                                     ; +0x44, 0x1406745f4\ncall    qword ptr [rax+38h]                                            ; +0x47, 0x1406745f7\nsub     eax, 2                                                         ; +0x4a, 0x1406745fa\njz      short loc_14067461C                                            ; +0x4d, 0x1406745fd\nsub     eax, 1                                                         ; +0x4f, 0x1406745ff\njz      short loc_140674616                                            ; +0x52, 0x140674602\ncmp     eax, 1                                                         ; +0x54, 0x140674604\njnz     short loc_140674620                                            ; +0x57, 0x140674607\nmovzx   esi, bpl                                                       ; +0x59, 0x140674609\nxor     bpl, bpl                                                       ; +0x5d, 0x14067460d\nmovzx   r14d, sil                                                      ; +0x60, 0x140674610\njmp     short loc_140674620                                            ; +0x64, 0x140674614\nmovzx   esi, bpl                                                       ; +0x66, 0x140674616\njmp     short loc_140674620                                            ; +0x6a, 0x14067461a\nmovzx   r14d, bpl                                                      ; +0x6c, 0x14067461c\nmovaps  [rsp+78h+var_38], xmm6                                         ; +0x70, 0x140674620\nmov     r9b, 0FFh                                                      ; +0x75, 0x140674625\nmovzx   r8d, r14b                                                      ; +0x78, 0x140674628\nmovaps  [rsp+78h+var_48], xmm7                                         ; +0x7c, 0x14067462c\nmovzx   edx, bpl                                                       ; +0x81, 0x140674631\nmovzx   ecx, sil                                                       ; +0x85, 0x140674635\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x89, 0x140674639\nlea     rdx, [rdi+158h]                                                ; +0x8f, 0x14067463f\nlea     rcx, [rsp+78h+arg_0]                                           ; +0x96, 0x140674646\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBVCCSize@1@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCSize const &) ; +0x9e, 0x14067464e\nlea     r8, [rsp+78h+arg_0]                                            ; +0xa4, 0x140674654\nlea     rdx, [rsp+78h+arg_8]                                           ; +0xac, 0x14067465c\nlea     rcx, [rdi+150h]                                                ; +0xb4, 0x140674664\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xbb, 0x14067466b\nlea     rdx, [rdi+150h]                                                ; +0xc1, 0x140674671\nlea     rcx, [rsp+78h+arg_10]                                          ; +0xc8, 0x140674678\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xd0, 0x140674680\nmov     rcx, rax                                                       ; +0xd6, 0x140674686\nlea     rdx, [rsp+78h+arg_8]                                           ; +0xd9, 0x140674689\ncall    cs:?ccDrawRect@cocos2d@@YAXVCCPoint@1@0@Z; cocos2d::ccDrawRect(cocos2d::CCPoint,cocos2d::CCPoint) ; +0xe1, 0x140674691\ncmp     byte ptr [rdi+17Dh], 0                                         ; +0xe7, 0x140674697\njnz     loc_1406747D0                                                  ; +0xee, 0x14067469e\ncmp     qword ptr [rdi+148h], 0                                        ; +0xf4, 0x1406746a4\njz      loc_14067489C                                                  ; +0xfc, 0x1406746ac\nmovss   xmm0, dword ptr [rdi+178h]                                     ; +0x102, 0x1406746b2\nxorps   xmm7, xmm7                                                     ; +0x10a, 0x1406746ba\ncomiss  xmm0, xmm7                                                     ; +0x10d, 0x1406746bd\nmov     r9b, 0FFh                                                      ; +0x110, 0x1406746c0\njbe     short loc_140674737                                            ; +0x113, 0x1406746c3\nxor     r8d, r8d                                                       ; +0x115, 0x1406746c5\nxor     edx, edx                                                       ; +0x118, 0x1406746c8\nmov     cl, 0C8h                                                       ; +0x11a, 0x1406746ca\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x11c, 0x1406746cc\nmovss   xmm2, dword ptr [rdi+154h]                                     ; +0x122, 0x1406746d2\nlea     rcx, [rsp+78h+arg_0]                                           ; +0x12a, 0x1406746da\nmovss   xmm7, dword ptr [rdi+178h]                                     ; +0x132, 0x1406746e2\naddss   xmm2, dword ptr [rdi+15Ch]                                     ; +0x13a, 0x1406746ea\nmovss   xmm1, dword ptr [rdi+178h]                                     ; +0x142, 0x1406746f2\nmovss   xmm6, dword ptr [rdi+154h]                                     ; +0x14a, 0x1406746fa\nxorps   xmm7, cs:xmmword_140836CC0                                     ; +0x152, 0x140674702\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x159, 0x140674709\nmovaps  xmm2, xmm6                                                     ; +0x15f, 0x14067470f\nlea     rcx, [rsp+78h+arg_8]                                           ; +0x162, 0x140674712\nmovaps  xmm1, xmm7                                                     ; +0x16a, 0x14067471a\nmov     rbx, rax                                                       ; +0x16d, 0x14067471d\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x170, 0x140674720\nmov     rcx, rax                                                       ; +0x176, 0x140674726\nmov     rdx, rbx                                                       ; +0x179, 0x140674729\ncall    cs:?ccDrawRect@cocos2d@@YAXVCCPoint@1@0@Z; cocos2d::ccDrawRect(cocos2d::CCPoint,cocos2d::CCPoint) ; +0x17c, 0x14067472c\njmp     loc_14067489C                                                  ; +0x182, 0x140674732\nmovss   xmm2, cs:dword_140834EA0                                       ; +0x187, 0x140674737\nmovzx   eax, r14b                                                      ; +0x18f, 0x14067473f\nmovd    xmm0, eax                                                      ; +0x193, 0x140674743\ncvtdq2ps xmm0, xmm0                                                    ; +0x197, 0x140674747\nmovzx   eax, bpl                                                       ; +0x19a, 0x14067474a\nmulss   xmm0, xmm2                                                     ; +0x19e, 0x14067474e\ncvttss2si r8d, xmm0                                                    ; +0x1a2, 0x140674752\nmovd    xmm0, eax                                                      ; +0x1a7, 0x140674757\nmovzx   eax, sil                                                       ; +0x1ab, 0x14067475b\ncvtdq2ps xmm0, xmm0                                                    ; +0x1af, 0x14067475f\nmovd    xmm1, eax                                                      ; +0x1b2, 0x140674762\ncvtdq2ps xmm1, xmm1                                                    ; +0x1b6, 0x140674766\nmulss   xmm0, xmm2                                                     ; +0x1b9, 0x140674769\nmulss   xmm1, xmm2                                                     ; +0x1bd, 0x14067476d\ncvttss2si edx, xmm0                                                    ; +0x1c1, 0x140674771\ncvttss2si ecx, xmm1                                                    ; +0x1c5, 0x140674775\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x1c9, 0x140674779\nmovss   xmm2, dword ptr [rdi+154h]                                     ; +0x1cf, 0x14067477f\nlea     rcx, [rsp+78h+arg_0]                                           ; +0x1d7, 0x140674787\naddss   xmm2, dword ptr [rdi+15Ch]                                     ; +0x1df, 0x14067478f\nmovss   xmm6, dword ptr [rdi+154h]                                     ; +0x1e7, 0x140674797\nxorps   xmm1, xmm1                                                     ; +0x1ef, 0x14067479f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1f2, 0x1406747a2\nmovaps  xmm2, xmm6                                                     ; +0x1f8, 0x1406747a8\nlea     rcx, [rsp+78h+arg_8]                                           ; +0x1fb, 0x1406747ab\nxorps   xmm1, xmm1                                                     ; +0x203, 0x1406747b3\nmov     rbx, rax                                                       ; +0x206, 0x1406747b6\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x209, 0x1406747b9\nmov     rcx, rax                                                       ; +0x20f, 0x1406747bf\nmov     rdx, rbx                                                       ; +0x212, 0x1406747c2\ncall    cs:?ccDrawLine@cocos2d@@YAXAEBVCCPoint@1@0@Z; cocos2d::ccDrawLine(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x215, 0x1406747c5\njmp     loc_14067489C                                                  ; +0x21b, 0x1406747cb\nmovss   xmm0, dword ptr [rdi+174h]                                     ; +0x220, 0x1406747d0\nxorps   xmm6, xmm6                                                     ; +0x228, 0x1406747d8\ncomiss  xmm0, xmm6                                                     ; +0x22b, 0x1406747db\nmovss   xmm7, cs:Y                                                     ; +0x22e, 0x1406747de\njbe     short loc_14067481D                                            ; +0x236, 0x1406747e6\nmov     r9b, 0FFh                                                      ; +0x238, 0x1406747e8\nxor     r8d, r8d                                                       ; +0x23b, 0x1406747eb\nmovzx   ecx, r9b                                                       ; +0x23e, 0x1406747ee\nmov     dl, 96h                                                        ; +0x242, 0x1406747f2\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x244, 0x1406747f4\nmovss   xmm1, dword ptr [rdi+174h]                                     ; +0x24a, 0x1406747fa\nlea     rcx, unk_14090BED8                                             ; +0x252, 0x140674802\nmov     r9d, 64h ; 'd'                                                 ; +0x259, 0x140674809\nmov     [rsp+78h+var_58], 0                                            ; +0x25f, 0x14067480f\nmovaps  xmm2, xmm7                                                     ; +0x264, 0x140674814\ncall    cs:?ccDrawCircle@cocos2d@@YAXAEBVCCPoint@1@MMI_N@Z; cocos2d::ccDrawCircle(cocos2d::CCPoint const &,float,float,uint,bool) ; +0x267, 0x140674817\nmovss   xmm1, dword ptr [rdi+178h]                                     ; +0x26d, 0x14067481d\ncomiss  xmm1, xmm6                                                     ; +0x275, 0x140674825\njbe     short loc_14067486A                                            ; +0x278, 0x140674828\nmovss   xmm0, dword ptr [rdi+174h]                                     ; +0x27a, 0x14067482a\ncomiss  xmm0, xmm1                                                     ; +0x282, 0x140674832\njbe     short loc_14067486A                                            ; +0x285, 0x140674835\nmov     r9b, 0FFh                                                      ; +0x287, 0x140674837\nxor     r8d, r8d                                                       ; +0x28a, 0x14067483a\nxor     edx, edx                                                       ; +0x28d, 0x14067483d\nmov     cl, 0C8h                                                       ; +0x28f, 0x14067483f\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x291, 0x140674841\nmovss   xmm1, dword ptr [rdi+178h]                                     ; +0x297, 0x140674847\nlea     rcx, unk_14090BED8                                             ; +0x29f, 0x14067484f\nmov     r9d, 64h ; 'd'                                                 ; +0x2a6, 0x140674856\nmov     [rsp+78h+var_58], 0                                            ; +0x2ac, 0x14067485c\nmovaps  xmm2, xmm7                                                     ; +0x2b1, 0x140674861\ncall    cs:?ccDrawCircle@cocos2d@@YAXAEBVCCPoint@1@MMI_N@Z; cocos2d::ccDrawCircle(cocos2d::CCPoint const &,float,float,uint,bool) ; +0x2b4, 0x140674864\nmov     r9b, 7Fh                                                       ; +0x2ba, 0x14067486a\nmovzx   edx, r9b                                                       ; +0x2bd, 0x14067486d\nmovzx   r8d, r9b                                                       ; +0x2c1, 0x140674871\nmovzx   ecx, dl                                                        ; +0x2c5, 0x140674875\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x2c8, 0x140674878\nmovss   xmm1, cs:width                                                 ; +0x2ce, 0x14067487e\nlea     rcx, unk_14090BED8                                             ; +0x2d6, 0x140674886\nmov     r9d, 14h                                                       ; +0x2dd, 0x14067488d\nxorps   xmm2, xmm2                                                     ; +0x2e3, 0x140674893\ncall    cs:?ccDrawFilledCircle@cocos2d@@YAXAEBVCCPoint@1@MMI@Z; cocos2d::ccDrawFilledCircle(cocos2d::CCPoint const &,float,float,uint) ; +0x2e6, 0x140674896\nmovaps  xmm6, [rsp+78h+var_38]                                         ; +0x2ec, 0x14067489c\nmovaps  xmm7, [rsp+78h+var_48]                                         ; +0x2f1, 0x1406748a1\nmov     rsi, [rsp+78h+var_20]                                          ; +0x2f6, 0x1406748a6\nmov     rbp, [rsp+78h+var_18]                                          ; +0x2fb, 0x1406748ab\nmov     rbx, [rsp+78h+var_10]                                          ; +0x300, 0x1406748b0\nmov     r14, [rsp+78h+var_28]                                          ; +0x305, 0x1406748b5\nadd     rsp, 70h                                                       ; +0x30a, 0x1406748ba\npop     rdi                                                            ; +0x30e, 0x1406748be\nretn                                                                   ; +0x30f, 0x1406748bf", "xrefs": ["<???> @ 0x140834c98", "<???> @ 0x1408eb2b4", "<???> @ 0x1408eb2c4", "<???> @ 0x140932474"], "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"}