{"type": "func", "start": 4297318844, "end": 4297318896, "name": "LevelTools::base64EncodeString", "pseudocode": "// \n// LevelTools::base64EncodeString from 0x10023e1bc to 0x10023e1f0 (52 bytes)\n// \n// 28 xrefs:\n// > sub_1000B74A0 @ 0x1000b751c\n// > sub_1000C150C @ 0x1000c1584\n// > sub_1000C4DD0 @ 0x1000c5004\n// > sub_1000C4DD0 @ 0x1000c50b0\n// > sub_1000C4DD0 @ 0x1000c5154\n// > sub_1000C4DD0 @ 0x1000c51f8\n// > sub_1000C4DD0 @ 0x1000c52a4\n// > sub_1000C54E0 @ 0x1000c565c\n// > sub_1000C5938 @ 0x1000c5b60\n// > sub_1000C5CF4 @ 0x1000c5e88\n// > sub_1000C8838 @ 0x1000c89f8\n// > sub_1000C9054 @ 0x1000c91a8\n// > sub_1000C97B0 @ 0x1000c9900\n// > sub_1000C9A84 @ 0x1000c9adc\n// > GJGameLevel::dataLoaded @ 0x1000d3290\n// > EditLevelLayer::textInputClosed @ 0x100111874\n// > CreateStartPosPopup::onCreate @ 0x1001c2230\n// > MusicDownloadManager::customSFXPathDisplay @ 0x1001d7318\n// > MusicDownloadManager::customSFXPathDisplay @ 0x1001d73ac\n// > MusicDownloadManager::encodeCustomSFX @ 0x1001d9174\n// > StartPosLayer::onClose @ 0x100210834\n// > GJMultiplayerManager::uploadComment @ 0x100267650\n// > LevelListLayer::shareCommentClosed @ 0x1002e3f80\n// > TextGameObject::getSaveString @ 0x100302760\n// > sub_1003FC928 @ 0x1003fe0e4\n// > CreatorSettingsPopup::setTextPopupClosed @ 0x1004abed8\n// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1004d3024\n// > sub_1004F1048 @ 0x1004f106c\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:01:22 +0000\n// \n\n__n128 __usercall LevelTools::base64EncodeString@<Q0>(__n128 *a1@<X0>, __n128 *a2@<X8>)\n{\n  __n128 result; // q0\n\n  if ( (a1[1].n128_i8[7] & 0x8000000000000000LL) != 0 )\n  {\n    if ( a1->n128_u64[1] )\n      goto LABEL_3;\n  }\n  else if ( a1[1].n128_u8[7] )\n  {\nLABEL_3:\n    cocos2d::ZipUtils::base64URLEncode();\n    return result;\n  }\n  result = *a1;\n  *a2 = *a1;\n  a2[1].n128_u64[0] = a1[1].n128_u64[0];\n  a1->n128_u64[1] = 0;\n  a1[1].n128_u64[0] = 0;\n  a1->n128_u64[0] = 0;\n  return result;\n}", "assembly": "; \n; LevelTools::base64EncodeString from 0x10023e1bc to 0x10023e1f0 (52 bytes)\n; \n; 28 xrefs:\n; > sub_1000B74A0 @ 0x1000b751c\n; > sub_1000C150C @ 0x1000c1584\n; > sub_1000C4DD0 @ 0x1000c5004\n; > sub_1000C4DD0 @ 0x1000c50b0\n; > sub_1000C4DD0 @ 0x1000c5154\n; > sub_1000C4DD0 @ 0x1000c51f8\n; > sub_1000C4DD0 @ 0x1000c52a4\n; > sub_1000C54E0 @ 0x1000c565c\n; > sub_1000C5938 @ 0x1000c5b60\n; > sub_1000C5CF4 @ 0x1000c5e88\n; > sub_1000C8838 @ 0x1000c89f8\n; > sub_1000C9054 @ 0x1000c91a8\n; > sub_1000C97B0 @ 0x1000c9900\n; > sub_1000C9A84 @ 0x1000c9adc\n; > GJGameLevel::dataLoaded @ 0x1000d3290\n; > EditLevelLayer::textInputClosed @ 0x100111874\n; > CreateStartPosPopup::onCreate @ 0x1001c2230\n; > MusicDownloadManager::customSFXPathDisplay @ 0x1001d7318\n; > MusicDownloadManager::customSFXPathDisplay @ 0x1001d73ac\n; > MusicDownloadManager::encodeCustomSFX @ 0x1001d9174\n; > StartPosLayer::onClose @ 0x100210834\n; > GJMultiplayerManager::uploadComment @ 0x100267650\n; > LevelListLayer::shareCommentClosed @ 0x1002e3f80\n; > TextGameObject::getSaveString @ 0x100302760\n; > sub_1003FC928 @ 0x1003fe0e4\n; > CreatorSettingsPopup::setTextPopupClosed @ 0x1004abed8\n; > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1004d3024\n; > sub_1004F1048 @ 0x1004f106c\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:01:22 +0000\n; \nLDRSB           X9, [X0,#0x17]                                         ; +0x0, 0x10023e1bc\nTBNZ            X9, #0x3F, loc_10023E1CC ; '?'                         ; +0x4, 0x10023e1c0\nCBZ             X9, loc_10023E1D4                                      ; +0x8, 0x10023e1c4\nB               cocos2d__ZipUtils__base64URLEncode                     ; +0xc, 0x10023e1c8\nLDR             X9, [X0,#8]                                            ; +0x10, 0x10023e1cc\nCBNZ            X9, loc_10023E1C8                                      ; +0x14, 0x10023e1d0\nLDR             Q0, [X0]                                               ; +0x18, 0x10023e1d4\nSTR             Q0, [X8]                                               ; +0x1c, 0x10023e1d8\nLDR             X9, [X0,#0x10]                                         ; +0x20, 0x10023e1dc\nSTR             X9, [X8,#0x10]                                         ; +0x24, 0x10023e1e0\nSTP             XZR, XZR, [X0,#8]                                      ; +0x28, 0x10023e1e4\nSTR             XZR, [X0]                                              ; +0x2c, 0x10023e1e8\nRET                                                                    ; +0x30, 0x10023e1ec", "xrefs": ["sub_1000B74A0 @ 0x1000b751c", "sub_1000C150C @ 0x1000c1584", "sub_1000C4DD0 @ 0x1000c5004", "sub_1000C4DD0 @ 0x1000c50b0", "sub_1000C4DD0 @ 0x1000c5154", "sub_1000C4DD0 @ 0x1000c51f8", "sub_1000C4DD0 @ 0x1000c52a4", "sub_1000C54E0 @ 0x1000c565c", "sub_1000C5938 @ 0x1000c5b60", "sub_1000C5CF4 @ 0x1000c5e88", "sub_1000C8838 @ 0x1000c89f8", "sub_1000C9054 @ 0x1000c91a8", "sub_1000C97B0 @ 0x1000c9900", "sub_1000C9A84 @ 0x1000c9adc", "GJGameLevel::dataLoaded @ 0x1000d3290", "EditLevelLayer::textInputClosed @ 0x100111874", "CreateStartPosPopup::onCreate @ 0x1001c2230", "MusicDownloadManager::customSFXPathDisplay @ 0x1001d7318", "MusicDownloadManager::customSFXPathDisplay @ 0x1001d73ac", "MusicDownloadManager::encodeCustomSFX @ 0x1001d9174", "StartPosLayer::onClose @ 0x100210834", "GJMultiplayerManager::uploadComment @ 0x100267650", "LevelListLayer::shareCommentClosed @ 0x1002e3f80", "TextGameObject::getSaveString @ 0x100302760", "sub_1003FC928 @ 0x1003fe0e4", "CreatorSettingsPopup::setTextPopupClosed @ 0x1004abed8", "EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1004d3024", "sub_1004F1048 @ 0x1004f106c"], "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"}