{"type": "func", "start": 4930516, "end": 4930582, "name": "GJDifficultySprite::init", "pseudocode": "// \n// GJDifficultySprite::init from 0x4b3bd4 to 0x4b3c16 (66 bytes)\n// \n// 1 xrefs:\n// > GJDifficultySprite::create @ 0x4b3c58\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\nbool GJDifficultySprite::init(GJDifficultySprite *a1, int a2, GJDifficultyName a3)\n{\n  GJDifficultySprite *v3; // r6\n  char *v5[2]; // [sp+0h] [bp-8h] BYREF\n\n  v5[0] = (char *)a1;\n  v5[1] = (char *)a2;\n  v3 = a1;\n  GJDifficultySprite::getDifficultyFrame((int)v5, (const char *)a2, a3);\n  LOBYTE(v3) = cocos2d::CCSprite::initWithSpriteFrameName(v3, v5[0]);\n  sub_774008(v5);\n  return (char)v3;\n}", "assembly": "; \n; GJDifficultySprite::init from 0x4b3bd4 to 0x4b3c16 (66 bytes)\n; \n; 1 xrefs:\n; > GJDifficultySprite::create @ 0x4b3c58\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            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x4b3bd4\nMOV             R6, R0                                                 ; +0x2, 0x4b3bd6\nLDR             R4, =(__stack_chk_guard_ptr - 0x4B3BE2)                ; +0x4, 0x4b3bd8\nMOV             R0, SP                                                 ; +0x6, 0x4b3bda\nMOV             R5, SP                                                 ; +0x8, 0x4b3bdc\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x4b3bde\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x4b3be0\nLDR             R3, [R4]                                               ; +0xe, 0x4b3be2\nSTR             R3, [SP,#8+var_4]                                      ; +0x10, 0x4b3be4\nBL              _ZN18GJDifficultySprite18getDifficultyFrameEi16GJDifficultyName; GJDifficultySprite::getDifficultyFrame(int,GJDifficultyName) ; +0x12, 0x4b3be6\nMOV             R0, R6; this                                           ; +0x16, 0x4b3bea\nLDR             R1, [SP,#8+var_8]; char *                              ; +0x18, 0x4b3bec\nBL              _ZN7cocos2d8CCSprite23initWithSpriteFrameNameEPKc; cocos2d::CCSprite::initWithSpriteFrameName(char const*) ; +0x1a, 0x4b3bee\nMOV             R6, R0                                                 ; +0x1e, 0x4b3bf2\nMOV             R0, SP                                                 ; +0x20, 0x4b3bf4\nBL              sub_774008                                             ; +0x22, 0x4b3bf6\nLDR             R2, [SP,#8+var_4]                                      ; +0x26, 0x4b3bfa\nLDR             R3, [R4]                                               ; +0x28, 0x4b3bfc\nMOV             R0, R6                                                 ; +0x2a, 0x4b3bfe\nCMP             R2, R3                                                 ; +0x2c, 0x4b3c00\nBEQ             loc_4B3C12                                             ; +0x2e, 0x4b3c02\nBLX             __stack_chk_fail                                       ; +0x30, 0x4b3c04\nMOV             R0, R5                                                 ; +0x34, 0x4b3c08\nBL              sub_774008                                             ; +0x36, 0x4b3c0a\nBL              __cxa_end_cleanup                                      ; +0x3a, 0x4b3c0e\nADD             SP, SP, #8                                             ; +0x3e, 0x4b3c12\nPOP             {R4-R6,PC}                                             ; +0x40, 0x4b3c14", "xrefs": ["GJDifficultySprite::create @ 0x4b3c58"], "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"}