; ; CCLightStrip::draw from 0x5a6ffc to 0x5a7188 (396 bytes) ; ; 2 xrefs: ; > @ 0xa7520 ; > @ 0x1142a28 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; STP X29, X30, [SP,#var_70]! ; +0x0, 0x5a6ffc MOV X29, SP ; +0x4, 0x5a7000 STP X19, X20, [SP,#0x70+var_60] ; +0x8, 0x5a7004 STP D8, D9, [SP,#0x70+var_48] ; +0xc, 0x5a7008 ADRP X19, #__stack_chk_guard_ptr@PAGE ; +0x10, 0x5a700c LDR X1, [X0] ; +0x14, 0x5a7010 STR X21, [SP,#0x70+var_50] ; +0x18, 0x5a7014 MOV X20, X0 ; +0x1c, 0x5a7018 LDR X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x5a701c LDR X1, [X1,#0x150] ; +0x24, 0x5a7020 LDR X2, [X2] ; +0x28, 0x5a7024 STR X2, [X29,#0x70+var_8] ; +0x2c, 0x5a7028 BLR X1 ; +0x30, 0x5a702c UXTB W0, W0 ; +0x34, 0x5a7030 CBNZ W0, loc_5A7060 ; +0x38, 0x5a7034 LDR X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x5a7038 LDR X1, [X29,#0x70+var_8] ; +0x40, 0x5a703c LDR X0, [X19] ; +0x44, 0x5a7040 CMP X1, X0 ; +0x48, 0x5a7044 B.NE loc_5A7184 ; +0x4c, 0x5a7048 LDP X19, X20, [SP,#0x70+var_60] ; +0x50, 0x5a704c LDP D8, D9, [SP,#0x70+var_48] ; +0x54, 0x5a7050 LDR X21, [SP,#0x70+var_50] ; +0x58, 0x5a7054 LDP X29, X30, [SP+0x70+var_70],#0x70 ; +0x5c, 0x5a7058 RET ; +0x60, 0x5a705c FMOV S9, #0.5 ; +0x64, 0x5a7060 MOV W0, #(elf_hash_bucket+0x10A); this ; +0x68, 0x5a7064 MOV W1, #1; unsigned int ; +0x6c, 0x5a7068 ADD X21, X29, #0x70+var_28 ; +0x70, 0x5a706c BL _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x74, 0x5a7070 LDR S0, [X20,#0x150] ; +0x78, 0x5a7074 LDRB W1, [X20,#0x14D]; unsigned __int8 ; +0x7c, 0x5a7078 LDRB W2, [X20,#0x14E]; unsigned __int8 ; +0x80, 0x5a707c FCVTZU W3, S0; unsigned __int8 ; +0x84, 0x5a7080 LDRB W0, [X20,#0x14C]; this ; +0x88, 0x5a7084 BL _ZN7cocos2d13ccDrawColor4BEhhhh; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x8c, 0x5a7088 LDR S2, [X20,#0x13C] ; +0x90, 0x5a708c MOV X0, X21; this ; +0x94, 0x5a7090 LDR S0, [X20,#0x154] ; +0x98, 0x5a7094 FMOV S8, #0.25 ; +0x9c, 0x5a7098 FSUB S0, S0, S2 ; +0xa0, 0x5a709c FMOV S1, WZR; float ; +0xa4, 0x5a70a0 FMADD S8, S0, S8, S2 ; +0xa8, 0x5a70a4 FNEG S0, S8 ; +0xac, 0x5a70a8 FMUL S0, S0, S9; float ; +0xb0, 0x5a70ac BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb4, 0x5a70b0 FMOV S1, WZR; float ; +0xb8, 0x5a70b4 ADD X0, X21, #8; this ; +0xbc, 0x5a70b8 FMUL S0, S8, S9; float ; +0xc0, 0x5a70bc BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc4, 0x5a70c0 LDR S0, [X20,#0x154] ; +0xc8, 0x5a70c4 ADD X0, X21, #0x10; this ; +0xcc, 0x5a70c8 LDR S1, [X20,#0x158]; float ; +0xd0, 0x5a70cc FMUL S0, S0, S9; float ; +0xd4, 0x5a70d0 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xd8, 0x5a70d4 LDR S0, [X20,#0x154] ; +0xdc, 0x5a70d8 ADD X0, X21, #0x18; this ; +0xe0, 0x5a70dc LDR S1, [X20,#0x158]; float ; +0xe4, 0x5a70e0 FNEG S0, S0 ; +0xe8, 0x5a70e4 FMUL S0, S0, S9; float ; +0xec, 0x5a70e8 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xf0, 0x5a70ec LDRB W4, [X20,#0x14D] ; +0xf4, 0x5a70f0 MOV X3, #0 ; +0xf8, 0x5a70f4 LDR S3, =0x437F0000 ; +0xfc, 0x5a70f8 LDRB W5, [X20,#0x14C] ; +0x100, 0x5a70fc LDRB W0, [X20,#0x14E] ; +0x104, 0x5a7100 MOV X2, #0 ; +0x108, 0x5a7104 SCVTF S0, W4 ; +0x10c, 0x5a7108 MOV W1, #4 ; +0x110, 0x5a710c SCVTF S2, W5 ; +0x114, 0x5a7110 SCVTF S1, W0 ; +0x118, 0x5a7114 MOV X0, X21 ; +0x11c, 0x5a7118 LDR S4, [X20,#0x150] ; +0x120, 0x5a711c FDIV S0, S0, S3 ; +0x124, 0x5a7120 FDIV S2, S2, S3 ; +0x128, 0x5a7124 FDIV S1, S1, S3 ; +0x12c, 0x5a7128 FMOV W20, S0 ; +0x130, 0x5a712c FDIV S0, S4, S3 ; +0x134, 0x5a7130 FMOV W5, S2 ; +0x138, 0x5a7134 BFXIL X3, X5, #0, #0x20 ; ' ' ; +0x13c, 0x5a7138 BFI X3, X20, #0x20, #0x20 ; ' ' ; +0x140, 0x5a713c FMOV W4, S1 ; +0x144, 0x5a7140 BFXIL X2, X4, #0, #0x20 ; ' ' ; +0x148, 0x5a7144 UBFX X4, X3, #0, #0x20 ; ' ' ; +0x14c, 0x5a7148 LSR X3, X3, #0x20 ; ' ' ; +0x150, 0x5a714c FMOV W5, S0 ; +0x154, 0x5a7150 FMOV S1, W3 ; +0x158, 0x5a7154 BFI X2, X5, #0x20, #0x20 ; ' ' ; +0x15c, 0x5a7158 UBFX X3, X2, #0, #0x20 ; ' ' ; +0x160, 0x5a715c LSR X2, X2, #0x20 ; ' ' ; +0x164, 0x5a7160 FMOV S0, W4 ; +0x168, 0x5a7164 FMOV S2, W3 ; +0x16c, 0x5a7168 FMOV S3, W2 ; +0x170, 0x5a716c BL _ZN7cocos2d15ccDrawSolidPolyEPKNS_7CCPointEjNS_10_ccColor4FE; cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const*,uint,cocos2d::_ccColor4F) ; +0x174, 0x5a7170 MOV W0, #(dword_0+1); this ; +0x178, 0x5a7174 MOV W1, #0x303; unsigned int ; +0x17c, 0x5a7178 BL _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x180, 0x5a717c B loc_5A7038 ; +0x184, 0x5a7180 BL .__stack_chk_fail ; +0x188, 0x5a7184