{"type": "func", "start": 4702756, "end": 4704326, "name": "GJBaseGameLayer::parentForZLayer", "pseudocode": "// \n// GJBaseGameLayer::parentForZLayer from 0x47c224 to 0x47c846 (1570 bytes)\n// \n// 4 xrefs:\n// > GameObject::parentForZLayer @ 0x355af2\n// > LevelEditorLayer::claimCustomParticle @ 0x364f60\n// > GJBaseGameLayer::parentForZLayer @ 0x47c272\n// > GJBaseGameLayer::claimCustomParticle @ 0x489c2e\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\ncocos2d::CCNode *GJBaseGameLayer::parentForZLayer(GJBaseGameLayer *a1, int a2, bool a3, int a4, int a5)\n{\n  int v8; // r7\n  intptr_t v9; // r8\n  cocos2d::CCNode *result; // r0\n  cocos2d::CCNode *v11; // r0\n  cocos2d::CCNode *v12; // r9\n  CCNodeContainer *v13; // r4\n  __int64 v14; // r0\n  cocos2d::CCSpriteBatchNode *v15; // r0\n  void (__fastcall *setBlendFunc)(cocos2d::CCSpriteBatchNode *__hidden, cocos2d::ccBlendFunc); // r6\n  cocos2d::CCNode *m_uiTriggerUI; // r5\n  void (__fastcall *addChild_0)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // r6\n  int v19; // r0\n  _DWORD v20[3]; // [sp+8h] [bp-Ch] BYREF\n\n  v8 = a3;\n  if ( a5 )\n  {\n    if ( a4 == 5 )\n      v8 = 1;\n    v9 = 100000 * a4 + 1000000 + 100 * a2 + v8;\n    result = (cocos2d::CCNode *)cocos2d::CCDictionary::objectForKey(a1->m_uiObjectLayers, v9);\n    if ( !result )\n    {\n      v11 = GJBaseGameLayer::parentForZLayer(a1, a2, v8, a4, 0);\n      v12 = v11;\n      if ( a4 == 4 )\n      {\n        v13 = CCNodeContainer::create();\n      }\n      else\n      {\n        v14 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v11->__vftable[1].copyWithZone)(v11);\n        v15 = cocos2d::CCSpriteBatchNode::createWithTexture(\n                (cocos2d::CCSpriteBatchNode *)v14,\n                (cocos2d::CCTexture2D *)HIDWORD(v14));\n        v13 = (CCNodeContainer *)v15;\n        if ( v8 )\n        {\n          setBlendFunc = v15->setBlendFunc;\n          v20[0] = 770;\n          v20[1] = 1;\n          ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int, _DWORD *))setBlendFunc)(v15, 770, 1, v20);\n        }\n      }\n      cocos2d::CCDictionary::setObject(a1->m_uiObjectLayers, v13, v9);\n      m_uiTriggerUI = a1->m_uiTriggerUI;\n      addChild_0 = m_uiTriggerUI->addChild_0;\n      v19 = v12->getZOrder(v12);\n      addChild_0(m_uiTriggerUI, v13, v19);\n      return v13;\n    }\n  }\n  else if ( a4 == 5 )\n  {\n    if ( a2 >= -4 )\n    {\n      if ( a2 >= -2 )\n      {\n        if ( a2 >= 0 )\n        {\n          if ( a2 > 1 )\n          {\n            if ( a2 > 4 )\n            {\n              if ( a2 == 5 )\n              {\n                return a1->m_glowLayerT1;\n              }\n              else if ( a2 > 7 )\n              {\n                if ( a2 > 9 )\n                  return a1->m_glowLayerT4;\n                else\n                  return a1->m_glowLayerT3;\n              }\n              else\n              {\n                return a1->m_glowLayerT2;\n              }\n            }\n            else\n            {\n              return a1->m_glowLayerB1;\n            }\n          }\n          else\n          {\n            return a1->m_glowLayerB2;\n          }\n        }\n        else\n        {\n          return a1->m_glowLayerB3;\n        }\n      }\n      else\n      {\n        return a1->m_glowLayerB4;\n      }\n    }\n    else\n    {\n      return a1->m_glowLayerB5;\n    }\n  }\n  else if ( a3 )\n  {\n    if ( a2 >= -4 )\n    {\n      if ( a2 >= -2 )\n      {\n        if ( a2 >= 0 )\n        {\n          if ( a2 > 1 )\n          {\n            if ( a2 > 3 )\n            {\n              if ( a2 == 4 )\n              {\n                return a1->m_gameBlendingLayerB0;\n              }\n              else if ( a2 == 5 )\n              {\n                return a1->m_gameBlendingLayerT1;\n              }\n              else if ( a2 > 7 )\n              {\n                if ( a2 > 9 )\n                {\n                  if ( a2 > 11 )\n                    return a1->m_gameBlendingLayerT5;\n                  else\n                    return a1->m_gameBlendingLayerT4;\n                }\n                else\n                {\n                  return a1->m_gameBlendingLayerT3;\n                }\n              }\n              else\n              {\n                return a1->m_gameBlendingLayerT2;\n              }\n            }\n            else\n            {\n              return a1->m_gameBlendingLayerB1;\n            }\n          }\n          else\n          {\n            return a1->m_gameBlendingLayerB2;\n          }\n        }\n        else\n        {\n          return a1->m_gameBlendingLayerB3;\n        }\n      }\n      else\n      {\n        return a1->m_gameBlendingLayerB4;\n      }\n    }\n    else\n    {\n      return a1->m_gameBlendingLayerB5;\n    }\n  }\n  else if ( a2 >= -4 )\n  {\n    if ( a2 >= -2 )\n    {\n      if ( a2 >= 0 )\n      {\n        if ( a2 > 1 )\n        {\n          if ( a2 > 3 )\n          {\n            if ( a2 > 5 )\n            {\n              if ( a2 > 7 )\n              {\n                if ( a2 > 9 )\n                  return a1->m_gameLayerT4;\n                else\n                  return a1->m_gameLayerT3;\n              }\n              else\n              {\n                return a1->m_gameLayerT2;\n              }\n            }\n            else\n            {\n              return a1->m_gameLayerT1;\n            }\n          }\n          else\n          {\n            return a1->m_gameLayerB1;\n          }\n        }\n        else\n        {\n          return a1->m_gameLayerB2;\n        }\n      }\n      else\n      {\n        return a1->m_gameLayerB3;\n      }\n    }\n    else\n    {\n      return a1->m_gameLayerB4;\n    }\n  }\n  else\n  {\n    return a1->m_gameLayerB5;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::parentForZLayer from 0x47c224 to 0x47c846 (1570 bytes)\n; \n; 4 xrefs:\n; > GameObject::parentForZLayer @ 0x355af2\n; > LevelEditorLayer::claimCustomParticle @ 0x364f60\n; > GJBaseGameLayer::parentForZLayer @ 0x47c272\n; > GJBaseGameLayer::claimCustomParticle @ 0x489c2e\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.W          {R4-R9,LR}                                             ; +0x0, 0x47c224\nSUB             SP, SP, #0x14                                          ; +0x4, 0x47c228\nMOV             R6, R3                                                 ; +0x6, 0x47c22a\nMOV             R5, R0                                                 ; +0x8, 0x47c22c\nLDR             R3, [SP,#0x14+arg_0]                                   ; +0xa, 0x47c22e\nMOV             R4, R1                                                 ; +0xc, 0x47c230\nMOV             R7, R2                                                 ; +0xe, 0x47c232\nCMP             R3, #0                                                 ; +0x10, 0x47c234\nBEQ             loc_47C2E0                                             ; +0x12, 0x47c236\nLDR             R3, =0x186A0                                           ; +0x14, 0x47c238\nMOV.W           R8, #0x64 ; 'd'                                        ; +0x16, 0x47c23a\nCMP             R6, #5                                                 ; +0x1a, 0x47c23e\nMUL             R3, R3, R6                                             ; +0x1c, 0x47c240\nIT EQ                                                                  ; +0x20, 0x47c244\nMOVEQ           R7, #1                                                 ; +0x22, 0x47c246\nADD.W           R3, R3, #0xF4000                                       ; +0x24, 0x47c248\nADD.W           R3, R3, #0x240                                         ; +0x28, 0x47c24c\nMLA             R8, R8, R1, R3                                         ; +0x2c, 0x47c250\nMOVW            R3, #0x2C88                                            ; +0x30, 0x47c254\nLDR             R0, [R0,R3]; this                                      ; +0x34, 0x47c258\nADD             R8, R7                                                 ; +0x36, 0x47c25a\nMOV             R1, R8; int                                            ; +0x38, 0x47c25c\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x3a, 0x47c25e\nCMP             R0, #0                                                 ; +0x3e, 0x47c262\nBNE.W           loc_47C840                                             ; +0x40, 0x47c264\nSTR             R0, [SP,#0x14+var_14]; int                             ; +0x44, 0x47c268\nMOV             R1, R4; int                                            ; +0x46, 0x47c26a\nMOV             R0, R5; this                                           ; +0x48, 0x47c26c\nMOV             R2, R7; bool                                           ; +0x4a, 0x47c26e\nMOV             R3, R6; int                                            ; +0x4c, 0x47c270\nBL              _ZN15GJBaseGameLayer15parentForZLayerEibii; GJBaseGameLayer::parentForZLayer(int,bool,int,int) ; +0x4e, 0x47c272\nCMP             R6, #4                                                 ; +0x52, 0x47c276\nMOV             R9, R0                                                 ; +0x54, 0x47c278\nBNE             loc_47C284                                             ; +0x56, 0x47c27a\nBL              _ZN15CCNodeContainer6createEv; CCNodeContainer::create(void) ; +0x58, 0x47c27c\nMOV             R4, R0                                                 ; +0x5c, 0x47c280\nB               loc_47C2B0                                             ; +0x5e, 0x47c282\nLDR             R3, [R0]                                               ; +0x60, 0x47c284\nLDR.W           R3, [R3,#0x1B8]                                        ; +0x62, 0x47c286\nBLX             R3                                                     ; +0x66, 0x47c28a\nBL              _ZN7cocos2d17CCSpriteBatchNode17createWithTextureEPNS_11CCTexture2DE; cocos2d::CCSpriteBatchNode::createWithTexture(cocos2d::CCTexture2D *) ; +0x68, 0x47c28c\nMOV             R4, R0                                                 ; +0x6c, 0x47c290\nCBZ             R7, loc_47C2B0                                         ; +0x6e, 0x47c292\nLDR             R3, =(unk_9ABF60 - 0x47C29C)                           ; +0x70, 0x47c294\nLDR             R2, [R4]                                               ; +0x72, 0x47c296\nADD             R3, PC; unk_9ABF60                                     ; +0x74, 0x47c298\nLDM.W           R3, {R0,R1}                                            ; +0x76, 0x47c29a\nADD             R3, SP, #0x14+var_C                                    ; +0x7a, 0x47c29e\nLDR.W           R6, [R2,#0x1C0]                                        ; +0x7c, 0x47c2a0\nSTM.W           R3, {R0,R1}                                            ; +0x80, 0x47c2a4\nMOV             R0, R4                                                 ; +0x84, 0x47c2a8\nLDM.W           R3, {R1,R2}                                            ; +0x86, 0x47c2aa\nBLX             R6                                                     ; +0x8a, 0x47c2ae\nMOVW            R3, #0x2C88                                            ; +0x8c, 0x47c2b0\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x90, 0x47c2b4\nLDR             R0, [R5,R3]; this                                      ; +0x92, 0x47c2b6\nMOV             R2, R8; int                                            ; +0x94, 0x47c2b8\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0x96, 0x47c2ba\nMOVW            R3, #0x2C8C                                            ; +0x9a, 0x47c2be\nLDR             R5, [R5,R3]                                            ; +0x9e, 0x47c2c2\nMOV             R0, R9                                                 ; +0xa0, 0x47c2c4\nLDR             R3, [R5]                                               ; +0xa2, 0x47c2c6\nLDR.W           R6, [R3,#0xE0]                                         ; +0xa4, 0x47c2c8\nLDR.W           R3, [R9]                                               ; +0xa8, 0x47c2cc\nLDR             R3, [R3,#0x34]                                         ; +0xac, 0x47c2d0\nBLX             R3                                                     ; +0xae, 0x47c2d2\nMOV             R1, R4                                                 ; +0xb0, 0x47c2d4\nMOV             R2, R0                                                 ; +0xb2, 0x47c2d6\nMOV             R0, R5                                                 ; +0xb4, 0x47c2d8\nBLX             R6                                                     ; +0xb6, 0x47c2da\nMOV             R0, R4                                                 ; +0xb8, 0x47c2dc\nB               loc_47C840                                             ; +0xba, 0x47c2de\nCMP             R6, #5                                                 ; +0xbc, 0x47c2e0\nBNE             loc_47C338                                             ; +0xbe, 0x47c2e2\nADDS            R0, R1, #4                                             ; +0xc0, 0x47c2e4\nBGE             loc_47C2EE                                             ; +0xc2, 0x47c2e6\nLDR.W           R0, [R5,#0x888]                                        ; +0xc4, 0x47c2e8\nB               loc_47C840                                             ; +0xc8, 0x47c2ec\nADDS            R1, #2                                                 ; +0xca, 0x47c2ee\nBGE             loc_47C2F8                                             ; +0xcc, 0x47c2f0\nLDR.W           R0, [R5,#0x850]                                        ; +0xce, 0x47c2f2\nB               loc_47C840                                             ; +0xd2, 0x47c2f6\nCMP             R4, #0                                                 ; +0xd4, 0x47c2f8\nBGE             loc_47C302                                             ; +0xd6, 0x47c2fa\nLDR.W           R0, [R5,#0x818]                                        ; +0xd8, 0x47c2fc\nB               loc_47C840                                             ; +0xdc, 0x47c300\nCMP             R4, #1                                                 ; +0xde, 0x47c302\nBGT             loc_47C30C                                             ; +0xe0, 0x47c304\nLDR.W           R0, [R5,#0x7E0]                                        ; +0xe2, 0x47c306\nB               loc_47C840                                             ; +0xe6, 0x47c30a\nCMP             R4, #4                                                 ; +0xe8, 0x47c30c\nBGT             loc_47C316                                             ; +0xea, 0x47c30e\nLDR.W           R0, [R5,#0x7A8]                                        ; +0xec, 0x47c310\nB               loc_47C840                                             ; +0xf0, 0x47c314\nCMP             R4, #5                                                 ; +0xf2, 0x47c316\nBNE             loc_47C320                                             ; +0xf4, 0x47c318\nLDR.W           R0, [R5,#0x758]                                        ; +0xf6, 0x47c31a\nB               loc_47C840                                             ; +0xfa, 0x47c31e\nCMP             R4, #7                                                 ; +0xfc, 0x47c320\nBGT             loc_47C32A                                             ; +0xfe, 0x47c322\nLDR.W           R0, [R5,#0x720]                                        ; +0x100, 0x47c324\nB               loc_47C840                                             ; +0x104, 0x47c328\nCMP             R4, #9                                                 ; +0x106, 0x47c32a\nITE LE                                                                 ; +0x108, 0x47c32c\nLDRLE.W         R0, [R5,#0x6E8]                                        ; +0x10a, 0x47c32e\nLDRGT.W         R0, [R5,#0x6B0]                                        ; +0x10e, 0x47c332\nB               loc_47C840                                             ; +0x112, 0x47c336\nCMP             R6, #4                                                 ; +0x114, 0x47c338\nBNE             loc_47C390                                             ; +0x116, 0x47c33a\nADDS            R2, R1, #4                                             ; +0x118, 0x47c33c\nBGE             loc_47C346                                             ; +0x11a, 0x47c33e\nLDR.W           R0, [R0,#0x88C]                                        ; +0x11c, 0x47c340\nB               loc_47C840                                             ; +0x120, 0x47c344\nADDS            R3, R1, #2                                             ; +0x122, 0x47c346\nBGE             loc_47C350                                             ; +0x124, 0x47c348\nLDR.W           R0, [R0,#0x854]                                        ; +0x126, 0x47c34a\nB               loc_47C840                                             ; +0x12a, 0x47c34e\nCMP             R1, #0                                                 ; +0x12c, 0x47c350\nBGE             loc_47C35A                                             ; +0x12e, 0x47c352\nLDR.W           R0, [R0,#0x81C]                                        ; +0x130, 0x47c354\nB               loc_47C840                                             ; +0x134, 0x47c358\nCMP             R1, #1                                                 ; +0x136, 0x47c35a\nBGT             loc_47C364                                             ; +0x138, 0x47c35c\nLDR.W           R0, [R0,#0x7E4]                                        ; +0x13a, 0x47c35e\nB               loc_47C840                                             ; +0x13e, 0x47c362\nCMP             R1, #3                                                 ; +0x140, 0x47c364\nBGT             loc_47C36E                                             ; +0x142, 0x47c366\nLDR.W           R0, [R0,#0x7AC]                                        ; +0x144, 0x47c368\nB               loc_47C840                                             ; +0x148, 0x47c36c\nCMP             R1, #5                                                 ; +0x14a, 0x47c36e\nBGT             loc_47C378                                             ; +0x14c, 0x47c370\nLDR.W           R0, [R0,#0x75C]                                        ; +0x14e, 0x47c372\nB               loc_47C840                                             ; +0x152, 0x47c376\nCMP             R1, #7                                                 ; +0x154, 0x47c378\nBGT             loc_47C382                                             ; +0x156, 0x47c37a\nLDR.W           R0, [R0,#0x724]                                        ; +0x158, 0x47c37c\nB               loc_47C840                                             ; +0x15c, 0x47c380\nCMP             R1, #9                                                 ; +0x15e, 0x47c382\nITE LE                                                                 ; +0x160, 0x47c384\nLDRLE.W         R0, [R0,#0x6EC]                                        ; +0x162, 0x47c386\nLDRGT.W         R0, [R5,#0x6B4]                                        ; +0x166, 0x47c38a\nB               loc_47C840                                             ; +0x16a, 0x47c38e\nSUBS            R6, #1; switch 8 cases                                 ; +0x16c, 0x47c390\nCMP             R2, #0                                                 ; +0x16e, 0x47c392\nBEQ.W           loc_47C622                                             ; +0x170, 0x47c394\nCMP             R6, #7                                                 ; +0x174, 0x47c398\nBHI.W           def_47C39E; jumptable 0047C39E default case, cases 4,5,7 ; +0x176, 0x47c39a\nTBH.W           [PC,R6,LSL#1]; switch jump                             ; +0x17a, 0x47c39e\nDCW 0x70; jump table for switch statement                              ; +0x17e, 0x47c3a2\nDCW 0xA4                                                               ; +0x180, 0x47c3a4\nDCW 0xD5                                                               ; +0x182, 0x47c3a6\nDCW 0x10C                                                              ; +0x184, 0x47c3a8\nDCW 0x10C                                                              ; +0x186, 0x47c3aa\nDCW 0x3C                                                               ; +0x188, 0x47c3ac\nDCW 0x10C                                                              ; +0x18a, 0x47c3ae\nDCW 8                                                                  ; +0x18c, 0x47c3b0\nADDS            R7, R1, #4; jumptable 0047C39E case 8                  ; +0x18e, 0x47c3b2\nBGE             loc_47C3BC                                             ; +0x190, 0x47c3b4\nLDR.W           R0, [R0,#0x8AC]                                        ; +0x192, 0x47c3b6\nB               loc_47C840                                             ; +0x196, 0x47c3ba\nADDS            R6, R1, #2                                             ; +0x198, 0x47c3bc\nBGE             loc_47C3C6                                             ; +0x19a, 0x47c3be\nLDR.W           R0, [R0,#0x874]                                        ; +0x19c, 0x47c3c0\nB               loc_47C840                                             ; +0x1a0, 0x47c3c4\nCMP             R1, #0                                                 ; +0x1a2, 0x47c3c6\nBGE             loc_47C3D0                                             ; +0x1a4, 0x47c3c8\nLDR.W           R0, [R0,#0x83C]                                        ; +0x1a6, 0x47c3ca\nB               loc_47C840                                             ; +0x1aa, 0x47c3ce\nCMP             R1, #1                                                 ; +0x1ac, 0x47c3d0\nBGT             loc_47C3DA                                             ; +0x1ae, 0x47c3d2\nLDR.W           R0, [R0,#0x804]                                        ; +0x1b0, 0x47c3d4\nB               loc_47C840                                             ; +0x1b4, 0x47c3d8\nCMP             R1, #3                                                 ; +0x1b6, 0x47c3da\nBGT             loc_47C3E4                                             ; +0x1b8, 0x47c3dc\nLDR.W           R0, [R0,#0x7CC]                                        ; +0x1ba, 0x47c3de\nB               loc_47C840                                             ; +0x1be, 0x47c3e2\nCMP             R1, #4                                                 ; +0x1c0, 0x47c3e4\nBNE             loc_47C3EE                                             ; +0x1c2, 0x47c3e6\nLDR.W           R0, [R0,#0x798]                                        ; +0x1c4, 0x47c3e8\nB               loc_47C840                                             ; +0x1c8, 0x47c3ec\nCMP             R1, #5                                                 ; +0x1ca, 0x47c3ee\nBNE             loc_47C3F8                                             ; +0x1cc, 0x47c3f0\nLDR.W           R0, [R0,#0x77C]                                        ; +0x1ce, 0x47c3f2\nB               loc_47C840                                             ; +0x1d2, 0x47c3f6\nCMP             R1, #7                                                 ; +0x1d4, 0x47c3f8\nBGT             loc_47C402                                             ; +0x1d6, 0x47c3fa\nLDR.W           R0, [R0,#0x744]                                        ; +0x1d8, 0x47c3fc\nB               loc_47C840                                             ; +0x1dc, 0x47c400\nCMP             R1, #9                                                 ; +0x1de, 0x47c402\nBGT             loc_47C40C                                             ; +0x1e0, 0x47c404\nLDR.W           R0, [R0,#0x70C]                                        ; +0x1e2, 0x47c406\nB               loc_47C840                                             ; +0x1e6, 0x47c40a\nCMP             R1, #0xB                                               ; +0x1e8, 0x47c40c\nITE LE                                                                 ; +0x1ea, 0x47c40e\nLDRLE.W         R0, [R0,#0x6D4]                                        ; +0x1ec, 0x47c410\nLDRGT.W         R0, [R5,#0x6A0]                                        ; +0x1f0, 0x47c414\nB               loc_47C840                                             ; +0x1f4, 0x47c418\nADDS            R0, R1, #4; jumptable 0047C39E case 6                  ; +0x1f6, 0x47c41a\nBGE             loc_47C424                                             ; +0x1f8, 0x47c41c\nLDR.W           R0, [R5,#0x8A4]                                        ; +0x1fa, 0x47c41e\nB               loc_47C840                                             ; +0x1fe, 0x47c422\nADDS            R1, #2                                                 ; +0x200, 0x47c424\nBGE             loc_47C42E                                             ; +0x202, 0x47c426\nLDR.W           R0, [R5,#0x86C]                                        ; +0x204, 0x47c428\nB               loc_47C840                                             ; +0x208, 0x47c42c\nCMP             R4, #0                                                 ; +0x20a, 0x47c42e\nBGE             loc_47C438                                             ; +0x20c, 0x47c430\nLDR.W           R0, [R5,#0x834]                                        ; +0x20e, 0x47c432\nB               loc_47C840                                             ; +0x212, 0x47c436\nCMP             R4, #1                                                 ; +0x214, 0x47c438\nBGT             loc_47C442                                             ; +0x216, 0x47c43a\nLDR.W           R0, [R5,#0x7FC]                                        ; +0x218, 0x47c43c\nB               loc_47C840                                             ; +0x21c, 0x47c440\nCMP             R4, #3                                                 ; +0x21e, 0x47c442\nBGT             loc_47C44C                                             ; +0x220, 0x47c444\nLDR.W           R0, [R5,#0x7C4]                                        ; +0x222, 0x47c446\nB               loc_47C840                                             ; +0x226, 0x47c44a\nCMP             R4, #4                                                 ; +0x228, 0x47c44c\nBNE             loc_47C456                                             ; +0x22a, 0x47c44e\nLDR.W           R0, [R5,#0x794]                                        ; +0x22c, 0x47c450\nB               loc_47C840                                             ; +0x230, 0x47c454\nCMP             R4, #5                                                 ; +0x232, 0x47c456\nBNE             loc_47C460                                             ; +0x234, 0x47c458\nLDR.W           R0, [R5,#0x774]                                        ; +0x236, 0x47c45a\nB               loc_47C840                                             ; +0x23a, 0x47c45e\nCMP             R4, #7                                                 ; +0x23c, 0x47c460\nBGT             loc_47C46A                                             ; +0x23e, 0x47c462\nLDR.W           R0, [R5,#0x73C]                                        ; +0x240, 0x47c464\nB               loc_47C840                                             ; +0x244, 0x47c468\nCMP             R4, #9                                                 ; +0x246, 0x47c46a\nBGT             loc_47C474                                             ; +0x248, 0x47c46c\nLDR.W           R0, [R5,#0x704]                                        ; +0x24a, 0x47c46e\nB               loc_47C840                                             ; +0x24e, 0x47c472\nCMP             R4, #0xB                                               ; +0x250, 0x47c474\nITE LE                                                                 ; +0x252, 0x47c476\nLDRLE.W         R0, [R5,#0x6CC]                                        ; +0x254, 0x47c478\nLDRGT.W         R0, [R5,#0x69C]                                        ; +0x258, 0x47c47c\nB               loc_47C840                                             ; +0x25c, 0x47c480\nADDS            R2, R1, #4; jumptable 0047C39E case 1                  ; +0x25e, 0x47c482\nBGE             loc_47C48C                                             ; +0x260, 0x47c484\nLDR.W           R0, [R0,#0x8B4]                                        ; +0x262, 0x47c486\nB               loc_47C840                                             ; +0x266, 0x47c48a\nADDS            R3, R1, #2                                             ; +0x268, 0x47c48c\nBGE             loc_47C496                                             ; +0x26a, 0x47c48e\nLDR.W           R0, [R0,#0x87C]                                        ; +0x26c, 0x47c490\nB               loc_47C840                                             ; +0x270, 0x47c494\nCMP             R1, #0                                                 ; +0x272, 0x47c496\nBGE             loc_47C4A0                                             ; +0x274, 0x47c498\nLDR.W           R0, [R0,#0x844]                                        ; +0x276, 0x47c49a\nB               loc_47C840                                             ; +0x27a, 0x47c49e\nCMP             R1, #1                                                 ; +0x27c, 0x47c4a0\nBGT             loc_47C4AA                                             ; +0x27e, 0x47c4a2\nLDR.W           R0, [R0,#0x80C]                                        ; +0x280, 0x47c4a4\nB               loc_47C840                                             ; +0x284, 0x47c4a8\nCMP             R1, #3                                                 ; +0x286, 0x47c4aa\nBGT             loc_47C4B4                                             ; +0x288, 0x47c4ac\nLDR.W           R0, [R0,#0x7D4]                                        ; +0x28a, 0x47c4ae\nB               loc_47C840                                             ; +0x28e, 0x47c4b2\nCMP             R1, #4                                                 ; +0x290, 0x47c4b4\nBNE             loc_47C4BE                                             ; +0x292, 0x47c4b6\nLDR.W           R0, [R0,#0x79C]                                        ; +0x294, 0x47c4b8\nB               loc_47C840                                             ; +0x298, 0x47c4bc\nCMP             R1, #5                                                 ; +0x29a, 0x47c4be\nBNE             loc_47C4C8                                             ; +0x29c, 0x47c4c0\nLDR.W           R0, [R0,#0x784]                                        ; +0x29e, 0x47c4c2\nB               loc_47C840                                             ; +0x2a2, 0x47c4c6\nCMP             R1, #7                                                 ; +0x2a4, 0x47c4c8\nBGT             loc_47C4D2                                             ; +0x2a6, 0x47c4ca\nLDR.W           R0, [R0,#0x74C]                                        ; +0x2a8, 0x47c4cc\nB               loc_47C840                                             ; +0x2ac, 0x47c4d0\nCMP             R1, #9                                                 ; +0x2ae, 0x47c4d2\nBGT             loc_47C4DC                                             ; +0x2b0, 0x47c4d4\nLDR.W           R0, [R0,#0x714]                                        ; +0x2b2, 0x47c4d6\nB               loc_47C840                                             ; +0x2b6, 0x47c4da\nCMP             R1, #0xB                                               ; +0x2b8, 0x47c4dc\nITE LE                                                                 ; +0x2ba, 0x47c4de\nLDRLE.W         R0, [R0,#0x6DC]                                        ; +0x2bc, 0x47c4e0\nLDRGT.W         R0, [R5,#0x6A4]                                        ; +0x2c0, 0x47c4e4\nB               loc_47C840                                             ; +0x2c4, 0x47c4e8\nLDRB.W          R3, [R0,#0xA68]; jumptable 0047C39E case 2             ; +0x2c6, 0x47c4ea\nCBZ             R3, loc_47C4F6                                         ; +0x2ca, 0x47c4ee\nLDR.W           R0, [R5,#0x7B4]                                        ; +0x2cc, 0x47c4f0\nB               loc_47C840                                             ; +0x2d0, 0x47c4f4\nADDS            R7, R1, #4                                             ; +0x2d2, 0x47c4f6\nBGE             loc_47C508                                             ; +0x2d4, 0x47c4f8\nLDR.W           R0, [R0,#0x894]                                        ; +0x2d6, 0x47c4fa\nB               loc_47C840                                             ; +0x2da, 0x47c4fe\nDCD 0x186A0                                                            ; +0x2dc, 0x47c500\nDCD unk_9ABF60 - 0x47C29C                                              ; +0x2e0, 0x47c504\nADDS            R6, R1, #2                                             ; +0x2e4, 0x47c508\nBGE             loc_47C512                                             ; +0x2e6, 0x47c50a\nLDR.W           R0, [R0,#0x85C]                                        ; +0x2e8, 0x47c50c\nB               loc_47C840                                             ; +0x2ec, 0x47c510\nCMP             R1, #0                                                 ; +0x2ee, 0x47c512\nBGE             loc_47C51C                                             ; +0x2f0, 0x47c514\nLDR.W           R0, [R0,#0x824]                                        ; +0x2f2, 0x47c516\nB               loc_47C840                                             ; +0x2f6, 0x47c51a\nCMP             R1, #1                                                 ; +0x2f8, 0x47c51c\nBGT             loc_47C526                                             ; +0x2fa, 0x47c51e\nLDR.W           R0, [R0,#0x7EC]                                        ; +0x2fc, 0x47c520\nB               loc_47C840                                             ; +0x300, 0x47c524\nCMP             R1, #3                                                 ; +0x302, 0x47c526\nBLE             loc_47C4F0                                             ; +0x304, 0x47c528\nCMP             R1, #5                                                 ; +0x306, 0x47c52a\nBGT             loc_47C534                                             ; +0x308, 0x47c52c\nLDR.W           R0, [R0,#0x764]                                        ; +0x30a, 0x47c52e\nB               loc_47C840                                             ; +0x30e, 0x47c532\nCMP             R1, #7                                                 ; +0x310, 0x47c534\nBGT             loc_47C53E                                             ; +0x312, 0x47c536\nLDR.W           R0, [R0,#0x72C]                                        ; +0x314, 0x47c538\nB               loc_47C840                                             ; +0x318, 0x47c53c\nCMP             R1, #9                                                 ; +0x31a, 0x47c53e\nITE LE                                                                 ; +0x31c, 0x47c540\nLDRLE.W         R0, [R0,#0x6F4]                                        ; +0x31e, 0x47c542\nLDRGT.W         R0, [R5,#0x6BC]                                        ; +0x322, 0x47c546\nB               loc_47C840                                             ; +0x326, 0x47c54a\nLDRB.W          R3, [R0,#0xA68]; jumptable 0047C39E case 3             ; +0x328, 0x47c54c\nCBZ             R3, loc_47C558                                         ; +0x32c, 0x47c550\nLDR.W           R0, [R5,#0x7BC]                                        ; +0x32e, 0x47c552\nB               loc_47C840                                             ; +0x332, 0x47c556\nADDS            R0, R1, #4                                             ; +0x334, 0x47c558\nBGE             loc_47C562                                             ; +0x336, 0x47c55a\nLDR.W           R0, [R5,#0x89C]                                        ; +0x338, 0x47c55c\nB               loc_47C840                                             ; +0x33c, 0x47c560\nADDS            R1, #2                                                 ; +0x33e, 0x47c562\nBGE             loc_47C56C                                             ; +0x340, 0x47c564\nLDR.W           R0, [R5,#0x864]                                        ; +0x342, 0x47c566\nB               loc_47C840                                             ; +0x346, 0x47c56a\nCMP             R4, #0                                                 ; +0x348, 0x47c56c\nBGE             loc_47C576                                             ; +0x34a, 0x47c56e\nLDR.W           R0, [R5,#0x82C]                                        ; +0x34c, 0x47c570\nB               loc_47C840                                             ; +0x350, 0x47c574\nCMP             R4, #1                                                 ; +0x352, 0x47c576\nBGT             loc_47C580                                             ; +0x354, 0x47c578\nLDR.W           R0, [R5,#0x7F4]                                        ; +0x356, 0x47c57a\nB               loc_47C840                                             ; +0x35a, 0x47c57e\nCMP             R4, #3                                                 ; +0x35c, 0x47c580\nBLE             loc_47C552                                             ; +0x35e, 0x47c582\nCMP             R4, #4                                                 ; +0x360, 0x47c584\nBNE             loc_47C58E                                             ; +0x362, 0x47c586\nLDR.W           R0, [R5,#0x790]                                        ; +0x364, 0x47c588\nB               loc_47C840                                             ; +0x368, 0x47c58c\nCMP             R4, #5                                                 ; +0x36a, 0x47c58e\nBNE             loc_47C598                                             ; +0x36c, 0x47c590\nLDR.W           R0, [R5,#0x76C]                                        ; +0x36e, 0x47c592\nB               loc_47C840                                             ; +0x372, 0x47c596\nCMP             R4, #7                                                 ; +0x374, 0x47c598\nBGT             loc_47C5A2                                             ; +0x376, 0x47c59a\nLDR.W           R0, [R5,#0x734]                                        ; +0x378, 0x47c59c\nB               loc_47C840                                             ; +0x37c, 0x47c5a0\nCMP             R4, #9                                                 ; +0x37e, 0x47c5a2\nBGT             loc_47C5AC                                             ; +0x380, 0x47c5a4\nLDR.W           R0, [R5,#0x6FC]                                        ; +0x382, 0x47c5a6\nB               loc_47C840                                             ; +0x386, 0x47c5aa\nCMP             R4, #0xB                                               ; +0x388, 0x47c5ac\nITE LE                                                                 ; +0x38a, 0x47c5ae\nLDRLE.W         R0, [R5,#0x6C4]                                        ; +0x38c, 0x47c5b0\nLDRGT.W         R0, [R5,#0x698]                                        ; +0x390, 0x47c5b4\nB               loc_47C840                                             ; +0x394, 0x47c5b8\nADDS            R2, R1, #4; jumptable 0047C39E default case, cases 4,5,7 ; +0x396, 0x47c5ba\nBGE             loc_47C5C4                                             ; +0x398, 0x47c5bc\nLDR.W           R0, [R0,#0x884]                                        ; +0x39a, 0x47c5be\nB               loc_47C840                                             ; +0x39e, 0x47c5c2\nADDS            R3, R1, #2                                             ; +0x3a0, 0x47c5c4\nBGE             loc_47C5CE                                             ; +0x3a2, 0x47c5c6\nLDR.W           R0, [R0,#0x84C]                                        ; +0x3a4, 0x47c5c8\nB               loc_47C840                                             ; +0x3a8, 0x47c5cc\nCMP             R1, #0                                                 ; +0x3aa, 0x47c5ce\nBGE             loc_47C5D8                                             ; +0x3ac, 0x47c5d0\nLDR.W           R0, [R0,#0x814]                                        ; +0x3ae, 0x47c5d2\nB               loc_47C840                                             ; +0x3b2, 0x47c5d6\nCMP             R1, #1                                                 ; +0x3b4, 0x47c5d8\nBGT             loc_47C5E2                                             ; +0x3b6, 0x47c5da\nLDR.W           R0, [R0,#0x7DC]                                        ; +0x3b8, 0x47c5dc\nB               loc_47C840                                             ; +0x3bc, 0x47c5e0\nCMP             R1, #3                                                 ; +0x3be, 0x47c5e2\nBGT             loc_47C5EC                                             ; +0x3c0, 0x47c5e4\nLDR.W           R0, [R0,#0x7A4]                                        ; +0x3c2, 0x47c5e6\nB               loc_47C840                                             ; +0x3c6, 0x47c5ea\nCMP             R1, #4                                                 ; +0x3c8, 0x47c5ec\nBNE             loc_47C5F6                                             ; +0x3ca, 0x47c5ee\nLDR.W           R0, [R0,#0x78C]                                        ; +0x3cc, 0x47c5f0\nB               loc_47C840                                             ; +0x3d0, 0x47c5f4\nCMP             R1, #5                                                 ; +0x3d2, 0x47c5f6\nBNE             loc_47C600                                             ; +0x3d4, 0x47c5f8\nLDR.W           R0, [R0,#0x754]                                        ; +0x3d6, 0x47c5fa\nB               loc_47C840                                             ; +0x3da, 0x47c5fe\nCMP             R1, #7                                                 ; +0x3dc, 0x47c600\nBGT             loc_47C60A                                             ; +0x3de, 0x47c602\nLDR.W           R0, [R0,#0x71C]                                        ; +0x3e0, 0x47c604\nB               loc_47C840                                             ; +0x3e4, 0x47c608\nCMP             R1, #9                                                 ; +0x3e6, 0x47c60a\nBGT             loc_47C614                                             ; +0x3e8, 0x47c60c\nLDR.W           R0, [R0,#0x6E4]                                        ; +0x3ea, 0x47c60e\nB               loc_47C840                                             ; +0x3ee, 0x47c612\nCMP             R1, #0xB                                               ; +0x3f0, 0x47c614\nITE LE                                                                 ; +0x3f2, 0x47c616\nLDRLE.W         R0, [R0,#0x6AC]                                        ; +0x3f4, 0x47c618\nLDRGT.W         R0, [R5,#0x694]                                        ; +0x3f8, 0x47c61c\nB               loc_47C840                                             ; +0x3fc, 0x47c620\nCMP             R6, #7                                                 ; +0x3fe, 0x47c622\nBHI.W           def_47C628; jumptable 0047C628 default case, cases 4,5,7 ; +0x400, 0x47c624\nTBB.W           [PC,R6]; switch jump                                   ; +0x404, 0x47c628\nDCB 0x58; jump table for switch statement                              ; +0x408, 0x47c62c\nDCB 0x87                                                               ; +0x409, 0x47c62d\nDCB 0xB4                                                               ; +0x40a, 0x47c62e\nDCB 0xE1                                                               ; +0x40b, 0x47c62f\nDCB 0xE1                                                               ; +0x40c, 0x47c630\nDCB 0x2E                                                               ; +0x40d, 0x47c631\nDCB 0xE1                                                               ; +0x40e, 0x47c632\nDCB 4                                                                  ; +0x40f, 0x47c633\nADDS            R7, R1, #4; jumptable 0047C628 case 8                  ; +0x410, 0x47c634\nBGE             loc_47C63E                                             ; +0x412, 0x47c636\nLDR.W           R0, [R0,#0x8A8]                                        ; +0x414, 0x47c638\nB               loc_47C840                                             ; +0x418, 0x47c63c\nADDS            R6, R1, #2                                             ; +0x41a, 0x47c63e\nBGE             loc_47C648                                             ; +0x41c, 0x47c640\nLDR.W           R0, [R0,#0x870]                                        ; +0x41e, 0x47c642\nB               loc_47C840                                             ; +0x422, 0x47c646\nCMP             R1, #0                                                 ; +0x424, 0x47c648\nBGE             loc_47C652                                             ; +0x426, 0x47c64a\nLDR.W           R0, [R0,#0x838]                                        ; +0x428, 0x47c64c\nB               loc_47C840                                             ; +0x42c, 0x47c650\nCMP             R1, #1                                                 ; +0x42e, 0x47c652\nBGT             loc_47C65C                                             ; +0x430, 0x47c654\nLDR.W           R0, [R0,#0x800]                                        ; +0x432, 0x47c656\nB               loc_47C840                                             ; +0x436, 0x47c65a\nCMP             R1, #3                                                 ; +0x438, 0x47c65c\nBGT             loc_47C666                                             ; +0x43a, 0x47c65e\nLDR.W           R0, [R0,#0x7C8]                                        ; +0x43c, 0x47c660\nB               loc_47C840                                             ; +0x440, 0x47c664\nCMP             R1, #5                                                 ; +0x442, 0x47c666\nBGT             loc_47C670                                             ; +0x444, 0x47c668\nLDR.W           R0, [R0,#0x778]                                        ; +0x446, 0x47c66a\nB               loc_47C840                                             ; +0x44a, 0x47c66e\nCMP             R1, #7                                                 ; +0x44c, 0x47c670\nBGT             loc_47C67A                                             ; +0x44e, 0x47c672\nLDR.W           R0, [R0,#0x740]                                        ; +0x450, 0x47c674\nB               loc_47C840                                             ; +0x454, 0x47c678\nCMP             R1, #9                                                 ; +0x456, 0x47c67a\nITE LE                                                                 ; +0x458, 0x47c67c\nLDRLE.W         R0, [R0,#0x708]                                        ; +0x45a, 0x47c67e\nLDRGT.W         R0, [R5,#0x6D0]                                        ; +0x45e, 0x47c682\nB               loc_47C840                                             ; +0x462, 0x47c686\nADDS            R0, R1, #4; jumptable 0047C628 case 6                  ; +0x464, 0x47c688\nBGE             loc_47C692                                             ; +0x466, 0x47c68a\nLDR.W           R0, [R5,#0x8A0]                                        ; +0x468, 0x47c68c\nB               loc_47C840                                             ; +0x46c, 0x47c690\nADDS            R1, #2                                                 ; +0x46e, 0x47c692\nBGE             loc_47C69C                                             ; +0x470, 0x47c694\nLDR.W           R0, [R5,#0x868]                                        ; +0x472, 0x47c696\nB               loc_47C840                                             ; +0x476, 0x47c69a\nCMP             R4, #0                                                 ; +0x478, 0x47c69c\nBGE             loc_47C6A6                                             ; +0x47a, 0x47c69e\nLDR.W           R0, [R5,#0x830]                                        ; +0x47c, 0x47c6a0\nB               loc_47C840                                             ; +0x480, 0x47c6a4\nCMP             R4, #1                                                 ; +0x482, 0x47c6a6\nBGT             loc_47C6B0                                             ; +0x484, 0x47c6a8\nLDR.W           R0, [R5,#0x7F8]                                        ; +0x486, 0x47c6aa\nB               loc_47C840                                             ; +0x48a, 0x47c6ae\nCMP             R4, #3                                                 ; +0x48c, 0x47c6b0\nBGT             loc_47C6BA                                             ; +0x48e, 0x47c6b2\nLDR.W           R0, [R5,#0x7C0]                                        ; +0x490, 0x47c6b4\nB               loc_47C840                                             ; +0x494, 0x47c6b8\nCMP             R4, #5                                                 ; +0x496, 0x47c6ba\nBGT             loc_47C6C4                                             ; +0x498, 0x47c6bc\nLDR.W           R0, [R5,#0x770]                                        ; +0x49a, 0x47c6be\nB               loc_47C840                                             ; +0x49e, 0x47c6c2\nCMP             R4, #7                                                 ; +0x4a0, 0x47c6c4\nBGT             loc_47C6CE                                             ; +0x4a2, 0x47c6c6\nLDR.W           R0, [R5,#0x738]                                        ; +0x4a4, 0x47c6c8\nB               loc_47C840                                             ; +0x4a8, 0x47c6cc\nCMP             R4, #9                                                 ; +0x4aa, 0x47c6ce\nITE LE                                                                 ; +0x4ac, 0x47c6d0\nLDRLE.W         R0, [R5,#0x700]                                        ; +0x4ae, 0x47c6d2\nLDRGT.W         R0, [R5,#0x6C8]                                        ; +0x4b2, 0x47c6d6\nB               loc_47C840                                             ; +0x4b6, 0x47c6da\nADDS            R2, R1, #4; jumptable 0047C628 case 1                  ; +0x4b8, 0x47c6dc\nBGE             loc_47C6E6                                             ; +0x4ba, 0x47c6de\nLDR.W           R0, [R0,#0x8B0]                                        ; +0x4bc, 0x47c6e0\nB               loc_47C840                                             ; +0x4c0, 0x47c6e4\nADDS            R3, R1, #2                                             ; +0x4c2, 0x47c6e6\nBGE             loc_47C6F0                                             ; +0x4c4, 0x47c6e8\nLDR.W           R0, [R0,#0x878]                                        ; +0x4c6, 0x47c6ea\nB               loc_47C840                                             ; +0x4ca, 0x47c6ee\nCMP             R1, #0                                                 ; +0x4cc, 0x47c6f0\nBGE             loc_47C6FA                                             ; +0x4ce, 0x47c6f2\nLDR.W           R0, [R0,#0x840]                                        ; +0x4d0, 0x47c6f4\nB               loc_47C840                                             ; +0x4d4, 0x47c6f8\nCMP             R1, #1                                                 ; +0x4d6, 0x47c6fa\nBGT             loc_47C704                                             ; +0x4d8, 0x47c6fc\nLDR.W           R0, [R0,#0x808]                                        ; +0x4da, 0x47c6fe\nB               loc_47C840                                             ; +0x4de, 0x47c702\nCMP             R1, #3                                                 ; +0x4e0, 0x47c704\nBGT             loc_47C70E                                             ; +0x4e2, 0x47c706\nLDR.W           R0, [R0,#0x7D0]                                        ; +0x4e4, 0x47c708\nB               loc_47C840                                             ; +0x4e8, 0x47c70c\nCMP             R1, #4                                                 ; +0x4ea, 0x47c70e\nBNE             loc_47C718                                             ; +0x4ec, 0x47c710\nLDR.W           R0, [R0,#0x788]                                        ; +0x4ee, 0x47c712\nB               loc_47C840                                             ; +0x4f2, 0x47c716\nCMP             R1, #5                                                 ; +0x4f4, 0x47c718\nBNE             loc_47C722                                             ; +0x4f6, 0x47c71a\nLDR.W           R0, [R0,#0x780]                                        ; +0x4f8, 0x47c71c\nB               loc_47C840                                             ; +0x4fc, 0x47c720\nCMP             R1, #7                                                 ; +0x4fe, 0x47c722\nBGT             loc_47C72C                                             ; +0x500, 0x47c724\nLDR.W           R0, [R0,#0x748]                                        ; +0x502, 0x47c726\nB               loc_47C840                                             ; +0x506, 0x47c72a\nCMP             R1, #9                                                 ; +0x508, 0x47c72c\nITE LE                                                                 ; +0x50a, 0x47c72e\nLDRLE.W         R0, [R0,#0x710]                                        ; +0x50c, 0x47c730\nLDRGT.W         R0, [R5,#0x6D8]                                        ; +0x510, 0x47c734\nB               loc_47C840                                             ; +0x514, 0x47c738\nLDRB.W          R3, [R0,#0xA68]; jumptable 0047C628 case 2             ; +0x516, 0x47c73a\nCBZ             R3, loc_47C746                                         ; +0x51a, 0x47c73e\nLDR.W           R0, [R5,#0x7B0]                                        ; +0x51c, 0x47c740\nB               loc_47C840                                             ; +0x520, 0x47c744\nADDS            R7, R1, #4                                             ; +0x522, 0x47c746\nBGE             loc_47C750                                             ; +0x524, 0x47c748\nLDR.W           R0, [R0,#0x890]                                        ; +0x526, 0x47c74a\nB               loc_47C840                                             ; +0x52a, 0x47c74e\nADDS            R6, R1, #2                                             ; +0x52c, 0x47c750\nBGE             loc_47C75A                                             ; +0x52e, 0x47c752\nLDR.W           R0, [R0,#0x858]                                        ; +0x530, 0x47c754\nB               loc_47C840                                             ; +0x534, 0x47c758\nCMP             R1, #0                                                 ; +0x536, 0x47c75a\nBGE             loc_47C764                                             ; +0x538, 0x47c75c\nLDR.W           R0, [R0,#0x820]                                        ; +0x53a, 0x47c75e\nB               loc_47C840                                             ; +0x53e, 0x47c762\nCMP             R1, #1                                                 ; +0x540, 0x47c764\nBGT             loc_47C76E                                             ; +0x542, 0x47c766\nLDR.W           R0, [R0,#0x7E8]                                        ; +0x544, 0x47c768\nB               loc_47C840                                             ; +0x548, 0x47c76c\nCMP             R1, #3                                                 ; +0x54a, 0x47c76e\nBLE             loc_47C740                                             ; +0x54c, 0x47c770\nCMP             R1, #5                                                 ; +0x54e, 0x47c772\nBGT             loc_47C77C                                             ; +0x550, 0x47c774\nLDR.W           R0, [R0,#0x760]                                        ; +0x552, 0x47c776\nB               loc_47C840                                             ; +0x556, 0x47c77a\nCMP             R1, #7                                                 ; +0x558, 0x47c77c\nBGT             loc_47C786                                             ; +0x55a, 0x47c77e\nLDR.W           R0, [R0,#0x728]                                        ; +0x55c, 0x47c780\nB               loc_47C840                                             ; +0x560, 0x47c784\nCMP             R1, #9                                                 ; +0x562, 0x47c786\nITE LE                                                                 ; +0x564, 0x47c788\nLDRLE.W         R0, [R0,#0x6F0]                                        ; +0x566, 0x47c78a\nLDRGT.W         R0, [R5,#0x6B8]                                        ; +0x56a, 0x47c78e\nB               loc_47C840                                             ; +0x56e, 0x47c792\nLDRB.W          R3, [R0,#0xA68]; jumptable 0047C628 case 3             ; +0x570, 0x47c794\nCBZ             R3, loc_47C7A0                                         ; +0x574, 0x47c798\nLDR.W           R0, [R5,#0x7B8]                                        ; +0x576, 0x47c79a\nB               loc_47C840                                             ; +0x57a, 0x47c79e\nADDS            R0, R1, #4                                             ; +0x57c, 0x47c7a0\nBGE             loc_47C7AA                                             ; +0x57e, 0x47c7a2\nLDR.W           R0, [R5,#0x898]                                        ; +0x580, 0x47c7a4\nB               loc_47C840                                             ; +0x584, 0x47c7a8\nADDS            R1, #2                                                 ; +0x586, 0x47c7aa\nBGE             loc_47C7B4                                             ; +0x588, 0x47c7ac\nLDR.W           R0, [R5,#0x860]                                        ; +0x58a, 0x47c7ae\nB               loc_47C840                                             ; +0x58e, 0x47c7b2\nCMP             R4, #0                                                 ; +0x590, 0x47c7b4\nBGE             loc_47C7BE                                             ; +0x592, 0x47c7b6\nLDR.W           R0, [R5,#0x828]                                        ; +0x594, 0x47c7b8\nB               loc_47C840                                             ; +0x598, 0x47c7bc\nCMP             R4, #1                                                 ; +0x59a, 0x47c7be\nBGT             loc_47C7C8                                             ; +0x59c, 0x47c7c0\nLDR.W           R0, [R5,#0x7F0]                                        ; +0x59e, 0x47c7c2\nB               loc_47C840                                             ; +0x5a2, 0x47c7c6\nCMP             R4, #3                                                 ; +0x5a4, 0x47c7c8\nBLE             loc_47C79A                                             ; +0x5a6, 0x47c7ca\nCMP             R4, #5                                                 ; +0x5a8, 0x47c7cc\nBGT             loc_47C7D6                                             ; +0x5aa, 0x47c7ce\nLDR.W           R0, [R5,#0x768]                                        ; +0x5ac, 0x47c7d0\nB               loc_47C840                                             ; +0x5b0, 0x47c7d4\nCMP             R4, #7                                                 ; +0x5b2, 0x47c7d6\nBGT             loc_47C7E0                                             ; +0x5b4, 0x47c7d8\nLDR.W           R0, [R5,#0x730]                                        ; +0x5b6, 0x47c7da\nB               loc_47C840                                             ; +0x5ba, 0x47c7de\nCMP             R4, #9                                                 ; +0x5bc, 0x47c7e0\nITE LE                                                                 ; +0x5be, 0x47c7e2\nLDRLE.W         R0, [R5,#0x6F8]                                        ; +0x5c0, 0x47c7e4\nLDRGT.W         R0, [R5,#0x6C0]                                        ; +0x5c4, 0x47c7e8\nB               loc_47C840                                             ; +0x5c8, 0x47c7ec\nADDS            R2, R1, #4; jumptable 0047C628 default case, cases 4,5,7 ; +0x5ca, 0x47c7ee\nBGE             loc_47C7F8                                             ; +0x5cc, 0x47c7f0\nLDR.W           R0, [R0,#0x880]                                        ; +0x5ce, 0x47c7f2\nB               loc_47C840                                             ; +0x5d2, 0x47c7f6\nADDS            R3, R1, #2                                             ; +0x5d4, 0x47c7f8\nBGE             loc_47C802                                             ; +0x5d6, 0x47c7fa\nLDR.W           R0, [R0,#0x848]                                        ; +0x5d8, 0x47c7fc\nB               loc_47C840                                             ; +0x5dc, 0x47c800\nCMP             R1, #0                                                 ; +0x5de, 0x47c802\nBGE             loc_47C80C                                             ; +0x5e0, 0x47c804\nLDR.W           R0, [R0,#0x810]                                        ; +0x5e2, 0x47c806\nB               loc_47C840                                             ; +0x5e6, 0x47c80a\nCMP             R1, #1                                                 ; +0x5e8, 0x47c80c\nBGT             loc_47C816                                             ; +0x5ea, 0x47c80e\nLDR.W           R0, [R0,#0x7D8]                                        ; +0x5ec, 0x47c810\nB               loc_47C840                                             ; +0x5f0, 0x47c814\nCMP             R1, #3                                                 ; +0x5f2, 0x47c816\nBGT             loc_47C820                                             ; +0x5f4, 0x47c818\nLDR.W           R0, [R0,#0x7A0]                                        ; +0x5f6, 0x47c81a\nB               loc_47C840                                             ; +0x5fa, 0x47c81e\nCMP             R1, #5                                                 ; +0x5fc, 0x47c820\nBGT             loc_47C82A                                             ; +0x5fe, 0x47c822\nLDR.W           R0, [R0,#0x750]                                        ; +0x600, 0x47c824\nB               loc_47C840                                             ; +0x604, 0x47c828\nCMP             R1, #7                                                 ; +0x606, 0x47c82a\nBGT             loc_47C834                                             ; +0x608, 0x47c82c\nLDR.W           R0, [R0,#0x718]                                        ; +0x60a, 0x47c82e\nB               loc_47C840                                             ; +0x60e, 0x47c832\nCMP             R1, #9                                                 ; +0x610, 0x47c834\nITE LE                                                                 ; +0x612, 0x47c836\nLDRLE.W         R0, [R0,#0x6E0]                                        ; +0x614, 0x47c838\nLDRGT.W         R0, [R5,#0x6A8]                                        ; +0x618, 0x47c83c\nADD             SP, SP, #0x14                                          ; +0x61c, 0x47c840\nPOP.W           {R4-R9,PC}                                             ; +0x61e, 0x47c842", "xrefs": ["GameObject::parentForZLayer @ 0x355af2", "LevelEditorLayer::claimCustomParticle @ 0x364f60", "GJBaseGameLayer::parentForZLayer @ 0x47c272", "GJBaseGameLayer::claimCustomParticle @ 0x489c2e"], "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"}