{"type": "func", "start": 7781396, "end": 7781888, "name": "DeathMarkerLayer::updateVisibility", "pseudocode": "// \n// DeathMarkerLayer::updateVisibility from 0x76bc14 to 0x76be00 (492 bytes)\n// \n// 7 xrefs:\n// > LevelEditorLayer::postUpdate @ 0x46ad6c\n// > LevelEditorLayer::postUpdate @ 0x46ad78\n// > LevelEditorLayer::updateEditor @ 0x47330a\n// > LevelEditorLayer::updateEditor @ 0x473316\n// > PlayLayer::dtUpdateLiveMarkers @ 0x72cb2a\n// > PlayLayer::dtUpdateLiveMarkers @ 0x72cb36\n// > DeathMarkerLayer::init @ 0x76cf4e\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:11 +0000\n// \n\nvoid __fastcall DeathMarkerLayer::updateVisibility(DeathMarkerLayer *this, const cocos2d::CCRect *a2)\n{\n  float v4; // s17\n  float v5; // s19\n  float v6; // s16\n  float v7; // s18\n  _DWORD *m; // r5\n  int v9; // r7\n  int v10; // r9\n  int v11; // r8\n  int v12; // r5\n  int v13; // r6\n  int n; // r10\n  int ii; // r10\n  int jj; // r7\n  int i; // r5\n  int j; // r6\n  _DWORD *k; // r5\n\n  if ( *((float *)a2 + 2) <= 0.0 || *((float *)a2 + 3) <= 0.0 )\n  {\n    if ( !*((_BYTE *)this + 312) )\n    {\n      for ( i = *((_DWORD *)this + 74); i <= *((_DWORD *)this + 75); ++i )\n      {\n        for ( j = *((_DWORD *)this + 76); j <= *((_DWORD *)this + 77); ++j )\n          DeathMarkerLayer::unmountSection(this, j | (i << 16));\n      }\n      for ( k = *((_DWORD **)this + 71); k; k = (_DWORD *)*k )\n        DeathMarkerLayer::mountSection(this, k[2]);\n      *((_DWORD *)this + 74) = 0;\n      *((_BYTE *)this + 312) = 1;\n      *((_DWORD *)this + 76) = 0;\n      *((_DWORD *)this + 75) = -1;\n      *((_DWORD *)this + 77) = -1;\n    }\n  }\n  else\n  {\n    v4 = COERCE_FLOAT(cocos2d::CCRect::getMinX(a2));\n    v5 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(a2));\n    v6 = COERCE_FLOAT(cocos2d::CCRect::getMinY(a2));\n    v7 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(a2));\n    if ( *((_BYTE *)this + 312) )\n    {\n      for ( m = *((_DWORD **)this + 71); m; m = (_DWORD *)*m )\n        DeathMarkerLayer::unmountSection(this, m[2]);\n      *((_BYTE *)this + 312) = 0;\n      *((_DWORD *)this + 74) = 0;\n      *((_DWORD *)this + 75) = -1;\n      *((_DWORD *)this + 76) = 0;\n      *((_DWORD *)this + 77) = -1;\n    }\n    v9 = *((_DWORD *)this + 74);\n    v10 = (int)(float)(v5 / 240.0) + 1;\n    v11 = (int)(float)(v7 / 240.0) + 1;\n    v12 = ((int)(float)(v4 / 240.0) - 1) & ~(((int)(float)(v4 / 240.0) - 1) >> 31);\n    v13 = ((int)(float)(v6 / 240.0) - 1) & ~(((int)(float)(v6 / 240.0) - 1) >> 31);\n    if ( v12 == v9 )\n    {\n      if ( v10 == *((_DWORD *)this + 75) && v13 == *((_DWORD *)this + 76) && v11 == *((_DWORD *)this + 77) )\n        return;\n      v9 = ((int)(float)(v4 / 240.0) - 1) & ~(((int)(float)(v4 / 240.0) - 1) >> 31);\n    }\n    while ( v9 <= *((_DWORD *)this + 75) )\n    {\n      for ( n = *((_DWORD *)this + 76); n <= *((_DWORD *)this + 77); ++n )\n      {\n        if ( v9 < v12 || v9 > v10 || n < v13 || n > v11 )\n          DeathMarkerLayer::unmountSection(this, n | (v9 << 16));\n      }\n      ++v9;\n    }\n    for ( ii = ((int)(float)(v4 / 240.0) - 1) & ~(((int)(float)(v4 / 240.0) - 1) >> 31); ii <= v10; ++ii )\n    {\n      for ( jj = ((int)(float)(v6 / 240.0) - 1) & ~(((int)(float)(v6 / 240.0) - 1) >> 31); jj <= v11; ++jj )\n      {\n        if ( ii < *((_DWORD *)this + 74)\n          || ii > *((_DWORD *)this + 75)\n          || jj < *((_DWORD *)this + 76)\n          || jj > *((_DWORD *)this + 77) )\n        {\n          DeathMarkerLayer::mountSection(this, jj | (ii << 16));\n        }\n      }\n    }\n    *((_DWORD *)this + 74) = v12;\n    *((_DWORD *)this + 75) = v10;\n    *((_DWORD *)this + 76) = v13;\n    *((_DWORD *)this + 77) = v11;\n  }\n}", "assembly": "; \n; DeathMarkerLayer::updateVisibility from 0x76bc14 to 0x76be00 (492 bytes)\n; \n; 7 xrefs:\n; > LevelEditorLayer::postUpdate @ 0x46ad6c\n; > LevelEditorLayer::postUpdate @ 0x46ad78\n; > LevelEditorLayer::updateEditor @ 0x47330a\n; > LevelEditorLayer::updateEditor @ 0x473316\n; > PlayLayer::dtUpdateLiveMarkers @ 0x72cb2a\n; > PlayLayer::dtUpdateLiveMarkers @ 0x72cb36\n; > DeathMarkerLayer::init @ 0x76cf4e\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:11 +0000\n; \nPUSH.W          {R3-R11,LR}                                            ; +0x0, 0x76bc14\nMOV             R4, R0                                                 ; +0x4, 0x76bc18\nVPUSH           {D8-D9}                                                ; +0x6, 0x76bc1a\nMOV             R5, R1                                                 ; +0xa, 0x76bc1e\nVLDR            S15, [R1,#8]                                           ; +0xc, 0x76bc20\nVCMPE.F32       S15, #0.0                                              ; +0x10, 0x76bc24\nVMRS            APSR_nzcv, FPSCR                                       ; +0x14, 0x76bc28\nBLS.W           loc_76BD9A                                             ; +0x18, 0x76bc2c\nVLDR            S15, [R1,#0xC]                                         ; +0x1c, 0x76bc30\nVCMPE.F32       S15, #0.0                                              ; +0x20, 0x76bc34\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x76bc38\nBLS.W           loc_76BD9A                                             ; +0x28, 0x76bc3c\nMOV             R0, R1; this                                           ; +0x2c, 0x76bc40\nBL              _ZNK7cocos2d6CCRect7getMinXEv; cocos2d::CCRect::getMinX(void) ; +0x2e, 0x76bc42\nVMOV            S17, R0                                                ; +0x32, 0x76bc46\nMOV             R0, R5; this                                           ; +0x36, 0x76bc4a\nBL              _ZNK7cocos2d6CCRect7getMaxXEv; cocos2d::CCRect::getMaxX(void) ; +0x38, 0x76bc4c\nVMOV            S19, R0                                                ; +0x3c, 0x76bc50\nMOV             R0, R5; this                                           ; +0x40, 0x76bc54\nBL              _ZNK7cocos2d6CCRect7getMinYEv; cocos2d::CCRect::getMinY(void) ; +0x42, 0x76bc56\nVMOV            S16, R0                                                ; +0x46, 0x76bc5a\nMOV             R0, R5; this                                           ; +0x4a, 0x76bc5e\nBL              _ZNK7cocos2d6CCRect7getMaxYEv; cocos2d::CCRect::getMaxY(void) ; +0x4c, 0x76bc60\nLDRB.W          R3, [R4,#0x138]                                        ; +0x50, 0x76bc64\nVMOV            S18, R0                                                ; +0x54, 0x76bc68\nCBZ             R3, loc_76BC98                                         ; +0x58, 0x76bc6c\nLDR.W           R5, [R4,#0x11C]                                        ; +0x5a, 0x76bc6e\nCBZ             R5, loc_76BC80                                         ; +0x5e, 0x76bc72\nLDR             R1, [R5,#8]; unsigned int                              ; +0x60, 0x76bc74\nMOV             R0, R4; this                                           ; +0x62, 0x76bc76\nBL              _ZN16DeathMarkerLayer14unmountSectionEj; DeathMarkerLayer::unmountSection(uint) ; +0x64, 0x76bc78\nLDR             R5, [R5]                                               ; +0x68, 0x76bc7c\nB               loc_76BC72                                             ; +0x6a, 0x76bc7e\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x6c, 0x76bc80\nSTRB.W          R5, [R4,#0x138]                                        ; +0x70, 0x76bc84\nSTR.W           R5, [R4,#0x128]                                        ; +0x74, 0x76bc88\nSTR.W           R3, [R4,#0x12C]                                        ; +0x78, 0x76bc8c\nSTR.W           R5, [R4,#0x130]                                        ; +0x7c, 0x76bc90\nSTR.W           R3, [R4,#0x134]                                        ; +0x80, 0x76bc94\nVLDR            S15, =240.0                                            ; +0x84, 0x76bc98\nLDR.W           R7, [R4,#0x128]                                        ; +0x88, 0x76bc9c\nVDIV.F32        S19, S19, S15                                          ; +0x8c, 0x76bca0\nVDIV.F32        S18, S18, S15                                          ; +0x90, 0x76bca4\nVDIV.F32        S17, S17, S15                                          ; +0x94, 0x76bca8\nVDIV.F32        S16, S16, S15                                          ; +0x98, 0x76bcac\nVCVT.S32.F32    S14, S19                                               ; +0x9c, 0x76bcb0\nVMOV            R9, S14                                                ; +0xa0, 0x76bcb4\nVCVT.S32.F32    S14, S18                                               ; +0xa4, 0x76bcb8\nVMOV            R8, S14                                                ; +0xa8, 0x76bcbc\nVCVT.S32.F32    S14, S17                                               ; +0xac, 0x76bcc0\nVCVT.S32.F32    S15, S16                                               ; +0xb0, 0x76bcc4\nVMOV            R5, S14                                                ; +0xb4, 0x76bcc8\nADD.W           R9, R9, #1                                             ; +0xb8, 0x76bccc\nVMOV            R6, S15                                                ; +0xbc, 0x76bcd0\nADD.W           R8, R8, #1                                             ; +0xc0, 0x76bcd4\nSUBS            R5, #1                                                 ; +0xc4, 0x76bcd8\nBIC.W           R5, R5, R5,ASR#31                                      ; +0xc6, 0x76bcda\nCMP             R5, R7                                                 ; +0xca, 0x76bcde\nADD.W           R6, R6, #0xFFFFFFFF                                    ; +0xcc, 0x76bce0\nBIC.W           R6, R6, R6,ASR#31                                      ; +0xd0, 0x76bce4\nBNE             loc_76BD26                                             ; +0xd4, 0x76bce8\nLDR.W           R3, [R4,#0x12C]                                        ; +0xd6, 0x76bcea\nCMP             R9, R3                                                 ; +0xda, 0x76bcee\nBNE             loc_76BCFA                                             ; +0xdc, 0x76bcf0\nLDR.W           R3, [R4,#0x130]                                        ; +0xde, 0x76bcf2\nCMP             R6, R3                                                 ; +0xe2, 0x76bcf6\nBEQ             loc_76BCFE                                             ; +0xe4, 0x76bcf8\nMOV             R7, R5                                                 ; +0xe6, 0x76bcfa\nB               loc_76BD26                                             ; +0xe8, 0x76bcfc\nLDR.W           R3, [R4,#0x134]                                        ; +0xea, 0x76bcfe\nCMP             R8, R3                                                 ; +0xee, 0x76bd02\nBNE             loc_76BCFA                                             ; +0xf0, 0x76bd04\nB               loc_76BDF8                                             ; +0xf2, 0x76bd06\nCMP             R7, R5                                                 ; +0xf4, 0x76bd08\nBLT             loc_76BD38                                             ; +0xf6, 0x76bd0a\nCMP             R7, R9                                                 ; +0xf8, 0x76bd0c\nBGT             loc_76BD38                                             ; +0xfa, 0x76bd0e\nCMP             R10, R6                                                ; +0xfc, 0x76bd10\nBLT             loc_76BD38                                             ; +0xfe, 0x76bd12\nCMP             R10, R8                                                ; +0x100, 0x76bd14\nBGT             loc_76BD38                                             ; +0x102, 0x76bd16\nADD.W           R10, R10, #1                                           ; +0x104, 0x76bd18\nLDR.W           R3, [R4,#0x134]                                        ; +0x108, 0x76bd1c\nCMP             R10, R3                                                ; +0x10c, 0x76bd20\nBLE             loc_76BD08                                             ; +0x10e, 0x76bd22\nADDS            R7, #1                                                 ; +0x110, 0x76bd24\nLDR.W           R3, [R4,#0x12C]                                        ; +0x112, 0x76bd26\nCMP             R7, R3                                                 ; +0x116, 0x76bd2a\nBGT             loc_76BD44                                             ; +0x118, 0x76bd2c\nLDR.W           R10, [R4,#0x130]                                       ; +0x11a, 0x76bd2e\nMOV.W           R11, R7,LSL#16                                         ; +0x11e, 0x76bd32\nB               loc_76BD1C                                             ; +0x122, 0x76bd36\nMOV             R0, R4; this                                           ; +0x124, 0x76bd38\nORR.W           R1, R10, R11; unsigned int                             ; +0x126, 0x76bd3a\nBL              _ZN16DeathMarkerLayer14unmountSectionEj; DeathMarkerLayer::unmountSection(uint) ; +0x12a, 0x76bd3e\nB               loc_76BD18                                             ; +0x12e, 0x76bd42\nMOV             R10, R5                                                ; +0x130, 0x76bd44\nCMP             R10, R9                                                ; +0x132, 0x76bd46\nBGT             loc_76BD88                                             ; +0x134, 0x76bd48\nMOV.W           R11, R10,LSL#16                                        ; +0x136, 0x76bd4a\nMOV             R7, R6                                                 ; +0x13a, 0x76bd4e\nCMP             R7, R8                                                 ; +0x13c, 0x76bd50\nBGT             loc_76BD82                                             ; +0x13e, 0x76bd52\nLDR.W           R3, [R4,#0x128]                                        ; +0x140, 0x76bd54\nCMP             R10, R3                                                ; +0x144, 0x76bd58\nBLT             loc_76BD74                                             ; +0x146, 0x76bd5a\nLDR.W           R3, [R4,#0x12C]                                        ; +0x148, 0x76bd5c\nCMP             R10, R3                                                ; +0x14c, 0x76bd60\nBGT             loc_76BD74                                             ; +0x14e, 0x76bd62\nLDR.W           R3, [R4,#0x130]                                        ; +0x150, 0x76bd64\nCMP             R7, R3                                                 ; +0x154, 0x76bd68\nBLT             loc_76BD74                                             ; +0x156, 0x76bd6a\nLDR.W           R3, [R4,#0x134]                                        ; +0x158, 0x76bd6c\nCMP             R7, R3                                                 ; +0x15c, 0x76bd70\nBLE             loc_76BD7E                                             ; +0x15e, 0x76bd72\nMOV             R0, R4; this                                           ; +0x160, 0x76bd74\nORR.W           R1, R7, R11; unsigned int                              ; +0x162, 0x76bd76\nBL              _ZN16DeathMarkerLayer12mountSectionEj; DeathMarkerLayer::mountSection(uint) ; +0x166, 0x76bd7a\nADDS            R7, #1                                                 ; +0x16a, 0x76bd7e\nB               loc_76BD50                                             ; +0x16c, 0x76bd80\nADD.W           R10, R10, #1                                           ; +0x16e, 0x76bd82\nB               loc_76BD46                                             ; +0x172, 0x76bd86\nSTR.W           R5, [R4,#0x128]                                        ; +0x174, 0x76bd88\nSTR.W           R9, [R4,#0x12C]                                        ; +0x178, 0x76bd8c\nSTR.W           R6, [R4,#0x130]                                        ; +0x17c, 0x76bd90\nSTR.W           R8, [R4,#0x134]                                        ; +0x180, 0x76bd94\nB               loc_76BDF8                                             ; +0x184, 0x76bd98\nLDRB.W          R3, [R4,#0x138]                                        ; +0x186, 0x76bd9a\nCBNZ            R3, loc_76BDF8                                         ; +0x18a, 0x76bd9e\nLDR.W           R5, [R4,#0x128]                                        ; +0x18c, 0x76bda0\nLDR.W           R3, [R4,#0x12C]                                        ; +0x190, 0x76bda4\nCMP             R5, R3                                                 ; +0x194, 0x76bda8\nBGT             loc_76BDCC                                             ; +0x196, 0x76bdaa\nLDR.W           R6, [R4,#0x130]                                        ; +0x198, 0x76bdac\nLSLS            R7, R5, #0x10                                          ; +0x19c, 0x76bdb0\nLDR.W           R3, [R4,#0x134]                                        ; +0x19e, 0x76bdb2\nCMP             R6, R3                                                 ; +0x1a2, 0x76bdb6\nBGT             loc_76BDC8                                             ; +0x1a4, 0x76bdb8\nORR.W           R1, R6, R7; unsigned int                               ; +0x1a6, 0x76bdba\nMOV             R0, R4; this                                           ; +0x1aa, 0x76bdbe\nBL              _ZN16DeathMarkerLayer14unmountSectionEj; DeathMarkerLayer::unmountSection(uint) ; +0x1ac, 0x76bdc0\nADDS            R6, #1                                                 ; +0x1b0, 0x76bdc4\nB               loc_76BDB2                                             ; +0x1b2, 0x76bdc6\nADDS            R5, #1                                                 ; +0x1b4, 0x76bdc8\nB               loc_76BDA4                                             ; +0x1b6, 0x76bdca\nLDR.W           R5, [R4,#0x11C]                                        ; +0x1b8, 0x76bdcc\nCBZ             R5, loc_76BDDE                                         ; +0x1bc, 0x76bdd0\nLDR             R1, [R5,#8]; unsigned int                              ; +0x1be, 0x76bdd2\nMOV             R0, R4; this                                           ; +0x1c0, 0x76bdd4\nBL              _ZN16DeathMarkerLayer12mountSectionEj; DeathMarkerLayer::mountSection(uint) ; +0x1c2, 0x76bdd6\nLDR             R5, [R5]                                               ; +0x1c6, 0x76bdda\nB               loc_76BDD0                                             ; +0x1c8, 0x76bddc\nMOVS            R3, #1                                                 ; +0x1ca, 0x76bdde\nSTR.W           R5, [R4,#0x128]                                        ; +0x1cc, 0x76bde0\nSTRB.W          R3, [R4,#0x138]                                        ; +0x1d0, 0x76bde4\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x1d4, 0x76bde8\nSTR.W           R5, [R4,#0x130]                                        ; +0x1d8, 0x76bdec\nSTR.W           R3, [R4,#0x12C]                                        ; +0x1dc, 0x76bdf0\nSTR.W           R3, [R4,#0x134]                                        ; +0x1e0, 0x76bdf4\nVPOP            {D8-D9}                                                ; +0x1e4, 0x76bdf8\nPOP.W           {R3-R11,PC}                                            ; +0x1e8, 0x76bdfc", "xrefs": ["LevelEditorLayer::postUpdate @ 0x46ad6c", "LevelEditorLayer::postUpdate @ 0x46ad78", "LevelEditorLayer::updateEditor @ 0x47330a", "LevelEditorLayer::updateEditor @ 0x473316", "PlayLayer::dtUpdateLiveMarkers @ 0x72cb2a", "PlayLayer::dtUpdateLiveMarkers @ 0x72cb36", "DeathMarkerLayer::init @ 0x76cf4e"], "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"}