{"type": "func", "start": 7819744, "end": 7819804, "name": "DeathTrackerPopup::onNextSession", "pseudocode": "// \n// DeathTrackerPopup::onNextSession from 0x7751e0 to 0x77521c (60 bytes)\n// \n// 1 xrefs:\n// > DeathTrackerPopup::keyDown @ 0x77523a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:19 +0000\n// \n\nchar **__fastcall DeathTrackerPopup::onNextSession(DeathTrackerPopup *this, cocos2d::CCObject *a2)\n{\n  int v2; // r2\n  int v3; // r3\n  int v4; // r3\n\n  if ( !*((_BYTE *)this + 564) )\n  {\n    v4 = *((_DWORD *)this + 142);\n    if ( v4 <= 0 )\n    {\n      *((_BYTE *)this + 564) = 1;\n      return DeathTrackerPopup::refreshView(this);\n    }\n    goto LABEL_5;\n  }\n  v2 = *((_DWORD *)this + 145);\n  v3 = *((_DWORD *)this + 146);\n  if ( v2 != v3 )\n  {\n    *((_BYTE *)this + 564) = 0;\n    v4 = 954437177 * ((v3 - v2) >> 2);\nLABEL_5:\n    *((_DWORD *)this + 142) = v4 - 1;\n  }\n  return DeathTrackerPopup::refreshView(this);\n}", "assembly": "; \n; DeathTrackerPopup::onNextSession from 0x7751e0 to 0x77521c (60 bytes)\n; \n; 1 xrefs:\n; > DeathTrackerPopup::keyDown @ 0x77523a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:19 +0000\n; \nLDRB.W          R3, [R0,#0x234]                                        ; +0x0, 0x7751e0\nCBZ             R3, loc_775202                                         ; +0x4, 0x7751e4\nLDR.W           R2, [R0,#0x244]                                        ; +0x6, 0x7751e6\nLDR.W           R3, [R0,#0x248]                                        ; +0xa, 0x7751ea\nCMP             R2, R3                                                 ; +0xe, 0x7751ee\nBEQ             loc_775218                                             ; +0x10, 0x7751f0\nSUBS            R3, R3, R2                                             ; +0x12, 0x7751f2\nLDR             R2, =0x38E38E39                                        ; +0x14, 0x7751f4\nMOVS            R1, #0                                                 ; +0x16, 0x7751f6\nSTRB.W          R1, [R0,#0x234]                                        ; +0x18, 0x7751f8\nASRS            R3, R3, #2                                             ; +0x1c, 0x7751fc\nMULS            R3, R2                                                 ; +0x1e, 0x7751fe\nB               loc_77520A                                             ; +0x20, 0x775200\nLDR.W           R3, [R0,#0x238]                                        ; +0x22, 0x775202\nCMP             R3, #0                                                 ; +0x26, 0x775206\nBLE             loc_775212                                             ; +0x28, 0x775208\nSUBS            R3, #1                                                 ; +0x2a, 0x77520a\nSTR.W           R3, [R0,#0x238]                                        ; +0x2c, 0x77520c\nB               loc_775218                                             ; +0x30, 0x775210\nMOVS            R3, #1                                                 ; +0x32, 0x775212\nSTRB.W          R3, [R0,#0x234]                                        ; +0x34, 0x775214\nB.W             _ZN17DeathTrackerPopup11refreshViewEv; DeathTrackerPopup::refreshView(void) ; +0x38, 0x775218", "xrefs": ["DeathTrackerPopup::keyDown @ 0x77523a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}