{"type": "func", "start": 4300221828, "end": 4300221952, "name": "LevelBadgePopup::show", "pseudocode": "// \n// LevelBadgePopup::show from 0x100502d84 to 0x100502e00 (124 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009969a0\n// \n// This function is hookable on this platform (idp: arm, 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:06:54 +0000\n// \n\n__int64 __fastcall LevelBadgePopup::show(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x20\n  int v5; // w2\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = *(_QWORD *)(a1 + 568);\n  if ( v3 )\n  {\n    if ( !*(_DWORD *)(a1 + 592) )\nLABEL_3:\n      *(_DWORD *)(a1 + 592) = 120;\n  }\n  else\n  {\n    v3 = *(_QWORD *)(v2 + 272);\n    if ( (int)cocos2d::CCScene::getHighestChildZ(v3) < 120 )\n      v5 = 120;\n    else\n      v5 = cocos2d::CCScene::getHighestChildZ(v3) + 1;\n    *(_DWORD *)(a1 + 592) = v5;\n    if ( !v5 )\n      goto LABEL_3;\n  }\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 464LL))(v3, a1);\n}", "assembly": "; \n; LevelBadgePopup::show from 0x100502d84 to 0x100502e00 (124 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009969a0\n; \n; This function is hookable on this platform (idp: arm, 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:06:54 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100502d84\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100502d88\nADD             X29, SP, #0x10                                         ; +0x8, 0x100502d8c\nMOV             X19, X0                                                ; +0xc, 0x100502d90\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x10, 0x100502d94\nLDR             X20, [X19,#0x238]                                      ; +0x14, 0x100502d98\nCBZ             X20, loc_100502DCC                                     ; +0x18, 0x100502d9c\nLDR             W2, [X19,#0x250]                                       ; +0x1c, 0x100502da0\nCBNZ            W2, loc_100502DB0                                      ; +0x20, 0x100502da4\nMOV             W2, #0x78 ; 'x'                                        ; +0x24, 0x100502da8\nSTR             W2, [X19,#0x250]                                       ; +0x28, 0x100502dac\nLDR             X8, [X20]                                              ; +0x2c, 0x100502db0\nLDR             X3, [X8,#0x1D0]                                        ; +0x30, 0x100502db4\nMOV             X0, X20                                                ; +0x34, 0x100502db8\nMOV             X1, X19                                                ; +0x38, 0x100502dbc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x100502dc0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x40, 0x100502dc4\nBR              X3                                                     ; +0x44, 0x100502dc8\nLDR             X20, [X0,#0x110]                                       ; +0x48, 0x100502dcc\nMOV             X0, X20                                                ; +0x4c, 0x100502dd0\nBL              cocos2d__CCScene__getHighestChildZ                     ; +0x50, 0x100502dd4\nCMP             W0, #0x78 ; 'x'                                        ; +0x54, 0x100502dd8\nB.LT            loc_100502DF0                                          ; +0x58, 0x100502ddc\nMOV             X0, X20                                                ; +0x5c, 0x100502de0\nBL              cocos2d__CCScene__getHighestChildZ                     ; +0x60, 0x100502de4\nADD             W2, W0, #1                                             ; +0x64, 0x100502de8\nB               loc_100502DF4                                          ; +0x68, 0x100502dec\nMOV             W2, #0x78 ; 'x'                                        ; +0x6c, 0x100502df0\nSTR             W2, [X19,#0x250]                                       ; +0x70, 0x100502df4\nCBNZ            W2, loc_100502DB0                                      ; +0x74, 0x100502df8\nB               loc_100502DA8                                          ; +0x78, 0x100502dfc", "xrefs": ["<???> @ 0x1009969a0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}