{"type": "func", "start": 3182024, "end": 3182216, "name": "CreateGuidelinesLayer::onRecord", "pseudocode": "// \n// CreateGuidelinesLayer::onRecord from 0x308dc8 to 0x308e88 (192 bytes)\n// \n// 1 xrefs:\n// > FindBPMLayer::onRecord @ 0x308e98\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CreateGuidelinesLayer::onRecord(CreateGuidelinesLayer *a1, cocos2d::CCObject *a2)\n{\n  double v3; // d8\n  cocos2d::CCSprite *m_circleSprite; // r0\n  void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r2\n  char *v6; // [sp+0h] [bp-8h] BYREF\n\n  a1->m_offsetInput->onClickTrackNode(a1->m_offsetInput, 0);\n  CCTextInputNode::getString((CCTextInputNode *)&v6, (int)a1->m_offsetInput);\n  v3 = atof(v6);\n  sub_774008(&v6);\n  CreateGuidelinesLayer::toggleItems(a1, 1);\n  a1->m_offsetInput->setTouchEnabled(a1->m_offsetInput, 0);\n  *(float *)&v3 = v3;\n  a1->m_elapsed = *(float *)&v3;\n  sub_7753D4((int)&a1->m_guidelineString, (char *)&unk_939830);\n  m_circleSprite = a1->m_circleSprite;\n  a1->m_guidelines = 0;\n  setColor = m_circleSprite->setColor;\n  LOBYTE(v6) = -1;\n  *(_WORD *)((char *)&v6 + 1) = 150;\n  setColor(m_circleSprite, (const cocos2d::ccColor3B *)&v6);\n  ((void (__fastcall *)(cocos2d::CCSprite *, int))a1->m_circleSprite->setScale)(a1->m_circleSprite, 1061997773);\n  a1->playMusic(a1);\n  a1->m_recording = 1;\n  cocos2d::CCNode::scheduleUpdate(a1);\n}", "assembly": "; \n; CreateGuidelinesLayer::onRecord from 0x308dc8 to 0x308e88 (192 bytes)\n; \n; 1 xrefs:\n; > FindBPMLayer::onRecord @ 0x308e98\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x308dc8\nMOV             R4, R0                                                 ; +0x2, 0x308dca\nLDR             R5, =(__stack_chk_guard_ptr - 0x308DD8)                ; +0x4, 0x308dcc\nMOVS            R1, #0                                                 ; +0x6, 0x308dce\nVPUSH           {D8}                                                   ; +0x8, 0x308dd0\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x308dd4\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x308dd6\nLDR.W           R0, [R0,#0x1F8]                                        ; +0x10, 0x308dd8\nLDR             R3, [R5]                                               ; +0x14, 0x308ddc\nSUB             SP, SP, #8                                             ; +0x16, 0x308dde\nSTR             R3, [SP,#8+var_4]                                      ; +0x18, 0x308de0\nLDR             R3, [R0]                                               ; +0x1a, 0x308de2\nLDR.W           R3, [R3,#0x23C]                                        ; +0x1c, 0x308de4\nBLX             R3                                                     ; +0x20, 0x308de8\nMOV             R0, SP; this                                           ; +0x22, 0x308dea\nLDR.W           R1, [R4,#0x1F8]                                        ; +0x24, 0x308dec\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x28, 0x308df0\nLDR             R0, [SP,#8+var_8]; char *                              ; +0x2c, 0x308df4\nBLX             atof                                                   ; +0x2e, 0x308df6\nVMOV            D8, R0, R1                                             ; +0x32, 0x308dfa\nMOV             R0, SP                                                 ; +0x36, 0x308dfe\nBL              sub_774008                                             ; +0x38, 0x308e00\nMOV             R0, R4; this                                           ; +0x3c, 0x308e04\nMOVS            R1, #1; bool                                           ; +0x3e, 0x308e06\nBL              _ZN21CreateGuidelinesLayer11toggleItemsEb; CreateGuidelinesLayer::toggleItems(bool) ; +0x40, 0x308e08\nLDR.W           R0, [R4,#0x1F8]                                        ; +0x44, 0x308e0c\nMOVS            R1, #0                                                 ; +0x48, 0x308e10\nLDR             R3, [R0]                                               ; +0x4a, 0x308e12\nLDR.W           R3, [R3,#0x1EC]                                        ; +0x4c, 0x308e14\nBLX             R3                                                     ; +0x50, 0x308e18\nVCVT.F32.F64    S16, D8                                                ; +0x52, 0x308e1a\nLDR             R1, =(unk_939830 - 0x308E28)                           ; +0x56, 0x308e1e\nADD.W           R0, R4, #0x218; int                                    ; +0x58, 0x308e20\nADD             R1, PC; unk_939830 ; char *                            ; +0x5c, 0x308e24\nVSTR            S16, [R4,#0x20C]                                       ; +0x5e, 0x308e26\nBL              sub_7753D4                                             ; +0x62, 0x308e2a\nLDR.W           R0, [R4,#0x208]                                        ; +0x66, 0x308e2e\nMOVS            R3, #0                                                 ; +0x6a, 0x308e32\nMOVS            R1, #0xFF                                              ; +0x6c, 0x308e34\nSTR.W           R3, [R4,#0x214]                                        ; +0x6e, 0x308e36\nLDR             R2, [R0]                                               ; +0x72, 0x308e3a\nLDR.W           R2, [R2,#0x1D8]                                        ; +0x74, 0x308e3c\nSTRB.W          R1, [SP,#8+var_8]                                      ; +0x78, 0x308e40\nMOVS            R1, #0x96                                              ; +0x7c, 0x308e44\nSTRB.W          R3, [SP,#8+var_8+2]                                    ; +0x7e, 0x308e46\nSTRB.W          R1, [SP,#8+var_8+1]                                    ; +0x82, 0x308e4a\nMOV             R1, SP                                                 ; +0x86, 0x308e4e\nBLX             R2                                                     ; +0x88, 0x308e50\nLDR.W           R0, [R4,#0x208]                                        ; +0x8a, 0x308e52\nLDR             R1, =0x3F4CCCCD                                        ; +0x8e, 0x308e56\nLDR             R3, [R0]                                               ; +0x90, 0x308e58\nLDR             R3, [R3,#0x50]                                         ; +0x92, 0x308e5a\nBLX             R3                                                     ; +0x94, 0x308e5c\nLDR             R3, [R4]                                               ; +0x96, 0x308e5e\nMOV             R0, R4                                                 ; +0x98, 0x308e60\nLDR.W           R3, [R3,#0x294]                                        ; +0x9a, 0x308e62\nBLX             R3                                                     ; +0x9e, 0x308e66\nMOVS            R3, #1                                                 ; +0xa0, 0x308e68\nMOV             R0, R4; this                                           ; +0xa2, 0x308e6a\nSTRB.W          R3, [R4,#0x210]                                        ; +0xa4, 0x308e6c\nBL              _ZN7cocos2d6CCNode14scheduleUpdateEv; cocos2d::CCNode::scheduleUpdate(void) ; +0xa8, 0x308e70\nLDR             R2, [SP,#8+var_4]                                      ; +0xac, 0x308e74\nLDR             R3, [R5]                                               ; +0xae, 0x308e76\nCMP             R2, R3                                                 ; +0xb0, 0x308e78\nBEQ             loc_308E80                                             ; +0xb2, 0x308e7a\nBLX             __stack_chk_fail                                       ; +0xb4, 0x308e7c\nADD             SP, SP, #8                                             ; +0xb8, 0x308e80\nVPOP            {D8}                                                   ; +0xba, 0x308e82\nPOP             {R4-R6,PC}                                             ; +0xbe, 0x308e86", "xrefs": ["FindBPMLayer::onRecord @ 0x308e98"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}