{"type": "func", "start": 4300231536, "end": 4300231618, "name": "GJRateLevelLayer::onFeature", "pseudocode": "// \n// GJRateLevelLayer::onFeature from 0x100505370 to 0x1005053c2 (82 bytes)\n// \n// 1 xrefs:\n// > GJRateLevelLayer::init @ 0x100504dd2\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:31:31 +0000\n// \n\n__int64 __fastcall GJRateLevelLayer::onFeature(__int64 a1)\n{\n  int v1; // eax\n  int v2; // esi\n\n  v1 = *(_DWORD *)(a1 + 1112);\n  v2 = 0;\n  if ( v1 < 4 )\n    v2 = v1 + 1;\n  *(_DWORD *)(a1 + 1112) = v2;\n  GJDifficultySprite::updateFeatureState(*(_DWORD **)(a1 + 1104), v2);\n  return (*(__int64 (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1352LL))(\n           a1,\n           1,\n           *(_DWORD *)(a1 + 1112) != 0);\n}", "assembly": "; \n; GJRateLevelLayer::onFeature from 0x100505370 to 0x1005053c2 (82 bytes)\n; \n; 1 xrefs:\n; > GJRateLevelLayer::init @ 0x100504dd2\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:31:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x100505370\nmov     rbp, rsp                                                       ; +0x1, 0x100505371\npush    rbx                                                            ; +0x4, 0x100505374\npush    rax                                                            ; +0x5, 0x100505375\nmov     rbx, rdi                                                       ; +0x6, 0x100505376\nmov     eax, [rdi+458h]                                                ; +0x9, 0x100505379\nlea     ecx, [rax+1]                                                   ; +0xf, 0x10050537f\nxor     esi, esi                                                       ; +0x12, 0x100505382\ncmp     eax, 4                                                         ; +0x14, 0x100505384\ncmovl   esi, ecx                                                       ; +0x17, 0x100505387\nmov     [rdi+458h], esi                                                ; +0x1a, 0x10050538a\nmov     rdi, [rdi+450h]                                                ; +0x20, 0x100505390\ncall    GJDifficultySprite__updateFeatureState                         ; +0x27, 0x100505397\nxor     edx, edx                                                       ; +0x2c, 0x10050539c\ncmp     dword ptr [rbx+458h], 0                                        ; +0x2e, 0x10050539e\nsetnz   dl                                                             ; +0x35, 0x1005053a5\nmov     rax, [rbx]                                                     ; +0x38, 0x1005053a8\nmov     rax, [rax+548h]                                                ; +0x3b, 0x1005053ab\nmov     rdi, rbx                                                       ; +0x42, 0x1005053b2\nmov     esi, 1                                                         ; +0x45, 0x1005053b5\nadd     rsp, 8                                                         ; +0x4a, 0x1005053ba\npop     rbx                                                            ; +0x4e, 0x1005053be\npop     rbp                                                            ; +0x4f, 0x1005053bf\njmp     rax                                                            ; +0x50, 0x1005053c0", "xrefs": ["GJRateLevelLayer::init @ 0x100504dd2"], "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"}