; ; BitmapFontCache::fontWithConfigFile from 0x56b248 to 0x56b49c (596 bytes) ; ; 2 xrefs: ; > MultilineBitmapFont::initWithFont @ 0x58ab4c ; > @ 0x49b00 ; ; 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_80]! ; +0x0, 0x56b248 MOV X29, SP ; +0x4, 0x56b24c STP X21, X22, [SP,#0x80+var_60] ; +0x8, 0x56b250 ADRP X21, #__stack_chk_guard_ptr@PAGE ; +0xc, 0x56b254 ADD X22, X29, #0x80+var_20 ; +0x10, 0x56b258 STR D8, [SP,#0x80+var_30] ; +0x14, 0x56b25c FMOV S8, S0 ; +0x18, 0x56b260 LDR X2, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x56b264 FCVT D0, S0 ; +0x20, 0x56b268 STP X23, X24, [SP,#0x80+var_50] ; +0x24, 0x56b26c LDR X2, [X2] ; +0x28, 0x56b270 MOV X24, X0 ; +0x2c, 0x56b274 ADRP X0, #aSF@PAGE; "%s%f" ; +0x30, 0x56b278 STR X2, [X29,#0x80+var_8] ; +0x34, 0x56b27c ADD X0, X0, #aSF@PAGEOFF; "%s%f" ; +0x38, 0x56b280 STP X19, X20, [SP,#0x80+var_70] ; +0x3c, 0x56b284 STP X25, X26, [SP,#0x80+var_40] ; +0x40, 0x56b288 ADD X20, X29, #0x80+var_10 ; +0x44, 0x56b28c MOV X25, X1 ; +0x48, 0x56b290 BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x4c, 0x56b294 BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x50, 0x56b298 MOV X23, X0 ; +0x54, 0x56b29c MOV X1, X23; char * ; +0x58, 0x56b2a0 MOV X0, X20; int ; +0x5c, 0x56b2a4 MOV X2, X22 ; +0x60, 0x56b2a8 LDR X19, [X24,#0x38] ; +0x64, 0x56b2ac BL sub_D153B8 ; +0x68, 0x56b2b0 MOV X0, X19 ; +0x6c, 0x56b2b4 MOV X1, X20 ; +0x70, 0x56b2b8 BL _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x74, 0x56b2bc ADRP X19, #off_122EFE8@PAGE ; +0x78, 0x56b2c0 LDR X1, [X29,#0x80+var_10] ; +0x7c, 0x56b2c4 MOV X26, X0 ; +0x80, 0x56b2c8 SUB X0, X1, #0x18; p ; +0x84, 0x56b2cc LDR X2, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0x88, 0x56b2d0 CMP X0, X2 ; +0x8c, 0x56b2d4 B.NE loc_56B34C ; +0x90, 0x56b2d8 CBZ X26, loc_56B380 ; +0x94, 0x56b2dc MOV X0, X20; int ; +0x98, 0x56b2e0 MOV X1, X23; char * ; +0x9c, 0x56b2e4 MOV X2, X22 ; +0xa0, 0x56b2e8 LDR X24, [X24,#0x38] ; +0xa4, 0x56b2ec BL sub_D153B8 ; +0xa8, 0x56b2f0 MOV X0, X24 ; +0xac, 0x56b2f4 MOV X1, X20 ; +0xb0, 0x56b2f8 BL _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0xb4, 0x56b2fc LDR X1, [X29,#0x80+var_10] ; +0xb8, 0x56b300 MOV X25, X0 ; +0xbc, 0x56b304 LDR X19, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0xc0, 0x56b308 SUB X0, X1, #0x18; p ; +0xc4, 0x56b30c CMP X0, X19 ; +0xc8, 0x56b310 B.NE loc_56B3EC ; +0xcc, 0x56b314 LDR X1, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xd0, 0x56b318 MOV X0, X25 ; +0xd4, 0x56b31c LDR X2, [X29,#0x80+var_8] ; +0xd8, 0x56b320 LDR X1, [X1] ; +0xdc, 0x56b324 CMP X2, X1 ; +0xe0, 0x56b328 B.NE loc_56B440 ; +0xe4, 0x56b32c LDP X19, X20, [SP,#0x80+var_70] ; +0xe8, 0x56b330 LDP X21, X22, [SP,#0x80+var_60] ; +0xec, 0x56b334 LDP X23, X24, [SP,#0x80+var_50] ; +0xf0, 0x56b338 LDP X25, X26, [SP,#0x80+var_40] ; +0xf4, 0x56b33c LDR D8, [SP,#0x80+var_30] ; +0xf8, 0x56b340 LDP X29, X30, [SP+0x80+var_80],#0x80 ; +0xfc, 0x56b344 RET ; +0x100, 0x56b348 ADRP X2, #pthread_create_ptr_0@PAGE ; +0x104, 0x56b34c LDR X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x108, 0x56b350 CBZ X2, loc_56B420 ; +0x10c, 0x56b354 SUB X1, X1, #8 ; +0x110, 0x56b358 LDAXR W2, [X1] ; +0x114, 0x56b35c SUB W3, W2, #1 ; +0x118, 0x56b360 STLXR W4, W3, [X1] ; +0x11c, 0x56b364 CBNZ W4, loc_56B35C ; +0x120, 0x56b368 CMP W2, WZR ; +0x124, 0x56b36c B.GT loc_56B2DC ; +0x128, 0x56b370 ADD X1, X29, #0x80+var_18 ; +0x12c, 0x56b374 BL j__ZdlPv; operator delete(void *) ; +0x130, 0x56b378 CBNZ X26, loc_56B2E0 ; +0x134, 0x56b37c FMOV S0, S8; float ; +0x138, 0x56b380 MOV X0, X25; this ; +0x13c, 0x56b384 BL _ZN10FontObject20createWithConfigFileEPKcf; FontObject::createWithConfigFile(char const*,float) ; +0x140, 0x56b388 MOV X25, X0 ; +0x144, 0x56b38c MOV X1, X23; char * ; +0x148, 0x56b390 MOV X0, X20; int ; +0x14c, 0x56b394 MOV X2, X22 ; +0x150, 0x56b398 LDR X24, [X24,#0x38] ; +0x154, 0x56b39c BL sub_D153B8 ; +0x158, 0x56b3a0 MOV X0, X24; int ; +0x15c, 0x56b3a4 MOV X1, X25; this ; +0x160, 0x56b3a8 MOV X2, X20 ; +0x164, 0x56b3ac BL _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKSs; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x168, 0x56b3b0 LDR X1, [X29,#0x80+var_10] ; +0x16c, 0x56b3b4 LDR X19, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0x170, 0x56b3b8 SUB X0, X1, #0x18 ; +0x174, 0x56b3bc CMP X0, X19 ; +0x178, 0x56b3c0 B.EQ loc_56B318 ; +0x17c, 0x56b3c4 ADRP X2, #pthread_create_ptr_0@PAGE ; +0x180, 0x56b3c8 LDR X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x184, 0x56b3cc CBZ X2, loc_56B430 ; +0x188, 0x56b3d0 SUB X1, X1, #8 ; +0x18c, 0x56b3d4 LDAXR W2, [X1] ; +0x190, 0x56b3d8 SUB W3, W2, #1 ; +0x194, 0x56b3dc STLXR W4, W3, [X1] ; +0x198, 0x56b3e0 CBZ W4, loc_56B40C ; +0x19c, 0x56b3e4 B loc_56B3D8 ; +0x1a0, 0x56b3e8 ADRP X2, #pthread_create_ptr_0@PAGE ; +0x1a4, 0x56b3ec LDR X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x1a8, 0x56b3f0 CBZ X2, loc_56B430 ; +0x1ac, 0x56b3f4 SUB X1, X1, #8 ; +0x1b0, 0x56b3f8 LDAXR W2, [X1] ; +0x1b4, 0x56b3fc SUB W3, W2, #1 ; +0x1b8, 0x56b400 STLXR W4, W3, [X1] ; +0x1bc, 0x56b404 CBNZ W4, loc_56B3FC ; +0x1c0, 0x56b408 CMP W2, WZR ; +0x1c4, 0x56b40c B.GT loc_56B318 ; +0x1c8, 0x56b410 ADD X1, X29, #0x80+var_18 ; +0x1cc, 0x56b414 BL j__ZdlPv; operator delete(void *) ; +0x1d0, 0x56b418 B loc_56B318 ; +0x1d4, 0x56b41c LDUR W2, [X1,#-8] ; +0x1d8, 0x56b420 SUB W3, W2, #1 ; +0x1dc, 0x56b424 STUR W3, [X1,#-8] ; +0x1e0, 0x56b428 B loc_56B36C ; +0x1e4, 0x56b42c LDUR W2, [X1,#-8] ; +0x1e8, 0x56b430 SUB W3, W2, #1 ; +0x1ec, 0x56b434 STUR W3, [X1,#-8] ; +0x1f0, 0x56b438 B loc_56B40C ; +0x1f4, 0x56b43c BL .__stack_chk_fail ; +0x1f8, 0x56b440 MOV X20, X0 ; +0x1fc, 0x56b444 LDR X0, [X29,#0x80+var_10] ; +0x200, 0x56b448 LDR X19, [X19,#0xFE8] ; +0x204, 0x56b44c SUB X0, X0, #0x18 ; +0x208, 0x56b450 CMP X0, X19 ; +0x20c, 0x56b454 B.EQ loc_56B464 ; +0x210, 0x56b458 ADD X1, X29, #0x80+var_18 ; +0x214, 0x56b45c BL sub_56A880 ; +0x218, 0x56b460 MOV X0, X20 ; +0x21c, 0x56b464 BL _Unwind_Resume ; +0x220, 0x56b468 ADRP X1, #off_122EFE8@PAGE ; +0x224, 0x56b46c MOV X19, X0 ; +0x228, 0x56b470 LDR X0, [X29,#0x80+var_10] ; +0x22c, 0x56b474 LDR X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0x230, 0x56b478 SUB X0, X0, #0x18 ; +0x234, 0x56b47c CMP X0, X1 ; +0x238, 0x56b480 B.EQ loc_56B490 ; +0x23c, 0x56b484 ADD X1, X29, #0x80+var_18 ; +0x240, 0x56b488 BL sub_56A880 ; +0x244, 0x56b48c MOV X0, X19 ; +0x248, 0x56b490 BL _Unwind_Resume ; +0x24c, 0x56b494 B loc_56B444 ; +0x250, 0x56b498