{"type": "func", "start": 4296814856, "end": 4296814972, "name": "CustomSongLayer::onClose", "pseudocode": "// \n// CustomSongLayer::onClose from 0x1001c3108 to 0x1001c317c (116 bytes)\n// \n// 3 xrefs:\n// > CustomSongLayer::keyBackClicked @ 0x1001c37c8\n// > sub_1001C37CC @ 0x1001c37d0\n// > CustomSongLayer::init @ 0x1001c2798\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:00:16 +0000\n// \n\n__int64 __fastcall CustomSongLayer::onClose(__int64 a1)\n{\n  void (__fastcall ***v2)(_QWORD); // x0\n  _QWORD *v3; // x0\n\n  v2 = *(void (__fastcall ****)(_QWORD))(a1 + 704);\n  if ( v2 )\n    (**v2)(v2);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 688) + 1160LL))(*(_QWORD *)(a1 + 688), 0);\n  v3 = (_QWORD *)FMODAudioEngine::sharedEngine();\n  FMODAudioEngine::stopAllMusic(v3, 1);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n}", "assembly": "; \n; CustomSongLayer::onClose from 0x1001c3108 to 0x1001c317c (116 bytes)\n; \n; 3 xrefs:\n; > CustomSongLayer::keyBackClicked @ 0x1001c37c8\n; > sub_1001C37CC @ 0x1001c37d0\n; > CustomSongLayer::init @ 0x1001c2798\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:00:16 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001c3108\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001c310c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001c3110\nMOV             X19, X0                                                ; +0xc, 0x1001c3114\nLDR             X0, [X0,#0x2C0]                                        ; +0x10, 0x1001c3118\nCBZ             X0, loc_1001C312C                                      ; +0x14, 0x1001c311c\nLDR             X8, [X0]                                               ; +0x18, 0x1001c3120\nLDR             X8, [X8]                                               ; +0x1c, 0x1001c3124\nBLR             X8                                                     ; +0x20, 0x1001c3128\nLDR             X0, [X19,#0x2B0]                                       ; +0x24, 0x1001c312c\nLDR             X8, [X0]                                               ; +0x28, 0x1001c3130\nLDR             X8, [X8,#0x488]                                        ; +0x2c, 0x1001c3134\nMOV             W1, #0                                                 ; +0x30, 0x1001c3138\nBLR             X8                                                     ; +0x34, 0x1001c313c\nBL              FMODAudioEngine__sharedEngine                          ; +0x38, 0x1001c3140\nMOV             W1, #1                                                 ; +0x3c, 0x1001c3144\nBL              FMODAudioEngine__stopAllMusic                          ; +0x40, 0x1001c3148\nLDR             X8, [X19]                                              ; +0x44, 0x1001c314c\nLDR             X8, [X8,#0x430]                                        ; +0x48, 0x1001c3150\nMOV             X0, X19                                                ; +0x4c, 0x1001c3154\nMOV             W1, #0                                                 ; +0x50, 0x1001c3158\nBLR             X8                                                     ; +0x54, 0x1001c315c\nLDR             X8, [X19]                                              ; +0x58, 0x1001c3160\nLDR             X2, [X8,#0x210]                                        ; +0x5c, 0x1001c3164\nMOV             X0, X19                                                ; +0x60, 0x1001c3168\nMOV             W1, #1                                                 ; +0x64, 0x1001c316c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x1001c3170\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x1001c3174\nBR              X2                                                     ; +0x70, 0x1001c3178", "xrefs": ["CustomSongLayer::keyBackClicked @ 0x1001c37c8", "sub_1001C37CC @ 0x1001c37d0", "CustomSongLayer::init @ 0x1001c2798"], "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"}