{"type": "func", "start": 5371983264, "end": 5371983528, "name": "GJBaseGameLayer::playerTouchedRing", "pseudocode": "// \n// GJBaseGameLayer::playerTouchedRing from 0x14031f5a0 to 0x14031f6a8 (264 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cdcc\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cddc\n// > <???> @ 0x14091ed34\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:30:22 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::playerTouchedRing(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 result; // rax\n  _BYTE v7[24]; // [rsp+20h] [rbp-18h] BYREF\n  int v8; // [rsp+40h] [rbp+8h] BYREF\n\n  if ( !*(_BYTE *)(a3 + 760) )\n  {\n    v8 = *(_DWORD *)(a3 + 924);\n    *(_QWORD *)(*(_QWORD *)sub_140358760(a1 + 1352, v7, &v8) + 24LL) = a3;\n    GJBaseGameLayer::gameEventTriggered(a1, 7, 0, 0);\n  }\n  if ( !cocos2d::CCArray::containsObject(*(cocos2d::CCArray **)(a2 + 2624), (struct cocos2d::CCObject *)a3) )\n    cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a2 + 2624), (struct cocos2d::CCObject *)a3);\n  v8 = *(_DWORD *)(a3 + 924);\n  sub_140068190(a2 + 2632, (__int64)v7, (unsigned __int8 *)&v8);\n  result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a3 + 1672LL))(a3, *(unsigned int *)(a1 + 992));\n  if ( !*(_BYTE *)(a2 + 2497)\n    && !*(_BYTE *)(a2 + 2498)\n    && !*(_BYTE *)(a2 + 2500)\n    && !*(_BYTE *)(a2 + 2508)\n    && !*(_BYTE *)(a3 + 1856) )\n  {\n    return PlayerObject::ringJump(a2, a3, 0);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::playerTouchedRing from 0x14031f5a0 to 0x14031f6a8 (264 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031cdcc\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031cddc\n; > <???> @ 0x14091ed34\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:30:22 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14031f5a0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14031f5a5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14031f5aa\npush    rdi                                                            ; +0xf, 0x14031f5af\nsub     rsp, 30h                                                       ; +0x10, 0x14031f5b0\ncmp     byte ptr [r8+2F8h], 0                                          ; +0x14, 0x14031f5b4\nmov     rdi, r8                                                        ; +0x1c, 0x14031f5bc\nmov     rbx, rdx                                                       ; +0x1f, 0x14031f5bf\nmov     rbp, rcx                                                       ; +0x22, 0x14031f5c2\njnz     short loc_14031F602                                            ; +0x25, 0x14031f5c5\nmov     eax, [r8+39Ch]                                                 ; +0x27, 0x14031f5c7\nlea     rdx, [rsp+38h+var_18]                                          ; +0x2e, 0x14031f5ce\nlea     r8, [rsp+38h+arg_0]                                            ; +0x33, 0x14031f5d3\nmov     [rsp+38h+arg_0], eax                                           ; +0x38, 0x14031f5d8\nadd     rcx, 548h                                                      ; +0x3c, 0x14031f5dc\ncall    sub_140358760                                                  ; +0x43, 0x14031f5e3\nxor     r9d, r9d                                                       ; +0x48, 0x14031f5e8\nmov     edx, 7                                                         ; +0x4b, 0x14031f5eb\nmov     rcx, rbp                                                       ; +0x50, 0x14031f5f0\nmov     r8, [rax]                                                      ; +0x53, 0x14031f5f3\nmov     [r8+18h], rdi                                                  ; +0x56, 0x14031f5f6\nxor     r8d, r8d                                                       ; +0x5a, 0x14031f5fa\ncall    GJBaseGameLayer__gameEventTriggered                            ; +0x5d, 0x14031f5fd\nmov     rcx, [rbx+0A40h]                                               ; +0x62, 0x14031f602\nmov     rdx, rdi                                                       ; +0x69, 0x14031f609\ncall    cs:?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x6c, 0x14031f60c\ntest    al, al                                                         ; +0x72, 0x14031f612\njnz     short loc_14031F626                                            ; +0x74, 0x14031f614\nmov     rcx, [rbx+0A40h]                                               ; +0x76, 0x14031f616\nmov     rdx, rdi                                                       ; +0x7d, 0x14031f61d\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x80, 0x14031f620\nmov     eax, [rdi+39Ch]                                                ; +0x86, 0x14031f626\nlea     rcx, [rbx+0A48h]                                               ; +0x8c, 0x14031f62c\nlea     r8, [rsp+38h+arg_0]                                            ; +0x93, 0x14031f633\nmov     [rsp+38h+arg_0], eax                                           ; +0x98, 0x14031f638\nlea     rdx, [rsp+38h+var_18]                                          ; +0x9c, 0x14031f63c\ncall    sub_140068190                                                  ; +0xa1, 0x14031f641\nmov     rax, [rdi]                                                     ; +0xa6, 0x14031f646\nmov     rcx, rdi                                                       ; +0xa9, 0x14031f649\nmov     edx, [rbp+3E0h]                                                ; +0xac, 0x14031f64c\ncall    qword ptr [rax+688h]                                           ; +0xb2, 0x14031f652\ncmp     byte ptr [rbx+9C1h], 0                                         ; +0xb8, 0x14031f658\njnz     short loc_14031F693                                            ; +0xbf, 0x14031f65f\ncmp     byte ptr [rbx+9C2h], 0                                         ; +0xc1, 0x14031f661\njnz     short loc_14031F693                                            ; +0xc8, 0x14031f668\ncmp     byte ptr [rbx+9C4h], 0                                         ; +0xca, 0x14031f66a\njnz     short loc_14031F693                                            ; +0xd1, 0x14031f671\ncmp     byte ptr [rbx+9CCh], 0                                         ; +0xd3, 0x14031f673\njnz     short loc_14031F693                                            ; +0xda, 0x14031f67a\ncmp     byte ptr [rdi+740h], 0                                         ; +0xdc, 0x14031f67c\njnz     short loc_14031F693                                            ; +0xe3, 0x14031f683\nxor     r8d, r8d                                                       ; +0xe5, 0x14031f685\nmov     rdx, rdi                                                       ; +0xe8, 0x14031f688\nmov     rcx, rbx                                                       ; +0xeb, 0x14031f68b\ncall    PlayerObject__ringJump                                         ; +0xee, 0x14031f68e\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xf3, 0x14031f693\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xf8, 0x14031f698\nmov     rsi, [rsp+38h+arg_18]                                          ; +0xfd, 0x14031f69d\nadd     rsp, 30h                                                       ; +0x102, 0x14031f6a2\npop     rdi                                                            ; +0x106, 0x14031f6a6\nretn                                                                   ; +0x107, 0x14031f6a7", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x14031cdcc", "GJBaseGameLayer::collisionCheckObjects @ 0x14031cddc", "<???> @ 0x14091ed34"], "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"}