; ; EditorUI::onPlaytest from 0x1004713fc to 0x1004715a8 (428 bytes) ; ; 3 xrefs: ; > EditorUI::handleAction @ 0x100162714 ; > EditorUI::onPlaytest @ 0x100471578 ; > EditorUI::init @ 0x10046f358 ; ; 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:05:38 +0000 ; LDRB W8, [X0,#0x634] ; +0x0, 0x1004713fc TBNZ W8, #0, locret_1004715A4 ; +0x4, 0x100471400 STP X24, X23, [SP,#-0x10+var_30]! ; +0x8, 0x100471404 STP X22, X21, [SP,#0x30+var_20] ; +0xc, 0x100471408 STP X20, X19, [SP,#0x30+var_10] ; +0x10, 0x10047140c STP X29, X30, [SP,#0x30+var_s0] ; +0x14, 0x100471410 ADD X29, SP, #0x30 ; +0x18, 0x100471414 MOV X20, X1 ; +0x1c, 0x100471418 MOV X19, X0 ; +0x20, 0x10047141c BL EditorSFXManager__sharedState ; +0x24, 0x100471420 MOV W1, #0xD2 ; +0x28, 0x100471424 BL EditorSFXManager__playAction_1 ; +0x2c, 0x100471428 LDR X0, [X19,#0x5A0] ; +0x30, 0x10047142c LDR W23, [X0,#0x7B4] ; +0x34, 0x100471430 CMP W23, #1 ; +0x38, 0x100471434 B.NE loc_100471444 ; +0x3c, 0x100471438 STRB WZR, [X19,#0x268] ; +0x40, 0x10047143c B loc_100471468 ; +0x44, 0x100471440 BL GJBaseGameLayer__pauseAudio ; +0x48, 0x100471444 LDR X8, [X19,#0x5A0] ; +0x4c, 0x100471448 LDR W8, [X8,#0x7B4] ; +0x50, 0x10047144c STRB WZR, [X19,#0x268] ; +0x54, 0x100471450 CMP W8, #1 ; +0x58, 0x100471454 B.EQ loc_100471468 ; +0x5c, 0x100471458 LDR X1, [X19,#0x3A8] ; +0x60, 0x10047145c MOV X0, X19 ; +0x64, 0x100471460 BL EditorUI__toggleMode ; +0x68, 0x100471464 MOV X0, X19 ; +0x6c, 0x100471468 BL EditorUI__deselectAll ; +0x70, 0x10047146c LDR X0, [X19,#0x5A0] ; +0x74, 0x100471470 LDR W8, [X0,#0x7B4] ; +0x78, 0x100471474 CBZ W8, loc_10047149C ; +0x7c, 0x100471478 CMP W8, #2 ; +0x80, 0x10047147c B.EQ loc_100471494 ; +0x84, 0x100471480 CMP W8, #1 ; +0x88, 0x100471484 B.NE loc_1004714DC ; +0x8c, 0x100471488 BL sub_100405040 ; +0x90, 0x10047148c B loc_1004714DC ; +0x94, 0x100471490 BL sub_100405110 ; +0x98, 0x100471494 B loc_1004714DC ; +0x9c, 0x100471498 LDR X0, [X0,#0xF50] ; +0xa0, 0x10047149c LDR X8, [X0] ; +0xa4, 0x1004714a0 LDR X8, [X8,#0xA8] ; +0xa8, 0x1004714a4 BLR X8 ; +0xac, 0x1004714a8 STR S0, [X19,#0x630] ; +0xb0, 0x1004714ac LDR X0, [X19,#0x5A0] ; +0xb4, 0x1004714b0 BL LevelEditorLayer__onPlaytest ; +0xb8, 0x1004714b4 LDR X8, [X19,#0x5A0] ; +0xbc, 0x1004714b8 LDR X8, [X8,#0x3090] ; +0xc0, 0x1004714bc CBZ X8, loc_1004714DC ; +0xc4, 0x1004714c0 BL GameManager__sharedState ; +0xc8, 0x1004714c4 ADRL X1, a0150; "0150" ; +0xcc, 0x1004714c8 BL GameManager__getGameVariable ; +0xd4, 0x1004714d0 MOV X21, X0 ; +0xd8, 0x1004714d4 B loc_1004714E0 ; +0xdc, 0x1004714d8 MOV W21, #0 ; +0xe0, 0x1004714dc LDR X8, [X19,#0x5A0] ; +0xe4, 0x1004714e0 LDR W8, [X8,#0x7B4] ; +0xe8, 0x1004714e4 CMP W8, #1 ; +0xec, 0x1004714e8 CSET W1, NE ; +0xf0, 0x1004714ec MOV X0, X19 ; +0xf4, 0x1004714f0 BL EditorUI__showUI ; +0xf8, 0x1004714f4 LDR X0, [X19,#0x3E8] ; +0xfc, 0x1004714f8 LDR X8, [X0] ; +0x100, 0x1004714fc LDR X8, [X8,#0x430] ; +0x104, 0x100471500 BLR X8 ; +0x108, 0x100471504 MOV X22, X0 ; +0x10c, 0x100471508 LDR X8, [X19,#0x5A0] ; +0x110, 0x10047150c LDR W24, [X8,#0x7B4] ; +0x114, 0x100471510 BL cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache ; +0x118, 0x100471514 ADRL X8, aGjPlayeditorbt; "GJ_playEditorBtn_001.png" ; +0x11c, 0x100471518 ADRL X9, aGjPauseeditorb; "GJ_pauseEditorBtn_001.png" ; +0x124, 0x100471520 CMP W24, #1 ; +0x12c, 0x100471528 CSEL X1, X9, X8, EQ ; +0x130, 0x10047152c BL cocos2d__CCSpriteFrameCache__spriteFrameByName ; +0x134, 0x100471530 MOV X1, X0 ; +0x138, 0x100471534 LDR X8, [X22] ; +0x13c, 0x100471538 LDR X8, [X8,#0x488] ; +0x140, 0x10047153c MOV X0, X22 ; +0x144, 0x100471540 BLR X8 ; +0x148, 0x100471544 LDR X0, [X19,#0x3F0] ; +0x14c, 0x100471548 LDRB W8, [X19,#0x635] ; +0x150, 0x10047154c LDR X9, [X0] ; +0x154, 0x100471550 LDR X9, [X9,#0x158] ; +0x158, 0x100471554 MOV W10, #1 ; +0x15c, 0x100471558 BIC W1, W10, W8 ; +0x160, 0x10047155c BLR X9 ; +0x164, 0x100471560 MOV X0, X19 ; +0x168, 0x100471564 BL EditorUI__updatePlaybackBtn ; +0x16c, 0x100471568 CBZ W21, loc_10047157C ; +0x170, 0x10047156c MOV X0, X19 ; +0x174, 0x100471570 MOV X1, X20 ; +0x178, 0x100471574 BL EditorUI__onPlaytest ; +0x17c, 0x100471578 CMP W23, #1 ; +0x180, 0x10047157c B.EQ loc_100471594 ; +0x184, 0x100471580 LDR X8, [X19,#0x5A0] ; +0x188, 0x100471584 MOV W9, #0x35EE ; +0x18c, 0x100471588 MOV W10, #1 ; +0x190, 0x10047158c STRB W10, [X8,X9] ; +0x194, 0x100471590 LDP X29, X30, [SP,#0x30+var_s0] ; +0x198, 0x100471594 LDP X20, X19, [SP,#0x30+var_10] ; +0x19c, 0x100471598 LDP X22, X21, [SP,#0x30+var_20] ; +0x1a0, 0x10047159c LDP X24, X23, [SP+0x30+var_30],#0x40 ; +0x1a4, 0x1004715a0 RET ; +0x1a8, 0x1004715a4