; ; GJBaseGameLayer::createMiddleground from 0x1002787cc to 0x100278854 (136 bytes) ; ; 6 xrefs: ; > PlayLayer::setupHasCompleted @ 0x10013f72c ; > LevelSettingsLayer::selectArtClosed @ 0x10020d9d4 ; > GJBaseGameLayer::swapMiddleground @ 0x100278788 ; > GJBaseGameLayer::asyncMGLoaded @ 0x100278864 ; > GJBaseGameLayer::syncBGTextures @ 0x10029ef60 ; > LevelEditorLayer::init @ 0x1003f7118 ; ; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:01:51 +0000 ; STP X20, X19, [SP,#-0x10+var_10]! ; +0x0, 0x1002787cc STP X29, X30, [SP,#0x10+var_s0] ; +0x4, 0x1002787d0 ADD X29, SP, #0x10 ; +0x8, 0x1002787d4 MOV X20, X1 ; +0xc, 0x1002787d8 MOV X19, X0 ; +0x10, 0x1002787dc LDR X0, [X0,#0xF88] ; +0x14, 0x1002787e0 CBZ X0, loc_1002787F8 ; +0x18, 0x1002787e4 LDR X8, [X0] ; +0x1c, 0x1002787e8 LDR X8, [X8,#0x208] ; +0x20, 0x1002787ec BLR X8 ; +0x24, 0x1002787f0 STR XZR, [X19,#0xF88] ; +0x28, 0x1002787f4 CMP W20, #1 ; +0x2c, 0x1002787f8 B.LT loc_100278848 ; +0x30, 0x1002787fc CMP W20, #3 ; +0x34, 0x100278800 MOV W8, #3 ; +0x38, 0x100278804 CSEL W20, W20, W8, CC ; +0x3c, 0x100278808 MOV X0, X20 ; +0x40, 0x10027880c BL sub_1000300E0 ; +0x44, 0x100278810 STR X0, [X19,#0xF88] ; +0x48, 0x100278814 LDR X8, [X0] ; +0x4c, 0x100278818 LDR X8, [X8,#0x48] ; +0x50, 0x10027881c MOV X1, X20 ; +0x54, 0x100278820 BLR X8 ; +0x58, 0x100278824 LDR X0, [X19,#0xF38] ; +0x5c, 0x100278828 LDR X1, [X19,#0xF88] ; +0x60, 0x10027882c LDR X8, [X0] ; +0x64, 0x100278830 LDR X3, [X8,#0x1D0] ; +0x68, 0x100278834 MOV W2, #0xFFFFFFD9 ; +0x6c, 0x100278838 LDP X29, X30, [SP,#0x10+var_s0] ; +0x70, 0x10027883c LDP X20, X19, [SP+0x10+var_10],#0x20 ; +0x74, 0x100278840 BR X3 ; +0x78, 0x100278844 LDP X29, X30, [SP,#0x10+var_s0] ; +0x7c, 0x100278848 LDP X20, X19, [SP+0x10+var_10],#0x20 ; +0x80, 0x10027884c RET ; +0x84, 0x100278850