{"type": "func", "start": 5373752816, "end": 5373753509, "name": "GJUINode::draw", "pseudocode": "// \n// GJUINode::draw from 0x1404cf5f0 to 0x1404cf8a5 (693 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1406228b0\n// > <???> @ 0x1406a9f88\n// > <???> @ 0x1406a9f98\n// > <???> @ 0x1406dd604\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\nvoid GJUINode::draw(GJUINode *a1)\n{\n  unsigned __int8 v2; // si\n  unsigned __int8 v3; // bp\n  unsigned __int8 v4; // r14\n  int v5; // eax\n  int v6; // eax\n  cocos2d *v7; // rax\n  struct cocos2d::CCPoint v8; // r8\n  cocos2d *v9; // rcx\n  float v10; // xmm0_4\n  double v11; // xmm0_8\n  struct cocos2d::CCPoint v12; // rax\n  struct cocos2d::CCPoint v13; // rbx\n  cocos2d *v14; // rax\n  struct cocos2d::CCPoint v15; // r8\n  float v16; // xmm0_4\n  double v17; // xmm0_8\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 m_deadzone; // xmm1_4\n  const struct cocos2d::CCPoint *v24; // rdx\n  cocos2d::CCPoint v25; // [rsp+70h] [rbp+8h] BYREF\n  char v26; // [rsp+78h] [rbp+10h] BYREF\n  cocos2d::CCPoint v27; // [rsp+80h] [rbp+18h] BYREF\n\n  if ( a1->m_drawLines )\n  {\n    glLineWidth(2.0);\n    v2 = 0;\n    v3 = -1;\n    v4 = 0;\n    v5 = ((__int64 (__fastcall *)(GJUINode *))a1->getTag)(a1) - 2;\n    if ( v5 )\n    {\n      v6 = v5 - 1;\n      if ( v6 )\n      {\n        if ( v6 == 1 )\n        {\n          v2 = -1;\n          v3 = 0;\n          v4 = -1;\n        }\n      }\n      else\n      {\n        v2 = -1;\n      }\n    }\n    else\n    {\n      v4 = -1;\n    }\n    cocos2d::ccDrawColor4B((cocos2d *)v2, v3, v4, 0xFFu);\n    cocos2d::CCPoint::CCPoint(&v25, &a1->m_rect.size);\n    cocos2d::CCPoint::operator+(&a1->m_rect, &v26);\n    cocos2d::CCPoint::CCPoint(&v27);\n    cocos2d::ccDrawRect(v7, (struct cocos2d::CCPoint)&v26, v8);\n    if ( a1->m_modeB )\n    {\n      if ( a1->m_radius > 0.0 )\n      {\n        cocos2d::ccDrawColor4B((cocos2d *)0xFF, 0x96u, 0, 0xFFu);\n        cocos2d::ccDrawCircle((cocos2d *)&stru_1406C2E00, v22, 360.0, 100);\n      }\n      m_deadzone = a1->m_deadzone;\n      if ( m_deadzone > 0.0 && a1->m_radius > m_deadzone )\n      {\n        LOBYTE(v9) = -56;\n        cocos2d::ccDrawColor4B(v9, 0, 0, 0xFFu);\n        cocos2d::ccDrawCircle((cocos2d *)&stru_1406C2E00, v24, 360.0, 100);\n      }\n    }\n    else if ( a1->m_secondSprite )\n    {\n      v10 = a1->m_deadzone;\n      if ( v10 <= 0.0 )\n      {\n        v16 = (float)v3 * 0.30000001;\n        cocos2d::ccDrawColor4B(\n          (cocos2d *)(unsigned int)(int)(float)((float)v2 * 0.30000001),\n          (int)v16,\n          (int)(float)((float)v4 * 0.30000001),\n          0xFFu);\n        v17 = cocos2d::CCPoint::CCPoint(v16, 0.0);\n        v19 = v18;\n        cocos2d::CCPoint::CCPoint(*(float *)&v17, 0.0);\n        cocos2d::ccDrawLine(v20, v19, v21);\n      }\n      else\n      {\n        LOBYTE(v9) = -56;\n        cocos2d::ccDrawColor4B(v9, 0, 0, 0xFFu);\n        v11 = cocos2d::CCPoint::CCPoint(v10, a1->m_deadzone);\n        v13 = v12;\n        cocos2d::CCPoint::CCPoint(*(float *)&v11, -a1->m_deadzone);\n        cocos2d::ccDrawRect(v14, v13, v15);\n      }\n    }\n  }\n}", "assembly": "; \n; GJUINode::draw from 0x1404cf5f0 to 0x1404cf8a5 (693 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1406228b0\n; > <???> @ 0x1406a9f88\n; > <???> @ 0x1406a9f98\n; > <???> @ 0x1406dd604\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    rdi                                                            ; +0x0, 0x1404cf5f0\nsub     rsp, 60h                                                       ; +0x2, 0x1404cf5f2\ncmp     byte ptr [rcx+17Ch], 0                                         ; +0x6, 0x1404cf5f6\nmov     rdi, rcx                                                       ; +0xd, 0x1404cf5fd\njz      loc_1404CF89F                                                  ; +0x10, 0x1404cf600\nmovss   xmm0, cs:width; width                                          ; +0x16, 0x1404cf606\nmov     [rsp+68h+var_10], rbx                                          ; +0x1e, 0x1404cf60e\nmov     [rsp+68h+var_18], rbp                                          ; +0x23, 0x1404cf613\nmov     [rsp+68h+var_20], rsi                                          ; +0x28, 0x1404cf618\nmov     [rsp+68h+var_28], r14                                          ; +0x2d, 0x1404cf61d\ncall    cs:glLineWidth                                                 ; +0x32, 0x1404cf622\nmov     rax, [rdi]                                                     ; +0x38, 0x1404cf628\nmov     rcx, rdi                                                       ; +0x3b, 0x1404cf62b\nxor     sil, sil                                                       ; +0x3e, 0x1404cf62e\nmov     bpl, 0FFh                                                      ; +0x41, 0x1404cf631\nxor     r14b, r14b                                                     ; +0x44, 0x1404cf634\ncall    qword ptr [rax+38h]                                            ; +0x47, 0x1404cf637\nsub     eax, 2                                                         ; +0x4a, 0x1404cf63a\njz      short loc_1404CF65C                                            ; +0x4d, 0x1404cf63d\nsub     eax, 1                                                         ; +0x4f, 0x1404cf63f\njz      short loc_1404CF656                                            ; +0x52, 0x1404cf642\ncmp     eax, 1                                                         ; +0x54, 0x1404cf644\njnz     short loc_1404CF660                                            ; +0x57, 0x1404cf647\nmovzx   esi, bpl                                                       ; +0x59, 0x1404cf649\nxor     bpl, bpl                                                       ; +0x5d, 0x1404cf64d\nmovzx   r14d, sil                                                      ; +0x60, 0x1404cf650\njmp     short loc_1404CF660                                            ; +0x64, 0x1404cf654\nmovzx   esi, bpl                                                       ; +0x66, 0x1404cf656\njmp     short loc_1404CF660                                            ; +0x6a, 0x1404cf65a\nmovzx   r14d, bpl                                                      ; +0x6c, 0x1404cf65c\nmov     r9b, 0FFh                                                      ; +0x70, 0x1404cf660\nmovaps  [rsp+68h+var_38], xmm6                                         ; +0x73, 0x1404cf663\nmovzx   r8d, r14b                                                      ; +0x78, 0x1404cf668\nmovzx   edx, bpl                                                       ; +0x7c, 0x1404cf66c\nmovzx   ecx, sil                                                       ; +0x80, 0x1404cf670\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x84, 0x1404cf674\nlea     rdx, [rdi+158h]                                                ; +0x8a, 0x1404cf67a\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x91, 0x1404cf681\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBVCCSize@1@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCSize const &) ; +0x96, 0x1404cf686\nlea     r8, [rsp+68h+arg_0]                                            ; +0x9c, 0x1404cf68c\nlea     rdx, [rsp+68h+arg_8]                                           ; +0xa1, 0x1404cf691\nlea     rcx, [rdi+150h]                                                ; +0xa6, 0x1404cf696\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xad, 0x1404cf69d\nlea     rdx, [rdi+150h]                                                ; +0xb3, 0x1404cf6a3\nlea     rcx, [rsp+68h+arg_10]                                          ; +0xba, 0x1404cf6aa\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xc2, 0x1404cf6b2\nmov     rcx, rax                                                       ; +0xc8, 0x1404cf6b8\nlea     rdx, [rsp+68h+arg_8]                                           ; +0xcb, 0x1404cf6bb\ncall    cs:?ccDrawRect@cocos2d@@YAXVCCPoint@1@0@Z; cocos2d::ccDrawRect(cocos2d::CCPoint,cocos2d::CCPoint) ; +0xd0, 0x1404cf6c0\ncmp     byte ptr [rdi+17Dh], 0                                         ; +0xd6, 0x1404cf6c6\njnz     loc_1404CF7EA                                                  ; +0xdd, 0x1404cf6cd\ncmp     qword ptr [rdi+148h], 0                                        ; +0xe3, 0x1404cf6d3\njz      loc_1404CF886                                                  ; +0xeb, 0x1404cf6db\nmovss   xmm0, dword ptr [rdi+178h]                                     ; +0xf1, 0x1404cf6e1\nxorps   xmm6, xmm6                                                     ; +0xf9, 0x1404cf6e9\ncomiss  xmm0, xmm6                                                     ; +0xfc, 0x1404cf6ec\nmov     r9b, 0FFh                                                      ; +0xff, 0x1404cf6ef\njbe     short loc_1404CF75A                                            ; +0x102, 0x1404cf6f2\nxor     r8d, r8d                                                       ; +0x104, 0x1404cf6f4\nxor     edx, edx                                                       ; +0x107, 0x1404cf6f7\nmov     cl, 0C8h                                                       ; +0x109, 0x1404cf6f9\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x10b, 0x1404cf6fb\nmovss   xmm2, dword ptr [rdi+15Ch]                                     ; +0x111, 0x1404cf701\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x119, 0x1404cf709\naddss   xmm2, dword ptr [rdi+154h]                                     ; +0x11e, 0x1404cf70e\nmovss   xmm1, dword ptr [rdi+178h]                                     ; +0x126, 0x1404cf716\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x12e, 0x1404cf71e\nmovss   xmm1, dword ptr [rdi+178h]                                     ; +0x134, 0x1404cf724\nlea     rcx, [rsp+68h+arg_8]                                           ; +0x13c, 0x1404cf72c\nxorps   xmm1, cs:xmmword_1406243F0                                     ; +0x141, 0x1404cf731\nmov     rbx, rax                                                       ; +0x148, 0x1404cf738\nmovss   xmm2, dword ptr [rdi+154h]                                     ; +0x14b, 0x1404cf73b\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x153, 0x1404cf743\nmov     rcx, rax                                                       ; +0x159, 0x1404cf749\nmov     rdx, rbx                                                       ; +0x15c, 0x1404cf74c\ncall    cs:?ccDrawRect@cocos2d@@YAXVCCPoint@1@0@Z; cocos2d::ccDrawRect(cocos2d::CCPoint,cocos2d::CCPoint) ; +0x15f, 0x1404cf74f\njmp     loc_1404CF886                                                  ; +0x165, 0x1404cf755\nmovss   xmm3, cs:dword_140622AA0                                       ; +0x16a, 0x1404cf75a\nmovzx   eax, r14b                                                      ; +0x172, 0x1404cf762\nmovd    xmm0, eax                                                      ; +0x176, 0x1404cf766\ncvtdq2ps xmm0, xmm0                                                    ; +0x17a, 0x1404cf76a\nmovzx   eax, bpl                                                       ; +0x17d, 0x1404cf76d\nmulss   xmm0, xmm3                                                     ; +0x181, 0x1404cf771\ncvttss2si r8d, xmm0                                                    ; +0x185, 0x1404cf775\nmovd    xmm0, eax                                                      ; +0x18a, 0x1404cf77a\nmovzx   eax, sil                                                       ; +0x18e, 0x1404cf77e\ncvtdq2ps xmm0, xmm0                                                    ; +0x192, 0x1404cf782\nmovd    xmm2, eax                                                      ; +0x195, 0x1404cf785\ncvtdq2ps xmm2, xmm2                                                    ; +0x199, 0x1404cf789\nmulss   xmm0, xmm3                                                     ; +0x19c, 0x1404cf78c\nmulss   xmm2, xmm3                                                     ; +0x1a0, 0x1404cf790\ncvttss2si edx, xmm0                                                    ; +0x1a4, 0x1404cf794\ncvttss2si ecx, xmm2                                                    ; +0x1a8, 0x1404cf798\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x1ac, 0x1404cf79c\nmovss   xmm2, dword ptr [rdi+15Ch]                                     ; +0x1b2, 0x1404cf7a2\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x1ba, 0x1404cf7aa\naddss   xmm2, dword ptr [rdi+154h]                                     ; +0x1bf, 0x1404cf7af\nxorps   xmm1, xmm1                                                     ; +0x1c7, 0x1404cf7b7\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1ca, 0x1404cf7ba\nmovss   xmm2, dword ptr [rdi+154h]                                     ; +0x1d0, 0x1404cf7c0\nlea     rcx, [rsp+68h+arg_8]                                           ; +0x1d8, 0x1404cf7c8\nxorps   xmm1, xmm1                                                     ; +0x1dd, 0x1404cf7cd\nmov     rbx, rax                                                       ; +0x1e0, 0x1404cf7d0\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1e3, 0x1404cf7d3\nmov     rcx, rax                                                       ; +0x1e9, 0x1404cf7d9\nmov     rdx, rbx                                                       ; +0x1ec, 0x1404cf7dc\ncall    cs:?ccDrawLine@cocos2d@@YAXAEBVCCPoint@1@0@Z; cocos2d::ccDrawLine(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x1ef, 0x1404cf7df\njmp     loc_1404CF886                                                  ; +0x1f5, 0x1404cf7e5\nmovss   xmm0, dword ptr [rdi+174h]                                     ; +0x1fa, 0x1404cf7ea\nxorps   xmm6, xmm6                                                     ; +0x202, 0x1404cf7f2\ncomiss  xmm0, xmm6                                                     ; +0x205, 0x1404cf7f5\njbe     short loc_1404CF834                                            ; +0x208, 0x1404cf7f8\nmov     r9b, 0FFh                                                      ; +0x20a, 0x1404cf7fa\nxor     r8d, r8d                                                       ; +0x20d, 0x1404cf7fd\nmovzx   ecx, r9b                                                       ; +0x210, 0x1404cf800\nmov     dl, 96h                                                        ; +0x214, 0x1404cf804\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x216, 0x1404cf806\nmovss   xmm2, cs:flt_14062346C                                         ; +0x21c, 0x1404cf80c\nlea     rcx, stru_1406C2E00                                            ; +0x224, 0x1404cf814\nmovss   xmm1, dword ptr [rdi+174h]                                     ; +0x22b, 0x1404cf81b\nmov     r9d, 64h ; 'd'                                                 ; +0x233, 0x1404cf823\nmov     [rsp+68h+var_48], 0                                            ; +0x239, 0x1404cf829\ncall    cs:?ccDrawCircle@cocos2d@@YAXAEBVCCPoint@1@MMI_N@Z; cocos2d::ccDrawCircle(cocos2d::CCPoint const &,float,float,uint,bool) ; +0x23e, 0x1404cf82e\nmovss   xmm1, dword ptr [rdi+178h]                                     ; +0x244, 0x1404cf834\ncomiss  xmm1, xmm6                                                     ; +0x24c, 0x1404cf83c\njbe     short loc_1404CF886                                            ; +0x24f, 0x1404cf83f\nmovss   xmm0, dword ptr [rdi+174h]                                     ; +0x251, 0x1404cf841\ncomiss  xmm0, xmm1                                                     ; +0x259, 0x1404cf849\njbe     short loc_1404CF886                                            ; +0x25c, 0x1404cf84c\nmov     r9b, 0FFh                                                      ; +0x25e, 0x1404cf84e\nxor     r8d, r8d                                                       ; +0x261, 0x1404cf851\nxor     edx, edx                                                       ; +0x264, 0x1404cf854\nmov     cl, 0C8h                                                       ; +0x266, 0x1404cf856\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x268, 0x1404cf858\nmovss   xmm2, cs:flt_14062346C                                         ; +0x26e, 0x1404cf85e\nlea     rcx, stru_1406C2E00                                            ; +0x276, 0x1404cf866\nmovss   xmm1, dword ptr [rdi+178h]                                     ; +0x27d, 0x1404cf86d\nmov     r9d, 64h ; 'd'                                                 ; +0x285, 0x1404cf875\nmov     [rsp+68h+var_48], 0                                            ; +0x28b, 0x1404cf87b\ncall    cs:?ccDrawCircle@cocos2d@@YAXAEBVCCPoint@1@MMI_N@Z; cocos2d::ccDrawCircle(cocos2d::CCPoint const &,float,float,uint,bool) ; +0x290, 0x1404cf880\nmovaps  xmm6, [rsp+68h+var_38]                                         ; +0x296, 0x1404cf886\nmov     rsi, [rsp+68h+var_20]                                          ; +0x29b, 0x1404cf88b\nmov     rbp, [rsp+68h+var_18]                                          ; +0x2a0, 0x1404cf890\nmov     rbx, [rsp+68h+var_10]                                          ; +0x2a5, 0x1404cf895\nmov     r14, [rsp+68h+var_28]                                          ; +0x2aa, 0x1404cf89a\nadd     rsp, 60h                                                       ; +0x2af, 0x1404cf89f\npop     rdi                                                            ; +0x2b3, 0x1404cf8a3\nretn                                                                   ; +0x2b4, 0x1404cf8a4", "xrefs": ["<???> @ 0x1406228b0", "<???> @ 0x1406a9f88", "<???> @ 0x1406a9f98", "<???> @ 0x1406dd604"], "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"}