; ; CCSpriteWithHue::draw from 0x100238a60 to 0x100238bdc (380 bytes) ; ; 2 xrefs: ; > @ 0x100904038 ; > @ 0x100904600 ; ; 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:20 +0000 ; LDRB W8, [X0,#0x22F] ; +0x0, 0x100238a60 TBNZ W8, #0, locret_100238BD8 ; +0x4, 0x100238a64 STP X20, X19, [SP,#-0x10+var_10]! ; +0x8, 0x100238a68 STP X29, X30, [SP,#0x10+var_s0] ; +0xc, 0x100238a6c ADD X29, SP, #0x10 ; +0x10, 0x100238a70 MOV X19, X0 ; +0x14, 0x100238a74 LDRB W8, [X0,#0x149] ; +0x18, 0x100238a78 CBZ W8, loc_100238BD0 ; +0x1c, 0x100238a7c LDR W0, [X19,#0xF8] ; +0x20, 0x100238a80 BL cocos2d__ccGLEnable ; +0x24, 0x100238a84 LDR X8, [X19] ; +0x28, 0x100238a88 LDR X8, [X8,#0x290] ; +0x2c, 0x100238a8c MOV X0, X19 ; +0x30, 0x100238a90 BLR X8 ; +0x34, 0x100238a94 LDR X8, [X19] ; +0x38, 0x100238a98 LDR X8, [X8,#0x290] ; +0x3c, 0x100238a9c MOV X0, X19 ; +0x40, 0x100238aa0 BLR X8 ; +0x44, 0x100238aa4 BL cocos2d__CCGLProgram__use ; +0x48, 0x100238aa8 LDR X8, [X19] ; +0x4c, 0x100238aac LDR X8, [X8,#0x290] ; +0x50, 0x100238ab0 MOV X0, X19 ; +0x54, 0x100238ab4 BLR X8 ; +0x58, 0x100238ab8 BL cocos2d__CCGLProgram__setUniformsForBuiltins ; +0x5c, 0x100238abc LDR W0, [X19,#0x194] ; +0x60, 0x100238ac0 LDR W1, [X19,#0x198] ; +0x64, 0x100238ac4 BL cocos2d__ccGLBlendFunc ; +0x68, 0x100238ac8 LDR X0, [X19,#0x1A0] ; +0x6c, 0x100238acc LDR X8, [X0] ; +0x70, 0x100238ad0 LDR X8, [X8,#0x68] ; +0x74, 0x100238ad4 BLR X8 ; +0x78, 0x100238ad8 BL cocos2d__ccGLBindTexture2D ; +0x7c, 0x100238adc MOV W0, #7 ; +0x80, 0x100238ae0 BL cocos2d__ccGLEnableVertexAttribs ; +0x84, 0x100238ae4 LDR X8, [X19] ; +0x88, 0x100238ae8 LDR X8, [X8,#0x290] ; +0x8c, 0x100238aec MOV X0, X19 ; +0x90, 0x100238af0 BLR X8 ; +0x94, 0x100238af4 LDR W1, [X19,#0x288] ; +0x98, 0x100238af8 ADD X2, X19, #0x264 ; +0x9c, 0x100238afc MOV W3, #1 ; +0xa0, 0x100238b00 BL cocos2d__CCGLProgram__setUniformLocationWithMatrix3fv ; +0xa4, 0x100238b04 LDR X8, [X19] ; +0xa8, 0x100238b08 LDR X8, [X8,#0x290] ; +0xac, 0x100238b0c MOV X0, X19 ; +0xb0, 0x100238b10 BLR X8 ; +0xb4, 0x100238b14 LDR W1, [X19,#0x28C] ; +0xb8, 0x100238b18 LDR B0, [X19,#0x148] ; +0xbc, 0x100238b1c UCVTF S0, S0 ; +0xc0, 0x100238b20 MOV W8, #0x437F0000 ; +0xc4, 0x100238b24 FMOV S1, W8 ; +0xc8, 0x100238b28 FDIV S0, S0, S1 ; +0xcc, 0x100238b2c BL cocos2d__CCGLProgram__setUniformLocationWith1f ; +0xd0, 0x100238b30 LDR X8, [X19] ; +0xd4, 0x100238b34 LDR X8, [X8,#0x290] ; +0xd8, 0x100238b38 MOV X0, X19 ; +0xdc, 0x100238b3c BLR X8 ; +0xe0, 0x100238b40 LDR W1, [X19,#0x290] ; +0xe4, 0x100238b44 LDR S0, [X19,#0x258] ; +0xe8, 0x100238b48 LDR S1, [X19,#0x25C] ; +0xec, 0x100238b4c LDR S2, [X19,#0x260] ; +0xf0, 0x100238b50 BL cocos2d__CCGLProgram__setUniformLocationWith3f ; +0xf4, 0x100238b54 ADD X5, X19, #0x1CC; ptr ; +0xf8, 0x100238b58 MOV W0, #0; indx ; +0xfc, 0x100238b5c MOV W1, #3; size ; +0x100, 0x100238b60 MOV W2, #0x1406; type ; +0x104, 0x100238b64 MOV W3, #0; normalized ; +0x108, 0x100238b68 MOV W4, #0x18; stride ; +0x10c, 0x100238b6c BL _glVertexAttribPointer ; +0x110, 0x100238b70 ADD X5, X19, #0x1DC; ptr ; +0x114, 0x100238b74 MOV W0, #2; indx ; +0x118, 0x100238b78 MOV W1, #2; size ; +0x11c, 0x100238b7c MOV W2, #0x1406; type ; +0x120, 0x100238b80 MOV W3, #0; normalized ; +0x124, 0x100238b84 MOV W4, #0x18; stride ; +0x128, 0x100238b88 BL _glVertexAttribPointer ; +0x12c, 0x100238b8c ADD X5, X19, #0x1D8; ptr ; +0x130, 0x100238b90 MOV W0, #1; indx ; +0x134, 0x100238b94 MOV W1, #4; size ; +0x138, 0x100238b98 MOV W2, #0x1401; type ; +0x13c, 0x100238b9c MOV W3, #1; normalized ; +0x140, 0x100238ba0 MOV W4, #0x18; stride ; +0x144, 0x100238ba4 BL _glVertexAttribPointer ; +0x148, 0x100238ba8 MOV W0, #5; mode ; +0x14c, 0x100238bac MOV W1, #0; first ; +0x150, 0x100238bb0 MOV W2, #4; count ; +0x154, 0x100238bb4 BL _glDrawArrays ; +0x158, 0x100238bb8 ADRL X8, dword_100A0F904 ; +0x15c, 0x100238bbc LDR W9, [X8] ; +0x164, 0x100238bc4 ADD W9, W9, #1 ; +0x168, 0x100238bc8 STR W9, [X8] ; +0x16c, 0x100238bcc LDP X29, X30, [SP,#0x10+var_s0] ; +0x170, 0x100238bd0 LDP X20, X19, [SP+0x10+var_10],#0x20 ; +0x174, 0x100238bd4 RET ; +0x178, 0x100238bd8