{"type": "func", "start": 5369436768, "end": 5369436993, "name": "LevelCell::draw", "pseudocode": "// \n// LevelCell::draw from 0x1400b1a60 to 0x1400b1b41 (225 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405468b8\n// > <???> @ 0x14066b22c\n// > <???> @ 0x14066b23c\n// > <???> @ 0x1406c7a28\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 LevelCell::draw(LevelCell *a1)\n{\n  const struct cocos2d::CCPoint *v1; // rax\n  const struct cocos2d::CCPoint *v2; // rbx\n  cocos2d *v3; // rax\n  const struct cocos2d::CCPoint *v4; // r8\n  const struct cocos2d::CCPoint *v5; // rax\n  const struct cocos2d::CCPoint *v6; // rbx\n  cocos2d *v7; // rax\n  const struct cocos2d::CCPoint *v8; // r8\n  cocos2d::CCSize v9; // [rsp+40h] [rbp+8h] BYREF\n  cocos2d::CCPoint v10; // [rsp+48h] [rbp+10h] BYREF\n  cocos2d::CCPoint v11; // [rsp+50h] [rbp+18h] BYREF\n\n  if ( !a1->m_cellDrawn )\n  {\n    cocos2d::CCSize::CCSize(&v9, a1->m_width, a1->m_height);\n    cocos2d::ccDrawColor4B(nullptr, 0, 0, 0x4Bu);\n    glLineWidth(2.0);\n    cocos2d::CCPoint::CCPoint(&v10, v9.width - 1.0, v9.height);\n    v2 = v1;\n    cocos2d::CCPoint::CCPoint(&v11, 1.0, v9.height);\n    cocos2d::ccDrawLine(v3, v2, v4);\n    cocos2d::CCPoint::CCPoint(&v10, v9.width - 1.0, 0.0);\n    v6 = v5;\n    cocos2d::CCPoint::CCPoint(&v11, 1.0, 0.0);\n    cocos2d::ccDrawLine(v7, v6, v8);\n  }\n}", "assembly": "; \n; LevelCell::draw from 0x1400b1a60 to 0x1400b1b41 (225 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405468b8\n; > <???> @ 0x14066b22c\n; > <???> @ 0x14066b23c\n; > <???> @ 0x1406c7a28\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\nsub     rsp, 38h                                                       ; +0x0, 0x1400b1a60\ncmp     byte ptr [rcx+240h], 0                                         ; +0x4, 0x1400b1a64\njnz     loc_1400B1B3C                                                  ; +0xb, 0x1400b1a6b\nmovss   xmm2, dword ptr [rcx+214h]                                     ; +0x11, 0x1400b1a71\nmovss   xmm1, dword ptr [rcx+210h]                                     ; +0x19, 0x1400b1a79\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x21, 0x1400b1a81\nmov     [rsp+38h+var_8], rbx                                           ; +0x26, 0x1400b1a86\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x2b, 0x1400b1a8b\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x30, 0x1400b1a90\nmov     r9b, 4Bh ; 'K'                                                 ; +0x36, 0x1400b1a96\nxor     r8d, r8d                                                       ; +0x39, 0x1400b1a99\nxor     edx, edx                                                       ; +0x3c, 0x1400b1a9c\nxor     ecx, ecx                                                       ; +0x3e, 0x1400b1a9e\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x40, 0x1400b1aa0\nmovss   xmm0, cs:width; width                                          ; +0x46, 0x1400b1aa6\ncall    cs:glLineWidth                                                 ; +0x4e, 0x1400b1aae\nmovss   xmm1, [rsp+38h+arg_0]                                          ; +0x54, 0x1400b1ab4\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x5a, 0x1400b1aba\nmovss   xmm6, cs:flt_140622C24                                         ; +0x5f, 0x1400b1abf\nmovss   xmm2, [rsp+38h+arg_4]                                          ; +0x67, 0x1400b1ac7\nsubss   xmm1, xmm6                                                     ; +0x6d, 0x1400b1acd\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x71, 0x1400b1ad1\nmovss   xmm2, [rsp+38h+arg_4]                                          ; +0x77, 0x1400b1ad7\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x7d, 0x1400b1add\nmovaps  xmm1, xmm6                                                     ; +0x82, 0x1400b1ae2\nmov     rbx, rax                                                       ; +0x85, 0x1400b1ae5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x88, 0x1400b1ae8\nmov     rcx, rax                                                       ; +0x8e, 0x1400b1aee\nmov     rdx, rbx                                                       ; +0x91, 0x1400b1af1\ncall    cs:?ccDrawLine@cocos2d@@YAXAEBVCCPoint@1@0@Z; cocos2d::ccDrawLine(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0x94, 0x1400b1af4\nmovss   xmm1, [rsp+38h+arg_0]                                          ; +0x9a, 0x1400b1afa\nlea     rcx, [rsp+38h+arg_8]                                           ; +0xa0, 0x1400b1b00\nsubss   xmm1, xmm6                                                     ; +0xa5, 0x1400b1b05\nxorps   xmm2, xmm2                                                     ; +0xa9, 0x1400b1b09\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xac, 0x1400b1b0c\nxorps   xmm2, xmm2                                                     ; +0xb2, 0x1400b1b12\nlea     rcx, [rsp+38h+arg_10]                                          ; +0xb5, 0x1400b1b15\nmovaps  xmm1, xmm6                                                     ; +0xba, 0x1400b1b1a\nmov     rbx, rax                                                       ; +0xbd, 0x1400b1b1d\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xc0, 0x1400b1b20\nmov     rcx, rax                                                       ; +0xc6, 0x1400b1b26\nmov     rdx, rbx                                                       ; +0xc9, 0x1400b1b29\ncall    cs:?ccDrawLine@cocos2d@@YAXAEBVCCPoint@1@0@Z; cocos2d::ccDrawLine(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0xcc, 0x1400b1b2c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xd2, 0x1400b1b32\nmov     rbx, [rsp+38h+var_8]                                           ; +0xd7, 0x1400b1b37\nadd     rsp, 38h                                                       ; +0xdc, 0x1400b1b3c\nretn                                                                   ; +0xe0, 0x1400b1b40", "xrefs": ["<???> @ 0x1405468b8", "<???> @ 0x14066b22c", "<???> @ 0x14066b23c", "<???> @ 0x1406c7a28"], "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"}